From: Claudiu mdc <claudiu_fw85@yahoo.it>
To: openembedded-devel@lists.openembedded.org
Subject: C compiler cannot create executables
Date: Wed, 17 Dec 2008 15:49:04 +0000 (GMT) [thread overview]
Message-ID: <149566.95991.qm@web23305.mail.ird.yahoo.com> (raw)
hi, I am trying to build bootstrap-image and I have this error when building libtool-cross:
| checking for i686-linux-gcc... i686-linux-gcc-4.3.1 -mcpu=pentiumpro
| checking for C compiler default output file name...
| configure: error: C compiler cannot create executables
| See `config.log' for more details.
I've built a custom toolchain which is in $PATH.
~/oe$ i686-linux<TAB><TAB> gives this output:
i686-linux-addr2line i686-linux-gccbug i686-linux-ranlib
i686-linux-ar i686-linux-gcov i686-linux-readelf
i686-linux-as i686-linux-gprof i686-linux-real-ld
i686-linux-c++filt i686-linux-i686-linux-gcc i686-linux-size
i686-linux-cpp i686-linux-ld i686-linux-strings
i686-linux-g++ i686-linux-nm i686-linux-strip
i686-linux-gcc i686-linux-objcopy
i686-linux-gcc-4.3.1 i686-linux-objdump
I've also tested the toolchain with hello.c program:
# ----------------------
#include<stdio.h>
int main(void)
{
printf("Hello World!\n");
return 0;
}
# ----------------------
~/tmpHello$ i686-linux-gcc-4.3.1 hello.c -o hello
and it works.
so, I don't understand why compile task fails with this error.
Some bits abountmy configuration:
I use org.openembedded.stable branch
Some lines from my local.conf:
MACHINE = "i686-generic"
TARGET_OS = "linux"
DISTRO = "unmaintained/generic"
ASSUME_PROVIDED += "virtual/${TARGET_PREFIX}gcc"
ASSUME_PROVIDED += "virtual/${TARGET_PREFIX}g++"
PREFERRED_PROVIDERS = "virtual/qte:qte virtual/libqpe:libqpe-opie"
PREFERRED_PROVIDERS += " virtual/libsdl:libsdl-x11"
PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}gcc-initial:gcc-cross-initial"
PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}gcc:gcc-cross"
PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}g++:gcc-cross"
###### stuff I added
TARGET_LDFLAGS_prepend = ", -L/home/claudiu/oe/myToolchain/cross/lib \
-Wl,-rpath-link,/home/claudiu/oe/myToolchain/cross/lib -Wl,-rpath-link "
TARGET_CPPFLAGS_append = ", -I/home/claudiu/oe/myToolchain/cross/include "
export CC="${CCACHE}i686-linux-gcc-4.3.1 ${HOST_CC_ARCH}"
export CXX="${CCACHE}i686-linux-g++ ${HOST_CC_ARCH}"
export CPP="i686-linux-gcc-4.3.1 -E"
export LD="i686-linux-ld"
export AR="i686-linux-ar"
export AS="i686-linux-as"
export RANLIB="i686-linux-ranlib"
export STRIP="i686-linux-strip"
Someone can help me?
From gcho-openembedded-devel@m.gmane.org Wed Dec 17 17:04:34 2008
Received: from [80.91.229.2] (helo
next reply other threads:[~2008-12-17 15:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-17 15:49 Claudiu mdc [this message]
2008-12-17 16:14 ` C compiler cannot create executables Koen Kooi
2008-12-18 16:58 ` claudiu
-- strict thread matches above, loose matches on Subject: below --
2002-06-21 8:59 Peter
2002-06-22 8:07 ` Elias Athanasopoulos
2002-06-23 21:23 ` lawson_whitney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=149566.95991.qm@web23305.mail.ird.yahoo.com \
--to=claudiu_fw85@yahoo.it \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.