Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 533530 - sys-fs/udev-218 - ?
Summary: sys-fs/udev-218 - ?
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-25 18:06 UTC by Dennis Nezic
Modified: 2014-12-29 01:37 UTC (History)
0 users

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


Attachments
Some more bits from the build.log (build-udev218-fail.log,15.83 KB, text/plain)
2014-12-25 18:08 UTC, Dennis Nezic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Nezic 2014-12-25 18:06:45 UTC
sys-fs/udev-218 fails to build near the end of the compilation process.

x86_64 arch. gcc version 4.7.2. only "kmod" USE flag is enabled. udev-217 compiles fine.

Here's are the last lines from the compile:

libtool: link: x86_64-pc-linux-gnu-gcc -shared  -fPIC -DPIC  src/libudev/.libs/libudev_la-libudev.o src/libudev/.libs/libudev_la-libudev-list.o src/libudev/.libs/libudev_la-libudev-util.o src/libudev/.libs/libudev_la-libudev-device.o src/libudev/.libs/libudev_la-libudev-enumerate.o src/libudev/.libs/libudev_la-libudev-monitor.o src/libudev/.libs/libudev_la-libudev-queue.o src/libudev/.libs/libudev_la-libudev-hwdb.o  -Wl,--whole-archive ./.libs/libsystemd-internal.a ./.libs/libsystemd-shared.a -Wl,--no-whole-archive  -Wl,--as-needed -ldw -lrt -ldl  -march=k8 -mtune=k8 -O2 -Wl,--no-undefined -Wl,--gc-sections -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,--version-script=/var/tmp/portage/sys-fs/udev-218/work/systemd-218/src/libudev/libudev.sym -Wl,-O1   -pthread -Wl,-soname -Wl,libudev.so.1 -o .libs/libudev.so.1.6.2

./.libs/libsystemd-internal.a(libsystemd_internal_la-bus-error.o): In function `bus_error_name_to_errno':

bus-error.c:(.text.bus_error_name_to_errno+0x9b): undefined reference to `__stop_BUS_ERROR_MAP'
bus-error.c:(.text.bus_error_name_to_errno+0xa2): undefined reference to `__start_BUS_ERROR_MAP'

collect2: error: ld returned 1 exit status

Reproducible: Always
Comment 1 Dennis Nezic 2014-12-25 18:08:05 UTC
Created attachment 392384 [details]
Some more bits from the build.log
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-12-26 10:25:31 UTC
Comment on attachment 392384 [details]
Some more bits from the build.log

1) Please attach the entire build log to this bug report.
2) Please post your `emerge --info sys-fs/udev' output in a comment.
Comment 3 Dennis Nezic 2014-12-29 01:33:48 UTC
Upgrading my binutils from 2.20 to 2.24 solved the problem. It's not an uncommon problem either:

https://www.marshut.net/kttspt/build-error-with-218-undefined-reference-to-start-bus-error-map.html

"Some really old ld versions would end up dropping these sections a bit too eagerly: 
https://sourceware.org/bugzilla/show_bug.cgi?id=11133"
Comment 4 Dennis Nezic 2014-12-29 01:34:37 UTC
Upgrading my binutils from 2.20 to 2.24 solved the problem. It's not an uncommon problem either:

https://www.marshut.net/kttspt/build-error-with-218-undefined-reference-to-start-bus-error-map.html

"Some really old ld versions would end up dropping these sections a bit too eagerly: 
https://sourceware.org/bugzilla/show_bug.cgi?id=11133"
Comment 5 Dennis Nezic 2014-12-29 01:37:42 UTC
Apparently "it does not happen with binutils-2.23.2 and binutils-2.24". This should probably become a DEPEND in the ebuild?