[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Configure pukes with egcs



Tom,

I just tried to get diety to use egcs, but configure dies:
   mkdir build-egcs;cd build-egcs
   export CXXFLAGS="-Wall -g"
   export CC="egcc"
   export CXX="eg++"
   ../configure --disable-nls --disable-static

creating cache ./config.cache
checking for gcc... egcc
checking whether the C compiler (egcc  ) works... yes
checking whether the C compiler (egcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether egcc accepts -g... yes
checking host system type... Invalid configuration
`i486-linux/egcs-2.90.05': system `2.90.05' not recognized

../configure: test: !=: unary operator expected
checking for c++... eg++
checking whether the C++ compiler (eg++ -Wall -g ) works... yes
checking whether the C++ compiler (eg++ -Wall -g ) is a cross-compiler...
no
checking whether we are using GNU C++... yes
checking whether eg++ accepts -g... yes
checking if GNU C++ accepts the -fno-implicit-templates option... checking
for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking whether make sets ${MAKE}... yes
checking for ld... ld
checking for ranlib... ranlib
checking for non-GNU ld... /usr/bin/ld
checking whether we are using GNU ld... yes
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
ltconfig: you must specify a host type if you use `--no-verify'
Try `ltconfig --help' for more information.
configure: error: libtool configure failed                   

It seems to me that the first problem is because it is trying to get the
host name, but fails because:
   egcc --print-libgcc-file-name
     /usr/lib/gcc-lib/i486-linux/egcs-2.90.05/libgcc.a   
   gcc --print-libgcc-file-name
     /usr/lib/gcc-lib/i486-linux/2.7.2.3/libgcc.a 

The extra dash messes it up. So I added --host=i486 to the configure line
and it appears to have corrected the libtool last problem as well.

dpkg --print-gnu-build-architecture with egcs as cc gives the correct
result btw.

Jason


Reply to: