[ELDK] QA Issue: python3 modules ELF binary has relocations in .text

Panagiotis Tamtamis tamtamis at gmail.com
Sat May 23 11:40:33 CEST 2015


Hello,

After build I have the following warnings:

#bitbake python3


.......
WARNING: QA Issue: ELF binary
'/home/tamis/straus/opt/eldk/build/p2020-v5.6_20150512-2015-03-03-3449f10-e500v2/tmp/work/ppce500v2-linux-gnuspe/python3/3.3.3-r0.0/packages-split/python3-misc/usr/lib/python3.3/lib-dynload/_
datetime.cpython-33m.so' has relocations in .text
WARNING: QA Issue: ELF binary
'/home/tamis/straus/opt/eldk/build/p2020-v5.6_20150512-2015-03-03-3449f10-e500v2/tmp/work/ppce500v2-linux-gnuspe/python3/3.3.3-r0.0/packages-split/python3-misc/usr/lib/python3.3/lib-dynload/_
lzma.cpython-33m.so' has relocations in .text
WARNING: QA Issue: ELF binary
'/home/tamis/straus/opt/eldk/build/p2020-v5.6_20150512-2015-03-03-3449f10-e500v2/tmp/work/ppce500v2-linux-gnuspe/python3/3.3.3-r0.0/packages-split/python3-misc/usr/lib/python3.3/lib-dynload/
xxlimited.cpython-33m.so' has relocations in .text
WARNING: QA Issue: ELF binary
'/home/tamis/straus/opt/eldk/build/p2020-v5.6_20150512-2015-03-03-3449f10-e500v2/tmp/work/ppce500v2-linux-gnuspe/python3/3.3.3-r0.0/packages-split/python3-misc/usr/lib/python3.3/lib-dynload/_
testbuffer.cpython-33m.so' has relocations in .text
WARNING: QA Issue: ELF binary
'/home/tamis/straus/opt/eldk/build/p2020-v5.6_20150512-2015-03-03-3449f10-e500v2/tmp/work/ppce500v2-linux-gnuspe/python3/3.3.3-r0.0/packages-split/python3-misc/usr/lib/python3.3/lib-dynload/_
testcapi.cpython-33m.so' has relocations in .text
WARNING: QA Issue: ELF binary
'/home/tamis/straus/opt/eldk/build/p2020-v5.6_20150512-2015-03-03-3449f10-e500v2/tmp/work/ppce500v2-linux-gnuspe/python3/3.3.3-r0.0/packages-split/python3-misc/usr/lib/python3.3/lib-dynload/_
posixsubprocess.cpython-33m.so' has relocations in .text
WARNING: QA Issue: ELF binary
'/home/tamis/straus/opt/eldk/build/p2020-v5.6_20150512-2015-03-03-3449f10-e500v2/tmp/work/ppce500v2-linux-gnuspe/python3/3.3.3-r0.0/packages-split/python3-misc/usr/lib/python3.3/lib-dynload/_
sha1.cpython-33m.so' has relocations in .text



I gone to build log and I saw the following:


.....
powerpc-linux-gnuspe-gcc  -m32 -mcpu=8548 -mabi=spe -mspe
-mfloat-gprs=double -DNDEBUG -fno-inline
--sysroot=/home/tamis/straus/opt/eldk/build/p2020-v5.6_20150512-2015-03-03-3449f10-e500v2/tmp/sysroots/p2020rdb
-c -Wno-unused-result -O2 -pipe -g -feliminate-unused-debug-types -O2 -pipe
-g -feliminate-unused-debug-types  -O2 -pipe -g
-feliminate-unused-debug-types   -I. -IInclude -I./Include   -fPIC
-DPy_BUILD_CORE -o Python/symtable.o Python/symtable.c
powerpc-linux-gnuspe-gcc  -m32 -mcpu=8548 -mabi=spe -mspe
-mfloat-gprs=double -DNDEBUG -fno-inline
--sysroot=/home/tamis/straus/opt/eldk/build/p2020-v5.6_20150512-2015-03-03-3449f10-e500v2/tmp/sysroots/p2020rdb
-c -Wno-unused-result -O2 -pipe -g -feliminate-unused-debug-types -O2 -pipe
-g -feliminate-unused-debug-types  -O2 -pipe -g
-feliminate-unused-debug-types   -I. -IInclude -I./Include   -fPIC
-DPy_BUILD_CORE -o Python/graminit.o Python/graminit.c
......

running build
running build_ext
INFO: Can't locate Tcl/Tk libs and/or headers
building '_struct' extension
creating build/temp.linux-powerpc-3.3
creating build/temp.linux-powerpc-3.3/home
creating build/temp.linux-powerpc-3.3/home/tamis
creating build/temp.linux-powerpc-3.3/home/tamis/straus
creating build/temp.linux-powerpc-3.3/home/tamis/straus/opt
creating build/temp.linux-powerpc-3.3/home/tamis/straus/opt/eldk
creating build/temp.linux-powerpc-3.3/home/tamis/straus/opt/eldk/build
creating
build/temp.linux-powerpc-3.3/home/tamis/straus/opt/eldk/build/p2020-v5.6_20150512-2015-03-03-3449f10-e500v2
creating
build/temp.linux-powerpc-3.3/home/tamis/straus/opt/eldk/build/p2020-v5.6_20150512-2015-03-03-3449f10-e500v2/tmp
creating
build/temp.linux-powerpc-3.3/home/tamis/straus/opt/eldk/build/p2020-v5.6_20150512-2015-03-03-3449f10-e500v2/tmp/work
creating
build/temp.linux-powerpc-3.3/home/tamis/straus/opt/eldk/build/p2020-v5.6_20150512-2015-03-03-3449f10-e500v2/tmp/work/ppce500v2-linux-gnuspe
creating
build/temp.linux-powerpc-3.3/home/tamis/straus/opt/eldk/build/p2020-v5.6_20150512-2015-03-03-3449f10-e500v2/tmp/work/ppce500v2-linux-gnuspe/python3
creating
build/temp.linux-powerpc-3.3/home/tamis/straus/opt/eldk/build/p2020-v5.6_20150512-2015-03-03-3449f10-e500v2/tmp/work/ppce500v2-linux-gnuspe/python3/3.3.3-r0.0
creating
build/temp.linux-powerpc-3.3/home/tamis/straus/opt/eldk/build/p2020-v5.6_20150512-2015-03-03-3449f10-e500v2/tmp/work/ppce500v2-linux-gnuspe/python3/3.3.3-r0.0/Python-3.3.3
creating
build/temp.linux-powerpc-3.3/home/tamis/straus/opt/eldk/build/p2020-v5.6_20150512-2015-03-03-3449f10-e500v2/tmp/work/ppce500v2-linux-gnuspe/python3/3.3.3-r0.0/Python-3.3.3/Modules

powerpc-linux-gnuspe-gcc -m32 -mcpu=8548 -mabi=spe -mspe
-mfloat-gprs=double -DNDEBUG -fno-inline
--sysroot=/home/tamis/straus/opt/eldk/build/p2020-v5.6_20150512-2015-03-03-3449f10-e500v2/tmp/sysroots/p2020rdb
-O2 -pipe -g -feliminate-unused-debug-types
-I/home/tamis/straus/opt/eldk/build/p2020-v5.6_20150512-2015-03-03-3449f10-e500v2/tmp/work/ppce500v2-linux-gnuspe/python3/3.3.3-r0.0/Python-3.3.3/Include
-I/home/tamis/straus/opt/eldk/build/p2020-v5.6_20150512-2015-03-03-3449f10-e500v2/tmp/work/ppce500v2-linux-gnuspe/python3/3.3.3-r0.0/Python-3.3.3
-c
/home/tamis/straus/opt/eldk/build/p2020-v5.6_20150512-2015-03-03-3449f10-e500v2/tmp/work/ppce500v2-linux-gnuspe/python3/3.3.3-r0.0/Python-3.3.3/Modules/_struct.c
-o
build/temp.linux-powerpc-3.3/home/tamis/straus/opt/eldk/build/p2020-v5.6_20150512-2015-03-03-3449f10-e500v2/tmp/work/ppce500v2-linux-gnuspe/python3/3.3.3-r0.0/Python-3.3.3/Modules/_struct.o

powerpc-linux-gnuspe-gcc -m32 -mcpu=8548 -mabi=spe -mspe
-mfloat-gprs=double -DNDEBUG -fno-inline
--sysroot=/home/tamis/straus/opt/eldk/build/p2020-v5.6_20150512-2015-03-03-3449f10-e500v2/tmp/sysroots/p2020rdb
-shared -L.
-L/home/tamis/straus/opt/eldk/build/p2020-v5.6_20150512-2015-03-03-3449f10-e500v2/tmp/sysroots/p2020rdb/usr/lib
-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu
-Wl,--as-needed -O2 -pipe -g -feliminate-unused-debug-types
build/temp.linux-powerpc-3.3/home/tamis/straus/opt/eldk/build/p2020-v5.6_20150512-2015-03-03-3449f10-e500v2/tmp/work/ppce500v2-linux-gnuspe/python3/3.3.3-r0.0/Python-3.3.3/Modules/_struct.o
-L=/home/tamis/straus/opt/eldk/build/p2020-v5.6_20150512-2015-03-03-3449f10-e500v2/tmp/sysroots/p2020rdb/usr/lib
-lpython3.3m -o build/lib.linux-powerpc-3.3/_struct.cpython-33m.so
building '_ctypes_test' extension

.....


At first the -fPIC compile option exists but then at the modules /
extensions compile it the -fPIC option disappears. And the compile options
are not exactly the same.
Can please explain me why this is happening and not the same options are
not used? Or how can I add again the -fPIC option?

Thanks a lot in advance,
Tamis

-- 
Think simple!


More information about the eldk mailing list