Skip to content

Instantly share code, notes, and snippets.

@fish2000
Created June 9, 2011 02:38
Show Gist options
  • Save fish2000/1015938 to your computer and use it in GitHub Desktop.
Save fish2000/1015938 to your computer and use it in GitHub Desktop.
Coreutils build fails in uptime.c (looks like it could be a syntax error but I'm not sure)
OTUS-ASIO:tmp$ brew install coreutils
==> Downloading ftp://ftp.gnu.org/gnu/coreutils/coreutils-8.12.tar.gz
File already downloaded in /Users/fish/Library/Caches/Homebrew
==> ./configure --prefix=/usr/local/Cellar/coreutils/8.12 --program-prefix=g
==> make install
make install-recursive
Making install in lib
GEN arg-nonnull.h
GEN alloca.h
GEN c++defs.h
GEN warn-on-use.h
GEN fnmatch.h
GEN configmake.h
GEN getopt.h
GEN iconv.h
GEN inttypes.h
GEN langinfo.h
GEN locale.h
GEN math.h
GEN netdb.h
GEN pthread.h
GEN unused-parameter.h
GEN signal.h
GEN stdint.h
GEN stdio.h
GEN stdlib.h
GEN string.h
GEN sys/ioctl.h
GEN sys/select.h
GEN sys/socket.h
GEN sys/stat.h
GEN sys/time.h
GEN sys/utsname.h
GEN termios.h
GEN sys/wait.h
GEN time.h
GEN unistd.h
GEN unistr.h
GEN unitypes.h
GEN uniwidth.h
GEN wchar.h
GEN wctype.h
GEN ctype.h
GEN dirent.h
GEN fcntl.h
GEN arpa/inet.h
GEN selinux/selinux.h
GEN selinux/context.h
make install-recursive
CC set-mode-acl.o
CC copy-acl.o
CC file-has-acl.o
CC allocator.o
CC areadlink.o
CC areadlink-with-size.o
CC areadlinkat.o
CC argv-iter.o
CC base64.o
CC c-ctype.o
CC c-strcasecmp.o
CC c-strncasecmp.o
CC careadlinkat.o
CC close-hook.o
CC di-set.o
CC diacrit.o
CC dtoastr.o
CC exitfail.o
CC fadvise.o
CC fd-safer-flag.o
CC dup-safer-flag.o
CC fdutimensat.o
CC file-set.o
CC filevercmp.o
CC freadahead.o
CC freading.o
CC freadptr.o
CC freadseek.o
CC fseterr.o
CC ftoastr.o
CC full-read.o
CC full-write.o
CC hash-pjw.o
CC hash-triple.o
CC heap.o
CC ino-map.o
CC imaxtostr.o
CC inttostr.o
CC offtostr.o
CC uinttostr.o
CC umaxtostr.o
CC ldtoastr.o
CC linebuffer.o
CC localcharset.o
CC malloca.o
CC mbchar.o
CC mbsalign.o
CC mbscasecmp.o
CC mbslen.o
CC mbsstr.o
CC mbswidth.o
CC memchr2.o
CC memcmp2.o
CC nproc.o
CC openat-die.o
CC parse-datetime.o
CC printf-frexp.o
CC printf-frexpl.o
CC priv-set.o
CC progname.o
CC propername.o
CC randint.o
CC randperm.o
CC randread.o
CC rand-isaac.o
CC readtokens0.o
CC savewd.o
CC sockets.o
CC striconv.o
CC strnlen1.o
CC glthread/threadlib.o
CC glthread/tls.o
CC trim.o
CC unicodeio.o
CC verror.o
CC version-etc.o
CC version-etc-fsf.o
CC xalloc-die.o
CC xfreopen.o
CC xgethostname.o
CC xmemcoll.o
CC xprintf.o
CC xreadlink.o
CC xstriconv.o
CC xstrndup.o
CC xstrtoimax.o
CC xstrtoumax.o
CC xvasprintf.o
CC xasprintf.o
CC buffer-lcm.o
CC acl_entries.o
CC argmatch.o
CC asnprintf.o
CC asprintf.o
CC at-func2.o
CC backupfile.o
CC basename.o
CC basename-lgpl.o
CC c-strtod.o
CC c-strtold.o
CC canon-host.o
CC canonicalize.o
CC chdir-long.o
CC chown.o
CC cloexec.o
CC close-stream.o
CC closein.o
CC closeout.o
CC creat-safer.o
CC cycle-check.o
CC dirchownmod.o
CC dirname.o
CC dirname-lgpl.o
CC dup-safer.o
CC error.o
CC euidaccess.o
CC exclude.o
CC faccessat.o
CC fchmodat.o
CC fchownat.o
CC fcntl.o
CC fd-safer.o
CC fdopendir.o
CC fflush.o
CC file-type.o
CC filemode.o
CC filenamecat.o
CC filenamecat-lgpl.o
CC fnmatch.o
CC fopen-safer.o
CC fpending.o
CC fprintftime.o
CC fpurge.o
CC freopen-safer.o
CC fseeko.o
CC fstatat.o
CC fsusage.o
CC fts.o
CC futimens.o
CC getcwd.o
CC getdelim.o
CC gethrxtime.o
CC getline.o
CC getndelim2.o
CC getopt.o
CC getopt1.o
CC getpass.o
CC gettime.o
CC getugroups.o
CC group-member.o
CC hard-locale.o
CC hash.o
CC human.o
CC i-ring.o
CC idcache.o
CC isapipe.o
CC isnanl.o
CC lchown.o
CC link.o
CC linkat.o
CC long-options.o
CC lstat.o
CC md5.o
CC memcasecmp.o
CC memcoll.o
CC mempcpy.o
CC memrchr.o
CC mgetgroups.o
CC mkancesdirs.o
CC mkdir-p.o
CC mkdirat.o
CC mkstemp-safer.o
CC mktime.o
CC modechange.o
CC mountlist.o
CC mpsort.o
CC nanosleep.o
CC obstack.o
CC open.o
CC open-safer.o
CC openat.o
CC openat-proc.o
CC openat-safer.o
CC opendir-safer.o
CC physmem.o
CC pipe-safer.o
CC posixtm.o
CC posixver.o
CC printf-args.o
CC printf-parse.o
CC putenv.o
CC quotearg.o
CC quote.o
CC read-file.o
CC readlink.o
CC readlinkat.o
CC readtokens.o
CC readutmp.o
CC regex.o
CC remove.o
CC rename.o
CC root-dev-ino.o
CC rpmatch.o
CC safe-read.o
CC safe-write.o
CC same.o
CC save-cwd.o
CC savedir.o
CC selinux-at.o
CC setenv.o
CC settime.o
CC sha1.o
CC sha256.o
CC sha512.o
CC sig2str.o
CC stat.o
CC stpncpy.o
CC strftime.o
CC stripslash.o
CC strndup.o
CC strnlen.o
CC strtod.o
CC symlink.o
CC symlinkat.o
CC tempname.o
CC unlink.o
CC unlinkat.o
CC userspec.o
CC utimecmp.o
CC utimens.o
CC utimensat.o
CC vasnprintf.o
CC vasprintf.o
CC vfprintf.o
CC vprintf.o
CC wcswidth.o
CC wcwidth.o
CC write-any-file.o
CC xgetcwd.o
CC xmalloc.o
CC xnanosleep.o
CC xstrtod.o
CC xstrtol.o
CC xstrtol-error.o
CC xstrtold.o
CC xstrtoul.o
CC yesno.o
CC euidaccess-stat.o
CC fd-reopen.o
CC xfts.o
CC strintcmp.o
CC strnumcmp.o
GEN charset.alias
GEN ref-add.sed
GEN ref-del.sed
CC glthread/lock.o
CC unistr/u8-uctomb.o
CC unistr/u8-uctomb-aux.o
CC uniwidth/width.o
AR libcoreutils.a
/usr/bin/ranlib: file: libcoreutils.a(close-hook.o) has no symbols
/usr/bin/ranlib: file: libcoreutils.a(priv-set.o) has no symbols
/usr/bin/ranlib: file: libcoreutils.a(threadlib.o) has no symbols
/usr/bin/ranlib: file: libcoreutils.a(tls.o) has no symbols
/usr/bin/ranlib: file: libcoreutils.a(u8-uctomb.o) has no symbols
ranlib: file: libcoreutils.a(close-hook.o) has no symbols
ranlib: file: libcoreutils.a(priv-set.o) has no symbols
ranlib: file: libcoreutils.a(threadlib.o) has no symbols
ranlib: file: libcoreutils.a(tls.o) has no symbols
ranlib: file: libcoreutils.a(u8-uctomb.o) has no symbols
if test no = no; then \
case 'darwin10.7.0' in \
darwin[56]*) \
need_charset_alias=true ;; \
darwin* | cygwin* | mingw* | pw32* | cegcc*) \
need_charset_alias=false ;; \
*) \
need_charset_alias=true ;; \
esac ; \
else \
need_charset_alias=false ; \
fi ; \
if $need_charset_alias; then \
/bin/sh /private/tmp/homebrew-coreutils-8.12-dpH1/coreutils-8.12/build-aux/install-sh -d /usr/local/Cellar/coreutils/8.12/lib ; \
fi ; \
if test -f /usr/local/Cellar/coreutils/8.12/lib/charset.alias; then \
sed -f ref-add.sed /usr/local/Cellar/coreutils/8.12/lib/charset.alias > /usr/local/Cellar/coreutils/8.12/lib/charset.tmp ; \
/usr/bin/install -c -m 644 /usr/local/Cellar/coreutils/8.12/lib/charset.tmp /usr/local/Cellar/coreutils/8.12/lib/charset.alias ; \
rm -f /usr/local/Cellar/coreutils/8.12/lib/charset.tmp ; \
else \
if $need_charset_alias; then \
sed -f ref-add.sed charset.alias > /usr/local/Cellar/coreutils/8.12/lib/charset.tmp ; \
/usr/bin/install -c -m 644 /usr/local/Cellar/coreutils/8.12/lib/charset.tmp /usr/local/Cellar/coreutils/8.12/lib/charset.alias ; \
rm -f /usr/local/Cellar/coreutils/8.12/lib/charset.tmp ; \
fi ; \
fi
make[5]: Nothing to be done for `install-data-am'.
Making install in src
GEN version.c
GEN version.h
make install-am
CC version.o
CC chroot.o
CC hostid.o
CC nice.o
CC who.o
CC users.o
CC pinky.o
CC uptime.o
uptime.c: In function 'print_uptime':
uptime.c:97: error: 'system_info' undeclared (first use in this function)
uptime.c:97: error: (Each undeclared identifier is reported only once
uptime.c:97: error: for each function it appears in.)
uptime.c:97: error: expected ';' before 'si'
uptime.c:99: error: 'si' undeclared (first use in this function)
make[3]: *** [uptime.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [install] Error 2
make[1]: *** [install-recursive] Error 1
make: *** [install] Error 2
==> Exit Status: 2
http://github.com/mxcl/homebrew/blob/master/Library/Formula/coreutils.rb#L42
==> Environment
HOMEBREW_VERSION: 0.8
HEAD: 586ebda7b336ac8e6d16b83972540ceea695ff92
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_REPOSITORY: /usr/local
HOMEBREW_LIBRARY_PATH: /usr/local/Library/Homebrew
Hardware: dual-core 64-bit penryn
OS X: 10.6.7
Kernel Architecture: i386
Ruby: 1.8.7-174
/usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
Xcode: 4.0.2
GCC-4.0: build 5494
GCC-4.2: build 5666
LLVM: build 2335
MacPorts or Fink? false
X11 installed? true
==> Build Flags
CC: /usr/bin/cc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CXX: /usr/bin/c++ => /usr/bin/c++-4.2
LD: /usr/bin/cc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CFLAGS: -O3 -march=core2 -msse4.1 -w -pipe
CXXFLAGS: -O3 -march=core2 -msse4.1 -w -pipe
MAKEFLAGS: -j2
Error: Failed executing: make install
Please report this bug: https://github.com/mxcl/homebrew/wiki/new-issue
These existing issues may help you:
https://github.com/mxcl/homebrew/issues/#issue/4821
https://github.com/mxcl/homebrew/issues/#issue/5267
Also try:
`brew doctor` to check your setup for common problems.
`brew missing` to check installed packages for missing deps.
OTUS-ASIO:tmp$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment