Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 759268

Summary: dev-python/lxml-4.6.2: Segmentation fault while building on armv6l
Product: Gentoo Linux Reporter: tea <gentoo>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: UNCONFIRMED ---    
Severity: normal CC: arm, jstein
Priority: Normal    
Version: unspecified   
Hardware: ARM   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Build log
environment

Description tea 2020-12-09 18:22:38 UTC
Package fails to build on Raspberry Pi 1B, armv6l. It builds fine on amd64.

armv6j-unknown-linux-gnueabihf-gcc -O2 -pipe -fPIC -DCYTHON_CLINE_IN_TRACEBACK=0 -I/usr/include/libxml2 -Isrc -Isrc/lxml/includes -I/usr/include/python3.8 -c src/lxml/sax.c -o /var/tmp/portage/dev-python/lxml-4.6.2/work/lxml-lxml-4.6.2-python3_8/build/temp.linux-armv6l-3.8/src/lxml/sax.o -w armv6j-unknown-linux-gnueabihf-gcc -shared -Wl,-O1 -Wl,--as-needed -O2 -pipe /var/tmp/portage/dev-python/lxml-4.6.2/work/lxml-lxml-4.6.2-python3_8/build/temp.linux-armv6l-3.8/src/lxml/sax.o -L/usr/lib -o /var/tmp/portage/dev-python/lxml-4.6.2/work/lxml-lxml-4.6.2-python3_8/build/lib/lxml/sax.cpython-38-arm-linux-gnueabihf.so
/var/tmp/portage/dev-python/lxml-4.6.2/temp/environment: line 1608:   104 Segmentation fault      "${@}"

Excerpt from […]/temp/environment:

esetup.py () 
{ # Line 1608
    debug-print-function ${FUNCNAME} "${@}";
    local die_args=();
    [[ ${EAPI} != [45] ]] && die_args+=(-n);
    [[ -n ${BUILD_DIR} ]] && _distutils-r1_create_setup_cfg;
    set -- "${EPYTHON:-python}" setup.py "${mydistutilsargs[@]}" "${@}";
    echo "${@}" 1>&2;
    "${@}" || die "${die_args[@]}";
    local ret=${?};
    if [[ -n ${BUILD_DIR} ]]; then
        rm "${HOME}"/.pydistutils.cfg || die "${die_args[@]}";
    fi;
    return ${ret}
}

Reproducible: Always

Steps to Reproduce:
1. emerge dev-python/lxml



emerge --info:

Portage 3.0.9 (python 3.8.6-final-0, default/linux/arm/17.0/armv6j, gcc-9.3.0, glibc-2.32-r2, 4.19.127-raspberrypi+ armv6l)
=================================================================
System uname: Linux-4.19.127-raspberrypi+-armv6l-ARMv6-compatible_processor_rev_7_-v6l-with-glibc2.4
KiB Mem:      491488 total,     15368 free
KiB Swap:    1632248 total,   1625488 free
Timestamp of repository gentoo: Wed, 09 Dec 2020 03:00:01 +0000
Head commit of repository gentoo: a610ba3c3b95eef3eae6154b72522391ad05d963
Timestamp of repository chaoslab: Fri, 01 May 2020 10:40:59 +0000
Head commit of repository chaoslab: b7807de300d691775441a32ea8c30435f7300639

Timestamp of repository guru: Tue, 30 Jun 2020 20:12:43 +0000
Head commit of repository guru: d06baeb6250071ba079dbba47b78f60fee6cbbb8

Timestamp of repository tastytea: Sun, 14 Jun 2020 11:53:17 +0000
Head commit of repository tastytea: 44a4c4c44e1784a932c46f3f51ee49aad896527e

sh bash 5.0_p18
ld GNU ld (Gentoo 2.34 p6) 2.34.0
app-shells/bash:          5.0_p18::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          2.7.18-r4::gentoo, 3.6.12::gentoo, 3.7.9::gentoo, 3.8.6::gentoo, 3.9.0::gentoo
dev-util/cmake:           3.17.4-r1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.69-r5::gentoo
sys-devel/automake:       1.16.2-r1::gentoo
sys-devel/binutils:       2.34-r2::gentoo
sys-devel/gcc:            9.3.0-r1::gentoo
sys-devel/gcc-config:     2.3.2-r1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r2::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1

chaoslab
    location: /var/db/repos/chaoslab
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/chaoslab.git
    masters: gentoo

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo

tastytea
    location: /var/db/repos/tastytea
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/tastytea.git
    masters: gentoo

ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="@FREE"
CBUILD="armv6j-unknown-linux-gnueabihf"
CFLAGS="-O2 -pipe"
CHOST="armv6j-unknown-linux-gnueabihf"
CONFIG_PROTECT="/boot/cmdline.txt /boot/config.txt /etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe -march=armv6j"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=armv6j"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en"
MAKEOPTS="-j1"
PKGDIR="/var/cache/binpkgs"
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 armv6 armvfp berkdb bzip2 cli crypt dri fortran gdbm gpg iconv icu idn ipv6 libglvnd ncurses nfs nls nptl offensive openmp pam pcre raspberry-pi readline rpi seccomp split-usr ssl tcpd unicode vim-syntax xattr zlib zsh-completion" ADA_TARGET="gnat_2018" 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp thumb v4 v5 v6" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2 php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python2_7 python3_8" RUBY_TARGETS="ruby25 ruby26" 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_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 tea 2020-12-09 18:23:17 UTC
Created attachment 677479 [details]
Build log
Comment 2 tea 2020-12-09 18:23:33 UTC
Created attachment 677482 [details]
environment