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

Re: [Xen-users] configure: error: C compiler cannot create executables


  • To: jonr@xxxxxxxxxx
  • From: "Chris Matthews" <chris4000@xxxxxxxxx>
  • Date: Sun, 5 Oct 2008 14:24:50 -0700
  • Cc: "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Sun, 05 Oct 2008 14:25:35 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=eqgyjols5g0misRB14Ux/yUIlrqf+MG/B0Qo5rS39cijQANlwJOytzoYlyGdrlaOIe 0nQo6OvnYTMQ/117zJwrilcHMFLxwbjIBTs2XbM/MTvEUzAqBNZJukEOafibzQ0pNnki pGUOLGmBw5iqHYBEaALI7awZH86WZViOFN8lw=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

I am not a Xen expert; but, I have seen this error when building other software.

In my case it came down to the version of gcc installed not being able to generate code for the target (i686-xen-elf in your case).   You might want to peek in that config.log file and see what gcc command is failing and how.

In my case I was able to change the --target=blah part to match my system, but I don't know if that would work for you. You might also want to make sure your gcc can compile for i686.

On Sun, Oct 5, 2008 at 12:22 PM, <jonr@xxxxxxxxxx> wrote:
I am trying to build xen-3.3.0 and I keep running into this error. I have checked and everything is there and installed and the PATH is correct. I found someone on the 15th who also had the same problem but never got a reply back so I am asking again.

Here is the error:

make[2]: Entering directory `/usr/src/xen-3.3.0/extras/mini-os'
[ -e include/xen ] || ln -sf ../../../xen/include/public include/xen
[ -e include/mini-os ] || ln -sf . include/mini-os
[ -e include/x86/mini-os ] || ln -sf . include/x86/mini-os
make[2]: Leaving directory `/usr/src/xen-3.3.0/extras/mini-os'
touch mk-headers-x86_32
mkdir -p newlib-x86_32
( cd newlib-x86_32 && \
         CC_FOR_TARGET="gcc -isystem
/usr/src/xen-3.3.0/stubdom/../extras/mini-os/include -D__MINIOS__ -DHAVE_LIBC -isystem
/usr/src/xen-3.3.0/stubdom/../extras/mini-os/include/posix -isystem
/usr/src/xen-3.3.0/stubdom/../tools/xenstore  -isystem
/usr/src/xen-3.3.0/stubdom/../extras/mini-os/include/x86 -isystem
/usr/src/xen-3.3.0/stubdom/../extras/mini-os/include/x86/x86_32 -U __linux__ -U
__FreeBSD__ -U __sun__ -nostdinc -isystem
/usr/src/xen-3.3.0/stubdom/../extras/mini-os/include/posix -isystem
/usr/src/xen-3.3.0/stubdom/cross-root-i686/i686-xen-elf/include -isystem
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include -isystem
/usr/src/xen-3.3.0/stubdom/lwip/src/include -isystem
/usr/src/xen-3.3.0/stubdom/lwip/src/include/ipv4 -I/usr/src/xen-3.3.0/stubdom/include
-O2 -pipe -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99 -Wall
-Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -O2
-fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes
-Wno-unused-value -Wdeclaration-after-statement  -O1 -fno-omit-frame-pointer
-fno-optimize-sibling-calls  -m32 -march=i686 -m32 -march=i686 -g -fno-strict-aliasing
-std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement
-fno-stack-protector  -D_I386MACH_ALLOW_HW_INTERRUPTS" AR_FOR_TARGET=ar LD_FOR_TARGET=ld
RANLIB_FOR_TARGET=ranlib ../newlib-1.16.0/configure
--prefix=/usr/src/xen-3.3.0/stubdom/cross-root-i686 --verbose --target=i686-xen-elf
--enable-newlib-io-long-long --disable-multilib && \
         make && \
         DESTDIR= make install )
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... i686-xen-elf
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot
create executables
See `config.log' for more details.
make[1]: *** [cross-root-i686/i686-xen-elf/lib/libc.a] Error 77
make[1]: Leaving directory `/usr/src/xen-3.3.0/stubdom'
make: *** [install-stubdom] Error 2


Thanks for any help,

Jon



_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.