Summary: | sys-fs/eudev-3.1.5 : udevadm-info.c:(.text+0x815): undefined reference to `minor' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | eudev team <eudev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | philipp.ammann |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
https://bugs.gentoo.org/show_bug.cgi?id=580222 https://bugs.gentoo.org/show_bug.cgi?id=645280 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 575232 | ||
Attachments: |
emerge-history.txt
environment sys-fs:eudev-3.1.5:20160415-205241.log include sys/sysmacros.h |
Description
Toralf Förster
2016-04-15 21:15:57 UTC
Created attachment 430686 [details]
emerge-history.txt
Created attachment 430688 [details]
environment
Created attachment 430690 [details]
sys-fs:eudev-3.1.5:20160415-205241.log
(In reply to Mike Gilbert from comment #4) > Fix in systemd: > > https://github.com/systemd/systemd/commit/ > 27d13af71c3af6b2f9b60556d2c046dbb6e36e23 Looks like this issue becomes more prominent under gcc-6.2.0, based on an 'emerge -e system' on my hardened amd64 machine. Fails with an undefined reference to "major" on eudev-3.2, using gcc-6.2.0-r1: libtool: link: x86_64-pc-linux-gnu-gcc -O2 -march=corei7 -mtune=corei7 -mfpmath=sse -msse -msse2 -mssse3 -msse4.1 -msse4.2 -mcx16 -msahf -mcrc32 -maccumulate-outgoing-args -fforce-addr -fmodulo-sched -fivopts -ftree-loop-im -ftree-loop-linear -ftree-loop-ivcanon -fgcse-after-reload -fgcse-lm -fgcse-sm -fgcse-las -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize -flto=8 -fuse-linker-plugin -fno-lto -fno-use-linker-plugin -O2 -march=corei7 -mtune=corei7 -mfpmath=sse -msse -msse2 -mssse3 -msse4.1 -msse4.2 -mcx16 -msahf -mcrc32 -maccumulate-outgoing-args -fforce-addr -fmodulo-sched -fivopts -ftree-loop-im -ftree-loop-linear -ftree-loop-ivcanon -fgcse-after-reload -fgcse-lm -fgcse-sm -fgcse-las -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize -flto=8 -fuse-linker-plugin -Wl,-z -Wl,now -Wl,-z -Wl,relro -fno-lto -fno-use-linker-plugin -o udevadm udevadm.o udevadm-info.o udevadm-control.o udevadm-monitor.o udevadm-hwdb.o udevadm-settle.o udevadm-trigger.o udevadm-test.o udevadm-test-builtin.o udevadm-util.o ./.libs/libudev-core.a -lblkid -lkmod udevd.o: In function `main': udevd.c:(.text.startup+0x1b00): undefined reference to `major' udevd.c:(.text.startup+0x1bb0): undefined reference to `major' ./.libs/libudev-core.a(libudev_core_la-udev-event.o): In function `udev_event_apply_format': udev-event.c:(.text+0x499): undefined reference to `major' udev-event.c:(.text+0x4d8): undefined reference to `minor' ./.libs/libudev-core.a(libudev_core_la-udev-event.o): In function `udev_event_execute_rules': udev-event.c:(.text+0x1c47): undefined reference to `major' udev-event.c:(.text+0x1c7a): undefined reference to `major' udev-event.c:(.text+0x1ccc): undefined reference to `major' udev-event.c:(.text+0x1ce6): undefined reference to `major' udev-event.c:(.text+0x1d8e): undefined reference to `major' ./.libs/libudev-core.a(libudev_core_la-udev-node.o): In function `udev_node_add': udev-node.c:(.text+0xb52): undefined reference to `minor' udev-node.c:(.text+0xb67): undefined reference to `major' ./.libs/libudev-core.a(libudev_core_la-udev-node.o): In function `udev_node_remove': udev-node.c:(.text+0x11c8): undefined reference to `minor' udev-node.c:(.text+0x11dd): undefined reference to `major' [snip] And the above is with LTO disabled. You get a slightly-different batch of errors on the same link command if using LTO that cascades into the undefined references to minor/major. Looks like the fix applied to systemd needs to somehow be ported to eudev for gcc-6.x to go stable. --- emerge --info from the affected machine: Portage 2.3.2 (python 2.7.12-final-0, hardened/linux/amd64, gcc-6.2.0, glibc-2.24, 4.7.8 x86_64) ================================================================= System uname: Linux-4.7.8-x86_64-Intel-R-_Core-TM-_i7_CPU_970_@_3.20GHz-with-gentoo-2.3 KiB Mem: 16351452 total, 8543648 free KiB Swap: 4209024 total, 4208324 free Timestamp of repository gentoo: Wed, 16 Nov 2016 09:15:01 +0000 sh bash 4.4_p5 ld GNU ld (Gentoo 2.27 p1.0) 2.27 distcc 3.2rc1 x86_64-pc-linux-gnu [disabled] ccache version 3.3.3 [disabled] app-shells/bash: 4.4_p5::gentoo dev-java/java-config: 2.2.0-r3::gentoo dev-lang/perl: 5.24.0-r2::gentoo dev-lang/python: 2.7.12::gentoo, 3.4.5::gentoo, 3.5.2::gentoo dev-util/ccache: 3.3.3::gentoo dev-util/cmake: 3.6.3::gentoo dev-util/pkgconfig: 0.29.1::gentoo sys-apps/baselayout: 2.3::gentoo sys-apps/openrc: 0.22.3-r1::gentoo sys-apps/sandbox: 2.11-r2::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r2::gentoo sys-devel/automake: 1.11.6-r2::gentoo, 1.12.6-r1::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo sys-devel/binutils: 2.26.1::gentoo, 2.27::gentoo sys-devel/gcc: 5.3.0::gentoo, 5.4.0::gentoo, 6.2.0-r1::gentoo sys-devel/gcc-config: 1.8-r1::gentoo sys-devel/libtool: 2.4.6-r2::gentoo sys-devel/make: 4.2.1::gentoo sys-kernel/linux-headers: 4.8::gentoo (virtual/os-headers) sys-libs/glibc: 2.24::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.us.gentoo.org/gentoo-portage priority: -1000 local location: /usr/portage/local masters: gentoo priority: 0 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=corei7 -mtune=corei7 -mfpmath=sse -msse -msse2 -mssse3 -msse4.1 -msse4.2 -mcx16 -msahf -mcrc32 -maccumulate-outgoing-args -fforce-addr -fmodulo-sched -fivopts -ftree-loop-im -ftree-loop-linear -ftree-loop-ivcanon -fgcse-after-reload -fgcse-lm -fgcse-sm -fgcse-las -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize -flto=8 -fuse-linker-plugin" CHOST="x86_64-pc-linux-gnu" 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/init.d /etc/pam.d /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 -march=corei7 -mtune=corei7 -mfpmath=sse -msse -msse2 -mssse3 -msse4.1 -msse4.2 -mcx16 -msahf -mcrc32 -maccumulate-outgoing-args -fforce-addr -fmodulo-sched -fivopts -ftree-loop-im -ftree-loop-linear -ftree-loop-ivcanon -fgcse-after-reload -fgcse-lm -fgcse-sm -fgcse-las -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize -flto=8 -fuse-linker-plugin" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs candy cgroup config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms sign unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS=" http://gentoo.osuosl.org/ http://mirror.usu.edu/mirrors/gentoo/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://gentoo.arcticnetwork.ca/ " INSTALL_MASK="/usr/lib/systemd /etc/systemd" LANG="en_US.iso885915" LDFLAGS="-O2 -march=corei7 -mtune=corei7 -mfpmath=sse -msse -msse2 -mssse3 -msse4.1 -msse4.2 -mcx16 -msahf -mcrc32 -maccumulate-outgoing-args -fforce-addr -fmodulo-sched -fivopts -ftree-loop-im -ftree-loop-linear -ftree-loop-ivcanon -fgcse-after-reload -fgcse-lm -fgcse-sm -fgcse-las -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize -flto=8 -fuse-linker-plugin -Wl,-z,now -Wl,-z,relro" MAKEOPTS="-j14" 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="/ramfs" USE="amd64 apache2 berkdb bzip2 cli cracklib curl cxx dbus dri encode gd gdbm graphite hardened inotify ipv6 justify lto mmx mmxext modules multilib ncurses nptl nptlonly offensive openmp pam pax_kernel pcre pic pie readline real rtc seccomp session sqlite sse sse2 ssl ssp tcpd unicode urandom xattr xml xtpax zlib" ABI_X86="64 32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so 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" CPU_FLAGS_X86="aes mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4 python3_5" QEMU_SOFTMMU_TARGETS="mips mips64 mipsel mips64el" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="vesa vga 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON Created attachment 453688 [details, diff]
include sys/sysmacros.h
This patch fixes compilation with gcc-6.2.0-r1 and glibc-2.24.
I only have USE="hwdb" set and i don't know if it works with musl.
(In reply to Philipp Ammann from comment #6) > Created attachment 453688 [details, diff] [details, diff] > include sys/sysmacros.h > > This patch fixes compilation with gcc-6.2.0-r1 and glibc-2.24. > > I only have USE="hwdb" set and i don't know if it works with musl. Thanks, I am aware of the fix. Real life. I'll push out a new release of eudev this weekend. @kumba, thanks for pinging me, I'd forgotten about this simple bug :( (In reply to Anthony Basile from comment #7) > (In reply to Philipp Ammann from comment #6) > > Created attachment 453688 [details, diff] [details, diff] [details, diff] > > include sys/sysmacros.h > > > > This patch fixes compilation with gcc-6.2.0-r1 and glibc-2.24. > > > > I only have USE="hwdb" set and i don't know if it works with musl. > > Thanks, I am aware of the fix. Real life. I'll push out a new release of > eudev this weekend. > > @kumba, thanks for pinging me, I'd forgotten about this simple bug :( Any chance we can get this fixed soon'ish? Only affects glibc-based chroots. My one uclibc-ng chroot built eudev-3.2 fine w/ gcc-6.2.0. (In reply to Joshua Kinard from comment #8) > (In reply to Anthony Basile from comment #7) > > (In reply to Philipp Ammann from comment #6) > > > Created attachment 453688 [details, diff] [details, diff] [details, diff] [details, diff] > > > include sys/sysmacros.h > > > > > > This patch fixes compilation with gcc-6.2.0-r1 and glibc-2.24. > > > > > > I only have USE="hwdb" set and i don't know if it works with musl. > > > > Thanks, I am aware of the fix. Real life. I'll push out a new release of > > eudev this weekend. > > > > @kumba, thanks for pinging me, I'd forgotten about this simple bug :( > > Any chance we can get this fixed soon'ish? Only affects glibc-based > chroots. My one uclibc-ng chroot built eudev-3.2 fine w/ gcc-6.2.0. This is fixed with eudev-3.2.1 which I just pushed. I tested with glibc-2.23 which is what this bug was originally about so I'm going to close it, but let me know if gcc-6 also causes issues. |