Wind River Support Network

HomeDefectsLIN6-9200
Fixed

LIN6-9200 : screen: build fails "arm-wrs-linux-gnueabi/bin/ld: cannot find -lelf"

Created: Jan 9, 2015    Updated: Dec 3, 2018
Resolved Date: Jan 21, 2015
Found In Version: 6.0
Fix Version: 6.0.0.17
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Userspace

Description

arm-wrs-linux-gnueabi-gcc  -march=armv7-a -marm -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -tthumb2-v7-a-neon --sysroot=/ala-blade3.1/builds-2015-01-09-082251/fsl-imx6_std/bitbake_build/tmp/sysroots/fsl-imx6 -Wl,-O1 -Wl,--hash-style=gnu -o screen screen.o ansi.o fileio.o mark.o misc.o resize.o socket.o search.o tty.o term.o window.o utmp.o loadav.o putenv.o help.o termcap.o input.o attacher.o pty.o process.o display.o comm.o kmapdef.o acls.o braille.o braille_tsi.o logfile.o l
ayer.o sched.o teln.o nethack.o encoding.o -lcrypt -lutil -lncursesw -lcurses  -lelf -lpam
/ala-blade3.1/wrlinux-x/layers/binary-toolchain-4.8-40/bin/../lib/gcc/arm-wrs-linux-gnueabi/4.8.1/../../../../arm-wrs-linux-gnueabi/bin/ld: cannot find -lelf
collect2: error: ld returned 1 exit status
make: *** [screen] Error 1

Workaround

Apply the attached patch to OE, to prevent screen linking against libelf.

Steps to Reproduce

Configure a build with:
--enable-board=fsl-imx6 \
--enable-rootfs=glibc-std \
--enable-kernel=standard \
--enable-bootimage=noimage

Other Downloads


Live chat
Online