public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* error occured when cross compiling gcc
@ 2006-06-28  4:23 Luo Yong
  2006-06-28  5:15 ` Tim Prince
  2006-06-28  5:46 ` Luo Yong
  0 siblings, 2 replies; 5+ messages in thread
From: Luo Yong @ 2006-06-28  4:23 UTC (permalink / raw)
  To: gcc-help

The source is counfigured as

===
./configure --target=arm-elf-linux --build=i686-pc-linux-gnu
--host=i686-pc-linux-gnu --disable-shared --disable-threads
--with-gnu-as --with-gnu-ld --enable-multilib --enable-languages=c
===

But some error occured at the last step

===
checking build system type... i686-pc-linux-gnu
checking host system type... arm-elf-linux-gnu
checking target system type... arm-elf-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for arm-elf-linux-strip... arm-elf-linux-strip
checking for --enable-version-specific-runtime-libs... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking for arm-elf-linux-gcc...
/home/yong/software/toolchain/gcc/gcc-4.1.1/host-i686-pc-linux-gnu/gcc/xgcc
-B/home/yong/software/toolchain/gcc/gcc-4.1.1/host-i686-pc-linux-gnu/gcc/
-B/usr/local/arm-elf-linux/bin/ -B/usr/local/arm-elf-linux/lib/
-isystem /usr/local/arm-elf-linux/include -isystem
/usr/local/arm-elf-linux/sys-include
checking for C compiler default output file name... configure: error:
C compiler cannot create executables
See `config.log' for more details.
make[1]: *** [configure-target-libmudflap] Error 1
make[1]: Leaving directory `/home/yong/software/toolchain/gcc/gcc-4.1.1'
make: *** [all] Error 2
===


How can I solve this problem?

Thanks.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: error occured when cross compiling gcc
  2006-06-28  4:23 error occured when cross compiling gcc Luo Yong
@ 2006-06-28  5:15 ` Tim Prince
  2006-06-28  5:46 ` Luo Yong
  1 sibling, 0 replies; 5+ messages in thread
From: Tim Prince @ 2006-06-28  5:15 UTC (permalink / raw)
  To: Luo Yong; +Cc: gcc-help

Luo Yong wrote:

> checking for C compiler default output file name... configure: error:
> C compiler cannot create executables
> See `config.log' for more details.

> 
> How can I solve this problem?

In part, by following that advice?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: error occured when cross compiling gcc
  2006-06-28  4:23 error occured when cross compiling gcc Luo Yong
  2006-06-28  5:15 ` Tim Prince
@ 2006-06-28  5:46 ` Luo Yong
  2006-06-28 11:39   ` Tim Prince
  1 sibling, 1 reply; 5+ messages in thread
From: Luo Yong @ 2006-06-28  5:46 UTC (permalink / raw)
  To: gcc-help

The content of config.log is

===

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:600: checking host system type
configure:621: checking target system type
configure:639: checking build system type
configure:694: checking for a BSD compatible install
configure:747: checking whether ln works
configure:771: checking whether ln -s works
configure:1825: checking for gcc
configure:1938: checking whether the C compiler (gcc  ) works
configure:1954: gcc -o conftest    conftest.c  1>&5
configure:1980: checking whether the C compiler (gcc  ) is a cross-compiler
configure:1985: checking whether we are using GNU C
configure:2013: checking whether gcc accepts -g
configure:2080: checking for gnatbind
configure:2145: checking whether compiler driver understands Ada
configure:2177: checking how to compare bootstrapped objects
configure:2275: checking for correct version of gmp.h
configure:2288: gcc -c -g -O2   conftest.c 1>&5
configure:2278:17: error: gmp.h: No such file or directory
configure: In function 'main':
configure:2282: error: 'choke' undeclared (first use in this function)
configure:2282: error: (Each undeclared identifier is reported only once
configure:2282: error: for each function it appears in.)
configure:2282: error: expected ';' before 'me'
configure: failed program was:
#line 2277 "configure"
#include "confdefs.h"
#include "gmp.h"
int main() {

#if __GNU_MP_VERSION < 3
choke me
#endif

; return 0; }
configure:3313: checking for bison
configure:3313: checking for byacc
configure:3313: checking for yacc
configure:3353: checking for bison
configure:3392: checking for gm4
configure:3431: checking for flex
configure:3471: checking for flex
configure:3510: checking for makeinfo
configure:3563: checking for expect
configure:3604: checking for runtest
configure:3652: checking for i686-pc-linux-gnu-ar
configure:3727: checking for i686-pc-linux-gnu-as
configure:3802: checking for i686-pc-linux-gnu-dlltool
configure:3833: checking for dlltool
configure:3877: checking for i686-pc-linux-gnu-ld
configure:3952: checking for i686-pc-linux-gnu-lipo
configure:3983: checking for lipo
configure:4027: checking for i686-pc-linux-gnu-nm
configure:4102: checking for i686-pc-linux-gnu-ranlib
configure:4172: checking for i686-pc-linux-gnu-strip
configure:4242: checking for i686-pc-linux-gnu-windres
configure:4273: checking for windres
configure:4317: checking for i686-pc-linux-gnu-objcopy
configure:4392: checking for i686-pc-linux-gnu-objdump
configure:4474: checking for arm-elf-linux-ar
configure:4549: checking for arm-elf-linux-as
configure:4624: checking for arm-elf-linux-cc
configure:4624: checking for arm-elf-linux-gcc
configure:4699: checking for arm-elf-linux-c++
configure:4699: checking for arm-elf-linux-g++
configure:4699: checking for arm-elf-linux-cxx
configure:4699: checking for arm-elf-linux-gxx
configure:4774: checking for arm-elf-linux-dlltool
configure:4849: checking for arm-elf-linux-gcc
configure:4919: checking for arm-elf-linux-gcj
configure:4994: checking for arm-elf-linux-gfortran
configure:5069: checking for arm-elf-linux-ld
configure:5144: checking for arm-elf-linux-lipo
configure:5219: checking for arm-elf-linux-nm
configure:5294: checking for arm-elf-linux-objdump
configure:5369: checking for arm-elf-linux-ranlib
configure:5439: checking for arm-elf-linux-strip
configure:5514: checking for arm-elf-linux-windres
configure:5588: checking where to find the target ar
configure:5613: checking where to find the target as
configure:5638: checking where to find the target cc
configure:5663: checking where to find the target c++
configure:5691: checking where to find the target c++ for libstdc++
configure:5719: checking where to find the target dlltool
configure:5744: checking where to find the target gcc
configure:5769: checking where to find the target gcj
configure:5797: checking where to find the target gfortran
configure:5825: checking where to find the target ld
configure:5850: checking where to find the target lipo
configure:5865: checking where to find the target nm
configure:5890: checking where to find the target objdump
configure:5915: checking where to find the target ranlib
configure:5940: checking where to find the target strip
configure:5965: checking where to find the target windres
configure:6018: checking whether to enable maintainer-specific
portions of Makefiles
configure:6065: checking if symbolic links between directories work


===

Thanks.

On 6/28/06, Tim Prince <timothyprince@sbcglobal.net> wrote:
> Luo Yong wrote:
>
> > checking for C compiler default output file name... configure: error:
> > C compiler cannot create executables
> > See `config.log' for more details.
>
> >
> > How can I solve this problem?
>
> In part, by following that advice?
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: error occured when cross compiling gcc
  2006-06-28  5:46 ` Luo Yong
@ 2006-06-28 11:39   ` Tim Prince
  2006-06-28 11:49     ` Rupert Wood
  0 siblings, 1 reply; 5+ messages in thread
From: Tim Prince @ 2006-06-28 11:39 UTC (permalink / raw)
  To: Luo Yong; +Cc: gcc-help

Luo Yong wrote:
> The content of config.log is
> 
> ===
> 
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
> 
> configure:600: checking host system type
> configure:621: checking target system type
> configure:639: checking build system type
> configure:694: checking for a BSD compatible install
> configure:747: checking whether ln works
> configure:771: checking whether ln -s works
> configure:1825: checking for gcc
> configure:1938: checking whether the C compiler (gcc  ) works
> configure:1954: gcc -o conftest    conftest.c  1>&5
> configure:1980: checking whether the C compiler (gcc  ) is a cross-compiler
> configure:1985: checking whether we are using GNU C
> configure:2013: checking whether gcc accepts -g
> configure:2080: checking for gnatbind
> configure:2145: checking whether compiler driver understands Ada
> configure:2177: checking how to compare bootstrapped objects
> configure:2275: checking for correct version of gmp.h
> configure:2288: gcc -c -g -O2   conftest.c 1>&5
> configure:2278:17: error: gmp.h: No such file or directory
> configure: In function 'main':
> configure:2282: error: 'choke' undeclared (first use in this function)
> configure:2282: error: (Each undeclared identifier is reported only once
> configure:2282: error: for each function it appears in.)
> configure:2282: error: expected ';' before 'me'
> configure: failed program was:
> #line 2277 "configure"
> #include "confdefs.h"
> #include "gmp.h"
> int main() {
> 
> #if __GNU_MP_VERSION < 3
> choke me
> #endif
> 
> ; return 0; }
You must make certain that your build will use up to date versions of 
gmp and mpfr.  As you can see, the test is designed to fail if an 
acceptable version of gmp is not found.  The script should have told you 
that and disabled building of gfortran, or any languages which depend on 
gmp and mpfr.  It's likely you will need to build and install them from 
source.  Check the build instructions on gcc.gnu.org.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: error occured when cross compiling gcc
  2006-06-28 11:39   ` Tim Prince
@ 2006-06-28 11:49     ` Rupert Wood
  0 siblings, 0 replies; 5+ messages in thread
From: Rupert Wood @ 2006-06-28 11:49 UTC (permalink / raw)
  To: tprince, 'Luo Yong'; +Cc: gcc-help

Tim Prince wrote:

> You must make certain that your build will use up to date versions
> of gmp and mpfr.

That shouldn't halt a build, should it - only disable fortran? The original problem was configuring that target libmudflap, though.

What's the error in the libmudflap config.log? This will be in arm-elf-linux-gnu/libmudflap or similar.

Rup.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-06-28 11:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-28  4:23 error occured when cross compiling gcc Luo Yong
2006-06-28  5:15 ` Tim Prince
2006-06-28  5:46 ` Luo Yong
2006-06-28 11:39   ` Tim Prince
2006-06-28 11:49     ` Rupert Wood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).