Gentoo Archives: gentoo-sparc

From: Zhang Weiwu <zhangweiwu@××××××.com>
To: gentoo-sparc@l.g.o
Subject: Re: [gentoo-sparc] 64-bit gentoo-sparc, how to make it happen?
Date: Sun, 25 Jun 2006 07:43:06
Message-Id: 1151221434.20229.6.camel@esmeralda.realss
In Reply to: Re: [gentoo-sparc] 64-bit gentoo-sparc, how to make it happen? by Zhang Weiwu
1 在 2006-06-25日的 15:29 +0800,Zhang Weiwu写道:
2
3 > an example of trying to run gcc with -m64 on 32bit system:
4 >
5 > sappho ~ # touch abc #creates 0byte file abc
6 > sappho ~ # gcc -O2 -m64 -mcpu=ultrasparc -fomit-frame-pointer -pipe abc
7 > /usr/lib/gcc/sparc-unknown-linux-gnu/3.4.4/../../../crt1.o(.text+0x10):
8 > In function `_start':
9 > : undefined reference to `main'
10 > /usr/lib/gcc/sparc-unknown-linux-gnu/3.4.4/../../../crt1.o(.text+0x1c):
11 > In function `_start':
12 > : undefined reference to `main'
13 > collect2: ld returned 1 exit status
14 >
15
16 How stupid. I pasted the result without thinking. My idea is first to
17 test empty file to see if gcc can actually run instead of quitting
18 immediatly. The output is actually very sane, empty files don't have
19 main(). Shame! Hope my CS lecturer (when I was a CS student) didn't see
20 this post.
21
22 Here is a not-so-stupid test:
23 sappho tmp # gcc -O2 -m64 -mcpu=ultrasparc -fomit-frame-pointer -pipe
24 helloworld.c
25 helloworld.c:1: error: -m64 is not supported by this configuration
26 helloworld.c:1: error: -mlong-double-64 not allowed with -m64
27
28
29 --
30 gentoo-sparc@g.o mailing list