* [Buildroot] Building host-python-2.7.15 Failed
@ 2019-01-19 16:15 Woody Wu
2019-01-19 16:33 ` Vadim Kochan
` (2 more replies)
0 siblings, 3 replies; 14+ messages in thread
From: Woody Wu @ 2019-01-19 16:15 UTC (permalink / raw)
To: buildroot
Hi,
This is buildroot-2018.11.1. I found I cannot build some packages with
buildroot, the problem seemed in the building of the host-python. Below is
the log:
>>> host-python 2.7.15 Building
PATH="/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/bin:/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/sbin:/opt/linaro/gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabihf/bin:/home/woody/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin"
PKG_CONFIG="/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/bin/pkg-config"
PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1
PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
PKG_CONFIG_LIBDIR="/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib/pkgconfig:/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/share/pkgconfig"
/usr/bin/make -j1 -C
/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/
running build
running build_ext
INFO: Can't locate Tcl/Tk libs and/or headers
building 'crypt' extension
/usr/bin/gcc -pthread -fPIC -fno-strict-aliasing -O2
-I/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/include
-DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include
-I/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/include
-I/usr/include/x86_64-linux-gnu -I/usr/local/include
-I/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/Include
-I/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15
-c
/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/Modules/cryptmodule.c
-o
build/temp.linux-x86_64-2.7/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/Modules/cryptmodule.o
/usr/bin/gcc -pthread -shared
-L/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib
-Wl,-rpath,/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib
-Wl,--enable-new-dtags
build/temp.linux-x86_64-2.7/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/Modules/cryptmodule.o
-L/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib
-L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lcrypt -lpython2.7 -o
build/lib.linux-x86_64-2.7/crypt.so
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libcrypt.a(crypt-entry.o):
relocation R_X86_64_PC32 against symbol `_ufc_foobar' can not be used when
making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
Python build finished, but the necessary bits to build these modules were
not found:
_bsddb _sqlite3 _tkinter
bsddb185 bz2 dbm
dl gdbm imageop
readline sunaudiodev
To find the necessary bits, look in setup.py in detect_modules() for the
module's name.
Failed to build these modules:
crypt
=============
Can someone have a look at it and give me a hint?
Thanks!
--
Life is the only flaw in an otherwise perfect nonexistence
-- Schopenhauer
woody
public key at http://subkeys.pgp.net:11371 (narkewoody at gmail.com)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20190120/a519bf0b/attachment.html>
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Buildroot] Building host-python-2.7.15 Failed 2019-01-19 16:15 [Buildroot] Building host-python-2.7.15 Failed Woody Wu @ 2019-01-19 16:33 ` Vadim Kochan 2019-01-20 12:51 ` Woody Wu 2019-01-25 23:34 ` Arnout Vandecappelle 2019-01-26 14:09 ` Thomas Petazzoni 2 siblings, 1 reply; 14+ messages in thread From: Vadim Kochan @ 2019-01-19 16:33 UTC (permalink / raw) To: buildroot Hi Woody, On Sun, Jan 20, 2019 at 12:15:36AM +0800, Woody Wu wrote: > Hi, > > This is buildroot-2018.11.1. I found I cannot build some packages with > buildroot, the problem seemed in the building of the host-python. Below is > the log: > > >>> host-python 2.7.15 Building > PATH="/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/bin:/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/sbin:/opt/linaro/gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabihf/bin:/home/woody/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin" > PKG_CONFIG="/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/bin/pkg-config" > PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 > PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 > PKG_CONFIG_LIBDIR="/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib/pkgconfig:/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/share/pkgconfig" > /usr/bin/make -j1 -C > /home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/ > running build > running build_ext > INFO: Can't locate Tcl/Tk libs and/or headers > building 'crypt' extension > /usr/bin/gcc -pthread -fPIC -fno-strict-aliasing -O2 > -I/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/include > -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include > -I/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/include > -I/usr/include/x86_64-linux-gnu -I/usr/local/include > -I/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/Include > -I/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15 > -c > /home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/Modules/cryptmodule.c > -o > build/temp.linux-x86_64-2.7/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/Modules/cryptmodule.o > /usr/bin/gcc -pthread -shared > -L/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib > -Wl,-rpath,/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib > -Wl,--enable-new-dtags > build/temp.linux-x86_64-2.7/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/Modules/cryptmodule.o > -L/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib > -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lcrypt -lpython2.7 -o > build/lib.linux-x86_64-2.7/crypt.so > /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libcrypt.a(crypt-entry.o): > relocation R_X86_64_PC32 against symbol `_ufc_foobar' can not be used when > making a shared object; recompile with -fPIC > /usr/bin/ld: final link failed: bad value > collect2: error: ld returned 1 exit status > > Python build finished, but the necessary bits to build these modules were > not found: > _bsddb _sqlite3 _tkinter > bsddb185 bz2 dbm > dl gdbm imageop > readline sunaudiodev > To find the necessary bits, look in setup.py in detect_modules() for the > module's name. > > Failed to build these modules: > crypt > ============= > > Can someone have a look at it and give me a hint? > > Thanks! > > > -- > Life is the only flaw in an otherwise perfect nonexistence > -- Schopenhauer > > woody > public key at http://subkeys.pgp.net:11371 (narkewoody at gmail.com) > _______________________________________________ > buildroot mailing list > buildroot at busybox.net > http://lists.busybox.net/mailman/listinfo/buildroot Can you please provide the savedefconfig ? Regards, Vadim Kochan ^ permalink raw reply [flat|nested] 14+ messages in thread
* [Buildroot] Building host-python-2.7.15 Failed 2019-01-19 16:33 ` Vadim Kochan @ 2019-01-20 12:51 ` Woody Wu 2019-01-20 14:13 ` Vadim Kochan 0 siblings, 1 reply; 14+ messages in thread From: Woody Wu @ 2019-01-20 12:51 UTC (permalink / raw) To: buildroot Hi, My savedefconfig: BR2_arm=y BR2_cortex_a8=y BR2_ARM_FPU_NEON=y BR2_DL_DIR="$(TOPDIR)/../downloads" BR2_TOOLCHAIN_EXTERNAL=y BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="$(ARCH)-linux-gnueabihf" BR2_TOOLCHAIN_EXTERNAL_GCC_7=y BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_10=y BR2_TOOLCHAIN_EXTERNAL_CUSTOM_GLIBC=y BR2_TOOLCHAIN_EXTERNAL_CXX=y BR2_PACKAGE_IOSTAT=y BR2_PACKAGE_NODEJS=y BR2_PACKAGE_PYTHON=y BTW: My building system is ubuntu 18.10. The target is armv7 On Sun, Jan 20, 2019 at 12:24 AM Vadim Kochan <vadim4j@gmail.com> wrote: > Hi Woody, > > On Sun, Jan 20, 2019 at 12:15:36AM +0800, Woody Wu wrote: > > Hi, > > > > This is buildroot-2018.11.1. I found I cannot build some packages with > > buildroot, the problem seemed in the building of the host-python. Below > is > > the log: > > > > >>> host-python 2.7.15 Building > > > PATH="/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/bin:/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/sbin:/opt/linaro/gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabihf/bin:/home/woody/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin" > > > PKG_CONFIG="/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/bin/pkg-config" > > PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 > > PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 > > > PKG_CONFIG_LIBDIR="/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib/pkgconfig:/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/share/pkgconfig" > > /usr/bin/make -j1 -C > > > /home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/ > > running build > > running build_ext > > INFO: Can't locate Tcl/Tk libs and/or headers > > building 'crypt' extension > > /usr/bin/gcc -pthread -fPIC -fno-strict-aliasing -O2 > > > -I/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/include > > -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude > -I./Include > > > -I/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/include > > -I/usr/include/x86_64-linux-gnu -I/usr/local/include > > > -I/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/Include > > > -I/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15 > > -c > > > /home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/Modules/cryptmodule.c > > -o > > > build/temp.linux-x86_64-2.7/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/Modules/cryptmodule.o > > /usr/bin/gcc -pthread -shared > > > -L/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib > > > -Wl,-rpath,/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib > > -Wl,--enable-new-dtags > > > build/temp.linux-x86_64-2.7/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/Modules/cryptmodule.o > > > -L/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib > > -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lcrypt -lpython2.7 -o > > build/lib.linux-x86_64-2.7/crypt.so > > /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libcrypt.a(crypt-entry.o): > > relocation R_X86_64_PC32 against symbol `_ufc_foobar' can not be used > when > > making a shared object; recompile with -fPIC > > /usr/bin/ld: final link failed: bad value > > collect2: error: ld returned 1 exit status > > > > Python build finished, but the necessary bits to build these modules were > > not found: > > _bsddb _sqlite3 _tkinter > > bsddb185 bz2 dbm > > dl gdbm imageop > > readline sunaudiodev > > To find the necessary bits, look in setup.py in detect_modules() for the > > module's name. > > > > Failed to build these modules: > > crypt > > ============= > > > > Can someone have a look at it and give me a hint? > > > > Thanks! > > > > > > -- > > Life is the only flaw in an otherwise perfect nonexistence > > -- Schopenhauer > > > > woody > > public key at http://subkeys.pgp.net:11371 (narkewoody at gmail.com) > > > _______________________________________________ > > buildroot mailing list > > buildroot at busybox.net > > http://lists.busybox.net/mailman/listinfo/buildroot > > Can you please provide the savedefconfig ? > > Regards, > Vadim Kochan > -- Life is the only flaw in an otherwise perfect nonexistence -- Schopenhauer woody public key at http://subkeys.pgp.net:11371 (narkewoody at gmail.com) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20190120/49d4a1c8/attachment.html> ^ permalink raw reply [flat|nested] 14+ messages in thread
* [Buildroot] Building host-python-2.7.15 Failed 2019-01-20 12:51 ` Woody Wu @ 2019-01-20 14:13 ` Vadim Kochan 2019-01-20 16:08 ` Woody Wu 2019-01-24 12:18 ` Carlos Santos 0 siblings, 2 replies; 14+ messages in thread From: Vadim Kochan @ 2019-01-20 14:13 UTC (permalink / raw) To: buildroot Hi, On Sun, Jan 20, 2019 at 08:51:32PM +0800, Woody Wu wrote: > Hi, > > My savedefconfig: > > BR2_arm=y > BR2_cortex_a8=y > BR2_ARM_FPU_NEON=y > BR2_DL_DIR="$(TOPDIR)/../downloads" > BR2_TOOLCHAIN_EXTERNAL=y > BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y > BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="$(ARCH)-linux-gnueabihf" > BR2_TOOLCHAIN_EXTERNAL_GCC_7=y > BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_10=y > BR2_TOOLCHAIN_EXTERNAL_CUSTOM_GLIBC=y > BR2_TOOLCHAIN_EXTERNAL_CXX=y > BR2_PACKAGE_IOSTAT=y > BR2_PACKAGE_NODEJS=y > BR2_PACKAGE_PYTHON=y > > BTW: My building system is ubuntu 18.10. The target is armv7 > > > On Sun, Jan 20, 2019 at 12:24 AM Vadim Kochan <vadim4j@gmail.com> wrote: > > > Hi Woody, > > > > On Sun, Jan 20, 2019 at 12:15:36AM +0800, Woody Wu wrote: > > > Hi, > > > > > > This is buildroot-2018.11.1. I found I cannot build some packages with > > > buildroot, the problem seemed in the building of the host-python. Below > > is > > > the log: > > > > > > >>> host-python 2.7.15 Building > > > > > PATH="/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/bin:/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/sbin:/opt/linaro/gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabihf/bin:/home/woody/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin" > > > > > PKG_CONFIG="/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/bin/pkg-config" > > > PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 > > > PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 > > > > > PKG_CONFIG_LIBDIR="/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib/pkgconfig:/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/share/pkgconfig" > > > /usr/bin/make -j1 -C > > > > > /home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/ > > > running build > > > running build_ext > > > INFO: Can't locate Tcl/Tk libs and/or headers > > > building 'crypt' extension > > > /usr/bin/gcc -pthread -fPIC -fno-strict-aliasing -O2 > > > > > -I/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/include > > > -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude > > -I./Include > > > > > -I/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/include > > > -I/usr/include/x86_64-linux-gnu -I/usr/local/include > > > > > -I/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/Include > > > > > -I/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15 > > > -c > > > > > /home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/Modules/cryptmodule.c > > > -o > > > > > build/temp.linux-x86_64-2.7/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/Modules/cryptmodule.o > > > /usr/bin/gcc -pthread -shared > > > > > -L/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib > > > > > -Wl,-rpath,/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib > > > -Wl,--enable-new-dtags > > > > > build/temp.linux-x86_64-2.7/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/Modules/cryptmodule.o > > > > > -L/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib > > > -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lcrypt -lpython2.7 -o > > > build/lib.linux-x86_64-2.7/crypt.so > > > /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libcrypt.a(crypt-entry.o): > > > relocation R_X86_64_PC32 against symbol `_ufc_foobar' can not be used > > when > > > making a shared object; recompile with -fPIC > > > /usr/bin/ld: final link failed: bad value > > > collect2: error: ld returned 1 exit status > > > > > > Python build finished, but the necessary bits to build these modules were > > > not found: > > > _bsddb _sqlite3 _tkinter > > > bsddb185 bz2 dbm > > > dl gdbm imageop > > > readline sunaudiodev > > > To find the necessary bits, look in setup.py in detect_modules() for the > > > module's name. > > > > > > Failed to build these modules: > > > crypt > > > ============= > > > > > > Can someone have a look at it and give me a hint? > > > > > > Thanks! > > > So, you are using custom toolchain, I used this defconfig: BR2_arm=y BR2_cortex_a8=y BR2_ARM_FPU_NEON=y BR2_TOOLCHAIN_EXTERNAL=y BR2_PACKAGE_IOSTAT=y BR2_PACKAGE_NODEJS=y BR2_PACKAGE_PYTHON=y and it builds OK on master and 2018.11.1 tag. Regards, Vadim Kochan ^ permalink raw reply [flat|nested] 14+ messages in thread
* [Buildroot] Building host-python-2.7.15 Failed 2019-01-20 14:13 ` Vadim Kochan @ 2019-01-20 16:08 ` Woody Wu 2019-01-23 4:06 ` Woody Wu 2019-01-24 12:18 ` Carlos Santos 1 sibling, 1 reply; 14+ messages in thread From: Woody Wu @ 2019-01-20 16:08 UTC (permalink / raw) To: buildroot I tried several combination with the toolchain selections, at the last I also directly copied your config, but it's still the same error. But the last time (with your configs) the output log appeared a little different: PATH="/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/bin:/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/sbin:/opt/linaro/gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabihf/bin:/home/woody/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin" PKG_CONFIG="/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR="/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib/pkgconfig:/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/share/pkgconfig" /usr/bin/make -j1 -C /home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/ running build running build_ext INFO: Can't locate Tcl/Tk libs and/or headers building 'crypt' extension /usr/bin/gcc -pthread -fPIC -fno-strict-aliasing -O2 -I/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/Include -I/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15 -c /home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/Modules/cryptmodule.c -o build/temp.linux-x86_64-2.7/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/Modules/cryptmodule.o /usr/bin/gcc -pthread -shared -L/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib -Wl,-rpath,/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib -Wl,--enable-new-dtags build/temp.linux-x86_64-2.7/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/Modules/cryptmodule.o -L/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lcrypt -lpython2.7 -o build/lib.linux-x86_64-2.7/crypt.so Python build finished, but the necessary bits to build these modules were not found: _bsddb _sqlite3 _tkinter bsddb185 bz2 dbm dl gdbm imageop readline sunaudiodev To find the necessary bits, look in setup.py in detect_modules() for the module's name. Failed to build these modules: crypt ================ Can you guess a clue from above? Thanks! On Sun, Jan 20, 2019 at 10:04 PM Vadim Kochan <vadim4j@gmail.com> wrote: > Hi, > > On Sun, Jan 20, 2019 at 08:51:32PM +0800, Woody Wu wrote: > > Hi, > > > > My savedefconfig: > > > > BR2_arm=y > > BR2_cortex_a8=y > > BR2_ARM_FPU_NEON=y > > BR2_DL_DIR="$(TOPDIR)/../downloads" > > BR2_TOOLCHAIN_EXTERNAL=y > > BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y > > BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="$(ARCH)-linux-gnueabihf" > > BR2_TOOLCHAIN_EXTERNAL_GCC_7=y > > BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_10=y > > BR2_TOOLCHAIN_EXTERNAL_CUSTOM_GLIBC=y > > BR2_TOOLCHAIN_EXTERNAL_CXX=y > > BR2_PACKAGE_IOSTAT=y > > BR2_PACKAGE_NODEJS=y > > BR2_PACKAGE_PYTHON=y > > > > BTW: My building system is ubuntu 18.10. The target is armv7 > > > > > > On Sun, Jan 20, 2019 at 12:24 AM Vadim Kochan <vadim4j@gmail.com> wrote: > > > > > Hi Woody, > > > > > > On Sun, Jan 20, 2019 at 12:15:36AM +0800, Woody Wu wrote: > > > > Hi, > > > > > > > > This is buildroot-2018.11.1. I found I cannot build some packages > with > > > > buildroot, the problem seemed in the building of the host-python. > Below > > > is > > > > the log: > > > > > > > > >>> host-python 2.7.15 Building > > > > > > > > PATH="/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/bin:/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/sbin:/opt/linaro/gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabihf/bin:/home/woody/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin" > > > > > > > > PKG_CONFIG="/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/bin/pkg-config" > > > > PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 > > > > PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 > > > > > > > > PKG_CONFIG_LIBDIR="/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib/pkgconfig:/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/share/pkgconfig" > > > > /usr/bin/make -j1 -C > > > > > > > > /home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/ > > > > running build > > > > running build_ext > > > > INFO: Can't locate Tcl/Tk libs and/or headers > > > > building 'crypt' extension > > > > /usr/bin/gcc -pthread -fPIC -fno-strict-aliasing -O2 > > > > > > > > -I/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/include > > > > -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude > > > -I./Include > > > > > > > > -I/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/include > > > > -I/usr/include/x86_64-linux-gnu -I/usr/local/include > > > > > > > > -I/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/Include > > > > > > > > -I/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15 > > > > -c > > > > > > > > /home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/Modules/cryptmodule.c > > > > -o > > > > > > > > build/temp.linux-x86_64-2.7/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/Modules/cryptmodule.o > > > > /usr/bin/gcc -pthread -shared > > > > > > > > -L/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib > > > > > > > > -Wl,-rpath,/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib > > > > -Wl,--enable-new-dtags > > > > > > > > build/temp.linux-x86_64-2.7/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/Modules/cryptmodule.o > > > > > > > > -L/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib > > > > -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lcrypt -lpython2.7 > -o > > > > build/lib.linux-x86_64-2.7/crypt.so > > > > /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libcrypt.a(crypt-entry.o): > > > > relocation R_X86_64_PC32 against symbol `_ufc_foobar' can not be used > > > when > > > > making a shared object; recompile with -fPIC > > > > /usr/bin/ld: final link failed: bad value > > > > collect2: error: ld returned 1 exit status > > > > > > > > Python build finished, but the necessary bits to build these modules > were > > > > not found: > > > > _bsddb _sqlite3 _tkinter > > > > bsddb185 bz2 dbm > > > > dl gdbm imageop > > > > readline sunaudiodev > > > > To find the necessary bits, look in setup.py in detect_modules() for > the > > > > module's name. > > > > > > > > Failed to build these modules: > > > > crypt > > > > ============= > > > > > > > > Can someone have a look at it and give me a hint? > > > > > > > > Thanks! > > > > > > So, you are using custom toolchain, I used this defconfig: > > BR2_arm=y > BR2_cortex_a8=y > BR2_ARM_FPU_NEON=y > BR2_TOOLCHAIN_EXTERNAL=y > BR2_PACKAGE_IOSTAT=y > BR2_PACKAGE_NODEJS=y > BR2_PACKAGE_PYTHON=y > > and it builds OK on master and 2018.11.1 tag. > > Regards, > Vadim Kochan > -- Life is the only flaw in an otherwise perfect nonexistence -- Schopenhauer woody public key at http://subkeys.pgp.net:11371 (narkewoody at gmail.com) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20190121/05d8f5ce/attachment.html> ^ permalink raw reply [flat|nested] 14+ messages in thread
* [Buildroot] Building host-python-2.7.15 Failed 2019-01-20 16:08 ` Woody Wu @ 2019-01-23 4:06 ` Woody Wu 0 siblings, 0 replies; 14+ messages in thread From: Woody Wu @ 2019-01-23 4:06 UTC (permalink / raw) To: buildroot Does some else get some blue? Thanks. On Mon, Jan 21, 2019 at 12:08 AM Woody Wu <narkewoody@gmail.com> wrote: > I tried several combination with the toolchain selections, at the last I > also directly copied your config, but it's still the same error. But the > last time (with your configs) the output log appeared a little different: > > PATH="/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/bin:/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/sbin:/opt/linaro/gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabihf/bin:/home/woody/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin" > PKG_CONFIG="/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/bin/pkg-config" > PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 > PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 > PKG_CONFIG_LIBDIR="/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib/pkgconfig:/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/share/pkgconfig" > /usr/bin/make -j1 -C > /home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/ > running build > running build_ext > INFO: Can't locate Tcl/Tk libs and/or headers > building 'crypt' extension > /usr/bin/gcc -pthread -fPIC -fno-strict-aliasing -O2 > -I/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/include > -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include > -I/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/include > -I/usr/include/x86_64-linux-gnu -I/usr/local/include > -I/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/Include > -I/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15 > -c > /home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/Modules/cryptmodule.c > -o > build/temp.linux-x86_64-2.7/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/Modules/cryptmodule.o > /usr/bin/gcc -pthread -shared > -L/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib > -Wl,-rpath,/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib > -Wl,--enable-new-dtags > build/temp.linux-x86_64-2.7/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/Modules/cryptmodule.o > -L/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib > -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lcrypt -lpython2.7 -o > build/lib.linux-x86_64-2.7/crypt.so > > Python build finished, but the necessary bits to build these modules were > not found: > _bsddb _sqlite3 _tkinter > bsddb185 bz2 dbm > dl gdbm imageop > readline sunaudiodev > To find the necessary bits, look in setup.py in detect_modules() for the > module's name. > > > Failed to build these modules: > crypt > ================ > > Can you guess a clue from above? Thanks! > > > On Sun, Jan 20, 2019 at 10:04 PM Vadim Kochan <vadim4j@gmail.com> wrote: > >> Hi, >> >> On Sun, Jan 20, 2019 at 08:51:32PM +0800, Woody Wu wrote: >> > Hi, >> > >> > My savedefconfig: >> > >> > BR2_arm=y >> > BR2_cortex_a8=y >> > BR2_ARM_FPU_NEON=y >> > BR2_DL_DIR="$(TOPDIR)/../downloads" >> > BR2_TOOLCHAIN_EXTERNAL=y >> > BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y >> > BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="$(ARCH)-linux-gnueabihf" >> > BR2_TOOLCHAIN_EXTERNAL_GCC_7=y >> > BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_10=y >> > BR2_TOOLCHAIN_EXTERNAL_CUSTOM_GLIBC=y >> > BR2_TOOLCHAIN_EXTERNAL_CXX=y >> > BR2_PACKAGE_IOSTAT=y >> > BR2_PACKAGE_NODEJS=y >> > BR2_PACKAGE_PYTHON=y >> > >> > BTW: My building system is ubuntu 18.10. The target is armv7 >> > >> > >> > On Sun, Jan 20, 2019 at 12:24 AM Vadim Kochan <vadim4j@gmail.com> >> wrote: >> > >> > > Hi Woody, >> > > >> > > On Sun, Jan 20, 2019 at 12:15:36AM +0800, Woody Wu wrote: >> > > > Hi, >> > > > >> > > > This is buildroot-2018.11.1. I found I cannot build some >> packages with >> > > > buildroot, the problem seemed in the building of the host-python. >> Below >> > > is >> > > > the log: >> > > > >> > > > >>> host-python 2.7.15 Building >> > > > >> > > >> PATH="/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/bin:/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/sbin:/opt/linaro/gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabihf/bin:/home/woody/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin" >> > > > >> > > >> PKG_CONFIG="/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/bin/pkg-config" >> > > > PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 >> > > > PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 >> > > > >> > > >> PKG_CONFIG_LIBDIR="/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib/pkgconfig:/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/share/pkgconfig" >> > > > /usr/bin/make -j1 -C >> > > > >> > > >> /home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/ >> > > > running build >> > > > running build_ext >> > > > INFO: Can't locate Tcl/Tk libs and/or headers >> > > > building 'crypt' extension >> > > > /usr/bin/gcc -pthread -fPIC -fno-strict-aliasing -O2 >> > > > >> > > >> -I/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/include >> > > > -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude >> > > -I./Include >> > > > >> > > >> -I/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/include >> > > > -I/usr/include/x86_64-linux-gnu -I/usr/local/include >> > > > >> > > >> -I/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/Include >> > > > >> > > >> -I/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15 >> > > > -c >> > > > >> > > >> /home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/Modules/cryptmodule.c >> > > > -o >> > > > >> > > >> build/temp.linux-x86_64-2.7/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/Modules/cryptmodule.o >> > > > /usr/bin/gcc -pthread -shared >> > > > >> > > >> -L/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib >> > > > >> > > >> -Wl,-rpath,/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib >> > > > -Wl,--enable-new-dtags >> > > > >> > > >> build/temp.linux-x86_64-2.7/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/Modules/cryptmodule.o >> > > > >> > > >> -L/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib >> > > > -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lcrypt >> -lpython2.7 -o >> > > > build/lib.linux-x86_64-2.7/crypt.so >> > > > /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libcrypt.a(crypt-entry.o): >> > > > relocation R_X86_64_PC32 against symbol `_ufc_foobar' can not be >> used >> > > when >> > > > making a shared object; recompile with -fPIC >> > > > /usr/bin/ld: final link failed: bad value >> > > > collect2: error: ld returned 1 exit status >> > > > >> > > > Python build finished, but the necessary bits to build these >> modules were >> > > > not found: >> > > > _bsddb _sqlite3 _tkinter >> > > > bsddb185 bz2 dbm >> > > > dl gdbm imageop >> > > > readline sunaudiodev >> > > > To find the necessary bits, look in setup.py in detect_modules() >> for the >> > > > module's name. >> > > > >> > > > Failed to build these modules: >> > > > crypt >> > > > ============= >> > > > >> > > > Can someone have a look at it and give me a hint? >> > > > >> > > > Thanks! >> > > > >> >> So, you are using custom toolchain, I used this defconfig: >> >> BR2_arm=y >> BR2_cortex_a8=y >> BR2_ARM_FPU_NEON=y >> BR2_TOOLCHAIN_EXTERNAL=y >> BR2_PACKAGE_IOSTAT=y >> BR2_PACKAGE_NODEJS=y >> BR2_PACKAGE_PYTHON=y >> >> and it builds OK on master and 2018.11.1 tag. >> >> Regards, >> Vadim Kochan >> > > > -- > Life is the only flaw in an otherwise perfect nonexistence > -- Schopenhauer > > woody > public key at http://subkeys.pgp.net:11371 (narkewoody at gmail.com) > > -- Life is the only flaw in an otherwise perfect nonexistence -- Schopenhauer woody public key at http://subkeys.pgp.net:11371 (narkewoody at gmail.com) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20190123/e805c612/attachment.html> ^ permalink raw reply [flat|nested] 14+ messages in thread
* [Buildroot] Building host-python-2.7.15 Failed 2019-01-20 14:13 ` Vadim Kochan 2019-01-20 16:08 ` Woody Wu @ 2019-01-24 12:18 ` Carlos Santos 1 sibling, 0 replies; 14+ messages in thread From: Carlos Santos @ 2019-01-24 12:18 UTC (permalink / raw) To: buildroot > From: "Vadim Kochan" <vadim4j@gmail.com> > To: "Woody Wu" <narkewoody@gmail.com> > Cc: "buildroot" <buildroot@busybox.net> > Sent: Domingo, 20 de janeiro de 2019 12:13:18 > Subject: Re: [Buildroot] Building host-python-2.7.15 Failed > Hi, > > On Sun, Jan 20, 2019 at 08:51:32PM +0800, Woody Wu wrote: >> Hi, >> >> My savedefconfig: >> >> BR2_arm=y >> BR2_cortex_a8=y >> BR2_ARM_FPU_NEON=y >> BR2_DL_DIR="$(TOPDIR)/../downloads" >> BR2_TOOLCHAIN_EXTERNAL=y >> BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y >> BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="$(ARCH)-linux-gnueabihf" >> BR2_TOOLCHAIN_EXTERNAL_GCC_7=y >> BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_10=y >> BR2_TOOLCHAIN_EXTERNAL_CUSTOM_GLIBC=y >> BR2_TOOLCHAIN_EXTERNAL_CXX=y >> BR2_PACKAGE_IOSTAT=y >> BR2_PACKAGE_NODEJS=y >> BR2_PACKAGE_PYTHON=y >> >> BTW: My building system is ubuntu 18.10. The target is armv7 >> >> >> On Sun, Jan 20, 2019 at 12:24 AM Vadim Kochan <vadim4j@gmail.com> wrote: >> >> > Hi Woody, >> > >> > On Sun, Jan 20, 2019 at 12:15:36AM +0800, Woody Wu wrote: >> > > Hi, >> > > >> > > This is buildroot-2018.11.1. I found I cannot build some packages with >> > > buildroot, the problem seemed in the building of the host-python. Below >> > is >> > > the log: >> > > >> > > >>> host-python 2.7.15 Building >> > > >> > PATH="/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/bin:/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/sbin:/opt/linaro/gcc-linaro-7.3.1-2018.05-x86_64_arm-linux-gnueabihf/bin:/home/woody/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin" >> > > >> > PKG_CONFIG="/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/bin/pkg-config" >> > > PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 >> > > PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 >> > > >> > PKG_CONFIG_LIBDIR="/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib/pkgconfig:/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/share/pkgconfig" >> > > /usr/bin/make -j1 -C >> > > >> > /home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/ >> > > running build >> > > running build_ext >> > > INFO: Can't locate Tcl/Tk libs and/or headers >> > > building 'crypt' extension >> > > /usr/bin/gcc -pthread -fPIC -fno-strict-aliasing -O2 >> > > >> > -I/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/include >> > > -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude >> > -I./Include >> > > >> > -I/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/include >> > > -I/usr/include/x86_64-linux-gnu -I/usr/local/include >> > > >> > -I/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/Include >> > > >> > -I/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15 >> > > -c >> > > >> > /home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/Modules/cryptmodule.c >> > > -o >> > > >> > build/temp.linux-x86_64-2.7/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/Modules/cryptmodule.o >> > > /usr/bin/gcc -pthread -shared >> > > >> > -L/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib >> > > >> > -Wl,-rpath,/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib >> > > -Wl,--enable-new-dtags >> > > >> > build/temp.linux-x86_64-2.7/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/Modules/cryptmodule.o >> > > >> > -L/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib >> > > -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lcrypt -lpython2.7 -o >> > > build/lib.linux-x86_64-2.7/crypt.so >> > > /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libcrypt.a(crypt-entry.o): >> > > relocation R_X86_64_PC32 against symbol `_ufc_foobar' can not be used >> > when >> > > making a shared object; recompile with -fPIC >> > > /usr/bin/ld: final link failed: bad value >> > > collect2: error: ld returned 1 exit status >> > > >> > > Python build finished, but the necessary bits to build these modules were >> > > not found: >> > > _bsddb _sqlite3 _tkinter >> > > bsddb185 bz2 dbm >> > > dl gdbm imageop >> > > readline sunaudiodev >> > > To find the necessary bits, look in setup.py in detect_modules() for the >> > > module's name. >> > > >> > > Failed to build these modules: >> > > crypt >> > > ============= >> > > >> > > Can someone have a look at it and give me a hint? >> > > >> > > Thanks! >> > > > > So, you are using custom toolchain, I used this defconfig: > > BR2_arm=y > BR2_cortex_a8=y > BR2_ARM_FPU_NEON=y > BR2_TOOLCHAIN_EXTERNAL=y > BR2_PACKAGE_IOSTAT=y > BR2_PACKAGE_NODEJS=y > BR2_PACKAGE_PYTHON=y > > and it builds OK on master and 2018.11.1 tag. It's a failure in the build of a host package so the toolchain, which is used to build target packages, should not be relevant. -- Carlos Santos (Casantos) - DATACOM, P&D ?Marched towards the enemy, spear upright, armed with the certainty that only the ignorant can have.? ? Epitaph of a volunteer ^ permalink raw reply [flat|nested] 14+ messages in thread
* [Buildroot] Building host-python-2.7.15 Failed 2019-01-19 16:15 [Buildroot] Building host-python-2.7.15 Failed Woody Wu 2019-01-19 16:33 ` Vadim Kochan @ 2019-01-25 23:34 ` Arnout Vandecappelle 2019-01-26 14:10 ` Thomas Petazzoni 2019-01-26 14:09 ` Thomas Petazzoni 2 siblings, 1 reply; 14+ messages in thread From: Arnout Vandecappelle @ 2019-01-25 23:34 UTC (permalink / raw) To: buildroot On 19/01/2019 17:15, Woody Wu wrote: > /usr/bin/gcc -pthread -shared > -L/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib > -Wl,-rpath,/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib > -Wl,--enable-new-dtags > build/temp.linux-x86_64-2.7/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/Modules/cryptmodule.o > -L/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib > -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lcrypt -lpython2.7 -o > build/lib.linux-x86_64-2.7/crypt.so > /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libcrypt.a(crypt-entry.o): relocation > R_X86_64_PC32 against symbol `_ufc_foobar' can not be used when making a shared > object; recompile with -fPIC There is something wrong with your host compiler. There should be a /lib*/libcrypt.so that the compiler links against, instead of /usr/lib/libcrypt.a. On which distro do you work? Regards, Arnout ^ permalink raw reply [flat|nested] 14+ messages in thread
* [Buildroot] Building host-python-2.7.15 Failed 2019-01-25 23:34 ` Arnout Vandecappelle @ 2019-01-26 14:10 ` Thomas Petazzoni 2019-01-26 16:27 ` Woody Wu 0 siblings, 1 reply; 14+ messages in thread From: Thomas Petazzoni @ 2019-01-26 14:10 UTC (permalink / raw) To: buildroot Hello, On Sat, 26 Jan 2019 00:34:31 +0100, Arnout Vandecappelle wrote: > On 19/01/2019 17:15, Woody Wu wrote: > > /usr/bin/gcc -pthread -shared > > -L/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib > > -Wl,-rpath,/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib > > -Wl,--enable-new-dtags > > build/temp.linux-x86_64-2.7/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/Modules/cryptmodule.o > > -L/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib > > -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lcrypt -lpython2.7 -o > > build/lib.linux-x86_64-2.7/crypt.so > > /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libcrypt.a(crypt-entry.o): relocation > > R_X86_64_PC32 against symbol `_ufc_foobar' can not be used when making a shared > > object; recompile with -fPIC > > There is something wrong with your host compiler. There should be a > /lib*/libcrypt.so that the compiler links against, instead of > /usr/lib/libcrypt.a. On which distro do you work? Woody said: "My building system is ubuntu 18.10" Best regards, Thomas -- Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com ^ permalink raw reply [flat|nested] 14+ messages in thread
* [Buildroot] Building host-python-2.7.15 Failed 2019-01-26 14:10 ` Thomas Petazzoni @ 2019-01-26 16:27 ` Woody Wu 2019-01-27 17:06 ` Woody Wu 0 siblings, 1 reply; 14+ messages in thread From: Woody Wu @ 2019-01-26 16:27 UTC (permalink / raw) To: buildroot Yes, it's ubuntu 18.10. I think I did not touch the libcrypt. You guys gave out a very good point! I will check it and try to find out. I will report back you. Today is too late. On Sat, Jan 26, 2019 at 10:10 PM Thomas Petazzoni < thomas.petazzoni@bootlin.com> wrote: > Hello, > > On Sat, 26 Jan 2019 00:34:31 +0100, Arnout Vandecappelle wrote: > > On 19/01/2019 17:15, Woody Wu wrote: > > > /usr/bin/gcc -pthread -shared > > > > -L/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib > > > > -Wl,-rpath,/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib > > > -Wl,--enable-new-dtags > > > > build/temp.linux-x86_64-2.7/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/Modules/cryptmodule.o > > > > -L/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib > > > -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lcrypt -lpython2.7 -o > > > build/lib.linux-x86_64-2.7/crypt.so > > > /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libcrypt.a(crypt-entry.o): > relocation > > > R_X86_64_PC32 against symbol `_ufc_foobar' can not be used when making > a shared > > > object; recompile with -fPIC > > > > There is something wrong with your host compiler. There should be a > > /lib*/libcrypt.so that the compiler links against, instead of > > /usr/lib/libcrypt.a. On which distro do you work? > > Woody said: "My building system is ubuntu 18.10" > > Best regards, > > Thomas > -- > Thomas Petazzoni, CTO, Bootlin > Embedded Linux and Kernel engineering > https://bootlin.com > -- Life is the only flaw in an otherwise perfect nonexistence -- Schopenhauer woody public key at http://subkeys.pgp.net:11371 (narkewoody at gmail.com) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20190127/fe48a0fd/attachment.html> ^ permalink raw reply [flat|nested] 14+ messages in thread
* [Buildroot] Building host-python-2.7.15 Failed 2019-01-26 16:27 ` Woody Wu @ 2019-01-27 17:06 ` Woody Wu 2019-01-27 19:55 ` Thomas Petazzoni 0 siblings, 1 reply; 14+ messages in thread From: Woody Wu @ 2019-01-27 17:06 UTC (permalink / raw) To: buildroot Hi guys, I checked my ubuntu 18.04. It has /lib/x86_64-linux-gnu/libcrypt.so.1 and no libcrypt.so. On Sun, Jan 27, 2019 at 12:27 AM Woody Wu <narkewoody@gmail.com> wrote: > Yes, it's ubuntu 18.10. I think I did not touch the libcrypt. You guys > gave out a very good point! I will check it and try to find out. I will > report back you. Today is too late. > > On Sat, Jan 26, 2019 at 10:10 PM Thomas Petazzoni < > thomas.petazzoni at bootlin.com> wrote: > >> Hello, >> >> On Sat, 26 Jan 2019 00:34:31 +0100, Arnout Vandecappelle wrote: >> > On 19/01/2019 17:15, Woody Wu wrote: >> > > /usr/bin/gcc -pthread -shared >> > > >> -L/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib >> > > >> -Wl,-rpath,/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib >> > > -Wl,--enable-new-dtags >> > > >> build/temp.linux-x86_64-2.7/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/Modules/cryptmodule.o >> > > >> -L/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib >> > > -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lcrypt -lpython2.7 >> -o >> > > build/lib.linux-x86_64-2.7/crypt.so >> > > /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libcrypt.a(crypt-entry.o): >> relocation >> > > R_X86_64_PC32 against symbol `_ufc_foobar' can not be used when >> making a shared >> > > object; recompile with -fPIC >> > >> > There is something wrong with your host compiler. There should be a >> > /lib*/libcrypt.so that the compiler links against, instead of >> > /usr/lib/libcrypt.a. On which distro do you work? >> >> Woody said: "My building system is ubuntu 18.10" >> >> Best regards, >> >> Thomas >> -- >> Thomas Petazzoni, CTO, Bootlin >> Embedded Linux and Kernel engineering >> https://bootlin.com >> > > > -- > Life is the only flaw in an otherwise perfect nonexistence > -- Schopenhauer > > woody > public key at http://subkeys.pgp.net:11371 (narkewoody at gmail.com) > > -- Life is the only flaw in an otherwise perfect nonexistence -- Schopenhauer woody public key at http://subkeys.pgp.net:11371 (narkewoody at gmail.com) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20190128/7964740f/attachment.html> ^ permalink raw reply [flat|nested] 14+ messages in thread
* [Buildroot] Building host-python-2.7.15 Failed 2019-01-27 17:06 ` Woody Wu @ 2019-01-27 19:55 ` Thomas Petazzoni 2019-01-30 5:29 ` Woody Wu 0 siblings, 1 reply; 14+ messages in thread From: Thomas Petazzoni @ 2019-01-27 19:55 UTC (permalink / raw) To: buildroot Hello, On Mon, 28 Jan 2019 01:06:29 +0800 Woody Wu <narkewoody@gmail.com> wrote: > I checked my ubuntu 18.04. It has /lib/x86_64-linux-gnu/libcrypt.so.1 and > no libcrypt.so. It is weird, because libc6-dev should have installed both libcrypt.a and libcrypt.so. See https://packages.ubuntu.com/cosmic/amd64/libc6-dev/filelist. So it should not be possible to have libcrypt.a without libcrypt.so. Best regards, Thomas -- Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com ^ permalink raw reply [flat|nested] 14+ messages in thread
* [Buildroot] Building host-python-2.7.15 Failed 2019-01-27 19:55 ` Thomas Petazzoni @ 2019-01-30 5:29 ` Woody Wu 0 siblings, 0 replies; 14+ messages in thread From: Woody Wu @ 2019-01-30 5:29 UTC (permalink / raw) To: buildroot Thomas, thanks for your finding. After I reinstalled the libc-dev, the compile passed! On Mon, Jan 28, 2019 at 3:55 AM Thomas Petazzoni < thomas.petazzoni@bootlin.com> wrote: > Hello, > > On Mon, 28 Jan 2019 01:06:29 +0800 > Woody Wu <narkewoody@gmail.com> wrote: > > > I checked my ubuntu 18.04. It has /lib/x86_64-linux-gnu/libcrypt.so.1 > and > > no libcrypt.so. > > It is weird, because libc6-dev should have installed both libcrypt.a > and libcrypt.so. See > https://packages.ubuntu.com/cosmic/amd64/libc6-dev/filelist. So it > should not be possible to have libcrypt.a without libcrypt.so. > > Best regards, > > Thomas > -- > Thomas Petazzoni, CTO, Bootlin > Embedded Linux and Kernel engineering > https://bootlin.com > -- Life is the only flaw in an otherwise perfect nonexistence -- Schopenhauer woody public key at http://subkeys.pgp.net:11371 (narkewoody at gmail.com) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20190130/e26253dd/attachment.html> ^ permalink raw reply [flat|nested] 14+ messages in thread
* [Buildroot] Building host-python-2.7.15 Failed 2019-01-19 16:15 [Buildroot] Building host-python-2.7.15 Failed Woody Wu 2019-01-19 16:33 ` Vadim Kochan 2019-01-25 23:34 ` Arnout Vandecappelle @ 2019-01-26 14:09 ` Thomas Petazzoni 2 siblings, 0 replies; 14+ messages in thread From: Thomas Petazzoni @ 2019-01-26 14:09 UTC (permalink / raw) To: buildroot Hello, On Sun, 20 Jan 2019 00:15:36 +0800, Woody Wu wrote: > /usr/bin/gcc -pthread -shared > -L/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib > -Wl,-rpath,/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib > -Wl,--enable-new-dtags > build/temp.linux-x86_64-2.7/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/build/host-python-2.7.15/Modules/cryptmodule.o > -L/home/woody/beacon-cross-build/buildroot/buildroot-2018.11.1/output/host/lib > -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lcrypt -lpython2.7 -o > build/lib.linux-x86_64-2.7/crypt.so > /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libcrypt.a(crypt-entry.o): > relocation R_X86_64_PC32 against symbol `_ufc_foobar' can not be used when > making a shared object; recompile with -fPIC > /usr/bin/ld: final link failed: bad value > collect2: error: ld returned 1 exit status The problem here is that it is trying to build a shared library (Python module crypt.so), which uses the system libcrypt library. However, it seems like on your system only the static version of libcrypt is available, and this static version is not compiled with -fPIC, which is OK but makes it unsuitable for linking in a shared library. Could you check why you don't have libcrypt.so available on your system ? Best regards, Thomas -- Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com ^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2019-01-30 5:29 UTC | newest] Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2019-01-19 16:15 [Buildroot] Building host-python-2.7.15 Failed Woody Wu 2019-01-19 16:33 ` Vadim Kochan 2019-01-20 12:51 ` Woody Wu 2019-01-20 14:13 ` Vadim Kochan 2019-01-20 16:08 ` Woody Wu 2019-01-23 4:06 ` Woody Wu 2019-01-24 12:18 ` Carlos Santos 2019-01-25 23:34 ` Arnout Vandecappelle 2019-01-26 14:10 ` Thomas Petazzoni 2019-01-26 16:27 ` Woody Wu 2019-01-27 17:06 ` Woody Wu 2019-01-27 19:55 ` Thomas Petazzoni 2019-01-30 5:29 ` Woody Wu 2019-01-26 14:09 ` Thomas Petazzoni
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.