Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 618232 - dev-libs/efl-1.18.4 fails to compile on armv6j-hardfp-glibc non-hardened - lib/eina/.libs/libeina.so: error: undefined reference to '_Uarm_init_local'
Summary: dev-libs/efl-1.18.4 fails to compile on armv6j-hardfp-glibc non-hardened - li...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM Linux
: Normal normal (vote)
Assignee: Joonas Niilola
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2017-05-11 17:19 UTC by Michael Jones
Modified: 2019-07-31 07:22 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dev-libs:efl-1.20.7:20180613-173035.log.gz (dev-libs:efl-1.20.7:20180613-173035.log.gz,28.46 KB, application/gzip)
2018-06-13 18:17 UTC, Markus Meier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Jones 2017-05-11 17:19:56 UTC
This is run on a qemu-user systemd-nspawn container

Rough steps to setup:

cp /usr/bin/qemu-arm /path/to/container/opt/qemu-arm/qemu-arm

Then drop this file into place:

server-blade-one binfmt.d # cat /etc/binfmt.d/arm.conf
:arm:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/opt/qemu-arm/qemu-arm:


cd /path/to/container

systemd-nspawn .

emerge -1 --ignore-default-opts efl


/bin/sh ../libtool  --tag=CC   --mode=link armv6j-hardfloat-linux-gnueabi-gcc  -O2 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=hard -fpie  -Wl,-O1 -Wl,--as-needed -fPIC -DPIC -pie -rdynamic -o bin/eolian/eolian_gen bin/eolian/bin_eolian_eolian_gen-common_funcs.o bin/eolian/bin_eolian_eolian_gen-eo_generator.o bin/eolian/bin_eolian_eolian_gen-impl_generator.o bin/eolian/bin_eolian_eolian_gen-legacy_generator.o bin/eolian/bin_eolian_eolian_gen-types_generator.o bin/eolian/bin_eolian_eolian_gen-docs_generator.o bin/eolian/bin_eolian_eolian_gen-main.o -fvisibility=hidden -fdata-sections -ffunction-sections -Wl,--gc-sections -fno-strict-aliasing -Wl,--as-needed -Wl,--no-copy-dt-needed-entries     lib/eina/libeina.la   -lpthread           lib/eolian/libeolian.la
libtool: link: armv6j-hardfloat-linux-gnueabi-gcc -O2 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=hard -fpie -Wl,-O1 -fPIC -DPIC -pie -rdynamic -o bin/eolian/.libs/eolian_gen bin/eolian/bin_eolian_eolian_gen-common_funcs.o bin/eolian/bin_eolian_eolian_gen-eo_generator.o bin/eolian/bin_eolian_eolian_gen-impl_generator.o bin/eolian/bin_eolian_eolian_gen-legacy_generator.o bin/eolian/bin_eolian_eolian_gen-types_generator.o bin/eolian/bin_eolian_eolian_gen-docs_generator.o bin/eolian/bin_eolian_eolian_gen-main.o -fvisibility=hidden -fdata-sections -ffunction-sections -Wl,--gc-sections -fno-strict-aliasing -Wl,--no-copy-dt-needed-entries  -Wl,--as-needed lib/eina/.libs/libeina.so lib/eolian/.libs/libeolian.so /var/tmp/portage/dev-libs/efl-1.18.4/work/efl-1.18.4/src/lib/eina/.libs/libeina.so -lsystemd -lm -ldl -lrt -lpthread
lib/eina/.libs/libeina.so: error: undefined reference to '_Uarm_init_local'
lib/eina/.libs/libeina.so: error: undefined reference to '_Uarm_get_reg'
lib/eina/.libs/libeina.so: error: undefined reference to '_Uarm_step'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:25539: bin/eolian/eolian_gen] Error 1
make[1]: *** [Makefile:2957: all-recursive] Error 1
make: *** [Makefile:2054: all] Error 2
 * ERROR: dev-libs/efl-1.18.4::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=dev-libs/efl-1.18.4::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/efl-1.18.4::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-libs/efl-1.18.4/temp/build.log.gz'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/efl-1.18.4/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/efl-1.18.4/work/efl-1.18.4'
 * S: '/var/tmp/portage/dev-libs/efl-1.18.4/work/efl-1.18.4'





armv6j-hardfp-glibc-vanilla portage # emerge -pv --ignore-default-opts efl

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ~] dev-libs/efl-1.18.4::gentoo  USE="X bmp eet egl fontconfig gif gles gstreamer ico nls png ppm psd pulseaudio sound ssl systemd tiff wayland -debug -doc -drm -fbcon -fribidi -glib -gnutls -harfbuzz -ibus -jpeg2k -libressl (-neon) -oldlua -opengl (-physics) (-pixman) -postscript -raw -scim -sdl -tga -tslib -unwind -v4l -valgrind -webp -xim (-xine) -xpm" 0 KiB









Portage 2.3.5 (python 3.4.5-final-0, default/linux/arm/13.0/armv6j, gcc-5.4.0, glibc-2.23-r3, 4.8.17-hardened-r2 armv7l)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.8.17-hardened-r2-armv7l-Intel-R-_Xeon-R-_CPU_X5650_@_2.67GHz-with-gentoo-2.3
KiB Mem:    65972160 total,  55216724 free
KiB Swap:   10485756 total,  10485756 free
Timestamp of repository gentoo: Mon, 08 May 2017 18:42:10 +0000
sh bash 4.3_p48-r1
ld GNU gold (Gentoo 2.25.1 p1.1 2.25.1) 1.11
distcc 3.2rc1 armv6j-hardfloat-linux-gnueabi [disabled]
app-shells/bash:          4.3_p48-r1::gentoo
dev-lang/perl:            5.24.1-r1::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.24.2::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo, 2.26.1::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo
sys-devel/gcc-config:     1.7.3::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.23-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo
    priority: -1000

Installed sets: @archive, @arm-base-system, @arm-desktop-applications, @portage, @vcs
ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv6j-hardfloat-linux-gnueabi"
CFLAGS="-O2 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=hard"
CHOST="armv6j-hardfloat-linux-gnueabi"
CONFIG_PROTECT="/etc /usr/lib/libreoffice/program/sofficerc /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="-O2 -pipe -march=armv6j -mfpu=vfp -mfloat-abi=hard"
DISTDIR="/usr/portage-distfiles"
EMERGE_DEFAULT_OPTS=" --jobs --keep-going --newuse --deep --backtrack=3000 --complete-graph --with-bdeps=y"
FCFLAGS="-O2 -pipe -march=armv6j"
FEATURES="assume-digests binpkg-logs buildpkg clean-logs compress-build-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles installsources merge-sync news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms split-elog split-log splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=armv6j"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j30"
PKGDIR="/usr/portage-packages"
PORTAGE_COMPRESS="xz"
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="X a52 aac acl acpi alsa apng arm avahi berkdb bindist branding bzip2 cairo cdda cdr clang cli cracklib crypt cxx d-pau dbus dconf dri dts dvd dvdr egl emboss encode exif fam ffmpeg flac fortran gd gdbm gif gnome-keyring gpm gstreamer gtk gudev iconv icu ipv6 jpeg lcms libnotify libsecret mad minizip mng modules mp3 mp4 mpeg ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio python qt5 readline samba sdl seccomp session sound spell sqlite ssl startup-notification svg systemd tcpd theora tiff truetype udev udisks unicode upower usb vorbis wayland widevine wifi x264 xattr xcb xinerama xml xv xvid zeroconf 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 v4 v5 v6" 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" GRUB_PLATFORMS="coreboot efi-64 emu qemu pc" INPUT_DEVICES="evdev mouse keyboard libinput" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="arm aarch64" QEMU_USER_TARGETS="arm aarch64" RUBY_TARGETS="ruby21 ruby21" USERLAND="GNU" VIDEO_CARDS="modesetting 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, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Michael Jones 2017-05-11 17:21:01 UTC
I am unable to post attachments.

I get this error message:

This site can’t be reached

The webpage at https://bugs.gentoo.org/attachment.cgi might be temporarily down or it may have moved permanently to a new web address.
ERR_ACCESS_DENIED
Comment 2 Markus Meier gentoo-dev 2018-06-13 18:17:49 UTC
Created attachment 535804 [details]
dev-libs:efl-1.20.7:20180613-173035.log.gz

This happens on armv7 (normal profile, not hardened) as well.
Comment 3 Joonas Niilola gentoo-dev 2018-07-02 10:51:44 UTC
(In reply to Markus Meier from comment #2)
> Created attachment 535804 [details]
> dev-libs:efl-1.20.7:20180613-173035.log.gz
> 
> This happens on armv7 (normal profile, not hardened) as well.

I cant reproduce this on amd64 system with your use flags (-neon of course), and I dont see any clear errors whats causing this. Few compiler warnings, but those dont seem fatal. 

Could you perhaps try to build this without 'neon' use flag? 
https://src.fedoraproject.org/rpms/efl/blob/master/f/efl.spec#_204
https://src.fedoraproject.org/rpms/efl/blob/master/f/efl.spec#_230

It's all I can think of at this point, sorry.
Comment 4 Joonas Niilola gentoo-dev 2019-01-12 19:30:12 UTC
Could you try compiling this with 'unwind' USE flag enabled?
Comment 5 Joonas Niilola gentoo-dev 2019-02-27 19:05:50 UTC
(In reply to Joonas Niilola from comment #4)
> Could you try compiling this with 'unwind' USE flag enabled?

Ping.
Comment 6 Philippe Trottier 2019-03-04 21:59:35 UTC
Trowing in some hints here, I had the issue when I updated the gcc versions. Once I removed the old gcc after an emerge -e world it worked for me. 

PS: It's been 2 years since I saw this error last I was updating from gcc 5.4(?) to 6.2.


This errow will never show on amd64 as it is linking to arm specific code.
Comment 7 Markus Meier gentoo-dev 2019-03-05 05:41:35 UTC
(In reply to Joonas Niilola from comment #4)
> Could you try compiling this with 'unwind' USE flag enabled?

 * Package:    dev-libs/efl-1.20.7-r3
 * Repository: gentoo
 * Maintainer: juippis@gmail.com proxy-maint@gentoo.org
 * USE:        X arm bmp eet elibc_glibc fontconfig gif ico kernel_linux nls opengl pdf ppm psd sdl ssl svg tiff unwind userland_GNU
 * FEATURES:   preserve-libs sandbox test userpriv usersandbox

compiles fine on arm.
Comment 8 Joonas Niilola gentoo-dev 2019-03-05 06:42:51 UTC
Thank you both.

I guess I'll just force the unwind USE with arm profiles.
Comment 9 Larry the Git Cow gentoo-dev 2019-07-31 07:22:37 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce4e6a3afdbb3a5599180e2f78389616f549a3ba

commit ce4e6a3afdbb3a5599180e2f78389616f549a3ba
Author:     Joonas Niilola <juippis@gentoo.org>
AuthorDate: 2019-07-31 07:21:41 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2019-07-31 07:21:41 +0000

    profiles: force 'unwind' on with dev-libs/efl on arm
    
    Closes: https://bugs.gentoo.org/618232
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 profiles/arch/arm/package.use.force | 5 +++++
 1 file changed, 5 insertions(+)