UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
165 Views
Registered: ‎08-14-2019

GLIB linker error in petalinux

Hi All,

I am trying to build the Design Module 5 application as mentioned in below link,

https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/126320747/Zynq+UltraScale+MPSoC+Base+TRD+2019.1+-+Design+Module+5

After giving make -j I am getting the below linker error,

 

/home/rdf0421-zcu102-base-trd-2019-1/petalinux/sdk/sysroots/aarch64-xilinx-linux/lib/libdl.so.2: undefined reference to `_dl_catch_error@GLIBC_PRIVATE'
/home/rdf0421-zcu102-base-trd-2019-1/petalinux/sdk/sysroots/aarch64-xilinx-linux/lib/libdl.so.2: undefined reference to `_dl_signal_error@GLIBC_PRIVATE'
/home/rdf0421-zcu102-base-trd-2019-1/petalinux/sdk/sysroots/aarch64-xilinx-linux/lib/libpthread.so.0: undefined reference to `__mmap@GLIBC_PRIVATE'
/home/rdf0421-zcu102-base-trd-2019-1/petalinux/sdk/sysroots/aarch64-xilinx-linux/lib/libpthread.so.0: undefined reference to `__sigtimedwait@GLIBC_PRIVATE'
/home/rdf0421-zcu102-base-trd-2019-1/petalinux/sdk/sysroots/aarch64-xilinx-linux/lib/libpthread.so.0: undefined reference to `__libc_fcntl64@GLIBC_PRIVATE'
/home/rdf0421-zcu102-base-trd-2019-1/petalinux/sdk/sysroots/aarch64-xilinx-linux/lib/libpthread.so.0: undefined reference to `__pause_nocancel@GLIBC_PRIVATE'
/home/rdf0421-zcu102-base-trd-2019-1/petalinux/sdk/sysroots/aarch64-xilinx-linux/lib/libpthread.so.0: undefined reference to `__mprotect@GLIBC_PRIVATE'
/home/rdf0421-zcu102-base-trd-2019-1/petalinux/sdk/sysroots/aarch64-xilinx-linux/lib/libpthread.so.0: undefined reference to `__write_nocancel@GLIBC_PRIVATE'
/home/rdf0421-zcu102-base-trd-2019-1/petalinux/sdk/sysroots/aarch64-xilinx-linux/usr/lib/libQt5Core.so.5.11.3: undefined reference to `renameat2@GLIBC_2.28'
/home/rdf0421-zcu102-base-trd-2019-1/petalinux/sdk/sysroots/aarch64-xilinx-linux/usr/lib/libQt5Core.so.5.11.3: undefined reference to `statx@GLIBC_2.28'
/home/rdf0421-zcu102-base-trd-2019-1/petalinux/sdk/sysroots/aarch64-xilinx-linux/lib/libpthread.so.0: undefined reference to `_IO_enable_locks@GLIBC_PRIVATE'
/home/rdf0421-zcu102-base-trd-2019-1/petalinux/sdk/sysroots/aarch64-xilinx-linux/lib/libpthread.so.0: undefined reference to `__munmap@GLIBC_PRIVATE'
/home/rdf0421-zcu102-base-trd-2019-1/petalinux/sdk/sysroots/aarch64-xilinx-linux/lib/libpthread.so.0: undefined reference to `__read_nocancel@GLIBC_PRIVATE'
/home/rdf0421-zcu102-base-trd-2019-1/petalinux/sdk/sysroots/aarch64-xilinx-linux/lib/libpthread.so.0: undefined reference to `__open64_nocancel@GLIBC_PRIVATE'
/home/rdf0421-zcu102-base-trd-2019-1/petalinux/sdk/sysroots/aarch64-xilinx-linux/lib/libpthread.so.0: undefined reference to `__close_nocancel@GLIBC_PRIVATE'
/home/rdf0421-zcu102-base-trd-2019-1/petalinux/sdk/sysroots/aarch64-xilinx-linux/usr/lib/libMali.so.8: undefined reference to `logf@GLIBC_2.27'

 

Please let me know any way to resolve this issue?

 
0 Kudos
3 Replies
Xilinx Employee
Xilinx Employee
123 Views
Registered: ‎05-15-2018

Re: GLIB linker error in petalinux

Hi @velagala.reddy2 

Are you using the pre-built petalinux SDK, or generating it from your own petalinux project? Please keep in mind that you have to use either ONE of those options. Because the petalinux SDK is extracted to the same location in the instructions provided, there might be conflicts if you do both.

As a sanity check, I would recommend using the pre-built SDK first, i.e.

$TRD_HOME/petalinux/sdk.sh -y -d $TRD_HOME/petalinux/sdk

If you see errors with this, then the issue is likely with the environemt variables being set for the linker. In that case, what's probably happening is that the glibc library installed with the petalinux sysroot is getting mixed up with the one installed on your host, causing undefined references. I would suggest retrying and making sure that the 'notes' provided with the instructions are meticulously followed. This will ensure that the correct environment variables and paths for the linker to pick up are set.

Best

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos
52 Views
Registered: ‎08-14-2019

Re: GLIB linker error in petalinux

Thank you shirilit. I have cleared the issue. It's a linker problem.

0 Kudos
Xilinx Employee
Xilinx Employee
34 Views
Registered: ‎05-15-2018

Re: GLIB linker error in petalinux

Thanks for the update @velagala.reddy2 

If you'd like, you can post the solution here, so that other users facing this issue can benefit from it. Also, if you could mark this thread as solved, that would be appreciated.

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos