First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 80518
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Jeremy Huddleston <eradicator@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Travis Snoozy <ai2097@users.sourceforge.net>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
multilib.patch multilib.patch patch Sven Wegener 2005-02-05 21:30 0000 945 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 80518 depends on: Show dependency tree
Show dependency graph
Bug 80518 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-02-02 14:21 0000
After emerging distcc-2.18.3-r3, all subsequent emerges that invoke gcc fail
(gcc segfaults). This happens during configuration in most packages. 

Reproducible: Always
Steps to Reproduce:
0. export FEATURES="-distcc"
1. emerge '=sys-devel/distcc-2.18.3'
2. export FEATURES="distcc"
3. emerge '=sys-devel/distcc-2.18.3'

Actual Results:  
The second emerge fails in configuration (the log states that gcc segfaults).

Expected Results:  
The second emerge should have succeeded as the first did.

### config.log:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by distcc configure 2.18.3, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
--localstatedir=/var/lib --with-included-popt --with-gnome --enable-rfc2553

## --------- ##
## Platform. ##
## --------- ##

hostname = Jikoh
uname -m = i686
uname -r = 2.6.10-gentoo-r6
uname -s = Linux
uname -v = #2 Fri Jan 28 16:10:54 PST 2005

/usr/bin/uname -p = Pentium III (Coppermine)
/bin/uname -X     = unknown

/bin/arch              = i686
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
hostinfo               = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/lib/ccache/bin
PATH: /usr/lib/distcc/bin
PATH: /sbin
PATH: /usr/sbin
PATH: /usr/lib/portage/bin
PATH: /bin
PATH: /usr/bin
PATH: /opt/bin
PATH: /usr/i686-pc-linux-gnu/gcc-bin/3.4.3
PATH: /usr/X11R6/bin
PATH: /opt/blackdown-jdk-1.4.2.01/bin
PATH: /opt/blackdown-jdk-1.4.2.01/jre/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1358: checking build system type
configure:1376: result: i686-pc-linux-gnu
configure:1384: checking host system type
configure:1398: result: i686-pc-linux-gnu
configure:1443: checking for i686-pc-linux-gnu-gcc
configure:1459: found /usr/lib/ccache/bin/i686-pc-linux-gnu-gcc
configure:1469: result: i686-pc-linux-gnu-gcc
configure:1751: checking for C compiler version
configure:1754: i686-pc-linux-gnu-gcc --version </dev/null >&5
i686-pc-linux-gnu-gcc (GCC) 3.4.3 20050110 (Gentoo Linux 3.4.3.20050110,
ssp-3.4.3.20050110-0, pie-8.7.7)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:1757: $? = 0
configure:1759: i686-pc-linux-gnu-gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/specs
Configured with: /var/tmp/portage/gcc-3.4.3.20050110/work/gcc-3.4.3/configure
--enable-version-specific-runtime-libs --prefix=/usr
--bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.4.3
--includedir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/include
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.3
--mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.3/man
--infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.3/info
--with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.3/include/g++-v3
--host=i686-pc-linux-gnu --disable-altivec --disable-nls --enable-__cxa_atexit
--enable-clocale=gnu --with-system-zlib --disable-checking --disable-werror
--disable-libunwind-exceptions --enable-shared --enable-threads=posix
--enable-java-awt=gtk --enable-languages=c,c++,f77,java
Thread model: posix
gcc version 3.4.3 20050110 (Gentoo Linux 3.4.3.20050110, ssp-3.4.3.20050110-0,
pie-8.7.7)
configure:1762: $? = 0
configure:1764: i686-pc-linux-gnu-gcc -V </dev/null >&5
i686-pc-linux-gnu-gcc: `-V' option must have argument
distcc[29447] ERROR: compile (null) on localhost failed
configure:1767: $? = 1
configure:1790: checking for C compiler default output file name
configure:1793: i686-pc-linux-gnu-gcc -g -O2 -march=pentium3 -funroll-loops
-pipe   conftest.c  >&5
configure:1796: $? = 0
configure:1842: result: a.out
configure:1847: checking whether the C compiler works
configure:1853: ./a.out
configure:1856: $? = 0
configure:1873: result: yes
configure:1880: checking whether we are cross compiling
configure:1882: result: no
configure:1885: checking for suffix of executables
configure:1887: i686-pc-linux-gnu-gcc -o conftest -g -O2 -march=pentium3
-funroll-loops -pipe   conftest.c  >&5
./configure: line 1888: 29472 Segmentation fault      $CC -o conftest$ac_exeext
$CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5
configure:1890: $? = 139
configure:1908: error: cannot compute suffix of executables: cannot compile and
link
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-linux-gnu
ac_cv_build_alias=i686-pc-linux-gnu
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-g -O2 -march=pentium3 -funroll-loops -pipe'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_PYTHON_set=
ac_cv_env_PYTHON_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=i686-pc-linux-gnu
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_exeext=
ac_cv_host=i686-pc-linux-gnu
ac_cv_host_alias=i686-pc-linux-gnu
ac_cv_prog_CC=i686-pc-linux-gnu-gcc

## ----------------- ##
## Output variables. ##
## ----------------- ##

BUILD_POPT=''
CC='i686-pc-linux-gnu-gcc'
CFLAGS='-g -O2 -march=pentium3 -funroll-loops -pipe'
CPP=''
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GNOME_BIN=''
GNOME_CFLAGS=''
GNOME_LIBS=''
GNOME_PACKAGES=''
INSTALL_DATA=''
INSTALL_GNOME=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
OBJEXT=''
PACKAGE_BUGREPORT='distcc@lists.samba.org'
PACKAGE_NAME='distcc'
PACKAGE_STRING='distcc 2.18.3'
PACKAGE_TARNAME='distcc'
PACKAGE_VERSION='2.18.3'
PATH_SEPARATOR=':'
PYTHON=''
SET_MAKE=''
SHELL='/bin/sh'
ac_ct_CC=''
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias=''
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='/usr/share'
docdir='${datadir}/doc/distcc'
exec_prefix='NONE'
host='i686-pc-linux-gnu'
host_alias='i686-pc-linux-gnu'
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
includedir='${prefix}/include'
infodir='/usr/share/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='/var/lib'
mandir='/usr/share/man'
oldincludedir='/usr/include'
prefix='/usr'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_BUGREPORT "distcc@lists.samba.org"
#define PACKAGE_NAME "distcc"
#define PACKAGE_STRING "distcc 2.18.3"
#define PACKAGE_TARNAME "distcc"
#define PACKAGE_VERSION "2.18.3"

configure: exit 1




### emerge info:

Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.4.3,
glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r6 i686)
=================================================================
System uname: 2.6.10-gentoo-r6 i686 Pentium III (Coppermine)
Gentoo Base System version 1.6.9
Python:              dev-lang/python-2.3.4,dev-lang/python-2.2.3-r5 [2.3.4 (#1,
Jan 28 2005, 23:46:59)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4, 2.2.3-r5
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.6.3, 1.5, 1.4_p6, 1.9.4, 1.8.5-r3
sys-devel/binutils:  2.15.92.0.2-r1, 2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-g -O2 -march=pentium3 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/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/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-g -O2 -march=pentium3 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distcc distlocks nostrip sandbox
sfperms"
GENTOO_MIRRORS="ftp://gentoo.llarian.net/pub/gentoo http://gentoo.llarian.net/
http://gentoo.osuosl.org/ http://mirror.tucdemonic.org/gentoo/
http://gentoo.ccccom.com http://mirror.datapipe.net/gentoo
http://gentoo.chem.wisc.edu/gentoo/ http://mirror.datapipe.net/gentoo
ftp://gentoo.agsn.ca/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
MAKEOPTS=""
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/.portage_overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac aalib acpi acpi4linux aim alsa apache2 artworkextra async
audiofile avi bash-completion bdf berkdb bidi bitmap-fonts blender-game bonobo
bzlib cap caps cdinstall cdparanoia cdrom chroot cjk codecs cpdflib cross crypt
cscope css ctype cups curl curlwrappers dbase dga dio directfb divx4linux doc
dv
dvd dvdread edl encode esd ethereal evms2 exif f77 faac faad fam fame fastcgi
fbcon fdftk ffmpeg fftw flac flash fmod font-server foomaticdb fortran freetts
freetype ftp gb gcj gd gdbm ggi gif gimp gimpprint ginac gnome gnomedb gphoto2
gpm graphviz gstreamer gtk gtk2 gtkhtml hal iconv icq imagemagick imap imlib
insecure-drivers ipv6 jabber java jbig jikes joystick jpeg kerberos lcms ldap
lesstif libcaca libg++ libgda libwww live lzo lzw-tiff mad maildir matroska
mbox
mcal mikmod mime ming mjpeg mmx mng mono mozaccess moznocompose moznoirc
moznomail mozp3p mozsvg mp3 mpeg mpeg4 mpi msn multitarget native ncurses
netcdf
network nocd offensive oggvorbis opengl oscar pam pcmcia pcre pdf pdflib pic
plotutils png pnp posix ppds pthreads qemu-fast quicktime quotes readline real
rtc samba sasl scanner sdl shared sharedmem silc slang slp sockets softmmu
speex
spell sse ssl svg svga szip tcltk tcpd tetex theora threads tiff truetype
truetype-fonts type1-fonts unicode usb userlocales vhosts vim-with-x wmf
wxwindows xanim xine xinerama xml xml2 xmms xosd xpm xprint xsl xv xvid xvmc
yahoo yaz yv12 zeo zlib video_cards_mach64"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS

------- Comment #1 From Travis Snoozy 2005-02-02 14:35:08 0000 -------
Some side notes:
- As implied in my example, 'export "-distcc"' works around the problem if distcc-2.18.3-r3 is installed (which seems to clearly indicate that distcc is, in fact, the problem).
- I am *not* running the distcc daemon (I have an unconfirmed suspicion that this is what's causing the segfault)
- In any case, distcc-2.16-r2 does not exhibit this problem

------- Comment #2 From Pierre-Olivier Bouchard 2005-02-02 14:50:06 0000 -------
I can confirm that having the distccd daemon started does not help with the
problem...

I still get segfaults even when I started the distccd daemon manuelly through
/etc/init.d

------- Comment #3 From Brian Hall 2005-02-02 18:06:37 0000 -------
I can confirm that this is a problem with distcc-2.18.3-r3. I re-emerged
distcc-2.18.3-r2 and emerging works fine (I am using distcc/distccd for
compilation though).

Until a new -r4 appears, my workaround is: emerge =distcc-2.18.3-r2
You can also remove distcc from FEATURES (amd you may have to to switch back to
the older distcc!)

Portage 2.0.51-r15 (default-linux/amd64/2004.3, gcc-3.4.3,
glibc-2.3.4.20041102-r0, 2.6.10 x86_64)
=================================================================
System uname: 2.6.10 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.9
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Jan 27 2005, 09:14:26)]
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[enabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-Os -march=k8 -fomit-frame-pointer -funit-at-a-time -fweb
-frename-registers -ftracer -mtune=athlon64 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-Os -march=k8 -fomit-frame-pointer -funit-at-a-time -fweb
-frename-registers -ftracer -mtune=athlon64 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache digest distcc distlocks noinfo"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/
http://mirror.datapipe.net/gentoo http://mirror.datapipe.net/gentoo
http://gentoo.osuosl.org/ http://gentoo.llarian.net/"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="amd64 X aalib acpi alsa berkdb bitmap-fonts bzlib cdparanoia cdr chroot
crypt curl dedicated dga dillo dio divx4linux dnd dvd dvdr esd f77 faac faad
fam ffmpeg flac font-server fortran freetype gb gd gdbm gif gimp gimpprint
ginac glut gpm gs gtk gtkhtml imagemagick imlib imlib2 jikes joystick jp2 jpeg
lcd lesstif libdsk lzw lzw-tiff maildir matrox mbox mcal md5sum mmap mng motif
moznocompose moznoirc moznomail mozp3p mozsvg mozxmlterm mplayer multilib music
native ncurses net network nptl nptlonly offensive ofx oggvorbis ooo-kde openal
opengl oss pam parse-clocks pdf perl physfs pic pie png ppds python readline
sdl slang sox ssl svg tcltk tcpd theora threads tiff transcode truetype
truetype-fonts type1 type1-fonts usb userlocales v4l v4l2 videos wifi wmf
wxwindows xface xft xml2 xmms xosd xpm xrandr xscreensaver xv xvid xvmc yv12
zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, PORTDIR_OVERLAY

------- Comment #4 From Tony Clark 2005-02-02 18:10:39 0000 -------
I had the problem also.
emerge =sys-devel/distcc-2.18.3-r2 fix it for me.

------- Comment #5 From W Song 2005-02-03 12:06:27 0000 -------
With distcc, if you compile a simple file as "gcc -o test test.c" it will seg
fault. But if you run it like "gcc test.c" it works fine and generates a.out
without problem.

------- Comment #6 From Brandon Low (RETIRED) 2005-02-03 14:42:20 0000 -------
This problem has effected me too, it is clear that something went wrong with
passing options through to fix bug #78652.

------- Comment #7 From Sven Wegener 2005-02-05 21:30:02 0000 -------
Created an attachment (id=50514) [edit]
multilib.patch

A patch for distcc-gentoo-multilib-r1.patch to fix this bug.

------- Comment #8 From Jeremy Huddleston 2005-02-05 22:09:04 0000 -------
fixed in cvs.  thanks guys.

First Last Prev Next    No search results available      Search page      Enter new bug