AnsweredAssumed Answered

SDK v2.0-1701 PPA Build Failing

Question asked by Vincent Bonduro on Feb 3, 2017
Latest reply on Feb 14, 2017 by Yiping Wang

Hello,

 

We're experiencing difficulties building fsl-image-core in SDK V2.0-1701. We can build in 1609 and 1611 just fine, but 1701 always fails building the ppa. We are experiencing the same issue on two systems, so it is not isolated to one environment.

 

I have tried wiping out my SDK directory and reinstalling SDK 2.0 & 1701 update again with no success. I have also tried re-downloading the 1701 update and I have verified that the MD5 of my download is valid.

 

Below are the steps I took when upgrading to 1701:

 

rm -rf src/local/QorIQ-SDK-V2.0-20160527-yocto

sudo mount -o loop QorIQ\ Linux\ SDK\ v2.0\ SOURCE.iso /mnt/cdrom

/mnt/cdrom/install

tar xjf SDK-V2.0-1701.tar.bz2

SDK-V2.0-1701/install

cd src/local/QorIQ-SDK-V2.0-20160527-yocto

./sources/meta-freescale/scripts/host-prepare.sh

. ./fsl-setup-env -m ls1043ardb

Here is a log of the failed build attempt. We receive the same error from bitbake fsl-image-core and when building only the ppa with: bitbake -c cleansstate ppa; bitbake -c patch ppa; bitbake -c compile -f ppa

 

Loading cache: 100% |#########################################################################################################################################################| ETA: 00:00:00
Loaded 3428 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "1.28.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "Debian-8.5"
TARGET_SYS = "aarch64-fsl-linux"
MACHINE = "ls1043ardb"
DISTRO = "fsl-qoriq"
DISTRO_VERSION = "2.0"
TUNE_FEATURES = "aarch64"
TARGET_FPU = ""
meta
meta-yocto
meta-yocto-bsp = "HEAD:9a211a4a2c1bfcb292dc97d8dcac149bca9e3f1b"
meta-oe
meta-multimedia
meta-gnome
meta-networking
meta-perl
meta-python
meta-ruby
meta-filesystems
meta-webserver
meta-xfce = "HEAD:dc5634968b270dde250690609f0015f881db81f2"
meta-freescale = "HEAD:7facbdb726e2dda0515e084c2066a4b8dd99c6d2"
meta-freescale-internal = "HEAD:4829293f807e35a1111e79763294fc8b98b97810"
meta-freescale-extra = "HEAD:bee911b027e0480b034674d0ddee3fcb06d2e985"
meta-virtualization = "HEAD:042425c1d98bdd7e44a62789bd03b375045266f5"
meta-java = "HEAD:8b776ac68f9af4596be3824152bcf0bc6b67fa1d"
meta-openstack
meta-openstack-aio-deploy
meta-openstack-compute-deploy
meta-openstack-compute-test-config
meta-openstack-controller-deploy
meta-openstack-controller-test-config
meta-openstack-qemu
meta-openstack-swift-deploy
meta-cloud-services = "HEAD:d8bc0d92d0f741e2ea1e6d3d9bc6b7a091d03cfb"
meta-security = "HEAD:f9367e71f923fc7d2fb600208e2b97535ea41777"
meta-linaro-toolchain = "HEAD:10b71bed9cfe76baa22c72806ff814cf85c2f73b"
meta-nxp-npi-1701 = "jethro-sdk-v2.0-ga-1701:11975eebce9096a3567d00ba2067a2dbd2ed4d5c"

NOTE: Preparing RunQueue
NOTE: Tainting hash to force rebuild of task /home/vincentbonduro/src/local/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-freescale/recipes-bsp/ppa/ppa_git.bb, do_compile
WARNING: /home/vincentbonduro/src/local/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-freescale/recipes-bsp/ppa/ppa_git.bb.do_compile is tainted from a forced run
NOTE: Checking sstate mirror object availability (for 32 objects)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: oe_runmake failed
ERROR: Function failed: do_compile (log file is located at /home/vincentbonduro/src/local/QorIQ-SDK-V2.0-20160527-yocto/build_ls1043ardb/tmp/work/aarch64-fsl-linux/ppa/git-r0/temp/log.do_compile.404)
ERROR: Logfile of failure stored in: /home/vincentbonduro/src/local/QorIQ-SDK-V2.0-20160527-yocto/build_ls1043ardb/tmp/work/aarch64-fsl-linux/ppa/git-r0/temp/log.do_compile.404
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make CC64=aarch64-fsl-linux-gcc --sysroot=/home/vincentbonduro/src/local/QorIQ-SDK-V2.0-20160527-yocto/build_ls1043ardb/tmp/sysroots/ls1043ardb LD64=aarch64-fsl-linux-ld --sysroot=/home/vincentbonduro/src/local/QorIQ-SDK-V2.0-20160527-yocto/build_ls1043ardb/tmp/sysroots/ls1043ardb OBJ64=aarch64-fsl-linux-objcopy rdb-fit
| build: image=fit \ gicv2 \ cci400 \ debug off \ test ""
|
| aarch64-fsl-linux-gcc --sysroot=/home/vincentbonduro/src/local/QorIQ-SDK-V2.0-20160527-yocto/build_ls1043ardb/tmp/sysroots/ls1043ardb -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o .o
| /home/vincentbonduro/src/local/QorIQ-SDK-V2.0-20160527-yocto/build_ls1043ardb/tmp/sysroots/ls1043ardb/usr/lib/../lib/crt1.o: In function `_start':
| /home/vincentbonduro/src/local/QorIQ-SDK-V2.0-20160527-yocto/build_ls1043ardb/tmp/work/aarch64-fsl-linux/glibc/linaro-2.20-r2014.11/glibc-linaro-2.20-2014.11/csu/../sysdeps/aarch64/start.S:87: undefined reference to `main'
| collect2: error: ld returned 1 exit status
| <builtin>: recipe for target '.o' failed
| make[1]: *** [.o] Error 1
| plat.mk:26: recipe for target 'rdb-fit' failed
| make: *** [rdb-fit] Error 2
| WARNING: exit code 1 from a shell command.
| ERROR: oe_runmake failed
| ERROR: Function failed: do_compile (log file is located at /home/vincentbonduro/src/local/QorIQ-SDK-V2.0-20160527-yocto/build_ls1043ardb/tmp/work/aarch64-fsl-linux/ppa/git-r0/temp/log.do_compile.404)
ERROR: Task 4 (/home/vincentbonduro/src/local/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-freescale/recipes-bsp/ppa/ppa_git.bb, do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 240 tasks of which 196 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/vincentbonduro/src/local/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-freescale/recipes-bsp/ppa/ppa_git.bb, do_compile
Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

 

I removed my QorIQ-SDK-V2.0-20160527-yocto directory and reinstalled SDK 2.0 with 1609 and the build started working again.

 

Both systems are running Debian Jessie:

 

vincentbonduro@debian:~/Downloads$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=debian
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"


vincentbonduro@debian:~/Downloads$ uname -a
Linux debian 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-2 (2016-04-08) x86_64 GNU/Linux

Outcomes