GCC-3.3.3 Pass2

Gökhan Ibis goekhan_ibis at yahoo.de
Tue Jul 6 05:45:35 PDT 2004


host system: redhat 9
kernel-version of host: 2.4.20-8
Machine: i686
book version: 5.1.1
Chapter 5 - GCC-3.3.3 Pass2

hi all!

until this Chapter i didnt have any problems, but when I try:

"../gcc-3.3.3/configure --prefix=/tools \
     --with-local-prefix=/tools \
     --enable-clocale=gnu --enable-shared \
     --enable-threads=posix --enable-__cxa_atexit \
     --enable-languages=c,c++"

i get this config.log:

"configure:633: checking LIBRARY_PATH variable
configure:658: checking GCC_EXEC_PREFIX variable
configure:886: checking host system type
configure:907: checking target system type
configure:925: checking build system type
configure:973: checking for gcc
configure:1086: checking whether the C compiler (/usr/bin/gcc296 -g ) works
configure:1102: /usr/bin/gcc296 -o conftest -g   conftest.c  1>&5
configure:1128: checking whether the C compiler (/usr/bin/gcc296 -g ) is 
a cross-compiler
configure:1133: checking whether we are using GNU C
configure:1161: checking whether /usr/bin/gcc296 accepts -g
configure:1194: checking whether /usr/bin/gcc296 and cc understand -c 
and -o together
configure:1264: checking for gnatbind
configure:1329: checking for compiler driver that understands Ada
configure:1371: checking whether /usr/bin/gcc296 accepts -Wno-long-long
configure:1385: /usr/bin/gcc296 -c -Wno-long-long  conftest.c 1>&5
configure:1430: checking how to run the C preprocessor
configure:1510: checking for inline
configure:1550: checking for volatile
configure:1562: /usr/bin/gcc296 -c -g  conftest.c 1>&5
configure:1584: checking for long double
configure:1624: checking for long long int
configure:1636: /usr/bin/gcc296 -c -g  conftest.c 1>&5
configure:1656: checking for __int64
configure:1668: /usr/bin/gcc296 -c -g  conftest.c 1>&5
configure: In function `main':
configure:1664: `__int64' undeclared (first use in this function)
configure:1664: (Each undeclared identifier is reported only once
configure:1664: for each function it appears in.)
configure:1664: parse error before `i'
configure: failed program was:
#line 1661 "configure"
#include "confdefs.h"
"

i copied the whole because I think 973 onwards everything could be 
usefull solving the problem....



there are a few things I don't understand:

this is Pass2- why don't we use $LFS/tools/bin/gcc but /usr/bin/gcc296 ?
so I googled for a solution (in the faq I couldn't find this or a 
similar problem)...

what I did afterwards:
*) set CC=$LFS/tools/bin/gcc...didn't change anything
*) set PATH=$LFS/tools/bin...caused many other problems
*) after resetting $PATH to its old value I removed gcc296 from 
/usr/bin....still getting the same config.log as mentioned above

so I think there must be something (maybe variable...i don't know) that 
tells the configure to use /usr/bin/gcc296...

as I'm still linux-newbie and this is my first try to install LFS, I 
don't know how to go on or solve the problem, so please help me if you can.

THANKS.

Gökhan Ibis




More information about the lfs-support mailing list