powerpc-fsl-linux-gcc 32-bit compiler missing

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

powerpc-fsl-linux-gcc 32-bit compiler missing

3,155 Views
chandramills
Contributor I

We build for the b4860qds-64b using the 1,8 SDK sources ISO and setting the platform using 'bitbake -c populate_sdk fsl-image-full'.  This generates an SDK file .sh. fsl-networking-eglibc-x86_64-ppc64e6500-toolchain-QorIQ-SDK-V1.8.sh 

We run the .sh and it generates a file: environment-setup-ppce6500-fsl-linux which has

buntu:/opt/fsl-networking/QorIQ-SDK-V1.8$ cat environment-setup-ppce6500-fsl-linux
export SDKTARGETSYSROOT=/opt/fsl-networking/QorIQ-SDK-V1.8/sysroots/ppc64e6500-fsl-linux
export PATH=/opt/fsl-networking/QorIQ-SDK-V1.8/sysroots/x86_64-fslsdk-linux/usr/bin:/opt/fsl-networking/QorIQ-SDK-V1.8/sysroots/x86_64-fslsdk-linux/usr/bin/powerpc-fsl-linux:$PATH
export PKG_CONFIG_SYSROOT_DIR=$SDKTARGETSYSROOT
export PKG_CONFIG_PATH=$SDKTARGETSYSROOT/usr/lib/pkgconfig
export CONFIG_SITE=/opt/fsl-networking/QorIQ-SDK-V1.8/site-config-ppce6500-fsl-linux
export OECORE_NATIVE_SYSROOT="/opt/fsl-networking/QorIQ-SDK-V1.8/sysroots/x86_64-fslsdk-linux"
export OECORE_TARGET_SYSROOT="$SDKTARGETSYSROOT"
export OECORE_ACLOCAL_OPTS="-I /opt/fsl-networking/QorIQ-SDK-V1.8/sysroots/x86_64-fslsdk-linux/usr/share/aclocal"
export PYTHONHOME=/opt/fsl-networking/QorIQ-SDK-V1.8/sysroots/x86_64-fslsdk-linux/usr
export PYTHONPATH=/opt/fsl-networking/QorIQ-SDK-V1.8/sysroots/ppc64e6500-fsl-linux/usr/lib/python2.7
export CC="powerpc-fsl-linux-gcc -m32 -mhard-float -mcpu=e6500 --sysroot=$SDKTARGETSYSROOT"
export CXX="powerpc-fsl-linux-g++ -m32 -mhard-float -mcpu=e6500 --sysroot=$SDKTARGETSYSROOT"
export CPP="powerpc-fsl-linux-gcc -E -m32 -mhard-float -mcpu=e6500 --sysroot=$SDKTARGETSYSROOT"
export AS="powerpc-fsl-linux-as "
export LD="powerpc-fsl-linux-ld --sysroot=$SDKTARGETSYSROOT"
export GDB=powerpc-fsl-linux-gdb
export STRIP=powerpc-fsl-linux-strip
export RANLIB=powerpc-fsl-linux-ranlib
export OBJCOPY=powerpc-fsl-linux-objcopy
export OBJDUMP=powerpc-fsl-linux-objdump
export AR=powerpc-fsl-linux-ar
export NM=powerpc-fsl-linux-nm
export M4=m4
export TARGET_PREFIX=powerpc-fsl-linux-
export CONFIGURE_FLAGS="--target=powerpc-fsl-linux --host=powerpc-fsl-linux --build=x86_64-linux --with-libtool-sysroot=$SDKTARGETSYSROOT"
export CFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types"
export CXXFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types"
export LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed"
export CPPFLAGS=""
export KCFLAGS="--sysroot=$SDKTARGETSYSROOT"
export OECORE_DISTRO_VERSION="QorIQ-SDK-V1.8"
export OECORE_SDK_VERSION="QorIQ-SDK-V1.8"
export ARCH=powerpc
export CROSS_COMPILE=powerpc-fsl-linux-

The compiler powerpc-fsl-linux-gcc file does not exist in the sysroots/x86-... directory. 

How can I fix this?

0 Kudos
3 Replies

1,283 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Chandra Mills,

For 32 bit compiler,  please execute the script fsl-networking-eglibc-x86_64-ppce6500-toolchain-QorIQ-SDK-V1.8.sh provided in the prebuilt image ISO or create a b4860qds-32b project to build it by yourself. You will find environment-setup-ppce6500-fsl-linux and sysroot folder in the installation folder.

Please configure build environment by executing "source environment-setup-ppce6500-fsl-linux".

powerpc-fsl-linux-gcc is  in sysroots/x86_64-fslsdk-linux/usr/bin/powerpc-fsl-linux/powerpc-fsl-linux-gcc.

You could use ${CC} directly.


Have a great day,
Yiping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,283 Views
chandramills
Contributor I

We want to generate an SDK based on our Yocto 1.8 SDK (freescale) environment, and we want the SDK generated to include the 32-bit compilers.  In our current environment we do a "bitbake -c populate_sdk fsl-image-full" but the resulting SDK does not have the 32-bit compilers in it.  What recipe needs to be modified to include the 32-bit SDK?

0 Kudos

1,283 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Chandra Mills,

Only 64-bit Toolchain(compiler) can be generate  in 64 bit project build environment  b4860qds-64b.

If you need 32 bit compiler, please create a 32 bit project with command "source ./poky/fsl-setup-poky -m b4860qds", and use the command "bitbake fsl-toolchain" to generate 32 bit compiler.


Have a great day,
Yiping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos