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: 
329 Views
Registered: ‎10-09-2019

petalinux 2019.1 "petalinux-build" (wrong ELF class: ELFCLASS64)

Hi All,

I'm using petalunx 2019.1 on Ubuntu 18.04.

I can't configure the kernel. Message after petalinux-build is:

ERROR: petalinux-user-image-1.0-r0 do_rootfs: [log_check] petalinux-user-image: found 1 error message in the logfile:
[log_check] ERROR: ld.so: object '/lib/$LIB/liblsp.so' from /etc/ld.so.preload cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.

ERROR: petalinux-user-image-1.0-r0 do_rootfs: Function failed: do_rootfs
ERROR: Logfile of failure stored in: /home/user/project/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/petalinux-user-image/1.0-r0/temp/log.do_rootfs.13921
ERROR: Task (/home/user/project/project-spec/meta-plnx-generated/recipes-core/images/petalinux-user-image.bb:do_rootfs) failed with exit code '1'

What could be wrong?

0 Kudos
8 Replies
Scholar watari
Scholar
324 Views
Registered: ‎06-16-2013

Re: petalinux 2019.1 "petalinux-build" (wrong ELF class: ELFCLASS64)

Hi playclose4@yahoo.com 

 

Would you share the following file ?

 

/home/svc/xproject/fmc130e_v12_z045_fm212x1g8/project/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/petalinux-user-image/1.0-r0/temp/log.do_rootfs.13921

 

Best regards,

0 Kudos
307 Views
Registered: ‎10-09-2019

Re: petalinux 2019.1 "petalinux-build" (wrong ELF class: ELFCLASS64)

File attached

0 Kudos
Scholar watari
Scholar
295 Views
Registered: ‎06-16-2013

Re: petalinux 2019.1 "petalinux-build" (wrong ELF class: ELFCLASS64)

Hi playclose4@yahoo.com 

 

Would you execute the following command before building rootfs ?

 

$ unset LD_PRELOAD

 

Best regards

 

0 Kudos
262 Views
Registered: ‎10-09-2019

Re: petalinux 2019.1 "petalinux-build" (wrong ELF class: ELFCLASS64)

I did unset LD_PRELOAD. No result.

But at first, I did it with default kernel build settings and successfully built project. Then I repeat it with my settings and got an error as same as it was.

 

0 Kudos
Scholar watari
Scholar
239 Views
Registered: ‎06-16-2013

Re: petalinux 2019.1 "petalinux-build" (wrong ELF class: ELFCLASS64)

Hi playclose4@yahoo.com 

 

Could you tell me what OS (distributor) do you use on your host ? Ubuntu 18.04?

 

Best regards,

0 Kudos
234 Views
Registered: ‎10-09-2019

Re: petalinux 2019.1 "petalinux-build" (wrong ELF class: ELFCLASS64)

Ubuntu 18.04
0 Kudos
Scholar watari
Scholar
211 Views
Registered: ‎06-16-2013

Re: petalinux 2019.1 "petalinux-build" (wrong ELF class: ELFCLASS64)

Hi playclose4@yahoo.com 

 

Would you share the followings ?

 

$ echo $LIB

$ ls -lA /etc/ld.so*

$ cat /etc/ld.so.preload

 

Best regards,

0 Kudos
158 Views
Registered: ‎10-09-2019

Re: petalinux 2019.1 "petalinux-build" (wrong ELF class: ELFCLASS64)

watari

$ echo $LIB

$ ls -lA /etc/ld.so*
-rw-r--r-- 1 root root 141811 Oct 14 16:13 /etc/ld.so.cache
-rw-r--r-- 1 root root 34 Jan 27 2016 /etc/ld.so.conf
-rw-r--r-- 1 root root 20 Oct 14 16:07 /etc/ld.so.preload

/etc/ld.so.conf.d:
total 24
-rw-r--r-- 1 root root 38 Jan 8 2018 fakeroot-x86_64-linux-gnu.conf
-rw-r--r-- 1 root root 168 Apr 17 2018 i386-linux-gnu.conf
-rw-r--r-- 1 root root 44 Jan 27 2016 libc.conf
-rw-r--r-- 1 root root 100 Apr 17 2018 x86_64-linux-gnu.conf
-rw-r--r-- 1 root root 56 Apr 17 2018 zz_i386-biarch-compat.conf
-rw-r--r-- 1 root root 58 Apr 17 2018 zz_x32-biarch-compat.conf

$ cat /etc/ld.so.preload
/lib/$LIB/liblsp.so

0 Kudos