I am trying to compile GPC-20060325 on solaris10 intel platform Using gcc-3.4.3.While compiling Iam getting an error like bellow.
/usr/local/i386-pc-solaris2.10/bin/ld:libgcc/./libgcc.map: file format not recognized; treating as linker script /usr/local/i386-pc-solaris2.10/bin/ld:libgcc/./libgcc.map:1: parse error collect2: ld returned 1 exit status make[2]: *** [libgcc_s.so] Error 1 make[2]: Leaving directory `/home/prasad/gpc-build/gcc' make[1]: *** [libgcc.a] Error 2 make[1]: Leaving directory `/home/prasad/gpc-build/gcc' make: *** [all-gcc] Error 2
Please help how to solve the above problem.
regards prasad
prasad svr wrote:
I am trying to compile GPC-20060325 on solaris10 intel platform Using gcc-3.4.3.While compiling Iam getting an error like bellow.
/usr/local/i386-pc-solaris2.10/bin/ld:libgcc/./libgcc.map: file format not recognized; treating as linker script /usr/local/i386-pc-solaris2.10/bin/ld:libgcc/./libgcc.map:1: parse error collect2: ld returned 1 exit status make[2]: *** [libgcc_s.so] Error 1 make[2]: Leaving directory `/home/prasad/gpc-build/gcc' make[1]: *** [libgcc.a] Error 2 make[1]: Leaving directory `/home/prasad/gpc-build/gcc' make: *** [all-gcc] Error 2
It looks like problem due to mixing Sun tools and GNU tools. Read carefully about `--with-gnu-ld', `--with-gnu-as', '--with-ld=' and `--with-as=' options.
I suspect that the problem occurs also when you just try to build gcc. If yes you should look for help in Solaris or GCC formus. Foe example googling `libgcc.map Solaris' gives me (among others):
http://www.gatago.com/gnu/gcc/help/7508712.html http://www.opensolaris.org/jive/thread.jspa?messageID=40949&tstart=0