[CMake] cmake can't find some crtbegin.so, libgcc, libgcc_s under certain conditions

Rolf Eike Beer eike at sf-mail.de
Tue Jan 31 16:04:16 EST 2012


Jim Galarowicz wrote:
> Hi all,
> 
> I'm running into issues with cmake or likely our set-up/usage of cmake, when
> trying to build the component based tool framework (CBTF) with cmake. The
> issue I'm seeing only occurs on machines where binutils-devel is not
> installed and I build my own version of binutils. It seems that something
> gets out of sync with ld and gcc.  I'm on laboratory machines where I don't
> control the software that is installed, so that is why I'm building my own
> version of binutils.
> 
> Has anyone seen something like this (output listed below) or has any
> suggestions on where to look and/or what to look for to solve this?

Oh well. The problem is that your compiler has for whatever reason forgotten 
how to find the low level libraries. The fix is basically described here:

http://www.linuxfromscratch.org/lfs/view/7.0/chapter05/adjusting.html

Since you can't influence the system directories you can put your specfile 
basically anywhere and then call "gcc -specs=/my/spec/file" and then hope it 
works.

Eike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120131/e81e4545/attachment-0001.pgp>


More information about the CMake mailing list