[yocto] : warning creating a DT_TEXTREL in a shared object.

BHARATH RAJ kernelraj at gmail.com
Wed Sep 14 23:14:04 PDT 2016


Hi All,


I am now trying to build one recipe on Yocto 2.0 based environment.

However, I am seeing following warning & stops the build.I wonder if
this is a known problem and you already have workaround?


arm-pokymllib32-linux-gnueabi/5.2.0/ld: warning: creating a DT_TEXTREL
in a shared object.


This warning/error did not happen with Yocto 1.8 based build, So, it
can be tool-chain issue



|
/local/mnt/workspace/bharath/OpenCL/AGL_NEW/poky/build/tmp-glibc/sysroots/x86_64-linux/usr/bin/arm-pokymllib32-linux-gnueabi/arm-pokymllib32-linux-gnueabi-g++
-Wl,-soname,libgsl.so -Wl,--gc-sections -shared
 -L/local/mnt/workspace/bharath/OpenCL/AGL_NEW/poky/build/tmp-glibc/work-shared/compat_build_artifacts/target/product/obj/lib

 /local/mnt/workspace/bharath/OpenCL/AGL_NEW/poky/build/tmp-glibc/work-shared/compat_build_artifacts/target/product/obj/SHARED_LIBRARIES/libgsl_intermediates/gsl/user/src/gsl_lib.o
/local/mnt/workspace/bharath/OpenCL/AGL_NEW/poky/build/tmp-glibc/work-shared/compat_build_artifacts/target/product/obj/SHARED_LIBRARIES/libgsl_intermediates/gsl/user/src/gsl_pm4cc.o
/local/mnt/workspace/bharath/OpenCL/AGL_NEW/poky/build/tmp-glibc/work-shared/compat_build_artifacts/target/product/obj/SHARED_LIBRARIES/libgsl_intermediates/gsl/user/src/gsl_pm4cc_xxx.o
/local/mnt/workspace/bharath/OpenCL/AGL_NEW/poky/build/tmp-glibc/work-shared/compat_build_artifacts/target/product/obj/SHARED_LIBRARIES/libgsl_intermediates/gsl/user/src/gsl_pm4cc_xxx.o
/local/mnt/workspace/bharath/OpenCL/AGL_NEW/poky/build/tmp-glibc/work-shared/compat_build_artifacts/target/product/obj/SHARED_LIBRARIES/libgsl_intermediates/gsl/user/src/gsl_pm4cc_xxx.o
/local/mnt/workspace/bharath/OpenCL/AGL_NEW/poky/build/tmp-glibc/work-shared/compat_build_artifacts/target/product/obj/SHARED_LIBRARIES/libgsl_intermediates/gsl/user/src/gsl_pm4cc_xxx.o
/local/mnt/workspace/bharath/OpenCL/AGL_NEW/poky/build/tmp-glibc/work-shared/compat_build_artifacts/target/product/obj/SHARED_LIBRARIES/libgsl_intermediates/gsl/user/src/pm4cc_os_wrapper.o
/local/mnt/workspace/bharath/OpenCL/AGL_NEW/poky/build/tmp-glibc/work-shared/compat_build_artifacts/target/product/obj/SHARED_LIBRARIES/libgsl_intermediates/gsl/user/src/gsl_sync_base.o
/local/mnt/workspace/bharath/OpenCL/AGL_NEW/poky/build/tmp-glibc/work-shared/compat_build_artifacts/target/product/obj/SHARED_LIBRARIES/libgsl_intermediates/gsl/user/src/gsl_umd_sync.o
/local/mnt/workspace/bharath/OpenCL/AGL_NEW/poky/build/tmp-glibc/work-shared/compat_build_artifacts/target/product/obj/SHARED_LIBRARIES/libgsl_intermediates/gsl/user/src/linux/gsl_linux_sync.o
/local/mnt/workspace/bharath/OpenCL/AGL_NEW/poky/build/tmp-glibc/work-shared/compat_build_artifacts/target/product/obj/SHARED_LIBRARIES/libgsl_intermediates/gsl/user/src/linux/gsl_lib_ext.o
/local/mnt/workspace/bharath/OpenCL/AGL_NEW/poky/build/tmp-glibc/work-shared/compat_build_artifacts/target/product/obj/SHARED_LIBRARIES/libgsl_intermediates/gsl/user/src/linux/gsl_ioctl.o
/local/mnt/workspace/bharath/OpenCL/AGL_NEW/poky/build/tmp-glibc/work-shared/compat_build_artifacts/target/product/obj/SHARED_LIBRARIES/libgsl_intermediates/os/user/src/linux/os_lib.o
/local/mnt/workspace/bharath/OpenCL/AGL_NEW/poky/build/tmp-glibc/work-shared/compat_build_artifacts/target/product/obj/SHARED_LIBRARIES/libgsl_intermediates/panel/panel.o
       -Wl,--whole-archive   -Wl,--no-whole-archive        -o
/local/mnt/workspace/bharath/OpenCL/AGL_NEW/poky/build/tmp-glibc/work-shared/compat_build_artifacts/target/product/obj/SHARED_LIBRARIES/libgsl_intermediates/LINKED/libgsl.so
 --sysroot=/local/mnt/workspace/bharath/OpenCL/AGL_NEW/poky/build/tmp-glibc/sysroots/
-lpthread -ldl -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now
-Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--fix-cortex-a8 -Wl,-O1
-Wl,--hash-style=gnu -Wl,--as-needed -Wl,-z,relro,-z,now -lcutils
-lglib-2.0 -lpthread -lxml2 -lz   -Wl,-O1 -Wl,--hash-style=gnu
-Wl,--as-needed -Wl,-z,relro,-z,now -lcutils -lglib-2.0 -lpthread -lxml2
-lz -Wl,--no-undefined
/local/mnt/workspace/bharath/OpenCL/AGL_NEW/poky/build/tmp-glibc/sysroots/usr/lib/libatomic.a
/local/mnt/workspace/bharath/OpenCL/AGL_NEW/poky/build/tmp-glibc/sysroots/usr/lib/arm-pokymllib32-linux-gnueabi/5.2.0/libgcc.a
|
/local/mnt/workspace/bharath/OpenCL/AGL_NEW/poky/build/tmp-glibc/sysroots/x86_64-linux/usr/libexec/arm-pokymllib32-linux-gnueabi/gcc/arm-pokymllib32-linux-gnueabi/5.2.0/ld:
warning: creating a DT_TEXTREL in a shared object.
| collect2: error: ld returned 1 exit status
| make: ***
[/local/mnt/workspace/bharath/OpenCL/AGL_NEW/poky/build/tmp-glibc/work-shared/compat_build_artifacts/target/product/obj/SHARED_LIBRARIES/libgsl_intermediates/LINKED/libgsl.so]
Error 1


Regards
Bharath
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160914/ef1c238e/attachment.html>


More information about the yocto mailing list