[oe-issues] [Bug 1546] New: -cross packages do not build with prebuilt toolchain

bugzilla-daemon at tinman.treke.net bugzilla-daemon at tinman.treke.net
Wed Nov 1 14:34:58 UTC 2006


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

           Summary: -cross packages do not build with prebuilt toolchain
           Product: Openembedded
           Version: unspecified
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Distributions
        AssignedTo: openembedded-issues at lists.openembedded.org
        ReportedBy: dev at settopsolutions.com
         QAContact: tinderbox-oe at gmx.net


It seems that when using a prebuilt toolchain, -cross packages do not build. I
suspect this is due to the fact that CC, CXX. CPP etc have been overridden in
local.conf as per the 'Using a prebuilt toolchain' instructions. I managed to
fix this by adding a little more to cross.bbclass in order to reset the
compiler etc to use the hosts tools rather than the prebuilt cross tools:

# set the compiler as well. It could have been set to something else
export CC = "${CCACHE}${HOST_PREFIX}gcc ${HOST_CC_ARCH}"
export CXX = "${CCACHE}${HOST_PREFIX}g++ ${HOST_CC_ARCH}"
export F77 = "${CCACHE}${HOST_PREFIX}g77 ${HOST_CC_ARCH}"
export CPP = "${HOST_PREFIX}gcc -E"
export LD = "${HOST_PREFIX}ld"
export CCLD = "${CC}"
export AR = "${HOST_PREFIX}ar"
export AS = "${HOST_PREFIX}as"
export RANLIB = "${HOST_PREFIX}ranlib"
export STRIP = "${HOST_PREFIX}strip"

This is taken directly from native.bbclass and it seems like a sane fix to me.


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




More information about the Openembedded-issues mailing list