Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 176544 - splashutils-1.4.1 fails to compile because of distcc
Summary: splashutils-1.4.1 fails to compile because of distcc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Michal Januszewski (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-30 10:22 UTC by Nils Ohlmeier
Modified: 2007-05-13 21:57 UTC (History)
2 users (show)

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


Attachments
Build log (build.log,19.52 KB, text/plain)
2007-04-30 10:23 UTC, Nils Ohlmeier
Details
splashutils-1.4.2/work/splashutils-1.4.2/objs/jpeglib/config.log (config.log,17.44 KB, text/plain)
2007-05-07 22:02 UTC, Nils Ohlmeier
Details
faulty klcc exectuable (klcc,8.81 KB, text/plain)
2007-05-12 15:38 UTC, Nils Ohlmeier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nils Ohlmeier 2007-04-30 10:22:07 UTC
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.
Comment 1 Nils Ohlmeier 2007-04-30 10:23:41 UTC
Created attachment 117711 [details]
Build log
Comment 2 Nils Ohlmeier 2007-04-30 10:24:23 UTC
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
Comment 3 Michal Januszewski (RETIRED) gentoo-dev 2007-05-03 16:24:36 UTC
What version of klibc are you using? Could you please try reemerging it?
Comment 4 Nils Ohlmeier 2007-05-03 17:01:51 UTC
# 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).
Comment 5 Michal Januszewski (RETIRED) gentoo-dev 2007-05-07 17:28:47 UTC
Could you please attach /var/tmp/portage/media-gfx/splashutils-1.4.2/work/splashutils-1.4.2/objs/jpeglib/config.log?
Comment 6 Nils Ohlmeier 2007-05-07 22:02:22 UTC
Created attachment 118504 [details]
splashutils-1.4.2/work/splashutils-1.4.2/objs/jpeglib/config.log
Comment 7 Michal Januszewski (RETIRED) gentoo-dev 2007-05-12 09:50:53 UTC
Have you tried running `gcc-config -f <current_profile>`? If that doesn't help, please attach /usr/bin/klcc.
Comment 8 Nils Ohlmeier 2007-05-12 15:38:42 UTC
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.
Comment 9 Michal Januszewski (RETIRED) gentoo-dev 2007-05-13 09:47:56 UTC
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.
Comment 10 Christian Heim (RETIRED) gentoo-dev 2007-05-13 12:11:06 UTC
(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.
Comment 11 Nils Ohlmeier 2007-05-13 21:57:46 UTC
Thanks guys. Re-merging klibc fixed the problem.
Sorry for the confusion about the wrong packet.