Hi all,
I tried to follow the standard setup from https://www.nxp.com/docs/en/user-guide/IMX_YOCTO_PROJECT_USERS_GUIDE.pdf but stuck at this error. How can I fix it?
make -j 16 subdir=rt -C rt ..=../ others
make[2]: Entering directory '/media/tpham/WORK/Build/yocto/imx-yocto-zeus/build-wayland/tmp/work/aarch64-poky-linux/glibc/2.30-r0/git/rt'
aarch64-poky-linux-gcc -mcpu=cortex-a53+crc+crypto --sysroot=/media/tpham/WORK/Build/yocto/imx-yocto-zeus/build-wayland/tmp/work/aarch64-poky-linux/glibc/2.30-r0/recipe-sysroot -fuse-ld=bfd -shared -static-libgcc -Wl,-O1 -Wl,-z,defs -Wl,-dynamic-linker=/lib/ld-linux-aarch64.so.1 -B/media/tpham/WORK/Build/yocto/imx-yocto-zeus/build-wayland/tmp/work/aarch64-poky-linux/glibc/2.30-r0/build-aarch64-poky-linux/csu/ -Wl,--version-script=/media/tpham/WORK/Build/yocto/imx-yocto-zeus/build-wayland/tmp/work/aarch64-poky-linux/glibc/2.30-r0/build-aarch64-poky-linux/librt.map -Wl,-soname=librt.so.1 -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both -Wl,-z,now -Wl,--enable-new-dtags,-z,nodelete -L/media/tpham/WORK/Build/yocto/imx-yocto-zeus/build-wayland/tmp/work/aarch64-poky-linux/glibc/2.30-r0/build-aarch64-poky-linux -L/media/tpham/WORK/Build/yocto/imx-yocto-zeus/build-wayland/tmp/work/aarch64-poky-linux/glibc/2.30-r0/build-aarch64-poky-linux/math -L/media/tpham/WORK/Build/yocto/imx-yocto-zeus/build-wayland/tmp/work/aarch64-poky-linux/glibc/2.30-r0/build-aarch64-poky-linux/elf -L/media/tpham/WORK/Build/yocto/imx-yocto-zeus/build-wayland/tmp/work/aarch64-poky-linux/glibc/2.30-r0/build-aarch64-poky-linux/dlfcn -L/media/tpham/WORK/Build/yocto/imx-yocto-zeus/build-wayland/tmp/work/aarch64-poky-linux/glibc/2.30-r0/build-aarch64-poky-linux/nss -L/media/tpham/WORK/Build/yocto/imx-yocto-zeus/build-wayland/tmp/work/aarch64-poky-linux/glibc/2.30-r0/build-aarch64-poky-linux/nis -L/media/tpham/WORK/Build/yocto/imx-yocto-zeus/build-wayland/tmp/work/aarch64-poky-linux/glibc/2.30-r0/build-aarch64-poky-linux/rt -L/media/tpham/WORK/Build/yocto/imx-yocto-zeus/build-wayland/tmp/work/aarch64-poky-linux/glibc/2.30-r0/build-aarch64-poky-linux/resolv -L/media/tpham/WORK/Build/yocto/imx-yocto-zeus/build-wayland/tmp/work/aarch64-poky-linux/glibc/2.30-r0/build-aarch64-poky-linux/mathvec -L/media/tpham/WORK/Build/yocto/imx-yocto-zeus/build-wayland/tmp/work/aarch64-poky-linux/glibc/2.30-r0/build-aarch64-poky-linux/support -L/media/tpham/WORK/Build/yocto/imx-yocto-zeus/build-wayland/tmp/work/aarch64-poky-linux/glibc/2.30-r0/build-aarch64-poky-linux/nptl -Wl,-rpath-link=/media/tpham/WORK/Build/yocto/imx-yocto-zeus/build-wayland/tmp/work/aarch64-poky-linux/glibc/2.30-r0/build-aarch64-poky-linux:/media/tpham/WORK/Build/yocto/imx-yocto-zeus/build-wayland/tmp/work/aarch64-poky-linux/glibc/2.30-r0/build-aarch64-poky-linux/math:/media/tpham/WORK/Build/yocto/imx-yocto-zeus/build-wayland/tmp/work/aarch64-poky-linux/glibc/2.30-r0/build-aarch64-poky-linux/elf:/media/tpham/WORK/Build/yocto/imx-yocto-zeus/build-wayland/tmp/work/aarch64-poky-linux/glibc/2.30-r0/build-aarch64-poky-linux/dlfcn:/media/tpham/WORK/Build/yocto/imx-yocto-zeus/build-wayland/tmp/work/aarch64-poky-linux/glibc/2.30-r0/build-aarch64-poky-linux/nss:/media/tpham/WORK/Build/yocto/imx-yocto-zeus/build-wayland/tmp/work/aarch64-poky-linux/glibc/2.30-r0/build-aarch64-poky-linux/nis:/media/tpham/WORK/Build/yocto/imx-yocto-zeus/build-wayland/tmp/work/aarch64-poky-linux/glibc/2.30-r0/build-aarch64-poky-linux/rt:/media/tpham/WORK/Build/yocto/imx-yocto-zeus/build-wayland/tmp/work/aarch64-poky-linux/glibc/2.30-r0/build-aarch64-poky-linux/resolv:/media/tpham/WORK/Build/yocto/imx-yocto-zeus/build-wayland/tmp/work/aarch64-poky-linux/glibc/2.30-r0/build-aarch64-poky-linux/mathvec:/media/tpham/WORK/Build/yocto/imx-yocto-zeus/build-wayland/tmp/work/aarch64-poky-linux/glibc/2.30-r0/build-aarch64-poky-linux/support:/media/tpham/WORK/Build/yocto/imx-yocto-zeus/build-wayland/tmp/work/aarch64-poky-linux/glibc/2.30-r0/build-aarch64-poky-linux/nptl -o /media/tpham/WORK/Build/yocto/imx-yocto-zeus/build-wayland/tmp/work/aarch64-poky-linux/glibc/2.30-r0/build-aarch64-poky-linux/rt/librt.so /media/tpham/WORK/Build/yocto/imx-yocto-zeus/build-wayland/tmp/work/aarch64-poky-linux/glibc/2.30-r0/build-aarch64-poky-linux/csu/abi-note.o -Wl,--whole-archive /media/tpham/WORK/Build/yocto/imx-yocto-zeus/build-wayland/tmp/work/aarch64-poky-linux/glibc/2.30-r0/build-aarch64-poky-linux/rt/librt_pic.a -Wl,--no-whole-archive /media/tpham/WORK/Build/yocto/imx-yocto-zeus/build-wayland/tmp/work/aarch64-poky-linux/glibc/2.30-r0/build-aarch64-poky-linux/nptl/libpthread.so -Wl,--start-group /media/tpham/WORK/Build/yocto/imx-yocto-zeus/build-wayland/tmp/work/aarch64-poky-linux/glibc/2.30-r0/build-aarch64-poky-linux/libc.so /media/tpham/WORK/Build/yocto/imx-yocto-zeus/build-wayland/tmp/work/aarch64-poky-linux/glibc/2.30-r0/build-aarch64-poky-linux/libc_nonshared.a -Wl,--as-needed /media/tpham/WORK/Build/yocto/imx-yocto-zeus/build-wayland/tmp/work/aarch64-poky-linux/glibc/2.30-r0/build-aarch64-poky-linux/elf/ld.so -Wl,--no-as-needed -Wl,--end-group
/media/tpham/WORK/Build/yocto/imx-yocto-zeus/build-wayland/tmp/work/aarch64-poky-linux/glibc/2.30-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.2.0/ld.bfd: error in /media/tpham/WORK/Build/yocto/imx-yocto-zeus/build-wayland/tmp/work/aarch64-poky-linux/glibc/2.30-r0/recipe-sysroot/usr/lib/aarch64-poky-linux/9.2.0/crtbeginS.o(.eh_frame); no .eh_frame_hdr table will be created
/media/tpham/WORK/Build/yocto/imx-yocto-zeus/build-wayland/tmp/work/aarch64-poky-linux/glibc/2.30-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.2.0/ld.bfd: /media/tpham/WORK/Build/yocto/imx-yocto-zeus/build-wayland/tmp/work/aarch64-poky-linux/glibc/2.30-r0/build-aarch64-poky-linux/libc_nonshared.a(pthread_atfork.oS): in function `__pthread_atfork':
/usr/src/debug/glibc/2.30-r0/git/nptl/pthread_atfork.c:51: undefined reference to `__dso_handle'
/media/tpham/WORK/Build/yocto/imx-yocto-zeus/build-wayland/tmp/work/aarch64-poky-linux/glibc/2.30-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.2.0/ld.bfd: /usr/src/debug/glibc/2.30-r0/git/nptl/pthread_atfork.c:51: undefined reference to `__dso_handle'
/media/tpham/WORK/Build/yocto/imx-yocto-zeus/build-wayland/tmp/work/aarch64-poky-linux/glibc/2.30-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.2.0/ld.bfd: /media/tpham/WORK/Build/yocto/imx-yocto-zeus/build-wayland/tmp/work/aarch64-poky-linux/glibc/2.30-r0/build-aarch64-poky-linux/rt/librt.so: hidden symbol `__dso_handle' isn't defined
/media/tpham/WORK/Build/yocto/imx-yocto-zeus/build-wayland/tmp/work/aarch64-poky-linux/glibc/2.30-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/9.2.0/ld.bfd: final link failed: bad value
collect2: error: ld returned 1 exit status
make[2]: *** [../Makerules:536: /media/tpham/WORK/Build/yocto/imx-yocto-zeus/build-wayland/tmp/work/aarch64-poky-linux/glibc/2.30-r0/build-aarch64-poky-linux/rt/librt.so] Error 1
make[2]: Leaving directory '/media/tpham/WORK/Build/yocto/imx-yocto-zeus/build-wayland/tmp/work/aarch64-poky-linux/glibc/2.30-r0/git/rt'
make[1]: *** [Makefile:279: rt/others] Error 2
make[1]: Leaving directory '/media/tpham/WORK/Build/yocto/imx-yocto-zeus/build-wayland/tmp/work/aarch64-poky-linux/glibc/2.30-r0/git'
make: *** [Makefile:9: all] Error 2
WARNING: /media/tpham/WORK/Build/yocto/imx-yocto-zeus/build-wayland/tmp/work/aarch64-poky-linux/glibc/2.30-r0/temp/run.do_compile.25484:1 exit 1 from 'exit 1'
ERROR: Logfile of failure stored in: /media/tpham/WORK/Build/yocto/imx-yocto-zeus/build-wayland/tmp/work/aarch64-poky-linux/glibc/2.30-r0/temp/log.do_compile.25484
解決済! 解決策の投稿を見る。
Hi,
Hi,
I compiled the version of linux bsp on ubuntu 18.04 / 20.04 / debain-10, below is the list of software packages. try it, please!
Host Comfiguration :
--CPU: i7-6700 4-core 8 threads
--Total memory: 32GB DDR4
--Windows 7 64bit
--USB3.1 SSD ( For Linux virtual machine)
Virtual Machine:
--Vmware player 15
--Ubuntu 18.04 LTS / 20.04 LTS /Debian-10
(1)Setting root user and password
If the step has been done, omit it, please!
# sudo passwd root
(2)Run these 2 commands to update software and system
# sudo apt-get update
# sudo apt-get upgrade
(3)Installing software packages for cross-compile linux BSP
# sudo apt-get install flex bison gperf build-essential zlib1g-dev
# sudo apt-get install lib32ncurses5-dev x11proto-core-dev
# sudo apt-get install libx11-dev lib32z1-dev libgl1-mesa-dev
# sudo apt-get install tofrodos python-markdown libxml2-utils xsltproc
# sudo apt-get install uuid-dev:i386 liblzo2-dev:i386 gcc-multilib g++-multilib
[commnent]
For Debian-10 uuid-dev:i386 liblzo2-dev:i386---> uuid-dev liblzo2-dev
# sudo apt-get install subversion openssh-server openssh-client uuid uuid-dev zlib1g-dev
# sudo apt-get install liblz-dev lzop liblzo2-2 liblzo2-dev git-core curl
# sudo apt-get install python3 python3-pip python3-pexpect python3-git python3-jinja2 pylint3
# sudo apt-get install u-boot-tools mtd-utils android-tools-fsutils
[commnent]
For ubuntu 20.04 LTS, don’t need android-tools-fsutils. So remove it, please!
# sudo apt-get install openjdk-8-jdk device-tree-compiler aptitude
[commnent]
For Debian-10 openjdk-8-jdk --- > default-jdk
# sudo apt-get install libcurl4-openssl-dev nss-updatedb
# sudo apt-get install chrpath texinfo gawk cpio diffstat
# sudo apt-get install libncursesw5-dev libssl-dev libegl1-mesa libncurses5
# sudo apt-get install net-tools python libsdl1.2-dev xterm socat
# sudo apt-get install icedtea-netx-common icedtea-netx
Have a nice day!
B.R,
weidong
Hi weidong,
I have encountered another build error, I tried to search but still have no idea what I can do to fix it. Could you please help me?
| checking for librt... yes
| checking how to link with librt... -lrt
| checking for pthread_mutex_lock... yes
| checking for library containing u8_normalize... no
| configure: error:
| ***
| *** Libunistring was not found. To use the included one, use --with-included-unistring
|
| WARNING: exit code 1 from a shell command.
|
ERROR: Task (/home/yoctobuildmachine/Desktop/Yocto/imx-yocto-bsp/sources/poky/meta/recipes-support/gnutls/gnutls_3.6.13.bb:do_configure) failed with exit code '1'
Hi weidong,
I have encountered another error, I tried to search for it but still have no idea what I have to do. Could you please help?
| checking for library containing u8_normalize... no
| configure: error:
| ***
| *** Libunistring was not found. To use the included one, use --with-included-unistring
|
| WARNING: exit code 1 from a shell command.
|
ERROR: Task (/home/yoctobuildmachine/Desktop/Yocto/imx-yocto-bsp/sources/poky/meta/recipes-support/gnutls/gnutls_3.6.13.bb:do_configure) failed with exit code '1'
Hi weidong,
I'm stuck on another error. I'm new to bitbake build so I don't know how to install the missing library.
| checking how to link with librt... -lrt
| checking for pthread_mutex_lock... yes
| checking for library containing u8_normalize... no
| configure: error:
| ***
| *** Libunistring was not found. To use the included one, use --with-included-unistring
|
| WARNING: exit code 1 from a shell command.
|
ERROR: Task (/home/yoctobuildmachine/Desktop/Yocto/imx-yocto-bsp/sources/poky/meta/recipes-support/gnutls/gnutls_3.6.13.bb:do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 576 tasks of which 575 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/home/yoctobuildmachine/Desktop/Yocto/imx-yocto-bsp/sources/poky/meta/recipes-support/gnutls/gnutls_3.6.13.bb:do_configure
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
Please help!!
Hi,
Hi,
I compiled the version of linux bsp on ubuntu 18.04 / 20.04 / debain-10, below is the list of software packages. try it, please!
Host Comfiguration :
--CPU: i7-6700 4-core 8 threads
--Total memory: 32GB DDR4
--Windows 7 64bit
--USB3.1 SSD ( For Linux virtual machine)
Virtual Machine:
--Vmware player 15
--Ubuntu 18.04 LTS / 20.04 LTS /Debian-10
(1)Setting root user and password
If the step has been done, omit it, please!
# sudo passwd root
(2)Run these 2 commands to update software and system
# sudo apt-get update
# sudo apt-get upgrade
(3)Installing software packages for cross-compile linux BSP
# sudo apt-get install flex bison gperf build-essential zlib1g-dev
# sudo apt-get install lib32ncurses5-dev x11proto-core-dev
# sudo apt-get install libx11-dev lib32z1-dev libgl1-mesa-dev
# sudo apt-get install tofrodos python-markdown libxml2-utils xsltproc
# sudo apt-get install uuid-dev:i386 liblzo2-dev:i386 gcc-multilib g++-multilib
[commnent]
For Debian-10 uuid-dev:i386 liblzo2-dev:i386---> uuid-dev liblzo2-dev
# sudo apt-get install subversion openssh-server openssh-client uuid uuid-dev zlib1g-dev
# sudo apt-get install liblz-dev lzop liblzo2-2 liblzo2-dev git-core curl
# sudo apt-get install python3 python3-pip python3-pexpect python3-git python3-jinja2 pylint3
# sudo apt-get install u-boot-tools mtd-utils android-tools-fsutils
[commnent]
For ubuntu 20.04 LTS, don’t need android-tools-fsutils. So remove it, please!
# sudo apt-get install openjdk-8-jdk device-tree-compiler aptitude
[commnent]
For Debian-10 openjdk-8-jdk --- > default-jdk
# sudo apt-get install libcurl4-openssl-dev nss-updatedb
# sudo apt-get install chrpath texinfo gawk cpio diffstat
# sudo apt-get install libncursesw5-dev libssl-dev libegl1-mesa libncurses5
# sudo apt-get install net-tools python libsdl1.2-dev xterm socat
# sudo apt-get install icedtea-netx-common icedtea-netx
Have a nice day!
B.R,
weidong
It works like charm! I even can move straight to Ubuntu 20.04 to get up-to-date. Thank you so much!