splashutils version 1.4.1 (as far as I remember also an earlier version) fails to compile on my system because it tries to use distcc in some strange way. Reproducible: Always Steps to Reproduce: 1. install distcc, but do not enable it in portage 2. try to emerge splashutils 3. Actual Results: >>> Compiling source in /var/tmp/portage/media-gfx/splashutils-1.4.1/work/splashutils-1.4.1 ... cc -O2 -march=nocona -pipe -fomit-frame-pointer fbres.c -o fbres cc -O2 -march=nocona -pipe -fomit-frame-pointer usleep.c -o usleep strip usleep strip fbres make[1]: Entering directory `/var/tmp/portage/media-gfx/splashutils-1.4.1/work/miscsplashutils-0.1.5/fbtruetype' gcc -O2 -Wall -I/usr/include/freetype2 -c -o fbtruetype.o fbtruetype.c gcc -O2 -Wall -I/usr/include/freetype2 -c -o messages.o messages.c gcc -O2 -Wall -I/usr/include/freetype2 -c -o console.o console.c gcc -O2 -Wall -I/usr/include/freetype2 -c -o ttf.o ttf.c gcc -O2 -Wall -I/usr/include/freetype2 -c -o luxisri.o luxisri.c fbtruetype.c:39: warning: pointer targets in initialization differ in signedness fbtruetype.c: In function 'main': fbtruetype.c:105: warning: pointer targets in assignment differ in signedness fbtruetype.c:143: warning: pointer targets in passing argument 2 of 'rendertext' differ in signedness ttf.c: In function 'rendertext': ttf.c:799: warning: pointer targets in assignment differ in signedness gcc -O2 -Wall -I/usr/include/freetype2 -L/usr/lib64 -o fbtruetype -L/usr/lib64 fbtruetype.o messages.o console.o ttf.o luxisri.o -lfreetype -lm gcc -O2 -Wall -I/usr/include/freetype2 -L/usr/lib64 -static -o fbtruetype.static -L/usr/lib64 fbtruetype.o messages.o console.o ttf.o luxisri.o /usr/lib64/libfreetype.a /usr/lib64/libz.a -lm strip -s fbtruetype fbtruetype.static make[1]: Leaving directory `/var/tmp/portage/media-gfx/splashutils-1.4.1/work/miscsplashutils-0.1.5/fbtruetype' make[1]: Entering directory `/var/tmp/portage/media-gfx/splashutils-1.4.1/work/miscsplashutils-0.1.5/kbd' cc -O2 -march=nocona -pipe -fomit-frame-pointer -c -o fgconsole.o fgconsole.c cc -O2 -march=nocona -pipe -fomit-frame-pointer -c -o getfd.o getfd.c cc -O2 -march=nocona -pipe -fomit-frame-pointer fgconsole.o getfd.o -o fgconsole make[1]: Leaving directory `/var/tmp/portage/media-gfx/splashutils-1.4.1/work/miscsplashutils-0.1.5/kbd' config.h successfully created. You can run `make` now. CC objs/libsplash.o LD objs/libsplash.so CONF libjpeg MAKE libjpeg distcc[20287] (dcc_mkdir) ERROR: mkdir /var/tmp/.distcc/lock failed: No such file or directory distcc[20287] (dcc_lock_one) ERROR: failed to lock distcc[20287] (dcc_mkdir) ERROR: mkdir /var/tmp/.distcc/state failed: No such file or directory distcc[20287] (dcc_mkdir) ERROR: mkdir /var/tmp/.distcc/state failed: No such file or directory [and so on...] distcc[24766] (dcc_mkdir) ERROR: mkdir /var/tmp/.distcc/lock failed: No such file or directory distcc[24766] (dcc_lock_one) ERROR: failed to lock distcc[24766] (dcc_mkdir) ERROR: mkdir /var/tmp/.distcc/state failed: No such file or directory distcc[24766] (dcc_mkdir) ERROR: mkdir /var/tmp/.distcc/state failed: No such file or directory mv: `ftsystem.o' and `/var/tmp/portage/media-gfx/splashutils-1.4.1/work/splashutils-1.4.1/objs/freetype2/ftsystem.o' are the same file make[1]: *** [/var/tmp/portage/media-gfx/splashutils-1.4.1/work/splashutils-1.4.1/objs/freetype2/ftsystem.lo] Error 1 make: *** [ft2] Error 2 !!! ERROR: media-gfx/splashutils-1.4.1 failed. Call stack: ebuild.sh, line 1614: Called dyn_compile ebuild.sh, line 971: Called qa_call 'src_compile' ebuild.sh, line 44: Called src_compile splashutils-1.4.1.ebuild, line 132: Called die !!! failed to build splashutils !!! If you need support, post the topmost build error, and the call stack if relevant. !!! A complete build log is located at '/var/tmp/portage/media-gfx/splashutils-1.4.1/temp/build.log'. Expected Results: Compile it without using/touching distcc. The easy workaround is to simply create the directory /var/tmp/.distcc. But I think that this should not be the solution for this issue.
Created attachment 117711 [details] Build log
emerge --info Portage 2.1.2.5 (default-linux/amd64/2006.1, gcc-4.1.2, glibc-2.5-r1, 2.6.19-gentoo-r2 x86_64) ================================================================= System uname: 2.6.19-gentoo-r2 x86_64 Intel(R) Xeon(TM) CPU 2.80GHz Gentoo Base System release 1.12.10 Timestamp of tree: Mon, 30 Apr 2007 07:50:01 +0000 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [disabled] dev-java/java-config: 1.3.7, 2.0.31-r7 dev-lang/python: 2.2.3-r6, 2.3.6, 2.4.4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r6 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.23b virtual/os-headers: 2.6.20-r2 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=nocona -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/bind" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O2 -march=nocona -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/" LINGUAS="en en_GB de" 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 --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/voip /usr/portage/local/layman/gentoo-de /usr/portage/local/layman/xeffects /usr/local/portage" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="X aac aalib acpi aim alsa amd64 apache2 arts artswrappersuid bash-completion berkdb bitmap-fonts bluetooth bonjour bzip2 cairo cdr cli cpudetection cracklib crosscompile crypt cscope ctype cups curl cvs dbus dga dri dvd dvdr dvdread emul-linux-x86 encode exif expat fam fat ffmpeg firefox flac foomaticdb fortran gaim gdbm gif gimp gnutls gphoto2 gpm gs gtk gvim gzip hddtemp http iconv icq ident ieee1394 ilbc imagemagick imap imlib imlib2 innodb ipod iproute2 ipsec ipv6 irmc jbig jpeg jpeg2k kde kdepim libg++ libnotify lm_sensors logitech-mouse mad maildir midi mime mjpeg mmx motif mozilla mp3 mpeg mplayer msn mysql ncurses nis nls nptl nptlonly nsplugin nvidia obex ogg oggvorbis openexr opengl oscar pam pch pcre pda pdf perl pic png ppds pppd python qt3 qt4 quicktime rdesktop readline reflection reiser4 reiserfs rrdtool samba sasl scanner sdl session slp smime sndfile speex spell spl sqlite srtp sse sse2 ssl subversion svg svgz syslog tcltk tcpd tetex tiff transcode truetype truetype-fonts type1 type1-fonts unicode unzip usb vcd vfat vim vim-pager vim-with-x vorbis webdav wma wmf xcb xcomposite xine xml xml2 xmlrpc xorg xpm xscreensaver xv xvid yahoo zeroconf zip zlib zrtp" ALSA_CARDS="intel8x0 intel8x0m" 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB de" USERLAND="GNU" VIDEO_CARDS="fbdev nv nvidia vesa vga" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
What version of klibc are you using? Could you please try reemerging it?
# equery l klibc [ Searching for package 'klibc' in all categories among: ] * installed packages [I--] [ ~] dev-libs/klibc-1.4.13 (0) and the compilation still fails as long as the directory /var/tmp/.distcc does not exist (last portage rsync from this morning).
Could you please attach /var/tmp/portage/media-gfx/splashutils-1.4.2/work/splashutils-1.4.2/objs/jpeglib/config.log?
Created attachment 118504 [details] splashutils-1.4.2/work/splashutils-1.4.2/objs/jpeglib/config.log
Have you tried running `gcc-config -f <current_profile>`? If that doesn't help, please attach /usr/bin/klcc.
Created attachment 119021 [details] faulty klcc exectuable To force the gcc-profile did not helped. Thus I'm attaching '/usr/bin/klcc'. In it the CC variable is set to distcc (/usr/lib/distcc/bin/gcc points to /usr/bin/distcc). Now the question is why? I don't get it.
Try adding something like: echo "*** ${CC} ***" at the top of src_compile() in the klibc ebuild to see whether CC is defined when building klibc.
(In reply to comment #8) > Created an attachment (id=119021) [edit] > faulty klcc exectuable > > To force the gcc-profile did not helped. Thus I'm attaching '/usr/bin/klcc'. In > it the CC variable is set to distcc (/usr/lib/distcc/bin/gcc points to > /usr/bin/distcc). Now the question is why? I don't get it. Nils, could you try to unmerge and remerge klibc again ? Looks like there has been a bug that put the includes w/ wrong permissions. After that try and see if splashutils still breaks or if it compiles.
Thanks guys. Re-merging klibc fixed the problem. Sorry for the confusion about the wrong packet.