Re: [lfs-support] Building Check-0.9.10 fails and fixed

2014-01-19 Thread Loïc Le Ninan
Loïc Le Ninan loic.leninan at gmail.com writes:
 
 So something probably went wrong in gcc pass 2, and it would be best to
 start over again from scratch I suppose  

Hello, 

Self-replying my previous message after further investigation on this
problem, and finally solving it. 

Both my gcc and binutils from pass 2 were built from the host toolchain, and
not from pass 1. 

And it appears that the reason for this is a copy/paste error... More
precisely : selecting the 'configure' commands from the PDF version of LFS
7.4 did not select the backslash at the end of each line on pages numbered
45 and 48. And I did not notice the problem until step 5.14 crashed.

I started over from scratch using the right 'configure' commands, and step
5.14 went fine. Problem solved. 

Conclusion : Do not patch if it is not specified in the book, but
double-check everything instead. 


-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] Building Check-0.9.10 fails and fixed

2014-01-16 Thread Loïc Le Ninan
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