This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Solaris 64-bit compilation fails with otherwise successful gcc-3.1
- From: "Alaeddin A. Aydiner" <aydiner at empc22 dot ece dot uiuc dot edu>
- To: gcc at gcc dot gnu dot org
- Date: Sun, 26 May 2002 19:59:53 -0500
- Subject: Solaris 64-bit compilation fails with otherwise successful gcc-3.1
This is a linker stage failure, so it may not be gcc's fault at all.
Still, it may be if it is invoking the linker without the necessary
flags. Am I supposed to use GNU ld with gcc-3.1 to get a 64-bit
executable? All compilations without the -m64 flag seem to be fine with
gcc-3.1.
Thanks for the really good compiler. I have not downloaded/run the test
suite but it was bootstrapped with bash and GNU make.
[src][4825] >g++ -v
Reading specs from
/space/gcc-inst/lib/gcc-lib/sparc-sun-solaris2.8/3.1/specs
Configured with: ../gcc-3.1/configure --prefix=/space/gcc-inst
--with-cpu=v9 --enable-languages=c,c++,f77
Thread model: posix
gcc version 3.1
/bin/bash ../libtool --mode=link g++ -O2 -W -Wall -fstrict-aliasing
-m64 -o par_antenna -all-static par_antenna.o
mkdir .libs
g++ -O2 -W -Wall -fstrict-aliasing -m64 -o par_antenna -static
par_antenna.o
ld: fatal: library -lm: not found
ld: fatal: library -lc: not found
ld: fatal: library -lc: not found
ld: fatal: File processing errors. No output written to par_antenna
collect2: ld returned 1 exit status
make: *** [par_antenna] Error 1
--
Alaeddin Ahmet Aydiner - PhD candidate _ _ _
Office Tel: 217 333 0434 / \ / \ / \
377 CCEM Everitt Laboratory MC 702 /---\ /---\ /---\
Electrical & Computer Eng. Dept. UIUC 61801 / \. / \. / \.