Problem with pthread library

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

Problem with pthread library

2,642 Views
Chethan
Contributor III

Hi

I am using LS1046a board, while building the yocto root file system using "flex-builder -i mkrfs -r yocto:devel -a arm64 -m ls1046ardb" in between i am getting error Please check below log of that.

"usr/aarch64-linux-gnu/lib/libpthread.so.0: undefined reference to `__libc_vfork@GLIBC_PRIVATE'"

Please throw some light to move forward 

Thanks & Regards
Chethan GR

 

Labels (1)
0 Kudos
10 Replies

2,637 Views
yipingwang
NXP TechSupport
NXP TechSupport

Do you use LSDK 20.12? 

Do you use Ubuntu 18.04 LTS?

0 Kudos

2,631 Views
Chethan
Contributor III

Hi,

1. I am using LSDK 20.04 

2. I am using Ubuntu 18.04 LTS.

Thanks & Regards

Chethan GR

0 Kudos

2,627 Views
yipingwang
NXP TechSupport
NXP TechSupport

Would you please attach your console log to me to do more investigation?

0 Kudos

2,615 Views
Chethan
Contributor III

Hi,

LOG: 

make ARCH=$arch && make install
make[2]: Entering directory '/home/labuser/Chethan/FR3_3/targets/lsdk20.04/flexbuild_lsdk2004/packages/apps/'
"ARCH="
echo "main makefile"
main makefile
"DESTDIR=/home/labuser/Chethan/FR3_3/targets/lsdk20.04/flexbuild_lsdk2004/build/apps/components_LS_arm64_yocto"
"CROSS_COMPILE=aarch64-linux-gnu-"
"ARCH="
"CPP=aarch64-linux-gnu-gcc -E"
aarch64-linux-gnu-gcc -fpic -Wall -Werror -O2 -DLINUXPC -DFSM_NPU_SUPPORT -lpthread -shared
aarch64-linux-gnu-gcc -fpic -Wall -Werror -O2 -DLINUXPC -DFSM_NPU_SUPPORT -lpthread -shared -I/home/labuser/Chethan/FR3_3/yoctobuild/tmp/work/qemuarm64-poky-linux/core-image-sato/1.0-r0/rootfs/usr/lib
aarch64-linux-gnu-gcc -fpic -Wall -Werror -O2 -DLINUXPC -DFSM_NPU_SUPPORT -lpthread -shared =-I/home/labuser/Chethan/FR3_3/yoctobuild/tmp/work/qemuarm64-poky-linux/core-image-sato/1.0-r0/rootfs/usr/lib -I/home/labuser/Chethan/FR3_3/yoctobuild/tmp/work/qemuarm64-poky-linux/core-image-sato/1.0-r0/rootfs/usr/include
cd /home/labuser/Chethan/FR3_3/yoctobuild/tmp/work/qemuarm64-poky-linux/core-image-sato/1.0-r0/rootfs/usr/lib/ && \
cd tests && make all
aarch64-linux-gnu-gcc -Wundef -Werror -Wstrict-prototypes -Wno-trigraphs -Wp,-w -g -O0 -fno-inline -fno-short-enums -fpic -I../lib/inc -I../lib/src -I/home/labuser/Chethan/FR3_3/yoctobuild/tmp/work/qemuarm64-poky-linux/core-image-sato/1.0-r0/rootfs/usr/include
aarch64-linux-gnu-gcc -Wundef -Werror -Wstrict-prototypes -Wno-trigraphs -Wp,-w -g -O0 -fno-inline -fno-short-enums -fpic -I../lib/inc -I../lib/src -I/home/labuser/Chethan/FR3_3/yoctobuild/tmp/work/qemuarm64-poky-linux/core-image-sato/1.0-r0/rootfs/usr/include -I/home/labuser/Chethan/FR3_3/yoctobuild/tmp/work/qemuarm64-poky-linux/core-image-sato/1.0-r0/rootfs/usr/local/include -I/home/labuser/Chethan/FR3_3/yoctobuild/tmp/work/qemuarm64-poky-linux/core-image-sato/1.0-r0/rootfs/usr/lib -L/home/labuser/Chethan/FR3_3/yoctobuild/tmp/work/qemuarm64-poky-linux/core-image-sato/1.0-r0/rootfs/usr/lib -L/home/labuser/Chethan/FR3_3/yoctobuild/tmp/work/qemuarm64-poky-linux/core-image-sato/1.0-r0/rootfs/usr/lib
//usr/aarch64-linux-gnu/lib/libpthread.so.0: undefined reference to `__libc_vfork@GLIBC_PRIVATE'
collect2: error: ld returned 1 exit status

Thanks & Regards

Chethan GR

0 Kudos

2,600 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please try to clean yocto build environment and rebuild the rootfs filesystem.

  • flex-builder -i clean-rfs -r yocto:devel
  • flex-builder -i mkrfs -r yocto:devel
0 Kudos

2,608 Views
Chethan
Contributor III

Log: 

make ARCH=$arch && make install
make[2]: Entering directory '/home/labuser/Chethan/FR3_3/targets/lsdk20.04/flexbuild_lsdk2004/packages/apps/'
"ARCH="
echo "main makefile"
main makefile
"DESTDIR=/home/labuser/Chethan/FR3_3/targets/lsdk20.04/flexbuild_lsdk2004/build/apps/components_LS_arm64_yocto"
"CROSS_COMPILE=aarch64-linux-gnu-"
"ARCH="
"CPP=aarch64-linux-gnu-gcc -E"
aarch64-linux-gnu-gcc -fpic -Wall -Werror -O2 -DLINUXPC -DFSM_NPU_SUPPORT -lpthread -shared
aarch64-linux-gnu-gcc -fpic -Wall -Werror -O2 -DLINUXPC -DFSM_NPU_SUPPORT -lpthread -shared -I/home/labuser/Chethan/FR3_3/yoctobuild/tmp/work/qemuarm64-poky-linux/core-image-sato/1.0-r0/rootfs/usr/lib
aarch64-linux-gnu-gcc -fpic -Wall -Werror -O2 -DLINUXPC -DFSM_NPU_SUPPORT -lpthread -shared =-I/home/labuser/Chethan/FR3_3/yoctobuild/tmp/work/qemuarm64-poky-linux/core-image-sato/1.0-r0/rootfs/usr/lib -I/home/labuser/Chethan/FR3_3/yoctobuild/tmp/work/qemuarm64-poky-linux/core-image-sato/1.0-r0/rootfs/usr/include
cd /home/labuser/Chethan/FR3_3/yoctobuild/tmp/work/qemuarm64-poky-linux/core-image-sato/1.0-r0/rootfs/usr/lib/ && \
cd tests && make all
aarch64-linux-gnu-gcc -Wundef -Werror -Wstrict-prototypes -Wno-trigraphs -Wp,-w -g -O0 -fno-inline -fno-short-enums -fpic -I../lib/inc -I../lib/src -I/home/labuser/Chethan/FR3_3/yoctobuild/tmp/work/qemuarm64-poky-linux/core-image-sato/1.0-r0/rootfs/usr/include
aarch64-linux-gnu-gcc -Wundef -Werror -Wstrict-prototypes -Wno-trigraphs -Wp,-w -g -O0 -fno-inline -fno-short-enums -fpic -I../lib/inc -I../lib/src -I/home/labuser/Chethan/FR3_3/yoctobuild/tmp/work/qemuarm64-poky-linux/core-image-sato/1.0-r0/rootfs/usr/include -I/home/labuser/Chethan/FR3_3/yoctobuild/tmp/work/qemuarm64-poky-linux/core-image-sato/1.0-r0/rootfs/usr/local/include -I/home/labuser/Chethan/FR3_3/yoctobuild/tmp/work/qemuarm64-poky-linux/core-image-sato/1.0-r0/rootfs/usr/lib -L/home/labuser/Chethan/FR3_3/yoctobuild/tmp/work/qemuarm64-poky-linux/core-image-sato/1.0-r0/rootfs/usr/lib -L/home/labuser/Chethan/FR3_3/yoctobuild/tmp/work/qemuarm64-poky-linux/core-image-sato/1.0-r0/rootfs/usr/lib
//usr/aarch64-linux-gnu/lib/libpthread.so.0: undefined reference to `__libc_vfork@GLIBC_PRIVATE'
collect2: error: ld returned 1 exit status

Thanks & regards

Chethan GR

0 Kudos

2,595 Views
Chethan
Contributor III

Hi,

After trying with 

  • flex-builder -i clean-rfs -r yocto:devel
  • flex-builder -i mkrfs -r yocto:develI

I am getting same error.

Thanks & Regards
Chethan GR.

0 Kudos

2,591 Views
yipingwang
NXP TechSupport
NXP TechSupport

I created a clean LSDK 2004 build environment in my ubuntu 18.04 PC.

I generated Yocto:devel image successfully without any problem.

I suggest you prepare a clean ubuntu 18.04 environment, then download  LSDK 2004 to rebuild Yocto:devel rootfs image.

0 Kudos

2,511 Views
Chethan
Contributor III

Hi,

After rebuild I am getting like this error 

"WARNING: core-image-sato-1.0-r0 do_rootfs: Package packagegroup-core-x11-base, set to be excluded, is in core-image-sato PACKAGE_INSTALL (['packagegroup-core-boot', 'packagegroup-base-extended', 'sudo', 'file', 'parted', 'curl', 'openssh-scp', 'openssh-ssh', 'e2fsprogs', 'dosfstools', 'rt-tests', 'net-tools', 'iperf3', 'bridge-utils', 'netperf', 'iputils', 'ethtool', 'linuxptp', 'run-postinsts', 'dpkg', 'apt', 'psplash', 'packagegroup-core-ssh-dropbear', 'packagegroup-core-sdk', 'packagegroup-core-standalone-sdk-target', 'packagegroup-core-x11-base', 'packagegroup-core-x11-sato']). It will be removed from the list.
WARNING: core-image-sato-1.0-r0 do_rootfs: Package packagegroup-core-x11-sato, set to be excluded, is in core-image-sato PACKAGE_INSTALL (['packagegroup-core-boot', 'packagegroup-base-extended', 'sudo', 'file', 'parted', 'curl', 'openssh-scp', 'openssh-ssh', 'e2fsprogs', 'dosfstools', 'rt-tests', 'net-tools', 'iperf3', 'bridge-utils', 'netperf', 'iputils', 'ethtool', 'linuxptp', 'run-postinsts', 'dpkg', 'apt', 'psplash', 'packagegroup-core-ssh-dropbear', 'packagegroup-core-sdk', 'packagegroup-core-standalone-sdk-target', 'packagegroup-core-x11-sato']). It will be removed from the list.
WARNING: core-image-sato-1.0-r0 do_rootfs: Package packagegroup-core-ssh-dropbear, set to be excluded, is in core-image-sato PACKAGE_INSTALL (['packagegroup-core-boot', 'packagegroup-base-extended', 'sudo', 'file', 'parted', 'curl', 'openssh-scp', 'openssh-ssh', 'e2fsprogs', 'dosfstools', 'rt-tests', 'net-tools', 'iperf3', 'bridge-utils', 'netperf', 'iputils', 'ethtool', 'linuxptp', 'run-postinsts', 'dpkg', 'apt', 'psplash', 'packagegroup-core-ssh-dropbear', 'packagegroup-core-sdk', 'packagegroup-core-standalone-sdk-target']). It will be removed from the list.
ERROR: core-image-sato-1.0-r0 do_rootfs: The postinstall intercept hook 'update_gtk_icon_cache' failed, details in /home/labuser/Chethan/FR3_4/yoctobuild/tmp/work/qemuarm64-poky-linux/core-image-sato/1.0-r0/temp/log.do_rootfs
ERROR: Logfile of failure stored in: /home/labuser/Chethan/FR3_4/yoctobuild/tmp/work/qemuarm64-poky-linux/core-image-sato/1.0-r0/temp/log.do_rootfs.21015
ERROR: Task (/home/labuser/Chethan/FR3_4/flexbuild_lsdk2004/packages/rfs/yocto-poky/meta/recipes-sato/images/core-image-sato.bb:do_rootfs) failed with exit code '1' " ,

 

Please Help me out of above issue.

Thanks & Regards

Chethan GR

0 Kudos

2,477 Views
yipingwang
NXP TechSupport
NXP TechSupport

Would you please attach your log file /home/labuser/Chethan/FR3_4/yoctobuild/tmp/work/qemuarm64-poky-linux/core-image-sato/1.0-r0/temp/log.do_rootfs.21015 in this thread?

0 Kudos