Glibc make fails with Error 2

Bruce Dubbs bruce.dubbs at
Sun May 23 18:49:30 PDT 2010

Kyle Brennan wrote:
> On 05/23/2010 06:07 PM, Bruce Dubbs wrote:
>> Kyle Brennan wrote:
>>> /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.4.3/../../../../i686-lfs-linux-gnu/bin/ld:
>>> cannot find -lgcc_eh
>> It looks like a problem with the gcc build. You should have:
>> /mnt/lfs/tools/gcc/x86_64-unknown-linux-gnu/4.4.3/libgcc_eh.a or
>> /mnt/lfs/tools/gcc/i686-pc-linux-gnu/4.4.3/libgcc_eh.a
>>     -- Bruce
> I got it from the tarball that was on the linux from scratch site.
> there may be a problem with my host system.  because when i was building 
> in the tools directory I did not reinstall.  there may be a error there 
> because there is supposed to be a symlink there right? so if that is 
> correct, I would need to fix my host system.

There wouldn't be a problem as long as you didn't install anything over 
a file in the /usr tree, but I suggest you delete /tools and any 
subdirectories in /mnt/lfs/sources and completely and start over.

   -- Bruce

More information about the lfs-support mailing list