klibc-1.5.15-r1 fails with the following error on my x86 laptop (strangely, it compiles just fine on a amd64 desktop). Earlier version (1.5.15) compiled fine. (this is where things start to go wrong...) GEN usr/klibc/syscalls/syscalls.nrs KLIBCCC usr/klibc/zlib/compress.o /bin/sh: line 1: 7662 Segmentation fault i686-pc-linux-gnu-gcc -Wp,-MD,usr/klibc/syscalls/.syscalls.nrs.d -nostdinc -iwithprefix include -Iusr/include/arch/i386 -Iusr/include/bits32 -Iusr/klibc/../include -Iusr/include -Ilinux/include -D__KLIBC__=1 -D__KLIBC_MINOR__=5 -D_BITSIZE=32 -fno-stack-protector -mregparm=3 -D_REGPARM=3 -m32 -march=i386 -Os -g -fomit-frame-pointer -falign-functions=0 -falign-jumps=0 -falign-loops=0 -W -Wall -Wno-sign-compare -Wno-unused-parameter -I/var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/syscalls -Wp,-dM -x c -E -o usr/klibc/syscalls/syscalls.nrs usr/include/sys/syscall.h LIST usr/klibc/syscalls/klib.list KLIBCAS usr/klibc/arch/i386/socketcall.o KLIBCCC usr/klibc/errlist.o KLIBCCC usr/klibc/zlib/crc32.o KLIBCAS usr/klibc/arch/i386/setjmp.o KLIBCCC usr/klibc/zlib/gzio.o KLIBCAS usr/klibc/arch/i386/syscall.o GEN usr/klibc/socketcalls/SOCKETCALLS.i KLIBCCC usr/klibc/zlib/uncompr.o GEN usr/klibc/socketcalls/socketcalls.mk KLIBCCC usr/klibc/zlib/deflate.o KLIBCAS usr/klibc/arch/i386/varsyscall.o KLIBCCC usr/klibc/zlib/trees.o KLIBCAS usr/klibc/arch/i386/open.o KLIBCCC usr/klibc/zlib/zutil.o KLIBCCC usr/klibc/zlib/inflate.o KLIBCAS usr/klibc/arch/i386/openat.o KLIBCAS usr/klibc/arch/i386/vfork.o KLIBCAS usr/klibc/arch/i386/libgcc/__ashldi3.o KLIBCCC usr/klibc/zlib/infback.o KLIBCCC usr/klibc/zlib/inftrees.o KLIBCAS usr/klibc/arch/i386/libgcc/__ashrdi3.o KLIBCAS usr/klibc/arch/i386/libgcc/__lshrdi3.o KLIBCCC usr/klibc/zlib/inffast.o KLIBCAS usr/klibc/arch/i386/libgcc/__muldi3.o KLIBCAS usr/klibc/arch/i386/libgcc/__negdi2.o KLIBCAS usr/klibc/socketcalls/socket.o LIST usr/klibc/zlib/klib.list KLIBCCC usr/klibc/arch/i386/../../libgcc/__divdi3.o KLIBCCC usr/klibc/arch/i386/../../libgcc/__moddi3.o KLIBCCC usr/klibc/arch/i386/../../libgcc/__udivdi3.o KLIBCCC usr/klibc/arch/i386/../../libgcc/__umoddi3.o KLIBCCC usr/klibc/arch/i386/../../libgcc/__udivmoddi4.o KLIBCAS usr/klibc/socketcalls/connect.o KLIBCAS usr/klibc/socketcalls/bind.o KLIBCAS usr/klibc/socketcalls/listen.o KLIBCAS usr/klibc/socketcalls/accept.o KLIBCAS usr/klibc/socketcalls/getsockname.o KLIBCAS usr/klibc/socketcalls/getpeername.o KLIBCAS usr/klibc/socketcalls/socketpair.o KLIBCAS usr/klibc/socketcalls/sendto.o KLIBCAS usr/klibc/socketcalls/recvfrom.o KLIBCAS usr/klibc/socketcalls/shutdown.o KLIBCAS usr/klibc/socketcalls/setsockopt.o KLIBCAS usr/klibc/socketcalls/getsockopt.o KLIBCAS usr/klibc/socketcalls/sendmsg.o LIST usr/klibc/arch/i386/klib.list KLIBCAS usr/klibc/socketcalls/recvmsg.o LIST usr/klibc/socketcalls/klib.list LIST usr/klibc/klib.list KLIBCAR usr/klibc/libc.a KLIBCLD usr/klibc/libc.so usr/klibc/exit.o: In function `exit': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/exit.c:29: undefined reference to `_exit' usr/klibc/execl.o: In function `execl': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/exec_l.c:53: undefined reference to `execve' usr/klibc/execle.o: In function `execle': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/exec_l.c:53: undefined reference to `execve' usr/klibc/execv.o: In function `execv': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/execv.c:10: undefined reference to `execve' usr/klibc/execvpe.o: In function `execvpe': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/execvpe.c:32: undefined reference to `execve' /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/execvpe.c:66: undefined reference to `execve' usr/klibc/wait.o: In function `wait': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/wait.c:11: undefined reference to `wait4' usr/klibc/wait3.o: In function `wait3': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/wait3.c:11: undefined reference to `wait4' usr/klibc/waitpid.o: In function `waitpid': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/waitpid.c:11: undefined reference to `wait4' usr/klibc/system.o: In function `system': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/system.c:37: undefined reference to `fork' /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/system.c:48: undefined reference to `execve' /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/system.c:49: undefined reference to `_exit' usr/klibc/setpgrp.o: In function `setpgrp': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/setpgrp.c:9: undefined reference to `setpgid' usr/klibc/getpgrp.o: In function `getpgrp': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/getpgrp.c:9: undefined reference to `getpgid' usr/klibc/daemon.o: In function `daemon': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/daemon.c:15: undefined reference to `chdir' /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/daemon.c:20: undefined reference to `dup2' /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/daemon.c:20: undefined reference to `dup2' /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/daemon.c:20: undefined reference to `dup2' /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/daemon.c:25: undefined reference to `close' /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/daemon.c:28: undefined reference to `fork' /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/daemon.c:32: undefined reference to `_exit' /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/daemon.c:34: undefined reference to `setsid' usr/klibc/statfs.o: In function `statfs': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/statfs.c:16: undefined reference to `__statfs64' usr/klibc/fstatfs.o: In function `fstatfs': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/fstatfs.c:16: undefined reference to `__fstatfs64' usr/klibc/umount.o: In function `umount': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/umount.c:11: undefined reference to `umount2' usr/klibc/open_cloexec.o: In function `open_cloexec': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/open_cloexec.c:15: undefined reference to `fcntl' usr/klibc/fread.o: In function `_fread': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/fread.c:16: undefined reference to `read' usr/klibc/fwrite.o: In function `_fwrite': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/fwrite.c:16: undefined reference to `write' usr/klibc/sleep.o: In function `sleep': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/sleep.c:16: undefined reference to `nanosleep' usr/klibc/usleep.o: In function `usleep': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/usleep.c:16: undefined reference to `nanosleep' usr/klibc/raise.o: In function `raise': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/raise.c:10: undefined reference to `getpid' /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/raise.c:10: undefined reference to `kill' usr/klibc/abort.o: In function `abort': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/abort.c:17: undefined reference to `_exit' usr/klibc/sigaction.o: In function `sigaction': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/sigaction.c:47: undefined reference to `__rt_sigaction' usr/klibc/sigpending.o: In function `sigpending': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/sigpending.c:15: undefined reference to `__rt_sigpending' usr/klibc/sigprocmask.o: In function `sigprocmask': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/sigprocmask.c:15: undefined reference to `__rt_sigprocmask' usr/klibc/sigsuspend.o: In function `sigsuspend': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/sigsuspend.c:15: undefined reference to `__rt_sigsuspend' usr/klibc/pselect.o: In function `pselect': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/pselect.c:38: undefined reference to `__pselect6' usr/klibc/ppoll.o: In function `ppoll': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/ppoll.c:16: undefined reference to `__ppoll' usr/klibc/brk.o: In function `brk': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/brk.c:22: undefined reference to `__brk' usr/klibc/sbrk.o: In function `sbrk': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/sbrk.c:27: undefined reference to `__brk' /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/sbrk.c:32: undefined reference to `__brk' usr/klibc/malloc.o: In function `free': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/malloc.c:280: undefined reference to `munmap' usr/klibc/mmap.o: In function `mmap': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/mmap.c:36: undefined reference to `__mmap2' usr/klibc/shm_unlink.o: In function `shm_unlink': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/shm_unlink.c:22: undefined reference to `unlink' usr/klibc/gethostname.o: In function `gethostname': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/gethostname.c:14: undefined reference to `uname' usr/klibc/getdomainname.o: In function `getdomainname': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/getdomainname.c:14: undefined reference to `uname' usr/klibc/getcwd.o: In function `getcwd': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/getcwd.c:14: undefined reference to `__getcwd' usr/klibc/seteuid.o: In function `seteuid': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/seteuid.c:9: undefined reference to `setreuid' usr/klibc/setegid.o: In function `setegid': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/setegid.c:9: undefined reference to `setregid' usr/klibc/readdir.o: In function `closedir': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/readdir.c:54: undefined reference to `close' usr/klibc/readdir.o: In function `readdir': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/readdir.c:37: undefined reference to `getdents' usr/klibc/remove.o: In function `remove': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/remove.c:13: undefined reference to `unlink' /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/remove.c:15: undefined reference to `rmdir' usr/klibc/syslog.o: In function `openlog': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/syslog.c:38: undefined reference to `fcntl' usr/klibc/syslog.o: In function `vsyslog': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/syslog.c:61: undefined reference to `getpid' /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/syslog.c:76: undefined reference to `write' usr/klibc/closelog.o: In function `closelog': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/closelog.c:15: undefined reference to `close' usr/klibc/pty.o: In function `unlockpt': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/pty.c:30: undefined reference to `ioctl' usr/klibc/pty.o: In function `ptsname': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/pty.c:18: undefined reference to `ioctl' usr/klibc/isatty.o: In function `isatty': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/isatty.c:16: undefined reference to `ioctl' usr/klibc/reboot.o: In function `reboot': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/reboot.c:14: undefined reference to `__reboot' usr/klibc/llseek.o: In function `lseek': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/llseek.c:24: undefined reference to `__llseek' usr/klibc/getpriority.o: In function `getpriority': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/getpriority.c:19: undefined reference to `__getpriority' usr/klibc/inet/bindresvport.o: In function `bindresvport': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/inet/bindresvport.c:33: undefined reference to `getpid' usr/klibc/zlib/gzio.o: In function `fclose': /var/tmp/portage/dev-libs/klibc-1.5.15-r1/work/klibc-1.5.15/usr/klibc/../include/stdio.h:60: undefined reference to `close' make[2]: *** [usr/klibc/libc.so] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [all] Error 2 make: *** [klibc] Error 2
Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.3.4, glibc-2.10.1-r0, 2.6.30-gentoo-r5 i686) ================================================================= System uname: Linux-2.6.30-gentoo-r5-i686-Mobile_Intel-R-_Celeron-TM-_CPU_1200MHz-with-gentoo-2.0.1 Timestamp of tree: Thu, 17 Sep 2009 16:45:01 +0000 distcc 3.1 i686-pc-linux-gnu [enabled] ccache version 2.4 [enabled] app-shells/bash: 4.0_p33 dev-java/java-config: 2.1.9-r1 dev-lang/python: 2.6.2-r1 dev-util/ccache: 2.4-r8 dev-util/cmake: 2.6.4-r2 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.4.3-r3 sys-apps/sandbox: 2.1 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.7.9-r1, 1.9.6-r2, 1.10.2, 1.11 sys-devel/binutils: 2.19.1-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium3 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=pentium3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distcc distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ " LANG="fi_FI.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="fi" MAKEOPTS="-j7" 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="/usr/local/portage /usr/local/portage/layman/kde-testing" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa avahi berkdb bluetooth bonjour bzip2 cairo cdda cddb cli consolekit cracklib crypt cups dbus dirac dri dvd encode exif faac faad ffmpeg flac fortran gdbm gif gnome gnome-keyring gnutls gpm gstreamer gtk hal iconv ipod ipv6 isdnlog jack jpeg kde ladspa laptop lash lcms libnotify libsamplerate mmx mp3 mtp mudflap musicbrainz ncurses networkmanager nls nptl nptlonly nsplugin ogg openexr openmp pam pcre perl phonon plasma png policykit pppd pulseaudio python qt3support qt4 readline reflection schroedinger semantic-desktop session sndfile speex spl sqlite sqlite3 sse ssl svg sysfs tcpd theora tiff truetype unicode usb vorbis webkit x264 x86 xcb xorg xvid zeroconf zlib" ALSA_CARDS="pdaudiocf virmidi via82xx via82xx-modem portman2x4 usb-audio usb-us1221 usb-usx2y" 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 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" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse joystick synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fi" USERLAND="GNU" VIDEO_CARDS="savage vesa" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Same Here(tm). x86, with: Linux fuji 2.6.30-tuxonice-r5 #1 Sun Aug 16 12:24:34 PDT 2009 i686 Intel(R) Pentium(R) M processor 1.20GHz GenuineIntel GNU/Linux
It fails on amd64, to on 2.6.31 g-s and 2.6.30-r4 g-s with gcc 4.4.1
Jouni Rinne disable distcc :)
Having same issue here on amd64. I can verify that disabling distcc fixes.
Same on PPC also works with distcc off.
(In reply to comment #6) > Same on PPC also works with distcc off. > Same with klibc-1.5.12-r1 Works with distccd disabled, too.
(In reply to comment #7) > (In reply to comment #6) > > Same on PPC also works with distcc off. > > This was wrong, sorry. Is "just" an x86-system ;)
Disabling distcc does the trick here on x86, as well.
Can someone report if current versions of klibc still cannot be compiled with distcc?
Please reopen if this failure still occurs