cross compile error for mips

asked 2015-01-13 09:37:03 -0700

LHayes gravatar image

updated 2015-10-09 11:24:27 -0700

ry.jones gravatar image
Linux Foundation Staff

I downloaded the alljoyn-14.12.00-src. I am trying to cross compile the alljoyn software to run on a mipsel processor. I can get it to compile natively on my Ubuntu VM and run. But I ran into a snag when cross compiling for my target hardware. SCONS command:

scons BINDINGS=cpp WS=off BR=off ICE=off SERVICES="about,notification,controlpanel,config,onboarding"  OS=openwrt CPU=openwrt TARGET_PATH=/opt/loadbuild/broadcom/latest/toolchain/bin TARGET_CC='mipsel-linux-uclibc-gcc' TARGET_CFLAGS='-fPIC -g -Os' TARGET_CPPFLAGS='-I/opt/loadbuild/broadcom/latest/toolchain//mipsel-linux-uclibc/include -I/opt/loadbuild/lnks/continuous/RHC-MIPSR/local/mipsr/usr/include -I/opt/loadbuild/lnks/continuous/RHC-MIPSR/local/mipsr/usr/local/include' TARGET_CXX='mipsel-linux-uclibc-g++' TARGET_LINK='mipsel-linux-uclibc-g++' TARGET_LINKFLAGS='-L/opt/loadbuild/lnks/continuous/RHC-MIPSR/local/mipsr/usr/lib -L/opt/loadbuild/lnks/continuous/RHC-MIPSR/local/mipsr/usr/local/lib' TARGET_AR=mipsel-linux-ar TARGET_RANLIB=mipsel-linux-ranlib STAGING_DIR=/opt/loadbuild/lnks/continuous/RHC-MIPSR/local/mipsr


scons: Reading SConscript files ...

Building bindings: cpp

Building services:

scons: warning: Ignoring missing SConscript 'build/openwrt/openwrt/debug/obj/services/about/SConscript'

File "/home/prodea/allseen/alljoyn-14.12.00-src/alljoyn_core/samples/eventaction/SConscript", line 35, in <module>

scons: done reading SConscript files.

scons: Building targets ...

        [CXX]     alljoyn_core/test/aclient.cc

scons: *** [build/openwrt/openwrt/debug/obj/alljoyn_core/test/aclient.o] Error 127

scons: building terminated because of errors.

The 127 I think is a command not found, but I believe I have the CXX and PATH setup correctly.

Thanks for any help


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-01-13 12:44:12 -0700

LHayes gravatar image

Even though I set the TARGET_PATH it appears that the path was not used to find the compiler. After Adding V=1 for verbose I see:

mipsel-linux-uclibc-g++ -o build/openwrt/openwrt/debug/obj/alljoyn_core/test/aclient.o -c -std=c++0x -fno-exceptions -fPIC -g -Os -Wno-deprecated -DQCC_OS_GROUP_POSIX -DQCC_OS_LINUX -Ibuild/openwrt/openwrt/debug/dist/cpp/inc -Ibuild/openwrt/openwrt/debug/dist/c/inc -Ibuild/openwrt/openwrt/debug/dist/cpp/inc/alljoyn -Icommon/inc -Ialljoyn_core/src alljoyn_core/test/aclient.cc

But still get Error 127.

I had to set the TARGET_PATH=$PATH before it would find my compiler.

edit flag offensive delete publish link more


Hi LHayes.... i am curious to know ,did your error 127 got solved or not...because getting the same kind of error while cross compiling alljoyn for arm processor.

Shubham ( 2015-10-09 05:16:47 -0700 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2015-01-13 09:37:03 -0700

Seen: 302 times

Last updated: Oct 09 '15