Sebastian Salich wrote: > Hallo everyone > > I have some problems to compil binutils (2.15.94.0.2.2) without errors, the > config.log says that gmp.h is missing so compiling binutils always fails with > > ar.o: In function `mri_emul': > ar.c:(.text+0x23): undefined reference to `yyparse' > collect2: ld returned 1 exit status > make[3]: *** [ar] Error 1 > make[3]: Leaving directory `/media/lfs/binutils-build/binutils' > make[2]: *** [all-recursive] Error 1 > make[2]: Leaving directory `/media/lfs/binutils-build/binutils' > make[1]: *** [all-recursive-am] Error 2 > make[1]: Leaving directory `/media/lfs/binutils-build/binutils' > make: *** [all-binutils] Error 2 > > but which package contains gmp.h? I'm using kubuntu as host system.
The missing gmp.h is a bit of a red herring. Binutils fails on that all the time as part of its checks (if your system is missing it, as many do) and just keeps chugging on. The more important error is the 'undefined reference to `yyparse''. As Andrew mentioned, look at installing flex and bison. Make sure you get the devel packages, too. -- JH -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
