When I try to emerge the latest updates, net-print/cups-1.3.8-r1 fails shortly after starting with the following error message: distcc[7691] ERROR: compile (null) on localhost failed This happens whether localhost is in the distcc hosts list or not. Reproducible: Always Steps to Reproduce: 1. emerge --update --newuse --deep world Actual Results: Using LIBS=-lcups -lssl -lcrypto -lpthread -lm -lcrypt Making all in cups... Compiling adminutil.c... [...] Archiving libcups.a... a - adminutil.o [...] Linking testadmin... Linking testarray... Linking testcups... Linking testfile... testarray.o:(.toc+0x8): undefined reference to `__stack_chk_guard' libcups.a(dir.o):(.toc+0x0): undefined reference to `__stack_chk_guard' libcups.a(string.o):(.toc+0x8): undefined reference to `__stack_chk_guard' collect2: ld returned 1 exit status distcc[7689] ERROR: compile (null) on localhost failed Expected Results: A successful build I was running this from a screen and using a cross-compiler from an i686 computer. emerge --info Portage 2.1.4.4 (default/linux/powerpc/ppc64/2008.0/64bit-userland, gcc-4.2.4, glibc-2.7-r2, 2.6.24-gentoo-r3 ppc64) ================================================================= System uname: 2.6.24-gentoo-r3 ppc64 POWER3 (630+) Timestamp of tree: Mon, 01 Sep 2008 17:06:01 +0000 distcc 2.18.3 powerpc64-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.4 [enabled] app-shells/bash: 3.2_p33 dev-lang/python: 2.5.2-r6 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r2 sys-devel/automake: 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.24 ACCEPT_KEYWORDS="ppc64" CBUILD="powerpc64-unknown-linux-gnu" CFLAGS="-Os -pipe -mcpu=power3 -mtune=power3" CHOST="powerpc64-unknown-linux-gnu" CONFIG_PROTECT="/etc" 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/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-Os -pipe -mcpu=power3 -mtune=power3" DISTDIR="/usr/portage/distfiles" FEATURES="buildpkg ccache distcc distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS=" http://open-systems.ufl.edu/mirrors/gentoo " LANG="en_US.utf8" LDFLAGS="-Wl,-O1" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" 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.gentoo.org/gentoo-portage" USE="acl berkdb bzip2 cli cracklib crypt cups dri fortran gdbm gpm ibm iconv ipv6 isdnlog midi mudflap ncurses nls nptl nptlonly openmp pam pcre perl ppc64 pppd python readline reflection session spl ssl sysfs tcpd unicode xorg zlib" 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev mach64 mga nv r128 radeon" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
I don't see what might be wrong with your CFLAGS, but it wouldn't hurt to have the experts check first. :)
I cannot reproduce using the same CFLAGS on a gcc 4.3.1-r1 compiler. Please try using stable gcc or -if you really want to live in ~ppc64- gcc-4.3.{1,2}. Another point of failure might distcc be. If stable gcc does not work then please try disabling distcc. regards, corsair
I turned off distcc and the build seems to be working. I noticed that gcc is being used as "gcc", so maybe my wrapper script isn't working for distcc. Maybe the 686 box is compiling with the native gcc on this one. I didn't use a screen either, but I don't think that would matter. I left gcc as 4.2.4 because that's what version I have for the cross-compiler on the 686 box.
ok. so this seems to be a distcc bug. could you please post your config/wrapperscript? reassiging to betelgeuse, because it seems to be a distcc problem.
This is the contents of /usr/lib/distcc/bin drwxr-xr-x 2 root root 4096 2008-08-20 16:37 . drwxr-xr-x 3 root root 4096 2007-10-08 05:57 .. lrwxrwxrwx 1 root root 35 2008-08-20 16:37 c++ -> powerpc64-unknown-linux-gnu-wrapper lrwxrwxrwx 1 root root 35 2008-08-20 16:37 cc -> powerpc64-unknown-linux-gnu-wrapper lrwxrwxrwx 1 root root 35 2008-08-20 16:37 g++ -> powerpc64-unknown-linux-gnu-wrapper lrwxrwxrwx 1 root root 35 2008-08-20 16:37 gcc -> powerpc64-unknown-linux-gnu-wrapper -rw-r--r-- 1 distcc daemon 0 2008-07-16 15:19 .keep_sys-devel_distcc-0 lrwxrwxrwx 1 root root 15 2007-10-08 05:57 powerpc64-unknown-linux-gnu-c++ -> /usr/bin/distcc lrwxrwxrwx 1 root root 15 2008-08-20 16:31 powerpc64-unknown-linux-gnu-cc -> /usr/bin/distcc lrwxrwxrwx 1 root root 15 2007-10-08 05:57 powerpc64-unknown-linux-gnu-g++ -> /usr/bin/distcc lrwxrwxrwx 1 root root 15 2007-10-08 05:57 powerpc64-unknown-linux-gnu-gcc -> /usr/bin/distcc -rwxr-xr-x 1 root root 82 2008-08-20 16:34 powerpc64-unknown-linux-gnu-wrapper The contents of powerpc64-unknown-linux-gnu-wrapper: #!/bin/bash exec /usr/lib/distcc/bin/powerpc64-unknown-linux-gnu-g${0:$[-2]} "$@"
Ran into this again trying to emerge sys-libs/glibc-2.7-r2. I guess I'll try again without distcc. I must be missing something in my cross compiler. I'll mark this as invalid since it has nothing to do with an ebuild or cups.