Skip to content

Instantly share code, notes, and snippets.

@nachocab
Created June 9, 2012 01:05
Show Gist options
  • Save nachocab/2898938 to your computer and use it in GitHub Desktop.
Save nachocab/2898938 to your computer and use it in GitHub Desktop.
Can't make: brew install gawk
brew --config
HOMEBREW_VERSION: 0.9
HEAD: bc10e9fc3ef8483e5a9fd4b3bafa3e0021599deb
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: dual-core 64-bit penryn
OS X: 10.7.3
Kernel Architecture: x86_64
Xcode: 4.3.2
GCC-4.0: build 5494
GCC-4.2: build 5666
LLVM: build 2336
Clang: 3.1 build 318
MacPorts or Fink? false
X11: /usr/X11
System Ruby: 1.8.7-249
Which Perl: /usr/local/bin/perl
Which Python: /usr/bin/python
Which Ruby: /Users/nachocab/.rvm/rubies/ruby-1.9.3-p194/bin/ruby
Error: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected dylibs:
/usr/local/lib/libiconv.2.dylib
Error: Unbrewed .la files were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected .la files:
/usr/local/lib/libiconv.la
==> Downloading http://ftpmirror.gnu.org/gawk/gawk-4.0.1.tar.xz
Already downloaded: /Library/Caches/Homebrew/gawk-4.0.1.tar.xz
xz -dc "/Library/Caches/Homebrew/gawk-4.0.1.tar.xz" | /usr/bin/tar xf -
==> ./configure --prefix=/usr/local/Cellar/gawk/4.0.1
./configure --prefix=/usr/local/Cellar/gawk/4.0.1
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/local/bin/mkdir -p
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... /usr/bin/clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/clang accepts -g... yes
checking for /usr/bin/clang option to accept ISO C89... none needed
checking dependency style of /usr/bin/clang... gcc3
checking how to run the C preprocessor... /usr/bin/clang -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for egrep... (cached) /usr/bin/grep -E
checking for bison... bison -y
checking whether ln -s works... yes
checking for gcc... (cached) /usr/bin/clang
checking whether we are using the GNU C compiler... (cached) yes
checking whether /usr/bin/clang accepts -g... (cached) yes
checking for /usr/bin/clang option to accept ISO C89... (cached) none needed
checking dependency style of /usr/bin/clang... (cached) gcc3
checking how to run the C preprocessor... /usr/bin/clang -E
checking whether make sets $(MAKE)... (cached) yes
checking for special development options... no
checking for z/OS USS compilation... no
checking for strerror in -lcposix... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for AIX compilation hacks... no
checking for Linux/Alpha compilation hacks... no
checking whether NLS is requested... yes
checking for msgfmt... no
checking for gmsgfmt... :
checking for xgettext... no
checking for msgmerge... no
checking build system type... i386-apple-darwin11.3.0
checking host system type... i386-apple-darwin11.3.0
checking for ld used by GCC... /usr/bin/clang
checking if the linker (/usr/bin/clang) is GNU ld... no
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... yes
checking for CFLocaleCopyCurrent... yes
checking for GNU gettext in libc... no
checking for iconv... yes
checking for working iconv... yes
checking how to link with libiconv... -liconv
checking for GNU gettext in libintl... no
checking whether to use NLS... no
checking for nl_langinfo and CODESET... yes
checking for LC_MESSAGES... yes
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking whether time.h and sys/time.h may both be included... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking libintl.h usability... no
checking libintl.h presence... no
checking for libintl.h... no
checking mcheck.h usability... no
checking mcheck.h presence... no
checking for mcheck.h... no
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for string.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking stropts.h usability... no
checking stropts.h presence... no
checking for stropts.h... no
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking wctype.h usability... yes
checking wctype.h presence... yes
checking for wctype.h... yes
checking for memory.h... (cached) yes
checking for pid_t... yes
checking return type of signal handlers... void
checking for size_t... yes
checking for uid_t in sys/types.h... yes
checking type of array argument to getgroups... gid_t
checking for long long int... yes
checking for unsigned long long int... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for ssize_t... yes
checking size of unsigned int... 4
checking size of unsigned long... 8
checking for socklen_t... yes
checking for vprintf... yes
checking for _doprnt... no
checking for sys/time.h... (cached) yes
checking for unistd.h... (cached) yes
checking for alarm... yes
checking for working mktime... no
checking for getaddrinfo... yes
checking for fmod in -lm... yes
checking for isinf in -lm... yes
checking for ismod in -lm... no
checking for libsigsegv... no, consider installing GNU libsigsegv
checking for atexit... yes
checking for btowc... yes
checking for fmod... yes
checking for getgrent... yes
checking for getgroups... yes
checking for grantpt... yes
checking for isascii... yes
checking for iswctype... yes
checking for iswlower... yes
checking for iswupper... yes
checking for mbrlen... yes
checking for memcmp... yes
checking for memcpy... yes
checking for memcpy_ulong... no
checking for memmove... yes
checking for memset... yes
checking for memset_ulong... no
checking for mkstemp... yes
checking for setenv... yes
checking for setlocale... yes
checking for setsid... yes
checking for snprintf... yes
checking for strchr... yes
checking for strerror... yes
checking for strftime... yes
checking for strncasecmp... yes
checking for strcoll... yes
checking for strtod... yes
checking for strtoul... yes
checking for system... yes
checking for tmpfile... yes
checking for towlower... yes
checking for towupper... yes
checking for tzset... yes
checking for usleep... yes
checking for wcrtomb... yes
checking for wcscoll... yes
checking for wctype... yes
checking whether mbrtowc and mbstate_t are properly declared... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for library containing dlopen... none required
checking whether getpgrp requires zero arguments... yes
checking for printf %F format... yes
checking for gethostbyname... yes
checking for connect... yes
checking where to find the socket library calls... the standard library
checking whether readline via "-lreadline" is present and sane... yes
checking for struct stat.st_blksize... yes
checking whether time.h and sys/time.h may both be included... (cached) yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_zone... yes
checking whether char is unsigned... no
checking for an ANSI C-conforming const... yes
checking for C/C++ restrict keyword... __restrict
checking for inline... inline
checking for preprocessor stringizing operator... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating awklib/Makefile
config.status: creating doc/Makefile
config.status: creating po/Makefile.in
config.status: creating test/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
==> make
make
make 'CFLAGS=-Os -w -pipe -march=native -Qunused-arguments' 'LDFLAGS=' all-recursive
Making all in .
/usr/bin/clang -DDEFPATH='".:/usr/local/Cellar/gawk/4.0.1/share/awk"' -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/Cellar/gawk/4.0.1/share/locale"' -I. -Os -w -pipe -march=native -Qunused-arguments -MT array.o -MD -MP -MF .deps/array.Tpo -c -o array.o array.c
/usr/bin/clang -DDEFPATH='".:/usr/local/Cellar/gawk/4.0.1/share/awk"' -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/Cellar/gawk/4.0.1/share/locale"' -I. -Os -w -pipe -march=native -Qunused-arguments -MT awkgram.o -MD -MP -MF .deps/awkgram.Tpo -c -o awkgram.o awkgram.c
mv -f .deps/array.Tpo .deps/array.Po
/usr/bin/clang -DDEFPATH='".:/usr/local/Cellar/gawk/4.0.1/share/awk"' -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/Cellar/gawk/4.0.1/share/locale"' -I. -Os -w -pipe -march=native -Qunused-arguments -MT builtin.o -MD -MP -MF .deps/builtin.Tpo -c -o builtin.o builtin.c
mv -f .deps/awkgram.Tpo .deps/awkgram.Po
/usr/bin/clang -DDEFPATH='".:/usr/local/Cellar/gawk/4.0.1/share/awk"' -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/Cellar/gawk/4.0.1/share/locale"' -I. -Os -w -pipe -march=native -Qunused-arguments -MT dfa.o -MD -MP -MF .deps/dfa.Tpo -c -o dfa.o dfa.c
mv -f .deps/builtin.Tpo .deps/builtin.Po
/usr/bin/clang -DDEFPATH='".:/usr/local/Cellar/gawk/4.0.1/share/awk"' -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/Cellar/gawk/4.0.1/share/locale"' -I. -Os -w -pipe -march=native -Qunused-arguments -MT ext.o -MD -MP -MF .deps/ext.Tpo -c -o ext.o ext.c
mv -f .deps/ext.Tpo .deps/ext.Po
/usr/bin/clang -DDEFPATH='".:/usr/local/Cellar/gawk/4.0.1/share/awk"' -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/Cellar/gawk/4.0.1/share/locale"' -I. -Os -w -pipe -march=native -Qunused-arguments -MT field.o -MD -MP -MF .deps/field.Tpo -c -o field.o field.c
mv -f .deps/dfa.Tpo .deps/dfa.Po
/usr/bin/clang -DDEFPATH='".:/usr/local/Cellar/gawk/4.0.1/share/awk"' -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/Cellar/gawk/4.0.1/share/locale"' -I. -Os -w -pipe -march=native -Qunused-arguments -MT floatcomp.o -MD -MP -MF .deps/floatcomp.Tpo -c -o floatcomp.o floatcomp.c
mv -f .deps/floatcomp.Tpo .deps/floatcomp.Po
/usr/bin/clang -DDEFPATH='".:/usr/local/Cellar/gawk/4.0.1/share/awk"' -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/Cellar/gawk/4.0.1/share/locale"' -I. -Os -w -pipe -march=native -Qunused-arguments -MT gawkmisc.o -MD -MP -MF .deps/gawkmisc.Tpo -c -o gawkmisc.o gawkmisc.c
mv -f .deps/field.Tpo .deps/field.Po
/usr/bin/clang -DDEFPATH='".:/usr/local/Cellar/gawk/4.0.1/share/awk"' -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/Cellar/gawk/4.0.1/share/locale"' -I. -Os -w -pipe -march=native -Qunused-arguments -MT getopt.o -MD -MP -MF .deps/getopt.Tpo -c -o getopt.o getopt.c
mv -f .deps/gawkmisc.Tpo .deps/gawkmisc.Po
/usr/bin/clang -DDEFPATH='".:/usr/local/Cellar/gawk/4.0.1/share/awk"' -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/Cellar/gawk/4.0.1/share/locale"' -I. -Os -w -pipe -march=native -Qunused-arguments -MT getopt1.o -MD -MP -MF .deps/getopt1.Tpo -c -o getopt1.o getopt1.c
mv -f .deps/getopt1.Tpo .deps/getopt1.Po
/usr/bin/clang -DDEFPATH='".:/usr/local/Cellar/gawk/4.0.1/share/awk"' -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/Cellar/gawk/4.0.1/share/locale"' -I. -Os -w -pipe -march=native -Qunused-arguments -MT io.o -MD -MP -MF .deps/io.Tpo -c -o io.o io.c
mv -f .deps/getopt.Tpo .deps/getopt.Po
/usr/bin/clang -DDEFPATH='".:/usr/local/Cellar/gawk/4.0.1/share/awk"' -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/Cellar/gawk/4.0.1/share/locale"' -I. -Os -w -pipe -march=native -Qunused-arguments -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c
mv -f .deps/main.Tpo .deps/main.Po
/usr/bin/clang -DDEFPATH='".:/usr/local/Cellar/gawk/4.0.1/share/awk"' -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/Cellar/gawk/4.0.1/share/locale"' -I. -Os -w -pipe -march=native -Qunused-arguments -MT msg.o -MD -MP -MF .deps/msg.Tpo -c -o msg.o msg.c
mv -f .deps/msg.Tpo .deps/msg.Po
/usr/bin/clang -DDEFPATH='".:/usr/local/Cellar/gawk/4.0.1/share/awk"' -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/Cellar/gawk/4.0.1/share/locale"' -I. -Os -w -pipe -march=native -Qunused-arguments -MT node.o -MD -MP -MF .deps/node.Tpo -c -o node.o node.c
mv -f .deps/io.Tpo .deps/io.Po
/usr/bin/clang -DDEFPATH='".:/usr/local/Cellar/gawk/4.0.1/share/awk"' -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/Cellar/gawk/4.0.1/share/locale"' -I. -Os -w -pipe -march=native -Qunused-arguments -MT random.o -MD -MP -MF .deps/random.Tpo -c -o random.o random.c
mv -f .deps/node.Tpo .deps/node.Po
/usr/bin/clang -DDEFPATH='".:/usr/local/Cellar/gawk/4.0.1/share/awk"' -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/Cellar/gawk/4.0.1/share/locale"' -I. -Os -w -pipe -march=native -Qunused-arguments -MT re.o -MD -MP -MF .deps/re.Tpo -c -o re.o re.c
mv -f .deps/random.Tpo .deps/random.Po
/usr/bin/clang -DDEFPATH='".:/usr/local/Cellar/gawk/4.0.1/share/awk"' -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/Cellar/gawk/4.0.1/share/locale"' -I. -Os -w -pipe -march=native -Qunused-arguments -MT regex.o -MD -MP -MF .deps/regex.Tpo -c -o regex.o regex.c
mv -f .deps/re.Tpo .deps/re.Po
/usr/bin/clang -DDEFPATH='".:/usr/local/Cellar/gawk/4.0.1/share/awk"' -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/Cellar/gawk/4.0.1/share/locale"' -I. -Os -w -pipe -march=native -Qunused-arguments -MT replace.o -MD -MP -MF .deps/replace.Tpo -c -o replace.o replace.c
mv -f .deps/replace.Tpo .deps/replace.Po
/bin/sh ./config.status --file=version.c:version.in
config.status: creating version.c
/usr/bin/clang -DDEFPATH='".:/usr/local/Cellar/gawk/4.0.1/share/awk"' -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/Cellar/gawk/4.0.1/share/locale"' -I. -Os -w -pipe -march=native -Qunused-arguments -MT eval.o -MD -MP -MF .deps/eval.Tpo -c -o eval.o eval.c
mv -f .deps/eval.Tpo .deps/eval.Po
/usr/bin/clang -DDEFPATH='".:/usr/local/Cellar/gawk/4.0.1/share/awk"' -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/Cellar/gawk/4.0.1/share/locale"' -I. -Os -w -pipe -march=native -Qunused-arguments -MT profile.o -MD -MP -MF .deps/profile.Tpo -c -o profile.o profile.c
mv -f .deps/profile.Tpo .deps/profile.Po
/usr/bin/clang -DDEFPATH='".:/usr/local/Cellar/gawk/4.0.1/share/awk"' -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/Cellar/gawk/4.0.1/share/locale"' -I. -Os -w -pipe -march=native -Qunused-arguments -MT eval_p.o -MD -MP -MF .deps/eval_p.Tpo -c -o eval_p.o eval_p.c
mv -f .deps/regex.Tpo .deps/regex.Po
/usr/bin/clang -DDEFPATH='".:/usr/local/Cellar/gawk/4.0.1/share/awk"' -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/Cellar/gawk/4.0.1/share/locale"' -I. -Os -w -pipe -march=native -Qunused-arguments -MT profile_p.o -MD -MP -MF .deps/profile_p.Tpo -c -o profile_p.o profile_p.c
mv -f .deps/eval_p.Tpo .deps/eval_p.Po
/usr/bin/clang -DDEFPATH='".:/usr/local/Cellar/gawk/4.0.1/share/awk"' -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/Cellar/gawk/4.0.1/share/locale"' -I. -Os -w -pipe -march=native -Qunused-arguments -MT eval_d.o -MD -MP -MF .deps/eval_d.Tpo -c -o eval_d.o eval_d.c
mv -f .deps/profile_p.Tpo .deps/profile_p.Po
/usr/bin/clang -DDEFPATH='".:/usr/local/Cellar/gawk/4.0.1/share/awk"' -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/Cellar/gawk/4.0.1/share/locale"' -I. -Os -w -pipe -march=native -Qunused-arguments -MT command.o -MD -MP -MF .deps/command.Tpo -c -o command.o command.c
mv -f .deps/command.Tpo .deps/command.Po
/usr/bin/clang -DDEFPATH='".:/usr/local/Cellar/gawk/4.0.1/share/awk"' -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/Cellar/gawk/4.0.1/share/locale"' -I. -Os -w -pipe -march=native -Qunused-arguments -MT debug.o -MD -MP -MF .deps/debug.Tpo -c -o debug.o debug.c
mv -f .deps/eval_d.Tpo .deps/eval_d.Po
/usr/bin/clang -DDEFPATH='".:/usr/local/Cellar/gawk/4.0.1/share/awk"' -DHAVE_CONFIG_H -DGAWK -DLOCALEDIR='"/usr/local/Cellar/gawk/4.0.1/share/locale"' -I. -Os -w -pipe -march=native -Qunused-arguments -MT version.o -MD -MP -MF .deps/version.Tpo -c -o version.o version.c
mv -f .deps/version.Tpo .deps/version.Po
/usr/bin/clang -Os -w -pipe -march=native -Qunused-arguments -o gawk array.o awkgram.o builtin.o dfa.o ext.o field.o floatcomp.o gawkmisc.o getopt.o getopt1.o io.o main.o msg.o node.o random.o re.o regex.o replace.o version.o eval.o profile.o -lm -lm
/usr/bin/clang -Os -w -pipe -march=native -Qunused-arguments -o pgawk array.o awkgram.o builtin.o dfa.o ext.o field.o floatcomp.o gawkmisc.o getopt.o getopt1.o io.o main.o msg.o node.o random.o re.o regex.o replace.o version.o eval_p.o profile_p.o -lm -lm
mv -f .deps/debug.Tpo .deps/debug.Po
/usr/bin/clang -Os -w -pipe -march=native -Qunused-arguments -o dgawk array.o awkgram.o builtin.o dfa.o ext.o field.o floatcomp.o gawkmisc.o getopt.o getopt1.o io.o main.o msg.o node.o random.o re.o regex.o replace.o version.o eval_d.o profile.o command.o debug.o -lreadline -lm -lm
Undefined symbols for architecture x86_64:
"_history_list", referenced from:
_do_save in debug.o
_serialize in debug.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [dgawk] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
==> Exit Status: 2
https://github.com/mxcl/master/blob/master/Library/Formula/gawk.rb#L18
==> Build Environment
CPU: dual-core 64-bit penryn
MacOS: 10.7.3-x86_64
Xcode: 4.3.2
CC: /usr/bin/clang
CXX: /usr/bin/clang++ => /usr/bin/clang
LD: /usr/bin/clang
CFLAGS: -Os -w -pipe -march=native -Qunused-arguments
CXXFLAGS: -Os -w -pipe -march=native -Qunused-arguments
MAKEFLAGS: -j2
Error: Failed executing: make (gawk.rb:18)
If `brew doctor' does not help diagnose the issue, please report the bug:
https://github.com/mxcl/homebrew/wiki/reporting-bugs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment