| Summary: | Python3 modules not build | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | condo4 <fabien.proriol> |
| Component: | devtools / tool chain | Assignee: | Robert Yang <liezhi.yang> |
| Status: | VERIFIED FIXED | QA Contact: | Bogdan Alexandru Voiculescu <bogdanx.a.voiculescu> |
| Severity: | normal | ||
| Priority: | Medium | CC: | bogdanx.a.voiculescu, meta.mr.watcher, meta.watcher, petan679, poky.bs.watcher, poky.watcher |
| Version: | 1.8 | ||
| Target Milestone: | 1.9 M1 | ||
| Hardware: | x86 | ||
| OS: | arm | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
|
Description
condo4
2015-04-30 12:01:55 UTC
Robert, could you take a look at this? I tried on fido and master branch, both of them are OK, so mark it as need info: $ rpm -qpl tmp/deploy/rpm/i586/python3-elementtree-3.3.3-r1.0.i586.rpm /usr /usr/lib /usr/lib/python3.3 /usr/lib/python3.3/lib-dynload /usr/lib/python3.3/lib-dynload/_elementtree.cpython-33m.so $ rpm -qpl tmp/deploy/rpm/i586/python3-fcntl-3.3.3-r1.0.i586.rpm /usr /usr/lib /usr/lib/python3.3 /usr/lib/python3.3/lib-dynload /usr/lib/python3.3/lib-dynload/fcntl.cpython-33m.so I build for armv7a_vfp_neon architecture... I don't know if it can change somethings... In my case, ls -l tmp/work/armv7a-vfp-neon-jdsu-linux-gnueabi/python3/3.3.3-r1.0/packages-split/python3-elementtree/ total 0 ls -l tmp/work/armv7a-vfp-neon-jdsu-linux-gnueabi/python3/3.3.3-r1.0/packages-split/python3-fcntl/ total 0 Since this folders are empty, there is no RPM generate, so, in tmp/deploy/rpm/armv7a_vfp_neon there is no python3-fcntl*.rpm In fact, "find tmp/work/armv7a-vfp-neon-jdsu-linux-gnueabi/python3/3.3.3-r1.0/build/ -name "*cpython-33m*"" return nothing, so, all native lib are missings... In the do_configure, I can find: /home/foo/Yocto/fido/build/target/tmp/sysroots/x86_64-linux/usr/libexec/arm-bar-linux-gnueabi/gcc/arm-bar-linux-gnueabi/4.9.2/ld: build/temp.linux-arm-3.3/home/foo/Yocto/fido/build/mts1000/tmp/work/armv7a-vfp-neon-bar-linux-gnueabi/python3/3.3.3-r1.0/Python-3.3.3/Modules/_struct.o: relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC build/temp.linux-arm-3.3/home/foo/Yocto/fido/build/mts1000/tmp/work/armv7a-vfp-neon-bar-linux-gnueabi/python3/3.3.3-r1.0/Python-3.3.3/Modules/_struct.o: error adding symbols: Bad value collect2: error: ld returned 1 exit status building '_ctypes_test' extension oops, I would say, in the do_compile... arm-my-linux-gnueabi-gcc -march=armv7-a -mfloat-abi=softfp -mfpu=neon -DNDEBUG -fno-inline -D__SOFTFP__ --sysroot=/home/foo/Yocto/fido/build/bar/tmp/sysroots/bar -O2 -pipe -g -feliminate-unused-debug-types -I/home/foo/Yocto/fido/build/bar/tmp/work/armv7a-vfp-neon-my-linux-gnueabi/python3/3.3.3-r1.0/Python-3.3.3/Include -I/home/foo/Yocto/fido/build/bar/tmp/work/armv7a-vfp-neon-my-linux-gnueabi/python3/3.3.3-r1.0/build -c /home/foo/Yocto/fido/build/bar/tmp/work/armv7a-vfp-neon-my-linux-gnueabi/python3/3.3.3-r1.0/Python-3.3.3/Modules/_struct.c -o build/temp.linux-arm-3.3/home/foo/Yocto/fido/build/bar/tmp/work/armv7a-vfp-neon-my-linux-gnueabi/python3/3.3.3-r1.0/Python-3.3.3/Modules/_struct.o I think the problem is -fPIC was missing... With dizzy, I added a bbappend with SRC_URI_remove = "file://python3-use-CROSSPYTHONPATH-for-PYTHON_FOR_BUILD.patch" To fix the same problem... In this case (this is working), I have following logs (with -fPIC): arm-my-linux-gnueabi-gcc -march=armv7-a -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -DNDEBUG -fno-inline -D__SOFTFP__ --sysroot=/home/foo/Yocto/dizzy/build/bar/tmp/sysroots/bar -fPIC -Wno-unused-result -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -O2 -pipe -g -feliminate-unused-debug-types -O2 -pipe -g -feliminate-unused-debug-types -I./Include -I. -IInclude -I/home/foo/Yocto/dizzy/build/bar/tmp/work/armv7a-vfp-neon-my-linux-gnueabi/python3/3.3.3-r0.0/Python-3.3.3/Include -I/home/foo/Yocto/dizzy/build/bar/tmp/work/armv7a-vfp-neon-my-linux-gnueabi/python3/3.3.3-r0.0/Python-3.3.3 -c /home/foo/Yocto/dizzy/build/bar/tmp/work/armv7a-vfp-neon-my-linux-gnueabi/python3/3.3.3-r0.0/Python-3.3.3/Modules/_struct.c -o build/temp.linux-arm-3.3/home/foo/Yocto/dizzy/build/bar/tmp/work/armv7a-vfp-neon-my-linux-gnueabi/python3/3.3.3-r0.0/Python-3.3.3/Modules/_struct.o Hi, I tried MACHINE=qemuarm which is armv5e, it also works well for me, where can I get your MACHINE's layer, please ? (In reply to comment #6) In my <machine>.conf I have: require conf/machine/include/tune-zynq.inc IMAGE_FSTYPES ?= "cpio tar.gz" IMAGE_CLASSES += "image_types_uboot" KERNEL_IMAGETYPE = "uImage.fit" KERNEL_ITB_BASE_NAME="zynq-nymphea" MACHINE_FEATURES += " mtp zynq qt5 " QEMU_TARGETS = "arm" I have many other option, but it is own configurations or kernel specific options... In any case, the board use a Xilinx Zynq from layer https://github.com/Xilinx/meta-xilinx from branch dizzy (I will update to fido, but there is only 1 change... I try to apply it in my conf (9b386bc9f7710643cc76672e5f1d21f909b51500) I can also confirm this bug. I am building for i.Mx6 with the Freescale community BSP. petber@petber-linux-laptop:/work/yocto/fido/qep$ ls -la tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/python3/3.3.3-r1.0/packages-split/python3-elementtree/ total 8 drwxr-xr-x 2 petber petber 4096 May 13 16:08 . drwxr-xr-x 72 petber petber 4096 May 13 16:08 .. petber@petber-linux-laptop:/work/yocto/fido/qep$ ls -la tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/python3/3.3.3-r1.0/packages-split/python3-fcntl/ total 8 drwxr-xr-x 2 petber petber 4096 May 13 16:08 . drwxr-xr-x 72 petber petber 4096 May 13 16:08 .. When my image is baked I get this error: error: Can't install python3-subprocess-3.3.3-r1.0.0@cortexa9hf_vfp_neon: no package provides python3-fcntl Could you try to reproduce with this BSP if you not have succeeded with the Zync? (https://github.com/Freescale/fsl-community-bsp-platform) Robert, It appears your questions have been answered. Please reword the question if you need additional information. I am moving this to New. Merged into master: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=63a409ae683236591f19e3c553e11c35aff84128 verified on poky c80b582212336044c55052ad0d39f9da06d71438 using https://github.com/Freescale/fsl-community-bsp-platform and building manually python3 recipe after a core-image-sato. ./python3-fcntl/usr/lib/python3.3/lib-dynload/fcntl.cpython-33m.so ./python3-elementtree/usr/lib/python3.3/lib-dynload/_elementtree.cpython-33m.so |