All of lore.kernel.org
 help / color / mirror / Atom feed
* Linker error undefined reference to `_rtld_global_ro'
@ 2020-07-13 11:21 Robert Varga
  2020-07-13 16:51 ` [yocto] " Khem Raj
  0 siblings, 1 reply; 10+ messages in thread
From: Robert Varga @ 2020-07-13 11:21 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 2148 bytes --]

Hello,

I am new to the Yocto project and need some help in solving a linker issue when compiling/linking an application using the SDK. It seems, that the compilation is completed, but the linker could not resolve to "_rtld_global_ro". Here is the output of the last stage
<snip>
...
/opt/mydistro/1.0.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/8.3.0/real-ld: /opt/mydistro/1.0.0/sysroots/cortexa9t2hf-neon-poky-linux-gnueabi/usr/lib/libc.a(getcontext.o): in function `getcontext':
/usr/src/debug/glibc/2.29-r0/git/stdlib/../sysdeps/unix/sysv/linux/arm/getcontext.S:101: undefined reference to `_rtld_global_ro'
/opt/mydistro/1.0.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/8.3.0/real-ld: /opt/mydistro/1.0.0/sysroots/cortexa9t2hf-neon-poky-linux-gnueabi/usr/lib/libc.a(setcontext.o): in function `__startcontext':
/usr/src/debug/glibc/2.29-r0/git/stdlib/../sysdeps/unix/sysv/linux/arm/setcontext.S:100: undefined reference to `_rtld_global_ro'
collect2: error: ld returned 1 exit status
makefile:116: recipe for target 'ortable' failed
make: *** [ortable] Error 1
</snip>

What I can see from the output is, that both getcontext.S and setcontext.S are referencing to "_rtld_global_ro". What I do not understand is, why the glibc is located in the debug folder? Is this probably the issue?

I have sourced the SDK using following command:
source /opt/mydistro/1.0.0/environment-setup-cortexa9t2hf-neon-poky-linux-gnueabi

Here's image bb file (which I have used for building the SDK using this command (bitbake my-image -c populate_sdk).

require recipes-extended/images/core-image-full-cmdline.bb

IMAGE_INSTALL_append = " \
emmy-w1-driver-sdiosdio \
emmy-w1-systemd \
eth-systemd \
can-systemd \
can-utils \
lighttpd \
dnsmasq \
parted \
swupdate \
swupdate-www \
u-boot-fw-utils \
linux-firmware-imx-sdma-imx6q \
"

TOOLCHAIN_HOST_TASK_append = " nativesdk-perl-modules"
SDKIMAGE_FEATURES_append = " staticdev-pkgs"

Any help on resolving this issue would be greatly appreciated.

Thanks.
--

Rob

[-- Attachment #2: Type: text/html, Size: 2745 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-07-23 12:42 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-13 11:21 Linker error undefined reference to `_rtld_global_ro' Robert Varga
2020-07-13 16:51 ` [yocto] " Khem Raj
2020-07-14  7:53   ` Robert Varga
2020-07-14 15:45     ` [yocto] " Khem Raj
2020-07-15 14:36       ` Robert Varga
2020-07-16 19:59         ` [yocto] " Khem Raj
2020-07-17  7:51           ` Robert Varga
2020-07-21 15:07             ` Robert Varga
2020-07-21 19:10               ` [yocto] " Khem Raj
2020-07-23 12:42                 ` Robert Varga

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.