All of lore.kernel.org
 help / color / mirror / Atom feed
* Preferred gcc version ignored
@ 2009-06-29 13:24 Pascal Kesseli
  2009-07-08  8:28 ` Khem Raj
  0 siblings, 1 reply; 2+ messages in thread
From: Pascal Kesseli @ 2009-06-29 13:24 UTC (permalink / raw)
  To: openembedded-devel

Hi everyone

 

Recently, I tried building helloworld without providing a precompiled
toolchain for the MOXA UC-7408+. It worked as expected with OpenEmbedded
first compiling the cross-compiler and glibc. To do so, I used the following
machine config:

 

TARGET_ARCH = arm

PACKAGE_ARCH = xscale

TARGET_CC_ARCH = "-mcpu=xscale"

#ASSUME_PROVIDED += virtual/arm-linux-gcc virtual/libc

PREFERRED_PROVIDER_virtual/kernel = "linux-2.6"

BOOTSTRAP_EXTRA_DEPENDS += " virtual/kernel"

BOOTSTRAP_EXTRA_RDEPENDS += " kernel kernel-modules"

IMAGE_FSTYPE = "ext2"

EXTRA_IMGECMD_ext2 = " -b 2097152"

 

PREFERRED_PROVIDER_virtual/arm-linux-libc-for-gcc = glibc

PREFERRED_VERSION_arm-linux-gcc = "3.4.4"

PREFERRED_VERSION_gcc = "3.4.4"

PREFERRED_VERSION_gcc-cross = "3.4.4"

PREFERRED_VERSION_glibc = "2.3.3"

 

 

Nevetheless, the compilation failed with the following error:

 

| checking for pwd... /opt/openembedded/tmp/staging/i686-linux/usr/bin/pwd

| checking for arm-linux-gcc... (cached) arm-linux-gcc -mcpu=xscale

| checking version of arm-linux-gcc -mcpu=xscale... 4.2.4, bad

| checking for gnumake... make

| checking version of make... 3.81, ok

| checking for gnumsgfmt... no

| checking for gmsgfmt... no

| checking for msgfmt... msgfmt

| checking version of msgfmt... 0.17, ok

| checking for makeinfo... makeinfo

| checking version of makeinfo... 4.11, ok

| checking for sed... sed

| checking version of sed... 4.1.5, ok

| checking for autoconf... autoconf

| checking whether autoconf works... yes

| configure: error:

| *** These critical programs are missing or too old: gcc

| *** Check the INSTALL file for required versions.

| FATAL: oe_runconf failed

NOTE: Task failed:
/opt/openembedded/tmp/work/xscale-linux/glibc-2.3.3-r17/temp/log.do_configur
e.5110

ERROR: TaskFailed event exception, aborting

ERROR: Build of /opt/openembedded/recipes/glibc/glibc_2.3.3.bb do_configure
failed

ERROR: Task 75 (/opt/openembedded/recipes/glibc/glibc_2.3.3.bb,
do_configure) failed

NOTE: Tasks Summary: Attempted 159 tasks of which 159 didn't need to be
rerun and 1 failed.

ERROR: '/opt/openembedded/recipes/glibc/glibc_2.3.3.bb' failed

 

 

It seems as if gcc version 4.2.4 was created and used by OpenEmbedded, which
is too new for building glibc 2.3.3. Which PREFERRED_VERSION statement did I
miss to advise OpenEmbedded to use an earlier gcc version to build the
glibc?

 

Thanks for any help and best regards

Kessi

 



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

end of thread, other threads:[~2009-07-08  8:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-29 13:24 Preferred gcc version ignored Pascal Kesseli
2009-07-08  8:28 ` Khem Raj

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.