This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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

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
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
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 /     \. /     \. /     \.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]