GMP-4.2.2 Compilation problem during ./configure

Tim Van Holder tim.vanholder at anubex.com
Sat Oct 20 16:57:50 CEST 2007


Gaelle MARSAL wrote:
> 
> In Ubuntu 5.10 installed on a PentiumIII 900MHz and gcc 4.0
> 
>       Running configure :
> 
> admin at alcasar4:~/appl/gmp-4.2.2$ sudo ./configure
> --host=none-unknow-linux --prefix=/usr/local --enable-cxx CC=gcc ABI=long
> configure: WARNING: If you wanted to set the --build type, don't use
> --host.
>     If a cross compiler is detected then cross compile mode will be used.

Why are you forcing configure to assume a (misspelled) host name?
It's not unlikely that you're causing configure to (incorrectly) assume
you're building a cross-compiler. Leave off the --host and try again.

> checking build system type... i686-pc-linux-gnulibc1
> checking host system type... none-unknow-linux-gnu
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> checking for none-unknow-linux-strip... no
> checking for strip... strip
> checking whether to enable maintainer-specific portions of Makefiles... no
> checking ABI=long
> checking compiler gcc -O3 -DNO_ASM... no
> checking for none-unknow-linux-gcc... gcc
> *checking for C compiler default output file name... configure: error: C
> compiler cannot create executables*
> *See `config.log' for more details.*

If this still happens without --host, ensure that the gcc on the path is
actually a valid, working compiler. config.log will tell you more.



More information about the gmp-bugs mailing list