1 |
On 16-05-2007 11:31:47 +0900, MATSUI Fe2+ Tetsushi wrote: |
2 |
> Hi, |
3 |
> |
4 |
> At Tue, 15 May 2007 21:28:26 +0200, |
5 |
> Fabian Groffen wrote: |
6 |
> > |
7 |
> > Is this before or after I fixed this problem for Elias? And if it was |
8 |
> > before, does it result in a 64-bits capable compiler or not? |
9 |
> |
10 |
> It was May 1st, the timestamp says. |
11 |
> |
12 |
> % ls -l `which gcc` |
13 |
> -rwxr-xr-x 1 tetsushi tetsushi 18512 May 1 03:42 /Users/tetsushi/Gentoo/usr/bin/gcc |
14 |
|
15 |
Ohw... that's interesting indeed! |
16 |
|
17 |
> I was not very interested in 64-bits capability, but |
18 |
> |
19 |
> % cat hello.c |
20 |
> #include <stdio.h> |
21 |
> |
22 |
> int main() { |
23 |
> return printf("Hello World!\n"); |
24 |
> } |
25 |
> % gcc -m32 -o hello32 hello.c |
26 |
> % gcc -m64 -o hello64 hello.c |
27 |
> % /usr/bin/file hello32 |
28 |
> hello32: Mach-O executable i386 |
29 |
> % /usr/bin/file hello64 |
30 |
> hello64: Mach-O 64-bit executable x86_64 |
31 |
> % ./hello32 |
32 |
> Hello World! |
33 |
> % ./hello64 |
34 |
> Hello World! |
35 |
> |
36 |
> seems fine, doesn't it? |
37 |
|
38 |
It does indeed! |
39 |
|
40 |
> There's one thing I should mention that the file command of prefixed |
41 |
> cannot tell hello64 is an executable: |
42 |
> % $EPREFIX/usr/bin/file hello64 |
43 |
> hello64: data |
44 |
|
45 |
GNU coreutils apparently isn't able to identify this (yet). Not much we |
46 |
can do about this, unless you know how to patch it to support it. I'm |
47 |
not much into file formats/magic headers myself, so I have no clue. |
48 |
|
49 |
I guess I should do some magic with the CFLAGS in the ebuild instead |
50 |
then, such that the compiler can be built supporting 64-bits at least. |
51 |
|
52 |
Is there something like a rule that this nococo or which one you |
53 |
mentioned is always wrong, and the other should be used? I think we |
54 |
inject either of the two in the profiles for the moment, but maybe we |
55 |
need a x86_64 profile as well then? |
56 |
|
57 |
|
58 |
-- |
59 |
Fabian Groffen |
60 |
Gentoo on a different level |
61 |
-- |
62 |
gentoo-alt@g.o mailing list |