Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 166838 - mac-fdisk-0.1-r6, qt-4.2.2, enigmail-0.94.1, net-print/foo2zjs-20070204, dev-libs/klibc-1.2.1-r2 fail to emerge with distcc, citing CFLAGS errors
Summary: mac-fdisk-0.1-r6, qt-4.2.2, enigmail-0.94.1, net-print/foo2zjs-20070204, dev-...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: High minor
Assignee: PPC Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-14 14:39 UTC by michael@smith-li.com
Modified: 2007-06-25 16:02 UTC (History)
1 user (show)

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


Attachments
enigmail-0.94.1-distcc_on-build.log.gz (enigmail-0.94.1-distcc_on-build.log.gz,54.55 KB, application/x-gzip)
2007-03-03 18:21 UTC, michael@smith-li.com
Details
Update mac-fdisk so CC is defined properly for distcc (mac-fdisk.patch,865 bytes, patch)
2007-04-27 03:35 UTC, Joe Jezak (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description michael@smith-li.com 2007-02-14 14:39:13 UTC
With FEATURES='-distcc' the following command succeeds. With distcc on it fails:

Reproducible: Always

Steps to Reproduce:

Actual Results:  
white ~ # CFLAGS="-O2 -mcpu=750 -mtune=750 -pipe" emerge mac-fdisk
Calculating dependencies... done!

>>> Emerging (1 of 1) sys-fs/mac-fdisk-0.1-r6 to /
 * mac-fdisk_0.1-13.diff.gz MD5 ;-) ...                                   [ ok ]
 * mac-fdisk_0.1-13.diff.gz RMD160 ;-) ...                                [ ok ]
 * mac-fdisk_0.1-13.diff.gz SHA1 ;-) ...                                  [ ok ]
 * mac-fdisk_0.1-13.diff.gz SHA256 ;-) ...                                [ ok ]
 * mac-fdisk_0.1-13.diff.gz size ;-) ...                                  [ ok ]
 * mac-fdisk_0.1.orig.tar.gz MD5 ;-) ...                                  [ ok ]
 * mac-fdisk_0.1.orig.tar.gz RMD160 ;-) ...                               [ ok ]
 * mac-fdisk_0.1.orig.tar.gz SHA1 ;-) ...                                 [ ok ]
 * mac-fdisk_0.1.orig.tar.gz SHA256 ;-) ...                               [ ok ]
 * mac-fdisk_0.1.orig.tar.gz size ;-) ...                                 [ ok ]
 * checking ebuild checksums ;-) ...                                      [ ok ]
 * checking auxfile checksums ;-) ...                                     [ ok ]
 * checking miscfile checksums ;-) ...                                    [ ok ]
 * checking mac-fdisk_0.1.orig.tar.gz ;-) ...                             [ ok ]
 * checking mac-fdisk_0.1-13.diff.gz ;-) ...                              [ ok ]
>>> Unpacking source...
>>> Unpacking mac-fdisk_0.1.orig.tar.gz to /var/tmp/portage/sys-fs/mac-fdisk-0.1-r6/work
 * Applying mac-fdisk_0.1-13.diff.gz ...                                  [ ok ]
 * Applying largerthan2gb.patch ...                                       [ ok ]
 * Applying mac-fdisk-0.1-headers.patch ...                               [ ok ]
 * Applying mac-fdisk-0.1-r6-ppc64.patch ...                              [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/sys-fs/mac-fdisk-0.1-r6/work/mac-fdisk-0.1 ...
cc -O2 -mcpu=750 -mtune=750 -pipe   -c -o pdisk.o pdisk.c
cc -O2 -mcpu=750 -mtune=750 -pipe   -c -o dump.o dump.c
cc -O2 -mcpu=750 -mtune=750 -pipe   -c -o partition_map.o partition_map.c
cc -O2 -mcpu=750 -mtune=750 -pipe   -c -o convert.o convert.c
cc -O2 -mcpu=750 -mtune=750 -pipe   -c -o io.o io.c
cc -O2 -mcpu=750 -mtune=750 -pipe   -c -o errors.o errors.c
convert.c:1: error: bad value (750) for -mtune= switch
make: *** [convert.o] Error 1
make: *** Waiting for unfinished jobs....
dump.c:1: error: bad value (750) for -mtune= switch
make: *** [dump.o] Error 1
errors.c:1: error: bad value (750) for -mtune= switch
make: *** [errors.o] Error 1
io.c:1: error: bad value (750) for -mtune= switch
make: *** [io.o] Error 1

!!! ERROR: sys-fs/mac-fdisk-0.1-r6 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 2962:   Called src_compile
  ebuild.sh, line 645:   Called die

!!! emake failed
!!! 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/sys-fs/mac-fdisk-0.1-r6/temp/build.log'.


white ~ # emerge --info
Portage 2.1.2-r9 (default-linux/ppc/ppc32/2006.1/G3, gcc-4.1.1, glibc-2.4-r4, 2.6.18-gentoo-r3 ppc)
=================================================================
System uname: 2.6.18-gentoo-r3 ppc 740/750
Gentoo Base System release 1.12.6
Timestamp of tree: Sun, 11 Feb 2007 07:50:01 +0000
distcc 2.18.3 powerpc-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.17
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.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=750 -mtune=750 -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -mcpu=750 -mtune=750 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="en"
MAKEOPTS="-j6"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://dell/gentoo-portage"
USE="X alsa apache2 bash-completion berkdb bitmap-fonts bonobo bzip2 cjk cli cracklib crypt cups emboss encode esd firefox foomaticdb fortran gdbm gif gpm gstreamer iconv ipv6 isdnlog javascript jpeg kde libg++ libwww mad midi mikmod mp3 mpeg ncurses nls nptl nptlonly ogg opengl pam pcre pdf perl png ppc pppd python qt3 qt4 quicktime readline reflection ruby sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts udev unicode usb vorbis xml xorg xv zlib" ELIBC="glibc" FOO2ZJS_DEVICES="hp1018" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="ati mach64 r128 radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 michael@smith-li.com 2007-02-15 20:30:24 UTC
Updated Summary to reflect three packages with this problem:
 - mac-fdisk
 - qt
 - enigmail
Comment 2 michael@smith-li.com 2007-02-16 10:35:17 UTC
Added foo2zjs to list of packages that fail with distcc.
Comment 3 michael@smith-li.com 2007-02-26 22:44:57 UTC
added dev-libs/klibc-1.2.1-r2 :(
Comment 4 Luca Barbato gentoo-dev 2007-03-03 14:54:53 UTC
make sure ALL GCC are the same, I cannot reproduce enigmail at least.
Comment 5 michael@smith-li.com 2007-03-03 16:38:06 UTC
On the P4:
[ebuild   R   ] cross-powerpc-unknown-linux-gnu/binutils-2.17
[ebuild   R   ] cross-powerpc-unknown-linux-gnu/gcc-4.1.1-r3
[ebuild   R   ] cross-powerpc-unknown-linux-gnu/linux-headers-2.6.17-r2
[ebuild   R   ] cross-powerpc-unknown-linux-gnu/glibc-2.5

On the G3:
[ebuild   R   ] sys-devel/binutils-2.17
[ebuild   R   ] sys-devel/gcc-4.1.1-r3
[ebuild   R   ] sys-kernel/linux-headers-2.6.17-r2
[ebuild   R   ] sys-libs/glibc-2.5

The machines use the same keywords for these packages.

I'll re-emerge enigmail with distcc and get back to you.
Comment 6 michael@smith-li.com 2007-03-03 18:21:18 UTC
Created attachment 111955 [details]
enigmail-0.94.1-distcc_on-build.log.gz

enigmail failed again with distcc on, and succeeded with FEATURES="-distcc" MAKEOPTS="-j4"

Here's a gzipped build log of the failed enigmail emerge for your perusal.
Comment 7 Lisa Seelye (RETIRED) gentoo-dev 2007-03-04 10:14:28 UTC
I would mark this as WONTFIX. Crosscompiling is not guaranteed to work... but this isn't my bug.
Comment 8 michael@smith-li.com 2007-03-04 16:42:54 UTC
Nothing in FOSS is guaranteed to work. I recognize that, but could you at least forward these bugs to crossdev in lieu of upstream? sys-devel/crossdev's homepage is listed as http://www.gentoo.org, so I wouldn't know who to get in touch with.
Comment 9 Joe Jezak (RETIRED) gentoo-dev 2007-04-27 03:35:12 UTC
Created attachment 117358 [details, diff]
Update mac-fdisk so CC is defined properly for distcc

Can you please test this mac-fdisk ebuild patch?  It should fix distcc on this package.  The others would require much more drastic fixes, I'm not sure I can fix those.

The patch simply defines CC when calling make, which should pick the correct compiler when using distcc instead of calling cc.
Comment 10 michael@smith-li.com 2007-05-27 03:56:07 UTC
I haven't gotten a chance to test yet, but I will try to get to it this week. Sorry I've been slow. :(
Comment 11 Joe Jezak (RETIRED) gentoo-dev 2007-06-25 16:02:10 UTC
I've applied the mac-fdisk patch, the others are kind of out of our (ppc) realm.  If you really want to fix the other packages, the best option would be to look into the package and make sure that the build process is using the correct value for CC and supply a patch to the ebuild author/upstream for the individual packages.