Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 382273 - revdep-rebuild should delimit filename arguments in grep calls: grep: unrecognized option '--library=c libc.so.6'
Summary: revdep-rebuild should delimit filename arguments in grep calls: grep: unrecog...
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: AMD64 Linux
: Normal minor
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-08 13:56 UTC by Armando Di Cianno
Modified: 2011-09-12 14:25 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Armando Di Cianno 2011-09-08 13:56:19 UTC
This is on a fairly fresh install (installed two days ago).

This bug now seems to be serious, but I first encountered it when toying with libixp and wmii ebuilds. I was porting the ones in the official tree to use the mercurial repo upstream, and had an error -- ebuild libixp-9999.ebuild install would fail *very late* in the install process. I narrowed this down to dolib.so in the ebuild creating (something like) libixp.so.X, libixp.so (link to previous), and (literally, as a filename) --library=c (link to the main library).

Because this was my own / an out of tree ebuild, I did not report the error (trust me, wmii build process is very /opinionated/, so I didn't think twice about it, and just only made static libs, and went about my way.

However, now I'm seeing very similar issues when running revdep-rebuild (I just rebuilt world, so wanted to make sure of linkage issues). When I run it, I see this:

>>>
 * Collecting system binaries and libraries
 * Generated new 1_files.rr
 * Collecting complete LD_LIBRARY_PATH
 * Generated new 2_ldpath.rr
 * Checking dynamic linking consistency
[ 14% ] grep: unrecognized option '--library=c
libc.so.6'
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
[ 100% ]                 

 * Dynamic linking on your system is consistent... All done.
<<<

I have no idea where this "--library=c" option is coming from, but it seems to be causing havoc on a fairly fresh install.

Reproducible: Always

Steps to Reproduce:
1. revdep-rebuild




Portage 2.1.10.11 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.12.2-r0, 3.0.4-gentoo x86_64)
=================================================================
System uname: Linux-3.0.4-gentoo-x86_64-Intel-R-_Core-TM-_i7-2617M_CPU_@_1.50GHz-with-gentoo-2.0.3
Timestamp of tree: Thu, 08 Sep 2011 13:30:01 +0000
app-shells/bash:          4.1_p9
dev-lang/python:          2.7.1-r1, 3.1.3-r1
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.68
sys-devel/automake:       1.9.6-r3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo x-overlay
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -O2 -g -ggdb -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-pipe -O2 -g -ggdb -march=native"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages installsources news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="        http://mirror.mcs.anl.gov/pub/gentoo/   http://www.gtlib.gatech.edu/pub/gentoo  http://gentoo.osuosl.org/       http://mirror.iawnet.sandia.gov/gentoo/ "
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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="/home/greymouser/Projects/wmii/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 amr avahi bash-completion berkdb bluetooth bzip2 cairo caps cdda cddb cli consolekit cracklib crypt cups cvs cxx dbus dirac djvu dri dv dvb dvd emacs exif faac fbsplash ffmpeg flac fontconfig fortran fpx fuse gdbm gif gnome-keyring gpm graphviz gs gsm gstreamer hdri iconv idn ieee1394 imagemagick ipv6 jpeg jpeg2k lame lcms libcaca lzma lzo mmx mng modules mp3 mpeg mudflap multilib ncurses network-cron nls nptl nptlonly ogg openal openexr opengl openmp pam pcre perl png pppd python readline rtmp samba schroedinger sdl session speex spell sse sse2 ssl subversion svg sysfs taglib tcpd theora tiff truetype unicode upnp usb v4l v4l2 vaapi vdpau vorbis vpx wavpack webp wmf x264 xattr xcb xft xinerama xml xmp xorg xpm xv xvid zeroconf zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul 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 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 stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" INPUT_DEVICES="evdev joystick keyboard mouse synaptics wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="dummy intel nvidia v4l vesa" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2011-09-09 15:19:24 UTC
I guess you installed a file called --library=c and I can tell that revdep-rebuild does not use the -- delimiter between options and filenames.

Since it probably should do that, this is a real bug but certainly not a major one.

As for your problem - you should probably run

 find / -name "--library=c" | xargs rm -vi --

to get rid of the file or unmerge libixp and use a less flaky ebuild next time. :)
Comment 2 Armando Di Cianno 2011-09-09 17:47:01 UTC
My story was to illustrate where I've seen the problem only -- I'm actually not using libixp/wmii any longer.

However, FWIW:

greymouser@lankhmar ~ $ sudo find / -name "--library=c"
greymouser@lankhmar ~ $ 

:-/

Any other ideas?

It is possibly related or not, but I cannot build gcc-4.4.5 (with gcc-4.4.5 or gcc-4.5.3) on this fairly fresh system ala bug #379777 (which claims it's only on hardened, which I am not running).

greymouser@lankhmar ~ $ eselect profile list
Available profile symlink targets:
  [1]   default/linux/amd64/10.0 *
Comment 3 Brian Dolbec (RETIRED) gentoo-dev 2011-09-09 23:49:51 UTC
you didn't mention the gentoolkit version you are getting this for.  I assume it it gentoolkit-0.3.0.4 or a revision.
Comment 4 Armando Di Cianno 2011-09-10 15:27:05 UTC
Correct.

greymouser@lankhmar ~ $ emerge gentoolkit -pv

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

Calculating dependencies... done!
[ebuild   R    ] app-portage/gentoolkit-0.3.0.4  0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 k
Comment 5 Armando Di Cianno 2011-09-12 14:25:37 UTC
Closing this bug as invalid, although really it should be "weird/dontcareanymore".

Follow my notes at bug #379777 - when I solved my gcc-4.4.5-not-building issue, this went away.

I'm not sure what could have originally caused this problem -- there may be a problem in the current stage3 I used when installing.

Regardless, until someone else on amd64 is not able to build gcc-4.4.5 out of the box, there's a low chance anyone else will see this bug.