Ken Moffat wrote:
> On Sun, Aug 26, 2012 at 06:14:17PM -0500, Bruce Dubbs wrote:
>> Bruce Dubbs wrote:
>>
>>> I tried setting CC in the environment for just the make and it didn't
>>> work.  I also tried exporting BUILD_CC and wasn't picked up either.  Now
>>> I just edited the Makefile to set BUILD_CC and it will take about 10
>>> minutes to run.
>>
>> Well, that did work.  I also got the rpc/types.h: No such file or
>> directory error.  That's good because it says that the system is not
>> looking in the host's files.  I'll add the sed and configparms and try
>> again.
>>
>   For me, it bombed with

> rpc_main.c:37:19: fatal error: errno.h: No such file or directory
> compilation terminated.


Try this as the lfs user:

tar -xf glibc-2.16.0.tar.xz
cd glibc-2.16.0

sed -i 's/ -lgcc_s//' Makeconfig
sed -i 's|<rpc/types.h>|"rpc/types.h"|' sunrpc/rpc_clntout.c

mkdir -v ../glibc-build
cd ../glibc-build

echo BUILD_CC=${LFS_TGT}-gcc > configparms

../glibc-2.16.0/configure
   --prefix=/tools
   --host=$LFS_TGT
   --build=$(../glibc-2.16.0/scripts/config.guess)
   --disable-profile
   --enable-add-ons
   --enable-kernel=2.6.25
   --with-headers=/tools/include
   libc_cv_forced_unwind=yes
   libc_cv_ctors_header=yes
   libc_cv_c_cleanup=yes

make | tee glibc-make.log

It worked for me.  If I grep the log for ^gcc, I get no matches like I 
did before.  There are no errors indicated.  Of course you have to have 
/tools and binutils/gcc built as in Chapter 5.

   -- Bruce




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

Reply via email to