Davis Abubakr-Sadik Nii Nai <dwa2pac <at> gmail.com> writes: > > > Hello list, > I am trying to build LFS 7.4 stable. The package check-0.9.10 in > section 5.14 failed to build. > I got it to build, but would like to ask if anyone has come across > this problem, and since it's not documented anywhere make it known > to the list. Also a better fix, is welcome. [...] > In file included from libcompat.c:1:0: > libcompat.h:133:13: error: conflicting types for 'timer_t' > typedef int timer_t; > ^ [...] > make[2]: *** [libcompat.lo] Error 1 > make[2]: Leaving directory `/mnt/lfs/usr/src/check-0.9.10/lib' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/mnt/lfs/usr/src/check-0.9.10' > make: *** [all] Error 2Status: Resolved
Hello, Posting this message for archive, following a thread from last october : "Building Check-0.9.10 fails and fixed". This was about a failure in step 5.14 of LFS 7.4, with 'make' complaining about conflicting types for 'timer_t' in libcompat.h. Suggestion was made to patch the source code with a few custom lines in order to prevent this error from raising. But I am facing this very same issue right now, and I think it is a deeper problem so I would not recommend patching. 'configure' logs this line : checking for ld used by gcc... /usr/bin/ld My /tools/bin contains : - i686-lfs-linux-gnu-gcc with timestamp corresponding to pass 1 - i686-pc-linux-gnu-gcc with timestamp corresponding to pass 2 - gcc (a copy of i686-pc-linux-gnu-gcc from pass 2) - cc -> gcc export CC=/tools/bin/i686-pc-linux-gnu-gcc before configure & make : it fails. export CC=/tools/bin/i686-lfs-linux-gnu-gcc before configure & make : it works. So something probably went wrong in gcc pass 2, and it would be best to start over again from scratch I suppose :-( I hope this can "help" others facing the same problem. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page