View previous topic :: View next topic |
Author |
Message |
?nder n00b
Joined: 25 Mar 2003 Posts: 3
|
Posted: Fri Dec 29, 2017 10:19 am Post subject: Problems upgrading python on arm (inside LXC) |
|
|
I'm playing with Gentoo in LXC on Qnap, and I'm having trouble upgrading Python to 3.5 (emerging Python 3.4.5 works). The build fails with:
Code: | LD_LIBRARY_PATH=/var/tmp/portage/dev-lang/python-3.5.4-r1/work/armv7a-softfp-linux-gnueabi ./python -E -S -m sysconfig --generate-posix-vars ;\
if test $? -ne 0 ; then \
echo "generate-posix-vars failed" ; \
rm -f ./pybuilddir.txt ; \
exit 1 ; \
fi
Fatal Python error: failed to get random numbers to initialize Python
/bin/sh: line 5: 5556 Aborted LD_LIBRARY_PATH=/var/tmp/portage/dev-lang/python-3.5.4-r1/work/armv7a-softfp-linux-gnueabi ./python -E -S -m sysconfig --generate-posix-vars
generate-posix-vars failed
make: *** [Makefile:569: pybuilddir.txt] Error 1 | Googling suggests that this happens when /dev/random and /dev/urandom are missing, however they're present, and as far as I can see, they work fine. Any ideas how to fix this?
emerge --info '=dev-lang/python-3.5.4-r1::gentoo'
Code: | Portage 2.3.8 (python 3.4.5-final-0, default/linux/arm/13.0/armv7a, gcc-5.4.0, glibc-2.25-r9, 3.10.20-al-2.5.3 armv7l)
=================================================================
System Settings
=================================================================
System uname: Linux-3.10.20-al-2.5.3-armv7l-ARMv7_Processor_rev_5_-v7l-with-gentoo-2.4.1
KiB Mem: 997696 total, 230672 free
KiB Swap: 17307320 total, 17116284 free
Timestamp of repository gentoo: Sat, 23 Dec 2017 13:00:01 +0000
Head commit of repository gentoo: c8e4f06eaf5356166b9de0ad987f40fc6d1d4ac8
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
app-shells/bash: 4.3_p48-r1::gentoo
dev-lang/perl: 5.24.3::gentoo
dev-lang/python: 2.7.14-r1::gentoo, 3.4.5-r1::gentoo
dev-util/cmake: 3.8.2::gentoo
dev-util/pkgconfig: 0.29.2::gentoo
sys-apps/baselayout: 2.4.1-r2::gentoo
sys-apps/openrc: 0.34.11::gentoo
sys-apps/sandbox: 2.10-r4::gentoo
sys-devel/autoconf: 2.69::gentoo
sys-devel/automake: 1.15.1-r1::gentoo
sys-devel/binutils: 2.29.1-r1::gentoo
sys-devel/gcc: 5.4.0-r3::gentoo
sys-devel/gcc-config: 1.8-r1::gentoo
sys-devel/libtool: 2.4.6-r3::gentoo
sys-devel/make: 4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc: 2.25-r9::gentoo
Repositories:
gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv7a-softfp-linux-gnueabi"
CFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp"
CHOST="armv7a-softfp-linux-gnueabi"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=armv7-a"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe -march=armv7-a"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=armv7-a"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="sl_SI.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl arm armv5te armv6 armv6t2 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 modules ncurses nls nptl offensive openmp pam pcre readline seccomp session ssl tcpd unicode xattr zlib" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp thumb thumb2 v4 v5 v6 v7 vfp" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="exynos fbdev omap dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS | emerge -pqv '=dev-lang/python-3.5.4-r1::gentoo' Code: | [ebuild NS ] dev-lang/python-3.5.4-r1 [2.7.14-r1, 3.4.5-r1] USE="gdbm ipv6 ncurses readline ssl (threads) xml -build -examples (-hardened) -libressl -sqlite -tk -wininst" | /var/tmp/portage/dev-lang/python-3.5.4-r1/temp/build.log
/var/tmp/portage/dev-lang/python-3.5.4-r1/temp/environment |
|
Back to top |
|
|
blopsalot Apprentice
Joined: 28 Jan 2017 Posts: 231
|
|
Back to top |
|
|
?nder n00b
Joined: 25 Mar 2003 Posts: 3
|
Posted: Wed Jan 17, 2018 12:25 pm Post subject: |
|
|
I think I know what the problem is: the host kernel is 3.10, but glibc 2.25 is installed. glibc 2.25 supports getrandom syscall, but it requires kernel 3.17, and Python doesn't handle this properly. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|