Closed tylerarnold closed 10 years ago
/Applications/Xcode.app/Contents/Developer/usr/bin/make install-recursive Making install in po if test "coreutils" = "gettext-tools"; then \ ../build-aux/install-sh -c -d /usr/local/Cellar/coreutils/8.22/share/gettext/po; \ for file in Makefile.in.in remove-potcdate.sin quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot Makevars.template; do \ /usr/bin/install -c -m 644 ./$file \ /usr/local/Cellar/coreutils/8.22/share/gettext/po/$file; \ done; \ for file in Makevars; do \ rm -f /usr/local/Cellar/coreutils/8.22/share/gettext/po/$file; \ done; \ else \ : ; \ fi Making install in . CC lib/copy-acl.o CC lib/set-acl.o CC lib/allocator.o CC lib/areadlink.o CC lib/areadlink-with-size.o CC lib/areadlinkat.o CC lib/argmatch.o CC lib/argv-iter.o CC lib/backupfile.o CC lib/base64.o CC lib/binary-io.o CC lib/bitrotate.o CC lib/buffer-lcm.o CC lib/c-ctype.o CC lib/c-strcasecmp.o CC lib/c-strncasecmp.o CC lib/c-strtod.o CC lib/c-strtold.o CC lib/canon-host.o CC lib/canonicalize.o CC lib/careadlinkat.o CC lib/cloexec.o CC lib/close-stream.o CC lib/closein.o CC lib/closeout.o CC lib/md5.o CC lib/sha1.o CC lib/sha256.o CC lib/sha512.o CC lib/cycle-check.o CC lib/di-set.o CC lib/diacrit.o CC lib/opendir-safer.o CC lib/dirname.o CC lib/basename.o CC lib/dirname-lgpl.o CC lib/basename-lgpl.o CC lib/stripslash.o CC lib/dtoastr.o CC lib/dtotimespec.o CC lib/exclude.o CC lib/exitfail.o CC lib/fadvise.o CC lib/fatal-signal.o CC lib/chmodat.o CC lib/chownat.o CC lib/creat-safer.o CC lib/open-safer.o CC lib/fd-hook.o CC lib/fd-reopen.o CC lib/fd-safer-flag.o CC lib/dup-safer-flag.o CC lib/fdutimensat.o CC lib/file-set.o CC lib/file-type.o CC lib/filemode.o CC lib/filenamecat.o CC lib/filenamecat-lgpl.o CC lib/filevercmp.o CC lib/fopen-safer.o CC lib/fprintftime.o CC lib/freading.o CC lib/freadseek.o CC lib/freopen-safer.o CC lib/ftoastr.o CC lib/full-read.o CC lib/full-write.o CC lib/gethrxtime.o CC lib/xtime.o CC lib/getndelim2.o CC lib/gettime.o CC lib/getugroups.o CC lib/hard-locale.o CC lib/hash.o CC lib/hash-pjw.o CC lib/hash-triple.o CC lib/heap.o CC lib/human.o CC lib/i-ring.o CC lib/idcache.o CC lib/ino-map.o CC lib/imaxtostr.o CC lib/inttostr.o CC lib/offtostr.o CC lib/uinttostr.o CC lib/umaxtostr.o CC lib/ldtoastr.o CC lib/linebuffer.o CC lib/localcharset.o CC lib/glthread/lock.o CC lib/long-options.o CC lib/malloca.o CC lib/math.o CC lib/mbchar.o CC lib/mbiter.o CC lib/mbsalign.o CC lib/mbscasecmp.o CC lib/mbslen.o CC lib/mbsstr.o CC lib/mbswidth.o In file included from lib/mbswidth.c:33: In file included from ./lib/wchar.h:78: In file included from /usr/include/wchar.h:90: ./lib/stdio.h:910:27: error: expected identifier (const void _restrict, size_t, size_t, ^ ./lib/stdio.h:914:27: error: expected identifier (const void *restrict, size_t, sizet, ^ 2 errors generated. make[2]: ** [lib/mbswidth.o] Error 1 make[1]: * [install-recursive] Error 1 make: * [install] Error 2 ==> Configuration HOMEBREW_VERSION: 0.9.5 HEAD: 95bdff9fa93217ce90a6bcb1e12112429ead45a7 CPU: 8-core 64-bit ivybridge OS X: 10.9.1-x86_64 Xcode: 5.0.2 CLT: 5.0.1.0.1.1382131676 X11: N/A ==> ENV HOMEBREW_CC: clang HOMEBREW_CXX: clang++ MAKEFLAGS: -j1 CMAKE_PREFIX_PATH: /usr/local CMAKE_INCLUDE_PATH: /usr/include/libxml2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers CMAKE_LIBRARY_PATH: /System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries PKG_CONFIG_PATH: /usr/local/opt/xz/lib/pkgconfig PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.9 HOMEBREW_MAKE_JOBS: 1 HOMEBREW_VERBOSE: 1 PATH: /usr/local/Library/ENV/4.3:/usr/local/opt/xz/bin:/usr/bin:/bin:/usr/sbin:/sbin
Error: coreutils did not build Logs: /Users/tylerarnold/Library/Logs/Homebrew/coreutils/01.configure /Users/tylerarnold/Library/Logs/Homebrew/coreutils/01.configure.cc /Users/tylerarnold/Library/Logs/Homebrew/coreutils/02.make /Users/tylerarnold/Library/Logs/Homebrew/coreutils/02.make.cc /Users/tylerarnold/Library/Logs/Homebrew/coreutils/config.log
The error is here:
In file included from lib/mbswidth.c:33:
In file included from ./lib/wchar.h:78:
In file included from /usr/include/wchar.h:90:
./lib/stdio.h:910:27: error: expected identifier
(const void restrict, size_t, size_t,
^
./lib/stdio.h:914:27: error: expected identifier
(const void *restrict, size_t, size_t,
^
I can't reproduce this.
Can you brew install coreutils -d
and, when it fails, gist the contents of lib/stdio.h, please?
sure, I'll get that to you in a few minutes, thanks for looking into this for me!
The part that's causing the error is here: https://gist.github.com/tylerarnold/9083539#file-stdio-h-L910-L917
extern size_t __REDIRECT (rpl_fwrite,
(const void *__restrict, size_t, size_t,
FILE *__restrict),
fwrite);
extern size_t __REDIRECT (rpl_fwrite_unlocked,
(const void *__restrict, size_t, size_t,
FILE *__restrict),
fwrite_unlocked);
This is identical to what was generated for me, which didn't raise any errors.
what is the "__REDIRECT" macro being defined as?
Appears to be a compiler directive that overrides an existing function. e.g., the first statement overrides fwrite()
with rpl_fwrite()
.
I am working around this right now by going back to a prior formula for coreutils. There is something wrong with 8.22. If I step back a version to 8.21, everything seems okay.
Coreutils is also failed me to after the Mavericks upgrade from Mountain Lion today. Mavericks essentially hosed the prior /usr/local/[Hombrew | bin | lib | share] directories.
Reconstituting Homebrew from scratch. Brew doctor is spotless, and clang --version is "Apple LLVM version 5.0 (clang-500.2.79)". Should be Kosher with these... The following appeared to install properly after the very recent "brew update": autoconf, pkg-config, libmetalink, openssl, curl, jansson, xz.
gravity:local root# brew install coreutils
==> Downloading http://ftpmirror.gnu.org/coreutils/coreutils-8.22.tar.xz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Hombrew/Cellar/coreutils/8.22 --program-prefix=g --without-gmp
checking whether mkdir handles trailing dot... yes
checking whether mkfifo rejects trailing slashes... no
checking whether mknod can create fifo without root privileges... configure: error: in /private/tmp/coreutils-HEe5/coreutils-8.22': configure: error: you should not run configure as root (set FORCE_UNSAFE_CONFIGURE=1 in environment to bypass this check) See
config.log' for more details
READ THIS: https://github.com/Homebrew/homebrew/wiki/troubleshooting
These open issues may also help: coreutils failed to build on 10.9 (https://github.com/Homebrew/homebrew/issues/26825) coreutils failed to build on 10.9 (https://github.com/Homebrew/homebrew/issues/24786) gravity:local root# echo $PATH /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/MacGPG2/bin
The temporary "config.log" file vanished before I could share. Ended up setting the environmental variable FORCE_UNSAFE_CONFIGURE to 1. Afterwards, coreutils installed.
FYSA - Working on making an ARM toolchain. My older isl script worked fine on Mountain Lion. It is now broken after upgrading to Mavericks:-(
Software compiled with Homebrew tends not to survive major OS updates very well, though I'll let other maintainers speak to that.
To diagnose this further, we'll need you to brew update
, and make sure you have the very latest versions of Xcode and the CLT. Then post new troubleshooting information if the problem persists.
@skaht The configure script indicates that it refuses to run as root; if you have a root-owned Homebrew install you may not be able to install it unless you're able to drop permissions.
Please read the troubleshooting guide and provide the requested logs, thanks!