flexbuild_lsdk2108 build error

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

flexbuild_lsdk2108 build error

2,826 Views
hongyuanz
Contributor IV

user@nxp:~/flexbuild_lsdk2108$ flex-builder -a arm64 -m ls1046ardb -b sd
MACHINE: ls1046ardb
BOOTTYPE: sd
MACHINE: ls1046ardb
BOOTTYPE: sd
Time of fetching repo: 2021年 11月 11日 星期四 17:11:09 CST
Flexbuild HEAD commit: 7cf369c Initial commit for LSDK-21.08 Release
Time of build: 2021年 11月 11日 星期四 17:11:09 CST
COMPONENT: linux-deb
SOCFAMILY: LS
make: Entering directory '/home/user/flexbuild_lsdk2108'
make[1]: Entering directory '/home/user/flexbuild_lsdk2108/packages/linux'
Building linux with LSDK-21.08
Compiler = aarch64-linux-gnu-gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Total Config List = defconfig lsdk.config
make[2]: Entering directory '/home/user/flexbuild_lsdk2108/components/linux/linux'
make[3]: Entering directory '/home/user/flexbuild_lsdk2108/build/linux/linux/arm64/LS/output/LSDK-21.08'
In file included from /home/user/flexbuild_lsdk2108/components/linux/linux/include/linux/build-salt.h:4,
from /home/user/flexbuild_lsdk2108/components/linux/linux/init/version.c:11:
/home/user/flexbuild_lsdk2108/components/linux/linux/include/linux/elfnote.h:74:10: fatal error: opening dependency file init/.version.o.d: Permission denied
74 | struct elf##size##_note _nhdr; \
| ^~~
/home/user/flexbuild_lsdk2108/components/linux/linux/include/linux/elfnote.h:93:2: note: in expansion of macro ‘_ELFNOTE’
93 | _ELFNOTE(size, name, __LINE__, type, desc)
| ^~~~~~~~
/home/user/flexbuild_lsdk2108/components/linux/linux/include/linux/elfnote.h:95:37: note: in expansion of macro ‘ELFNOTE’
95 | #define ELFNOTE32(name, type, desc) ELFNOTE(32, name, type, desc)
| ^~~~~~~
/home/user/flexbuild_lsdk2108/components/linux/linux/include/linux/build-salt.h:16:8: note: in expansion of macro ‘ELFNOTE32’
16 | ELFNOTE32("Linux", LINUX_ELFNOTE_BUILD_SALT, CONFIG_BUILD_SALT)
| ^~~~~~~~~
/home/user/flexbuild_lsdk2108/components/linux/linux/init/version.c:55:1: note: in expansion of macro ‘BUILD_SALT’
55 | BUILD_SALT;
| ^~~~~~~~~~
compilation terminated.
make[4]: *** [/home/user/flexbuild_lsdk2108/components/linux/linux/scripts/Makefile.build:279: init/version.o] Error 1
make[3]: *** [/home/user/flexbuild_lsdk2108/components/linux/linux/Makefile:1821: init] Error 2
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/home/user/flexbuild_lsdk2108/build/linux/linux/arm64/LS/output/LSDK-21.08'
make[2]: *** [Makefile:185: __sub-make] Error 2
make[2]: Leaving directory '/home/user/flexbuild_lsdk2108/components/linux/linux'
make[1]: *** [kernel.mk:13: kernel] Error 2
make[1]: Leaving directory '/home/user/flexbuild_lsdk2108/packages/linux'
make: *** [Makefile:22: linux-deb] Error 2
make: Leaving directory '/home/user/flexbuild_lsdk2108'
user@nxp:~/flexbuild_lsdk2108$

0 Kudos
Reply
3 Replies

2,821 Views
hongyuanz
Contributor IV

root@nxp:/home/user/flexbuild_lsdk2108# aarch64-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=aarch64-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc-cross/aarch64-linux-gnu/9/lto-wrapper
Target: aarch64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.3.0-17ubuntu1~20.04' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --without-target-system-zlib --enable-libpth-m2 --enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=aarch64-linux-gnu --program-prefix=aarch64-linux-gnu- --includedir=/usr/aarch64-linux-gnu/include
Thread model: posix
gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)

0 Kudos
Reply

2,824 Views
hongyuanz
Contributor IV

Development environment oracle vm virtual machine ubuntu-20.04.3-desktop-amd64

Compile with root user and report the following error

root@nxp:/home/user/flexbuild_lsdk2108# source setup.env
root@nxp:/home/user/flexbuild_lsdk2108# flex-builder -a arm64 -m ls1046ardb -b sd
MACHINE: ls1046ardb
BOOTTYPE: sd
MACHINE: ls1046ardb
BOOTTYPE: sd
Time of fetching repo: 2021年 11月 11日 星期四 17:15:17 CST
Flexbuild HEAD commit: 7cf369c Initial commit for LSDK-21.08 Release
Time of build: 2021年 11月 11日 星期四 17:15:17 CST
COMPONENT: linux-deb
SOCFAMILY: LS
make: Entering directory '/home/user/flexbuild_lsdk2108'
make[1]: Entering directory '/home/user/flexbuild_lsdk2108/packages/linux'
Building linux with LSDK-21.08
Compiler = aarch64-linux-gnu-gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Total Config List = defconfig lsdk.config
make[2]: Entering directory '/home/user/flexbuild_lsdk2108/components/linux/linux'
make[3]: Entering directory '/home/user/flexbuild_lsdk2108/build/linux/linux/arm64/LS/output/LSDK-21.08'
WARNING: modpost: EXPORT symbol "xfrm6_protocol_deregister" [vmlinux] version generation failed, symbol will not be versioned.
WARNING: modpost: EXPORT symbol "xfrm6_protocol_register" [vmlinux] version generation failed, symbol will not be versioned.
WARNING: modpost: EXPORT symbol "xfrm6_rcv_encap" [vmlinux] version generation failed, symbol will not be versioned.
aarch64-linux-gnu-ld: net/ipv6/xfrm6_protocol.o: relocation R_AARCH64_ABS32 against `__crc_xfrm6_rcv_encap' can not be used when making a shared object
net/ipv6/xfrm6_protocol.o:(.rodata+0x10): dangerous relocation: unsupported relocation
net/ipv6/xfrm6_protocol.o:(.rodata+0x18): dangerous relocation: unsupported relocation
net/ipv6/xfrm6_protocol.o:(.rodata+0x38): dangerous relocation: unsupported relocation
net/ipv6/xfrm6_protocol.o:(.rodata+0x40): dangerous relocation: unsupported relocation
net/ipv6/xfrm6_protocol.o:(.rodata+0x60): dangerous relocation: unsupported relocation
net/ipv6/xfrm6_protocol.o:(.rodata+0x68): dangerous relocation: unsupported relocation
net/ipv6/xfrm6_protocol.o:(.rodata+0xb8): dangerous relocation: unsupported relocation
make[3]: *** [/home/user/flexbuild_lsdk2108/components/linux/linux/Makefile:1178: vmlinux] Error 1
make[3]: Leaving directory '/home/user/flexbuild_lsdk2108/build/linux/linux/arm64/LS/output/LSDK-21.08'
make[2]: *** [Makefile:185: __sub-make] Error 2
make[2]: Leaving directory '/home/user/flexbuild_lsdk2108/components/linux/linux'
make[1]: *** [kernel.mk:13: kernel] Error 2
make[1]: Leaving directory '/home/user/flexbuild_lsdk2108/packages/linux'
make: *** [Makefile:22: linux-deb] Error 2
make: Leaving directory '/home/user/flexbuild_lsdk2108'
root@nxp:/home/user/flexbuild_lsdk2108#

0 Kudos
Reply

2,817 Views
Pavel
NXP Employee
NXP Employee

It looks like the LSDK 2108 is not completely installed on your Linux PC.

Use the following command sequence for LSDK installing and building under Ubuntu 20:

sudo apt update

sudo apt -y upgrade

sudo apt-get install git

 

tar xvzf flexbuild_lsdk2108.tgz

source setup.env

 

flex-builder -i mkrfs -a arm64

 

flex-builder -c linux -a arm64

 

flex-builder -i mkfw -m ls1046afrwy -b sd

 

0 Kudos
Reply