This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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

Re: GCC -3.4.0 build error for arm?


libc is not in your linker's search path.

try running
$ arm-linux-ld --verbose | grep SEARCH

and check in what directory ld expects its libraries. Either move or symlink
your libraries (dangerous!) or reconfigure ld with --with-lib-path option.
(you can issue make LIB_PATH= as well).

Hope this helps. If not:

There is another problem which I stumbled upon some time ago: if ld does
appear to search the right directories, check your gcc specs file
($prefix/lib/gcc-lib/$target/$version/specs) for the *link: target. Gcc
sometimes reconfigures ld's search path by passing a -Y,Ppath command line
option. Either remove the option or change the path there.


Good luck!

Arno


  np: The Police - De Do Do Do, De Da Da Da
----- Original Message ----- 
From: "Poornachandran, RajeshX" <rajeshx.poornachandran@intel.com>
To: <crossgcc@sources.redhat.com>
Sent: Saturday, May 29, 2004 4:24 AM
Subject: GCC -3.4.0 build error for arm?


Hi,

 I am trying to build GCC tool chain with gcc-3.4.0 and linux -2.6.5 for
arm arch. I get the following build error. I have applied the gcc-3.4.0
patch and I have disabled the multilib too.

/usr/local/xscale/arm-linux/gcc-3.4.0-glibc-2.3.2/arm-linux/bin/ld:
cannot find -lc
collect2: ld returned 1 exit status
make[2]: *** [libgcc_s.so] Error 1
make[2]: Leaving directory
`/home/rpoornax/gcc/crosstool-0.28-rc16/build/arm-linux/gcc-3.4.0-glibc-
2.3.2/build-glibc/build-gcc/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory
`/home/rpoornax/gcc/crosstool-0.28-rc16/build/arm-linux/gcc-3.4.0-glibc-
2.3.2/build-glibc/build-gcc/gcc'
make: *** [all-gcc] Error 2

Please help me.

-thanks,
Rajesh

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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