Error at 6.15, compiling GCC

Michael Tsang miklcct at gmail.com
Mon Nov 9 20:27:53 PST 2009


On Tuesday 10 November 2009 04:12:01 pieter blomme wrote:
> Hi,
> 
> Me again.  Thanks already for all the help I got!  I ran into some more
> errors while running make for GCC.
> 
> configure: error: in `/sources/gcc-build/i686-pc-linux-gnu/libgcc':
> configure: error: C preprocessor "/lib/cpp" fails sanity check
> See `config.log' for more details.
> make[1]: *** [configure-target-libgcc] Error 1
> make[1]: Leaving directory `/sources/gcc-build'
> make: *** [all] Error 2
> 
> I went to look into the config.log file, where I found evidence of the
> following errors (some appeared multiple times)
> 
> configure:3287: gcc -V </dev/null >&5
> gcc: '-V' option must have argument
> 
> conftest.c:2: error: expected '=', ',', ';', 'asm' or '__attribute__'
>  before 'me'
> configure:3763: $? = 1
> 
> configure: failed program was:
> | #ifndef __cplusplus
> |   choke me
> | #endif
> 
> conftest.cc: In function 'int main()':
> conftest.cc:13: error: 'exit' was not declared in this scope
> configure:4215: $? = 1
> 
> configure: failed program was:
> | /* confdefs.h.  */
> |
> | #define PACKAGE_NAME ""
> | #define PACKAGE_TARNAME ""
> | #define PACKAGE_VERSION ""
> | #define PACKAGE_STRING ""
> | #define PACKAGE_BUGREPORT ""
> | /* end confdefs.h.  */
> |
> | int
> | main ()
> | {
> | exit (42);
> |   ;
> |   return 0;
> | }
> 

check that you really have a /lib/cpp installed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-support/attachments/20091110/6a6b142a/attachment.sig>


More information about the lfs-support mailing list