[oe-commits] [Bug 5309] New: minimal distro with alix.conf machine: gcc-cross-initial-4.2.4-r8.1 build problem (geode)

bugzilla-daemon at git.openembedded.org bugzilla-daemon at git.openembedded.org
Thu Aug 27 10:36:21 UTC 2009


http://bugs.openembedded.org/show_bug.cgi?id=5309

           Summary: minimal distro with alix.conf machine:
                    gcc-cross-initial-4.2.4-r8.1 build problem (geode)
           Product: Openembedded
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: org.openembedded.dev
        AssignedTo: openembedded-commits at lists.openembedded.org
        ReportedBy: javiroman at kernel-labs.org


gcc-cross-initial_4.2.4.bb, do_compile problem:

[...]
oe/build/tmp/work/geode-oe-linux/gcc-cross-initial-4.2.4-r8.1/gcc-4.2.4/gcc/crtstuff.c:1:
error: bad value (geode) for -march= switch

oe/build/tmp/work/geode-oe-linux/gcc-cross-initial-4.2.4-r8.1/gcc-4.2.4/gcc/crtstuff.c:1:
error: bad value (geode) for -mtune= switch
make[2]: *** [crtbegin.o] Error 1
[...]

gcc-4.2.x doesn't support -march=geode or -mtune=geode. Tuning for AMD Geode
processors only is available via -mtune=geode and -march=geode from gcc-4.3.x.

Otavio Salvador merged the two files:

"
commit 88e86fff9620a65469d2d43afd6a8f82e505e740
Author: Otavio Salvador <otavio at ossystems.com.br>
Date:   Thu Apr 16 19:39:50 2009 -0300

    machine/geode[gl]x: use more optimization while compiling

    Since the code is now the same for Geode GX and Geode LX we also
    merged the tunning files in a single tune-geode.inc, making it easy to
    improve from now on.
"

The fix could be to change:

- TARGET_CC_ARCH = "-march=geode -mtune=geode"
+ TARGET_CC_ARCH ?= "-march=geode -mtune=geode"

So you can to use your own optimization (in distro or machine file) for gcc
4.2.x:

TARGET_CC_ARCH = "-march=k6-2"

-- 
Configure bugmail: http://bugs.openembedded.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.




More information about the Openembedded-commits mailing list