Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 151400 - sys-devel/distcc - broken wrappers make sys-libs/db compile fail
Summary: sys-devel/distcc - broken wrappers make sys-libs/db compile fail
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Lisa Seelye (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-14 16:56 UTC by Rafal Boniecki
Modified: 2007-01-27 12:31 UTC (History)
2 users (show)

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


Attachments
config.log (config.log,15.94 KB, text/plain)
2006-10-14 17:11 UTC, Rafal Boniecki
Details
config.log from Fieldy (config.log,13.79 KB, text/plain)
2006-10-25 09:51 UTC, FieldySnuts
Details
config.log -- deathwing00 (config.log,14.80 KB, text/plain)
2007-01-21 16:11 UTC, Ioannis Aslanidis (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rafal Boniecki 2006-10-14 16:56:49 UTC
These two buggers crap out with following message:

checking for C compiler default output... configure: error: C compiler cannot create executables

Yes, I followed Gentoo GCC Upgrade Guide everything on my system seems to work fine except for this.

emerge --info (partially stripped for revelant info):

Portage 2.1.2_pre2-r8 (default-linux/x86, gcc-4.1.1, glibc-2.4-r4, 2.6.17-gentoo-r8-valkyrie i686)
=================================================================
System uname: 2.6.17-gentoo-r8-valkyrie i686 AMD Athlon(tm) XP 1700+
Gentoo Base System version 1.12.5
Last Sync: Sat, 14 Oct 2006 22:30:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE=""
ALSA_CARDS="emu10k1 usb-audio"
ANT_HOME="/usr/share/ant-core"
ARCH="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -Os -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CLASSPATH="."
CLEAN_DELAY="5"
CONFIG_PROTECT="/etc /usr/NX/etc /usr/NX/home /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CVS_RSH="ssh"
CXXFLAGS="-march=i686 -Os -pipe"
DCCC_PATH="/usr/lib/distcc/bin"
DISPLAY=":0.0"
DISTCC_LOG=""
DISTCC_VERBOSE="0"
DISTDIR="/var/tmp/distfiles"
EDITOR="/bin/nano"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="--verbose --ask"
EMERGE_WARNING_DELAY="10"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
FETCHCOMMAND="/usr/bin/wget -t 5 -T 60 --passive-ftp -P ${DISTDIR} ${URI}"
GCC_SPECS=""
GDK_USE_XFT="1"
GENERATION="2"
GUILE_LOAD_PATH="/usr/share/guile/1.6"
G_BROKEN_FILENAMES="1"
G_FILENAME_ENCODING="UTF-8"
INFOPATH="/usr/share/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.17/info:/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/info:/usr/share/gcc-data/i686-pc-linux-gnu/4.1.1/info:/usr/share/info"
INPUT_DEVICES="mouse keyboard"
JAVAC="/etc/java-config-2/current-system-vm/bin/javac"
JAVA_HOME="/etc/java-config-2/current-system-vm"
JDK_HOME="/etc/java-config-2/current-system-vm"
KDEDIRS="/usr/kde/3.5:/usr:/usr/local"
KERNEL="linux"
TMAKEPATH="/usr/lib/tmake/linux-g++"
USE="x86 16bit 3dnow 3dnowex 3dnowext 7zip X a52 aac alsa apache2 asf asm bash-completion berkdb bitmap-fonts boundschecking bzip2 cairo cdr chm dbus djvu dri dts dvd dvdr dvdread dvi elibc_glibc evolution exif ffmpeg firefox flac font-server ftp gif glitz glut glx gnome gnutls gstreamer gtk gtk2 hal howl icu input_devices_keyboard input_devices_mouse java javascript jikes jpeg jpeg2k kde kdeenablefinal kdexdeltas kernel_linux linguas_en lm_sensors logrotate mad mmx mmxext mng mono mp3 mpeg mplayer musepack musicbrainz nautilus ncurses nls nptl nptlonly nsplugin offensive ogg opengl pam png qt quicktime rar real samba sdl spell sse sse-filters ssl svg symlink tetex threads tiff truetype truetype-fonts udev unicode usb userland_GNU userlocales video_cards_radeon vorbis webservices win32codecs wv xcomposite xine xv xvid zlib"
USER="root"
USERLAND="GNU"
USE_EXPAND="CROSSCOMPILE_OPTS DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS INPUT_DEVICES KERNEL LINGUAS LIRC_DEVICES MISDN_CARDS USERLAND VIDEO_CARDS"
USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_ORDER="env:pkg:conf:defaults"
VIDEO_CARDS="radeon"
VMHANDLE="sun-jdk-1.4"
XARGS="xargs -r"
XAUTHORITY="/root/.xauthdQOSOb"
_="/usr/bin/emerge"
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-10-14 16:59:43 UTC
We need the config.log, please attach it.
Comment 2 Rafal Boniecki 2006-10-14 17:09:23 UTC
See `config.log' for more details.

Thats what portage tells me about this file. So all I know is that it exists. I would like to know where I can actually find it :)
Comment 3 Rafal Boniecki 2006-10-14 17:11:25 UTC
Created attachment 99695 [details]
config.log
Comment 4 Rafal Boniecki 2006-10-14 17:13:23 UTC
For future reference: found it in portage temporary directory in work/db-4.2.52/build_unix
Comment 5 Rafal Boniecki 2006-10-14 17:17:09 UTC
Reopenning...
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-10-14 17:18:49 UTC
<snip>
configure:3558: checking for i686-pc-linux-gnu-cc
configure:3574: found /usr/lib/distcc/bin/i686-pc-linux-gnu-cc
configure:3584: result: i686-pc-linux-gnu-cc
</snip>

You shouldn't have this wrapper there, delete it.
Comment 7 Rafal Boniecki 2006-10-14 17:25:52 UTC
FYI it was not made by me. It was made by distcc. For a reason I have distcc installed but disabled.  Shouldn't portage take care of correctly disabling distcc  for me (i.e. removing this wrapper) when FEATURES does not contain distcc? Is this enough for another bug report or is it "feature" :)?
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-10-14 17:41:14 UTC
Not a matter of disabling distcc, the wrapper shouldn't be there at all, whether distcc is enabled or not. Delete it and try again.
Comment 9 Rafal Boniecki 2006-10-14 17:51:14 UTC
Thanks. It works now.
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2006-10-14 18:08:25 UTC
Thanks for testing.
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2006-10-14 18:09:32 UTC
lisa, at least it's not ccache this time :P *runs*
Comment 12 Lisa Seelye (RETIRED) gentoo-dev 2006-10-21 07:31:20 UTC
Not sure how you have this wrapper. distcc-config --install does not install a ${CHOST}-cc symlink.
Comment 13 FieldySnuts 2006-10-25 09:51:00 UTC
I may be seeing this issue with 4.3.29-r2. I had the same invalid distcc wrapper the reporter did. equery b showed the symlink owned by no package. I removed it, but I still get the issue. Now, config finds:

configure:3459: checking for i686-pc-linux-gnu-cc
configure:3475: found /usr/lib/ccache/bin/i686-pc-linux-gnu-cc

I was thinking of removing the ccache symlink but i'm not sure if I should do that; please let me know. Attaching config.log.
Comment 14 FieldySnuts 2006-10-25 09:51:24 UTC
Created attachment 100471 [details]
config.log from Fieldy
Comment 15 FieldySnuts 2006-10-25 09:51:58 UTC
Bleh forgot emerge --info:

Portage 2.1.2_pre3-r8 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.18.1-ifc i686)
=================================================================
System uname: 2.6.18.1-ifc i686 Intel(R) Pentium(R) M processor 1.86GHz
Gentoo Base System version 1.12.5
Last Sync: Wed, 25 Oct 2006 13:50:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=pentium-m -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/NX/etc /usr/NX/home /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-Os -march=pentium-m -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/ ftp://gentoo.chem.wisc.edu/gentoo/ ftp://gentoo.mirrors.tds.net/gentoo http://mirror.datapipe.net/gentoo"
LINGUAS="en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 3dnow X a52 alsa berkdb bitmap-fonts bzip2 cairo cdr chroot cli cracklib crypt dbus dlloader dri dv dvd dvdr dvdread eds elibc_glibc emboss encode fam ffmpeg firefox flac fortran gdbm gif gpm gtk gtk2 hal input_devices_keyboard input_devices_mouse input_devices_synaptics isdnlog jpeg kde kdeenablefinal kernel_linux libg++ linguas_en mad mikmod mmx mp3 mpeg ncurses network nls nptl nptlonly ogg opengl oss pam pcre pdflib perl png ppds pppd pwdb python qt3 qt4 quicktime readline reflection sdl session spell spl sse ssl svg theora tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU video_cards_ati video_cards_fglrx video_cards_radeon vorbis win32codecs xml xml2 xorg xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 16 MATSUU Takuto (RETIRED) gentoo-dev 2006-12-18 21:49:29 UTC
DistCC Cross-compiling Guide needs to be fixed.
http://www.gentoo.org/doc/en/cross-compiling-distcc.xml

 Code Listing 1.2: Modifying distcc
 
-# rm c++ g++ gcc cc
+# rm c++ g++ gcc


 Code Listing 1.4: Creating the symlinks

 # chmod a+x sparc-unknown-linux-gnu-wrapper
-# ln -s sparc-unknown-linux-gnu-wrapper cc
 # ln -s sparc-unknown-linux-gnu-wrapper gcc
 # ln -s sparc-unknown-linux-gnu-wrapper g++
 # ln -s sparc-unknown-linux-gnu-wrapper c++

 Code Listing 1.5: A proper set of compilers 

 # ls -l
 total 4
 lrwxrwxrwx  1 root root 25 Jan 18 14:20 c++ -> sparc-unknown-linux-gnu-wrapper
-lrwxrwxrwx  1 root root 25 Jan 18 14:20 cc -> sparc-unknown-linux-gnu-wrapper
+lrwxrwxrwx  1 root root 15 Dec 23 20:13 cc -> /usr/bin/distcc
 lrwxrwxrwx  1 root root 25 Jan 18 14:20 g++ -> sparc-unknown-linux-gnu-wrapper
 lrwxrwxrwx  1 root root 25 Jan 18 14:20 gcc -> sparc-unknown-linux-gnu-wrapper
 lrwxrwxrwx  1 root root 15 Nov 21 10:42 sparc-unknown-linux-gnu-c++ -> /usr/bin/distcc
 lrwxrwxrwx  1 root root 15 Nov 21 10:42 sparc-unknown-linux-gnu-g++ -> /usr/bin/distcc
 lrwxrwxrwx  1 root root 15 Jul 27 10:52 sparc-unknown-linux-gnu-gcc -> /usr/bin/distcc
 -rwxr-xr-x  1 root root 70 Jan 18 14:20 sparc-unknown-linux-gnu-wrapper
Comment 17 Ioannis Aslanidis (RETIRED) gentoo-dev 2007-01-21 15:40:34 UTC
It happened to me as well, but not on a fresh installation. Maybe the wrapper got created in previous versions somehow.
Comment 18 Ioannis Aslanidis (RETIRED) gentoo-dev 2007-01-21 16:11:23 UTC
Created attachment 107680 [details]
config.log -- deathwing00
Comment 19 Ioannis Aslanidis (RETIRED) gentoo-dev 2007-01-21 16:18:09 UTC
Solved after:
# rm /usr/lib/distcc/bin/i686-pc-linux-gnu-cc
# rm /usr/lib/ccache/bin/i686-pc-linux-gnu-cc
Comment 20 Lisa Seelye (RETIRED) gentoo-dev 2007-01-27 12:31:53 UTC
Closing.

If users have a problem please see comment #19.