Created attachment 426160 [details] perl build log Fails on arm (imx6q and tegra) with gcc-4.9.3, both linkers, and pretty much any combination of normal/safe/sane flags. Portage 2.2.27 (python 2.7.11-final-0, default/linux/arm/13.0/armv7a/desktop, gcc-4.9.3, glibc-2.22-r1, 4.4.0-armv7-x3.1 armv7l) ================================================================= System uname: Linux-4.4.0-armv7-x3.1-armv7l-ARMv7_Processor_rev_10_-v7l-with-gentoo-2.2 KiB Mem: 2062252 total, 527420 free KiB Swap: 2097132 total, 2090480 free Timestamp of repository gentoo: Sat, 13 Feb 2016 11:30:01 +0000 sh bash 4.3_p42-r1 ld GNU gold (Gentoo 2.25.1 p1.1 2.25.1) 1.11 distcc 3.2rc1 armv7a-hardfloat-linux-gnueabi [enabled] ccache version 3.2.4 [enabled] app-shells/bash: 4.3_p42-r1::gentoo dev-lang/perl: 5.22.0::gentoo dev-lang/python: 2.7.11-r2::gentoo, 3.4.3-r7::gentoo dev-util/ccache: 3.2.4::gentoo dev-util/cmake: 3.4.1::gentoo dev-util/pkgconfig: 0.29::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.20.2::gentoo sys-apps/sandbox: 2.10-r1::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r1::gentoo sys-devel/automake: 1.11.6-r2::gentoo, 1.12.6::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r1::gentoo sys-devel/binutils: 2.25.1-r1::arm_support sys-devel/gcc: 4.6.4::gentoo, 4.7.3::gentoo, 4.8.3::gentoo, 4.9.3::gentoo, 5.3.0::gentoo sys-devel/gcc-config: 1.8::gentoo sys-devel/libtool: 2.4.6-r1::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers) sys-libs/glibc: 2.22-r1::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://prime.arnolds.bogus/gentoo-portage masters: gentoo priority: -1000 nerdboy location: /usr/local/portage masters: gentoo priority: 0 arm_support location: /usr/local/arm masters: gentoo priority: 1 ACCEPT_KEYWORDS="arm ~arm" ACCEPT_LICENSE="* -@EULA @GPL-COMPATIBLE @OSI-APPROVED @EULA dlj-1.1 skype-eula googleearth AdobeFlash-10.1 Oracle-BCLA-JavaSE" CBUILD="armv7a-hardfloat-linux-gnueabi" CFLAGS="-march=armv7-a -mtune=cortex-a9 -mfpu=vfpv3-d16-fp16 -mfp16-format=ieee -mfloat-abi=hard -O2 -pipe -ftree-loop-distribution -fvect-cost-model=cheap -flto=5 -ftree-vectorize" CHOST="armv7a-hardfloat-linux-gnueabi" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=armv7-a -mtune=cortex-a9 -mfpu=vfpv3-d16-fp16 -mfp16-format=ieee -mfloat-abi=hard -O2 -pipe -ftree-loop-distribution -fvect-cost-model=cheap -flto=5 -ftree-vectorize" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe -march=armv7-a" FEATURES="assume-digests binpkg-logs buildpkg ccache config-protect-if-modified distcc distlocks ebuild-locks fixlafiles merge-sync news nodoc 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://xxxx/gentoo/" LANG="en_US.utf8" LDFLAGS="-march=armv7-a -mtune=cortex-a9 -mfpu=vfpv3-d16-fp16 -mfp16-format=ieee -mfloat-abi=hard -O2 -pipe -ftree-loop-distribution -fvect-cost-model=cheap -flto=5 -ftree-vectorize -fuse-linker-plugin" MAKEOPTS="-j15" 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="7zip X a52 aac abiword acl acpi alsa arm armv5te armv6 armv6t2 aspell audiofile avahi berkdb bitmap-fonts bluetooth branding browserplugin bzip2 cairo caps cdda cdr cli consolekit corefonts cracklib crypt cups curl cxx dbus dnotify dri drm dts dvd dvdr egl eglfs emboss emf enchant encode evdev exif fam fbcon firefox flac fortran freetype freetype2 g3dvl gbm gcj gd gdbm gif glamor gles gles2 glib gmp gnome-keyring gnome-online-accounts gnutls go gpm gps gstreamer gtk gtk3 gudev highlight ibus iconv icq id3tag imlib imx inotify introspection ipv6 jabber jpeg json kms lame lcms ldap libav libcanberra libnotify libsamplerate libsecret logrotate lto lua lzma mad mjpeg mng modemmanager modules mp3 mp4 mpeg ncurses neon networking networkmanager nls nolvmstatic nptl nsplugin ogg openmp opus oss pam pango pcre pdf phonon pic pkcs11 png policykit ppds pulseaudio python qml qt qt3support qt5 readline ruby sasl sdl seccomp session sexy slp spell sqlite ssh ssl startup-notification svg system-cairo system-icu system-jpeg system-libvpx system-sqlite taglib tcpd telepathy theora threads tiff tls truetype truetype-fonts tslib type1-fonts udev udisks unicode upower usb v4l vala vorbis wayland webkit weston wheel wifi wxwidgets xattr xcb xcomposite xdg xml xorg xrandr xv xvid zeitgeist zeroconf zip zlib" ALSA_CARDS="soc_imx_sgtl5000 usb-audio" APACHE2_MODULES="actions alias auth_digest 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 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 proxy proxy_connect proxy_http rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_US en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby23 ruby22 ruby21" USERLAND="GNU" VIDEO_CARDS="fbdev" 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, USE_PYTHON
I can't reproduce this. I've tried to build perl with the same use flags you've got and with gcc 4.9.3, but it's still ok for me. Are you sure that it's not related to distcc somehow?
I've also talked to zlogene, he said that dev-lang/perl is known to have problems with distcc. So please test that you have the same problem with distcc disabled.
Created attachment 426572 [details] Another build log with features disabled and plain plain plain flags
(In reply to Steve Arnold from comment #3) > Created attachment 426572 [details] > Another build log with features disabled and plain plain plain flags I left a message on the #p5p channel (irc.perl.org) and got some feedback. 1) We found what *triggers* the problem: "memcpy() NOT found." Do you know anything whether memcpy really does not exist in that case or whether the detection is somehow returning a bogus result? [The replacement that is #defined when memcpy is not found is broken, so far noone noticed since "everyone" has memcpy.] 2) I'll add some code to the perl ebuild that outputs additional debug info, and ask you to re-run the log. Not yet, though.
https://rt.perl.org/Ticket/Display.html?id=127619
I have no idea *why* it fails (other than being broken) but the mis-detected functions are definitely there. Perl configure just fails at finding them, regardless of features/flags. It also fails somewhat differently on armv7 vs amrv8 (but the profiles aren't optimized for the latter quite yet). So let's just say perl sucks at arm. I'll test it on mips when I get a round tuit but right now my plate isn't nearly big enough...
Apparently my udoo board picked up the perl upgrade and the "test" failed (now with a different error). Hang on and I'll attach a build/config log...
Just reopen this one: https://rt.perl.org/Public/Bug/Display.html?id=113022#txn-1351394
Nope, same configure bug as before; both -flto and -fwhole-program make it look like ^^ that bug.
Seems to be "fixed" so far in 5.24 (no local patches, just plain cflags.conf in the env).
(In reply to Steve Arnold from comment #10) > Seems to be "fixed" so far in 5.24 (no local patches, just plain cflags.conf > in the env). Excellent. Closing since 5.24 is now stable on arm.