SDK 2017 ls1046ardb build problem

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

SDK 2017 ls1046ardb build problem

1,217 Views
michelepallaro
Contributor I

I'm trying to build fsl-image-virt for ls1046ardb using SDK 2017 but it fails with :

ERROR: oe_runmake failed
ERROR: Function failed: do_compile (log file is located at /opt/devel/QorIQ-SDK-V2.0-20160527-yocto/build_ls1046ardb/tmp/work/aarch64-fsl-linux/ppa/git-r0/temp/log.do_compile.13250)
ERROR: Logfile of failure stored in: /opt/devel/QorIQ-SDK-V2.0-20160527-yocto/build_ls1046ardb/tmp/work/aarch64-fsl-linux/ppa/git-r0/temp/log.do_compile.13250
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make CC64=aarch64-fsl-linux-gcc --sysroot=/opt/devel/QorIQ-SDK-V2.0-20160527-yocto/build_ls1046ardb/tmp/sysroots/ls1046ardb LD64=aarch64-fsl-linux-ld --sysroot=/opt/devel/QorIQ-SDK-V2.0-20160527-yocto/build_ls1046ardb/tmp/sysroots/ls1046ardb OBJ64=aarch64-fsl-linux-objcopy rdb-fit
| build: image=fit \ gicv2 \ cci400 \ debug off \ test ""
|
| aarch64-fsl-linux-gcc --sysroot=/opt/devel/QorIQ-SDK-V2.0-20160527-yocto/build_ls1046ardb/tmp/sysroots/ls1046ardb -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o .o
| /opt/devel/QorIQ-SDK-V2.0-20160527-yocto/build_ls1046ardb/tmp/sysroots/ls1046ardb/usr/lib/../lib/crt1.o: In function `_start':
| /opt/devel/QorIQ-SDK-V2.0-20160527-yocto/build_ls1046ardb/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
| ERROR: oe_runmake failed
| ERROR: Function failed: do_compile (log file is located at /opt/devel/QorIQ-SDK-V2.0-20160527-yocto/build_ls1046ardb/tmp/work/aarch64-fsl-linux/ppa/git-r0/temp/log.do_compile.13250)
ERROR: Task 118 (/opt/devel/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 3215 tasks of which 3207 didn't need to be rerun and 1 failed.
Waiting for 0 running tasks to finish:

Summary: 1 task failed:
/opt/devel/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-freescale/recipes-bsp/ppa/ppa_git.bb, do_compile

is there a fix ?

4 Replies

732 Views
Pavel
NXP Employee
NXP Employee

The first building using this SDK usually reports that file EULA is missing in the /rcw/git-r0/git folder. For example full path for the LS1043ardb board is the following:

/QorIQ-SDK-V2.0-20160527-yocto/build_ls1043ardb/tmp/work/ls1043ardb-fsl-linux/rcw/git-r0/git.

 

Problem disappeared if file EULA is copied in this folder.

 

See the following page ion community:

https://community.nxp.com/thread/445051


Have a great day,
Pavel Chubakov

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

0 Kudos

732 Views
michelepallaro
Contributor I

Thanks for answer me

I check bin/sh links and point to bash not to dash

host-prepare.sh report : Done. You're ready to go with Yocto build now
I create a new project . ./fsl-setup-env -m ls1046ardb -b test_ls1046ardb

bitbake fsl-image-minimal

But it fails in the same point:

ERROR: oe_runmake failed
ERROR: Function failed: do_compile (log file is located at /opt/devel/QorIQ-SDK-V2.0-20160527-yocto/test_ls1046ardb/tmp/work/aarch64-fsl-linux/ppa/git-r0/temp/log.do_compile.18251)
ERROR: Logfile of failure stored in: /opt/devel/QorIQ-SDK-V2.0-20160527-yocto/test_ls1046ardb/tmp/work/aarch64-fsl-linux/ppa/git-r0/temp/log.do_compile.18251
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make CC64=aarch64-fsl-linux-gcc --sysroot=/opt/devel/QorIQ-SDK-V2.0-20160527-yocto/test_ls1046ardb/tmp/sysroots/ls1046ardb LD64=aarch64-fsl-linux-ld --sysroot=/opt/devel/QorIQ-SDK-V2.0-20160527-yocto/test_ls1046ardb/tmp/sysroots/ls1046ardb OBJ64=aarch64-fsl-linux-objcopy rdb-fit
| build: image=fit \ gicv2 \ cci400 \ debug off \ test ""
|
| aarch64-fsl-linux-gcc --sysroot=/opt/devel/QorIQ-SDK-V2.0-20160527-yocto/test_ls1046ardb/tmp/sysroots/ls1046ardb -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o .o
| /opt/devel/QorIQ-SDK-V2.0-20160527-yocto/test_ls1046ardb/tmp/sysroots/ls1046ardb/usr/lib/../lib/crt1.o: In function `_start':
| /opt/devel/QorIQ-SDK-V2.0-20160527-yocto/build_ls1046ardb/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: /opt/devel/QorIQ-SDK-V2.0-20160527-yocto/test_ls1046ardb/tmp/work/aarch64-fsl-linux/ppa/git-r0/temp/run.do_compile.18251:1 exit 1 from
| exit 1
| ERROR: oe_runmake failed
| ERROR: Function failed: do_compile (log file is located at /opt/devel/QorIQ-SDK-V2.0-20160527-yocto/test_ls1046ardb/tmp/work/aarch64-fsl-linux/ppa/git-r0/temp/log.do_compile.18251)
ERROR: Task 118 (/opt/devel/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 951 tasks of which 935 didn't need to be rerun and 1 failed.
Waiting for 0 running tasks to finish:

Summary: 1 task failed:
/opt/devel/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.

If I skip sources/meta-nxp-npi-1701/recipes-bsp/ppa/ppa_git.bbappend I can build all without problem

Thanks and Regards,

    Michele

732 Views
Pavel
NXP Employee
NXP Employee

We usually use the following command sequence for SDK installing under Ubuntu 14.04 and Ubuntu 16.04:

 

  1. sudo apt-get install ubuntu-minimal ubuntu-standard patch vim-common sed wget subversion git-core coreutils libbonobo2-common unzip texi2html texinfo libsdl1.2-dev docbook-utils gawk python-pysqlite2 diffstat make gcc build-essential xz-utils g++ desktop-file-utils chrpath libgl1-mesa-dev libglu1-mesa-dev autoconf automake groff libtool xterm libncurses5-dev cvs tofrodos

 

  1. a) command: ls -l /bin/sh

                Message:  /bin/sh -> dash

  1. b) command: sudo dpkg-reconfigure dash

                Answer after password – No

                Message:

                Removing 'diversion of /bin/sh to /bin/sh.distrib by dash'

                Adding 'diversion of /bin/sh to /bin/sh.distrib by bash'

                Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash'

                Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by bash'

  1. c) command for checking: ls -l /bin/sh

                Message: /bin/sh -> bash

 

  1. install SDK cache:
  2. install SDK source
  3. install SDK V2.0-1701
  4. cd <sdk-install-dir>.
  5. ./sources/meta-freescale/scripts/host-prepare.sh

Usually Linux recommends also run the following command: sudo usr/sbin/visudo

  1. bitbake fsl-image-minimal


Have a great day,
Pavel Chubakov

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

0 Kudos

732 Views
vbonduro
Contributor II

Hi Pavel,

I am experiencing the same build failure for the PPA with SDK v2.0-1701 (see: https://community.nxp.com/thread/443926 ). SDK v2.0-1611 builds PPA with no issue, but a fresh install of 1701 shows the same failure as Michelle is experiencing here.

Is this a known issue?

Thanks

0 Kudos