Summary: | sys-apps/coreutils-6.10* fails to build due to unresolved clock_gettime | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | J.C. Wren <jcwren> |
Component: | [OLD] Core system | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED WORKSFORME | ||
Severity: | major | CC: | alexxy, ansla80, bugs+gentoo, ppinchis1, tpfaff |
Priority: | High | ||
Version: | 2007.0 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Build log for coreutils
gzip'ed config.log Link tac with clock_gettime library |
Description
J.C. Wren
2008-01-26 15:08:33 UTC
post the entire build log as an attachment Created attachment 143107 [details]
Build log for coreutils
Result from 'emerge coreutils'
sorry, please also post the config.log file as an attachment The config.log file is 1314Kb, too large for an attachment. I've uploaded it to http://jcwren.com/bugzilla/config.log so use compression Created attachment 146761 [details]
gzip'ed config.log
sys-apps/coreutils-6.10-r2 has the same issue. the nanosleep test is going wrong on your system The same problem with my gentoo on sparc. I've masked this version in /etc/portage/package.mask as I see you don't have any solution for this issue. This bug is caused by the new posix rules of the compiler. I managed to emerge perfectly coreutils 6.10 with the command: export LDFLAGS=" -lrt " && emerge coreutils However the developers should change the code to include the -lrt switch of gcc. Thanks! That fixed it for me. I'd like to know how you figured out the "-lrt" option. "undefined reference to `clock_gettime' " is typical for the -lrt switch problems. Google has several examples of similar cases. if you read the configure script, you'll see that there are actual tests for clock_time and -lrt. i already indicated where the configure script is misdetecting things on the system in question. I've just installed a brand new gentoo system from scratch (stage3-profile 2008-b1)... I've emerged over 150 packages, and coreutils was the ONLY one misdetecting any gcc switches... So obviously it is something rotten, with the configuration script... gcc has nothing to do with it, nor any gcc switches Is anybody fixing this thing....or we are just trying to pass the buck and put the blame and something else???? This bug is real, it is not just imaginary. It happened to quite a few people. Looks like all other packages haven't got -lrt problems, so why only this one has? Wherever we like it or not, somebody has to make this package to add automatically the -lrt switch. either research the real issue and propose a fix, or sit there *quietly* and wait for one vapier, it's a good thing your attitude isn't representative of the majority of the developers. Otherwise, I'd think we find that Gentoo would be a far less popular distribution. which part was unacceptable ? if you cant contribute to a bug, then dont sit there and do nothing but complain that volunteer developers havent been fixing it for you. I fully agree with Wren. Some posters here have no manners, are rude and abusive. Yes, Gentoo does not need that kind of as&&oles!!!! Sit "quietly" and wait for his majesty???? This guy has nerves!!! I spent countless hours to unscrew what some inept and incompetent developers screwed-up. I resolved the problem and I gave you the solution. All is left is for somebody to implement it! But if all developpers are like this SpanKY character, I honestly don't need his/hers contribution. SpanKY really needs a good spank! peter, J.C. Wren, please, don't make a chat from bugzilla. 1. peter, suggested by you just indicates the place where the problem is but is not a solution. Until correct solution (in form of patch or commit) will be found this bug will not be fixed. 2. nerves does not justify emotional posts to bugzilla. Answer from vapier have nothing to do with attitude and manners - this is just another technical thing: time is limited so if we spend it on reading emotional mails with zero information which could help to fix the bug, then we do not manage to spend the same time to fix the bugs... So like vapier said, at this point if you want to help, just wait. Thank you for understanding. Created attachment 153225 [details, diff]
Link tac with clock_gettime library
I have the same problem on an AMD Geode LX 800, my CFLAGS are
"-Os -fomit-frame-pointer -march=k6-2 -pipe".
In order to fix this i have created a patch for Makefile.am to get tac build with librt. I have build coreutils successfully with this patch on the Geode and a P4.
I can only guess why librt is sometimes needed, might be -Os related. But i can not check this at the moment, rebuilding world on the Geode takes far too long.
I'm getting this on both intel PentiumD and via c7 machines. Both are running as diskless NFS workstations(not sure if this is related). ./lib/libcoreutils.a ../lib/libcoreutils.a i686-pc-linux-gnu-gcc -std=gnu99 -march=prescott -O2 -pipe -fomit-frame-pointer -Wl,--as-needed -o tsort tsort.o ../lib/libcoreutils.a ../lib/libcoreutils.a i686-pc-linux-gnu-gcc -std=gnu99 -march=prescott -O2 -pipe -fomit-frame-pointer -Wl,--as-needed -o unexpand unexpand.o ../lib/libcoreutils.a ../lib/libcoreutils.a i686-pc-linux-gnu-gcc -std=gnu99 -march=prescott -O2 -pipe -fomit-frame-pointer -Wl,--as-needed -o uniq uniq.o ../lib/libcoreutils.a ../lib/libcoreutils.a ../lib/libcoreutils.a(gethrxtime.o): In function `gethrxtime': gethrxtime.c:(.text+0x3a): undefined reference to `clock_gettime' ../lib/libcoreutils.a(gettime.o): In function `gettime': gettime.c:(.text+0x36): undefined reference to `clock_gettime' collect2: ld returned 1 exit status i686-pc-linux-gnu-gcc -std=gnu99 -march=prescott -O2 -pipe -fomit-frame-pointer -Wl,--as-needed -o wc wc.o ../lib/libcoreutils.a ../lib/libcoreutils.a make[2]: *** [tac] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/sys-apps/coreutils-6.10-r2/work/coreutils-6.10/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/sys-apps/coreutils-6.10-r2/work/coreutils-6.10/src' make: *** [all-recursive] Error 1 * * ERROR: sys-apps/coreutils-6.10-r2 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2839: Called die * The specific snippet of code: * emake || die "emake" * The die message: * emake * mammoth david # emerge --info Portage 2.1.4.4 (hardened/x86/2.6, gcc-3.4.6, glibc-2.6.1-r0, 2.6.24-gentoo-r4 i686) ================================================================= System uname: 2.6.24-gentoo-r4 i686 Intel(R) Pentium(R) D CPU 3.20GHz Timestamp of tree: Sun, 25 May 2008 17:03:01 +0000 app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.4 dev-lang/python: 2.4.4-r9 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/qmail/alias /var/qmail/control /var/vpopmail/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" LINGUAS="ja en" MAKEOPTS="-j7" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://possum.hakodateit.com/gentoo-portage" USE="anthy berkdb cjk cracklib crypt hal hardened immqt-bc kde midi nls nptl nptlonly pam pic qt3 qt3support qt4 readline ssl tcpd unicode urandom x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="alias auth_basic authn_file authz_host cgi dir log_config mime authz_user authz_groupfile include" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ja en" USERLAND="GNU" VIDEO_CARDS="v4l vesa vga fbdev i810" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY raccoon david # emerge --info Portage 2.1.4.4 (hardened/x86/2.6, gcc-3.4.6, glibc-2.6.1-r0, 2.6.23-gentoo-r6 i686) ================================================================= System uname: 2.6.23-gentoo-r6 i686 VIA Esther processor 1500MHz Timestamp of tree: Sat, 24 May 2008 17:00:01 +0000 app-shells/bash: 3.2_p33 dev-lang/python: 2.4.4-r9 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.7.9-r1, 1.9.6-r2, 1.10.1 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=i686 -mmmx -msse -msse2 -msse3 -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=i686 -mmmx -msse -msse2 -msse3 -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.channelx.biz/ http://ftp.iij.ad.jp/pub/linux/gentoo/ ftp://ftp.jaist.ac.jp/pub/Linux/Gentoo/ http://gentoo.gg3.net/ http://ftp.jaist.ac.jp/pub/Linux/Gentoo/" LINGUAS="ja en" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://possum.hakodateit.com/gentoo-portage" USE="X alsa apache2 berkdb cracklib crypt dbus dri hal hardened midi mmx nls nptl nptlonly pam pic readline sse ssl startup-notification tcpd unicode urandom x86 xorg xscreensaver zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="alias auth_basic authn_file authz_host cgi dir log_config mime authz_user authz_groupfile include rewrite" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ja en" USERLAND="GNU" VIDEO_CARDS="via" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY Mine was an NFS diskless station also. I didn't think this bug might be related to NFS...but maybe it is. Same here : root file system is NFS mounted Therefore i do think that this is NFS related, otherwise it would happen more frequently. For the sake of completeness my emerge --info Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24.7 i586) ================================================================= System uname: 2.6.24.7 i586 Geode(TM) Integrated Processor by AMD PCS Timestamp of tree: Mon, 26 May 2008 01:45:01 +0000 app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.6 dev-lang/python: 2.4.4-r9 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.61-r1 sys-devel/automake: 1.7.9-r1, 1.9.6-r2, 1.10.1 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86" CBUILD="i586-pc-linux-gnu" CFLAGS="-Os -fomit-frame-pointer -march=k6-2 -pipe" CHOST="i586-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-Os -fomit-frame-pointer -march=k6-2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="en_US.ISO-8859-1" LINGUAS="en" MAKEOPTS="-j1" PKGDIR="/usr/portage-binpackages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/src/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acpi berkdb cairo cdr cli cracklib crypt dvd dvdr dvdread eds emboss encode esd evo fbcon firefox gdbm gif gpm iconv isdnlog java jpeg lcms logrotate mad midi mikmod mmx mp3 ncurses nptl nptlonly ogg openmp oss pam pcre pdf perl png pppd python qt3 qt3support quicktime readline reflection session spell spl ssl svg tcpd tiff truetype unicode usb userlocales vorbis win32codecs x86 xinetd xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="keyboard ps2mouse mouse void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="vga fbdev" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS Same here, NFS mounted filesystems, booted via TFTP. (In reply to comment #26) > Same here, NFS mounted filesystems, booted via TFTP. > I cant reproduce this bug on arm with nfs mounted root export LDFLAGS=" -lrt " && emerge '=sys-apps/coreutils-6.10-r2' works here, too. I'm also on NFS. The system is dualboot PXE/HDD with the same Gentoo config on both (USE-FLags, CFLAGS etc.) and I only seldom update the PXE one, I did not stumble upon this error when updating the HDD boot (I frequently update that one). I recently tried to build coreutils 6.11 on my NFS mounted machine and succeeded. I checked the Makefile and noticed that tac is linked with $(LIB_CLOCK_GETTIME) on 6.11. Therefore i do think that my patch for 6.10 is correct. Anyway this problem will go away sooner or later when 6.11 is stable. It looks like nanosleep doesn't need -lrt, at least on recent glibc, so libs_nanosleep won't be enough, and some things (tail in my case) need LIB_CLOCK_GETTIME. This is working in 6.11. I also hit this bug, Mike, can we get the patch applied or coreutils-6.11 stable, please? Thanks Oh, and this fails on all revisions. Whats even worse, it fails for the same reason on a NFS root and when cross-compiling, the latter is not NFS. we dont want 6.11 stable. 7.1 should go stable. This can be probably closed now that coreutils-7.1 is stable Just for info, I run into the same error while compiling libdrm-2.4.11 The -lrt option worked fine for me. No other package presented the problem. And I'm not on NFS |