1 <qandaentry id="config-not-gnu-c">
2 <question><para>checking whether we are using GNU C... no</para></question>
3 <answer><para>If you're getting an error from configure like:
4 <screen>checking whether we are using GNU C... no
5 configure: error: GNU libc must be compiled using GNU CC
7 It may be because egrep (from the grep package) isn't working.
9 <para>To test if egrep is working <emphasis>before</emphasis> reinstalling
10 the grep package in Chapter 6,
11 run the following command from <emphasis>outside</emphasis> chroot:
12 <screen>file $LFS/bin/egrep
14 If it doesn't say "statically linked" you have a problem
15 and need to reinstall the grep package.
17 <para>To test if egrep is working <emphasis>after</emphasis> reinstalling
18 the grep package in Chapter 6,
19 run the following command from <emphasis>inside</emphasis> chroot:
20 <screen>egrep root /etc/passwd
22 If it doesn't print root's line from /etc/passwd,
23 again, you have a problem.
24 (This test also works if you encounter the problem after rebooting
25 into the new LFS system.)