If distcc is enabled on my two computers A and B and vim is built on computer B, the build will fail with the error as listed the build log in the Additional information field. Oddly enough, if vim is built on computer A with distcc enabled, the build succeeds. Reproducible: Always Steps to Reproduce: Add distcc to FEATURES= in /etc/make.conf emerge -v vim Actual Results: Build fails Expected Results: vim should build and install without errors Build log for computer B: memline.c:(.text+0x4338): undefined reference to `__builtin_va_arg_pack' memline.c:(.text+0x489c): undefined reference to `__builtin_va_arg_pack_len' memline.c:(.text+0x48a4): undefined reference to `__open_too_many_args' memline.c:(.text+0x48a9): undefined reference to `__builtin_va_arg_pack' memline.c:(.text+0x48d0): undefined reference to `__builtin_va_arg_pack_len' memline.c:(.text+0x48d8): undefined reference to `__open_too_many_args' memline.c:(.text+0x48e1): undefined reference to `__builtin_va_arg_pack' memline.c:(.text+0x4b01): undefined reference to `__builtin_va_arg_pack_len' memline.c:(.text+0x4b09): undefined reference to `__open_too_many_args' memline.c:(.text+0x4b11): undefined reference to `__builtin_va_arg_pack_len' memline.c:(.text+0x4b21): undefined reference to `__builtin_va_arg_pack' memline.c:(.text+0x4b5d): undefined reference to `__builtin_va_arg_pack_len' memline.c:(.text+0x4b65): undefined reference to `__open_too_many_args' memline.c:(.text+0x4b71): undefined reference to `__builtin_va_arg_pack_len' memline.c:(.text+0x4b81): undefined reference to `__builtin_va_arg_pack' memline.c:(.text+0x4ca9): undefined reference to `__open_missing_mode' memline.c:(.text+0x4cca): undefined reference to `__open_missing_mode' objects/memline.o: In function `ml_setname': memline.c:(.text+0x51f1): undefined reference to `__builtin_va_arg_pack_len' memline.c:(.text+0x51f9): undefined reference to `__open_too_many_args' memline.c:(.text+0x5201): undefined reference to `__builtin_va_arg_pack' objects/misc1.o: In function `msgmore': misc1.c:(.text+0xbc17): undefined reference to `__builtin_va_arg_pack' objects/normal.o: In function `find_decl': normal.c:(.text+0x72e): undefined reference to `__builtin_va_arg_pack' objects/normal.o: In function `clear_showcmd': normal.c:(.text+0x1048): undefined reference to `__builtin_va_arg_pack' normal.c:(.text+0x1104): undefined reference to `__builtin_va_arg_pack' objects/normal.o:normal.c:(.text+0x206c): more undefined references to `__builtin_va_arg_pack' follow collect2: ld returned 1 exit status distcc[9434] ERROR: compile (null) on localhost failed make[1]: *** [vim] Error 1 make[1]: Leaving directory `/var/tmp/portage/app-editors/vim-7.2.182/work/vim72/src' make: *** [first] Error 2 ^[[31;01m*^[[0m If the above messages seem to be talking about perl ^[[31;01m*^[[0m and undefined references, please try re-emerging both ^[[31;01m*^[[0m perl and libperl with the same USE flags. For more ^[[31;01m*^[[0m information, see: ^[[31;01m*^[[0m https://bugs.gentoo.org/show_bug.cgi?id=18129 ^[[31;01m*^[[0m ^[[31;01m*^[[0m ERROR: app-editors/vim-7.2.182 failed. ^[[31;01m*^[[0m Call stack: ^[[31;01m*^[[0m ebuild.sh, line 49: Called src_compile ^[[31;01m*^[[0m environment, line 2851: Called vim_src_compile ^[[31;01m*^[[0m environment, line 3898: Called die ^[[31;01m*^[[0m The specific snippet of code: ^[[31;01m*^[[0m die "emake failed"; ^[[31;01m*^[[0m The die message: ^[[31;01m*^[[0m emake failed ^[[31;01m*^[[0m ^[[31;01m*^[[0m If you need support, post the topmost build error, and the call stack if relevant. ^[[31;01m*^[[0m A complete build log is located at '/var/tmp/portage/app-editors/vim-7.2.182/temp/build.log'. ^[[31;01m*^[[0m The ebuild environment file is located at '/var/tmp/portage/app-editors/vim-7.2.182/temp/environment'. ^[[31;01m*^[[0m emerge --info (for computer B): Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r5 i686) ================================================================= System uname: Linux-2.6.29-gentoo-r5-i686-Pentium_III_-Coppermine-with-glibc2.0 Timestamp of tree: Fri, 24 Jul 2009 12:45:02 +0000 distcc 3.1 i686-pc-linux-gnu [enabled] ccache version 2.4 [enabled] app-shells/bash: 3.2_p39 dev-lang/python: 2.4.4-r13, 2.5.4-r3 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.7.9-r1, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=pentium3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O3 -march=pentium3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distcc distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv" GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://mirror.mcs.anl.gov/pub/gentoo/ http://gentoo.cites.uiuc.edu/pub/gentoo/ " LANG="en_US.utf8" LDFLAGS="-Wl,-O1" LINGUAS="en" MAKEOPTS="-j2" 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" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="X acl berkdb bzip2 cli cracklib crypt cups dri gdbm gpm iconv isdnlog midi mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl ssl sysfs tcpd unicode x86 xorg xscrensaver zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nv" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY emerge --info (for computer A) System uname: Linux-2.6.29-gentoo-r5-i686-Pentium_III_-Coppermine-with-glibc2.0 Timestamp of tree: Fri, 24 Jul 2009 07:45:02 +0000 distcc 3.1 i686-pc-linux-gnu [enabled] ccache version 2.4 [enabled] app-shells/bash: 3.2_p39 dev-lang/python: 2.4.4-r13, 2.5.4-r3 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63 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.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=i686 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/bind /var/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O3 -march=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distcc distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="en" MAKEOPTS="-j2" 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" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="acl acpi alsa authdaemond berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode evo fam firefox fortran gdbm gif gpm gstreamer hal iconv imap isdnlog jpeg libnotify mad maildir midi mikmod mp3 mpeg mudflap ncurses nls nptl nptlonly ntpl ntplonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl ssl startup-notification svg sysfs tcpd tiff truetype unicode usb valias vhosts vorbis win32codecs x86 xml xorg xulrunner xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nv" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS Oddly enough, if I reverse computers involved in the build (build vim on computer A), vim will build without error. vim will build if distcc is disabled.
Include libpaper too. Disabled within FEATURES in /etc/make.conf ... simply stopping the rc-service or deleting .ccache doesn't help.
In your 'emerge --info' output above, you missed one very important line on comp A: The first line that lists your profile, compiler version and glibc version. Please post the compiler and glibc versions installed on Comp A. Generally speaking, I believe it's pretty important for these to be identical to what you're using on Comp B for distcc to work properly.
<shrugs> I wasn't even distributing via distccd. rc-service distccd stop I believe I had to remove the ccache & distcc values from FEATURE in order to avoid this compiler error with libpaper.
Please set same CC Profile. check `gcc-config -l`. If you change CC Profile, don't forget to `source /etc/profile` and `/etc/init.d/distccd restart`. (In reply to comment #3) > <shrugs> I wasn't even distributing via distccd. > > rc-service distccd stop Which distccd did you stop, Comp A or B? Did you stop all distccd in `distcc-config --get-hosts`?
I am closing this bug, it has been 4 months now with no new information. Please feel free to reopen if you are still experiencing the issue and can provide more information.