This is the mail archive of the gcc-help@gcc.gnu.org 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]

problem running gcc 4.3.0 on i386-pc-solaris2.10


Hi,

I am having a problem running the GCC 4.3 I just built and installed on a Solaris Intel machine. Somehow, the absolute path is left off of crtbegin.o and crtend.o. Any ideas on what I did wrong to cause this, or failed to do?

Here's the broken run's output:

-bash-3.00$ /usr/local/bin/gcc -o hello hello.c -v
Using built-in specs.
Target: i386-pc-solaris2.10
Configured with: ../configure --build=i386-pc-solaris2.10 --with-gnu-as --with-as=/usr/sfw/bin/gas --without-gnu-ld -with-ld=/usr/ccs/bin/ld --with-gmp=/usr/local --with-mpfr=/usr/local --enable-languages=c,c++,fortran --enable-shared
Thread model: posix
gcc version 4.3.0 20070301 (experimental)
/usr/local/libexec/gcc/i386-pc-solaris2.10/4.3.0/cc1 -quiet -v hello.c -quiet -dumpbase hello.c -mtune=generic -auxbase hello -version -o /var/tmp//ccxcSoPX.s
ignoring nonexistent directory "/usr/local/lib/gcc/i386-pc-solaris2.10/4.3.0/../../../../i386-pc-solaris2.10/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/usr/local/lib/gcc/i386-pc-solaris2.10/4.3.0/include
/usr/local/lib/gcc/i386-pc-solaris2.10/4.3.0/include-fixed
/usr/include
End of search list.
GNU C version 4.3.0 20070301 (experimental) (i386-pc-solaris2.10)
compiled by GNU C version 4.3.0 20070301 (experimental).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 15fd974b8d70fc2c218783c6076c49f0
/usr/sfw/bin/gas --traditional-format -V -Qy -s -o /var/tmp//ccAwK3EN.o /var/tmp//ccxcSoPX.s
GNU assembler version 2.15 (i386-pc-solaris2.10) using BFD version 2.15
/usr/local/libexec/gcc/i386-pc-solaris2.10/4.3.0/collect2 -V -Y P,/usr/ccs/lib:/usr/lib -Qy -o hello /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/values-Xa.o crtbegin.o -L/usr/local/lib/gcc/i386-pc-solaris2.10/4.3.0 -L/usr/local/lib/gcc/i386-pc-solaris2.10/4.3.0/../../.. /var/tmp//ccAwK3EN.o -lgcc -lgcc_eh -lc -lgcc -lgcc_eh crtend.o /usr/lib/crtn.o
ld: Software Generation Utilities - Solaris Link Editors: 5.10-1.482
ld: fatal: file crtbegin.o: open failed: No such file or directory
ld: fatal: library -lgcc: not found
ld: fatal: library -lgcc_eh: not found
ld: fatal: library -lgcc: not found
ld: fatal: library -lgcc_eh: not found
ld: fatal: file crtend.o: open failed: No such file or directory
ld: fatal: File processing errors. No output written to hello
collect2: ld returned 1 exit status
-bash-3.00$



Here's a working run's output, using the gcc 3.4 that was already installed:


-bash-3.00$ gcc -o hello hello.c -v
Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/specs
Configured with: /builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure --prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++ --enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
/usr/sfw/libexec/gcc/i386-pc-solaris2.10/3.4.3/cc1 -quiet -v hello.c -quiet -dumpbase hello.c -auxbase hello -version -o /var/tmp//ccw0ST6d.s
ignoring nonexistent directory "/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/../../../../i386-pc-solaris2.10/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/usr/sfw/include
/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/include
/usr/include
End of search list.
GNU C version 3.4.3 (csl-sol210-3_4-branch+sol_rpath) (i386-pc-solaris2.10)
compiled by GNU C version 3.4.3 (csl-sol210-3_4-branch+sol_rpath).
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
/usr/sfw/bin/gas --traditional-format -V -Qy -s -o /var/tmp//cccd8M1l.o /var/tmp//ccw0ST6d.s
GNU assembler version 2.15 (i386-pc-solaris2.10) using BFD version 2.15
/usr/sfw/libexec/gcc/i386-pc-solaris2.10/3.4.3/collect2 -V -Y P,/usr/ccs/lib:/usr/lib -Qy -o hello /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/values-Xa.o /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/crtbegin.o -L/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3 -L/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/../../.. /var/tmp//cccd8M1l.o -R/usr/sfw/lib -lgcc -lgcc_eh -lc -R/usr/sfw/lib -lgcc -lgcc_eh /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/crtend.o /usr/lib/crtn.o
ld: Software Generation Utilities - Solaris Link Editors: 5.10-1.482



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