>> Hi there,
>> running the configure command for glibc-2.5 ch 6.9 throws up the
>> following error:
>>
>> - checking for C cleanup handling... no
>> - configure: error: the compiler must support C cleanup handling
>>
>> It said I should checkout the "config.log" in the build dir in
>> order to establish the cause though it means little to me
>> unfortunatly.  I have pasted what I think is the interesting bit as
>> theres way too much to plonk it all in here.
>>
>> configure:64: $? = 0
>> configure:67: test -s conftest
>> configure:70: $? = 0
>> configure:82: result: yes
>> configure:91: checking for C cleanup handling
>> configure:116: gcc -o conftest -g -O2 -Werror -fexceptions
>> conftest.c  >&5
>> conftest.c:36:19: error: stdio.h: No such file or directory
>> configure:122: $? = 1
>> configure: failed program was:
>> | /* confdefs.h.  */
>>
>> Could you point me in the right direction to solve this.
>>
>> Thanks!
>>
>> Nick
>>
>
> I'd suggest to build dummy.c and use gcc -v (for verbosity) and find
> out where your compiler is looking for headers.
>
> having an error for stdio.h with "No such file or directory" isn't
> desired.
>
> From there we can determine the health of your compiler from Chap5.
>
> Sincerely,
>
> William

Thanks for the quick reply
I'm not sure but I think I ran gcc pass2 from the pass1 gcc-build directory. 
Could this be the cause of my problem?  As for dummy.c, if I type gcc -v 
dummy.c in the gcc-build directory then I get a no such file or directory 
error. I hope that this is not the right place to run it from!? Though if I 
run gcc -v from the same place I get this:

Using built-in specs.
Target: !486-pc-linux-gun
Configured with: 
../gcc-4.1.1/configure --prefix=/usr --libexecdir=/usr/lib --enable-shared 
--enable-threads=posix 
 --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++ 
--enable-static
thread model: posix
gcc version 4.1.1

Does this help?  If I understand your answer correctly then it probably 
doesn't. If  Iv'e missed something in the book (I've no idea what) then the 
best way to solve the problem is to rebuild from ch5.3 am I right? Its quite 
embarrasing to think that I can't even follow a book correctly!

Thanks

Nick




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

Reply via email to