I was very excited to see the new ebuild coreutils-darwin-5.0, but unfortunately, it does not compile on my 10.4 system. The error message is: stat.c:112: warning: 'struct statfs' declared inside parameter list stat.c:112: warning: its scope is only this definition or declaration, which is probably not what you want stat.c: In function 'human_fstype': stat.c:119: error: dereferencing pointer to incomplete type stat.c:302: error: dereferencing pointer to incomplete type stat.c:303: error: dereferencing pointer to incomplete type stat.c: In function 'print_statfs': stat.c:353: error: dereferencing pointer to incomplete type stat.c:371: warning: passing argument 1 of 'human_fstype' from incompatible pointer type stat.c:375: error: dereferencing pointer to incomplete type stat.c:379: error: dereferencing pointer to incomplete type stat.c:383: error: dereferencing pointer to incomplete type stat.c:387: error: dereferencing pointer to incomplete type stat.c:391: error: dereferencing pointer to incomplete type stat.c:395: error: dereferencing pointer to incomplete type stat.c: In function 'do_statfs': stat.c:603: error: storage size of 'statfsbuf' isn't known make[3]: *** [stat.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 !!! ERROR: sys-apps/coreutils-darwin-5.0 failed. !!! Function src_compile, Line 106, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. Reproducible: Always Steps to Reproduce: 1. emerge coreutils-darwin 2. 3. Actual Results: emerge fails sudo emerge info !!! Relying on the shell to locate gcc, this may break !!! DISTCC, installing gcc-config and setting your current gcc !!! profile will fix this Portage 2.0.51.21-r1 (default-darwin/macos/10.4, gcc-4.0.0, libsystem-7.1-r0, 8.0.0 Power Macintosh) =============================================================== == System uname: 8.0.0 Power Macintosh powerpc macos-20041118 distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632) [disabled] dev-lang/python: [Not Present] sys-apps/sandbox: [Not Present] sys-devel/autoconf: [Not Present] sys-devel/automake: [Not Present] sys-devel/binutils: [Not Present] sys-devel/libtool: [Not Present] virtual/os-headers: 7.1 ACCEPT_KEYWORDS="ppc-macos ~ppc-macos" AUTOCLEAN="yes" CBUILD="powerpc-apple-darwin" CFLAGS="-O2 -pipe" CHOST="powerpc-apple-darwin" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/ qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig collision-protect distlocks strict userpriv" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/ gentoo" LC_ALL="C" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="ppc emboss ppc-macos readline slang userland_Darwin kernel_Darwin elibc_Darwin" Unset: ASFLAGS, CTARGET, LANG, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
It looks like gcc 4 breaks things. I'll get a newer version in portage soon.
No, that's not the problem. I get the same error with gcc-3.3 as well.
Well, that's odd then. Anyway, I've added coreutils-darwin-5.3.0 in portage, please try that and let us know how it goes.
Compiles fine with 5.3 now, just that we have collision problems on Tiger at least: >>> Completed installing coreutils-darwin-5.3.0 into /var/tmp/portage/coreutils-darwin-5.3.0/image/ * checking 68 files for package collisions existing file /bin/link is not owned by this package existing file /bin/unlink is not owned by this package existing file /usr/bin/csplit is not owned by this package existing file /usr/bin/nl is not owned by this package existing file /usr/bin/pathchk is not owned by this package
Same here - 5.3.0 compiles fine and installs after disabling collision-protect. Thanks Joe!
Well, you probably didn't really want to overwrite your existing utilities with the gnu ones, but it's probably okay. Since you installed it anyway, I would also appreciate it if you could test the environment settings provided in baselayout-darwin. Thanks! I'll figure something out for 10.4 and let everyone know when it's in CVS.
A fix for 10.4 is in CVS, so this should be fixed. Reopen the bug if there are problems.