Skip to content

Failed to build for Mac #97

@4ntoine

Description

@4ntoine

./binutils.build.bash fails.

...
config.status: creating po/Makefile
+ nice -n 10 make -j 2 all
make[1]: Nothing to be done for `all-target'.
make[2]: Nothing to be done for `all'.
echo ./regex.o ./cplus-dem.o ./cp-demangle.o ./md5.o ./sha1.o ./alloca.o ./argv.o ./choose-temp.o ./concat.o ./cp-demint.o ./crc32.o ./d-demangle.o ./dwarfnames.o ./dyn-string.o ./fdmatch.o ./fibheap.o ./filename_cmp.o ./floatformat.o ./fnmatch.o ./fopen_unlocked.o ./getopt.o ./getopt1.o ./getpwd.o ./getruntime.o ./hashtab.o ./hex.o ./lbasename.o ./lrealpath.o ./make-relative-prefix.o ./make-temp-file.o ./objalloc.o ./obstack.o ./partition.o ./pexecute.o ./physmem.o ./pex-common.o ./pex-one.o ./pex-unix.o ./vprintf-support.o ./safe-ctype.o ./simple-object.o ./simple-object-coff.o ./simple-object-elf.o ./simple-object-mach-o.o ./simple-object-xcoff.o ./sort.o ./spaces.o ./splay-tree.o ./stack-limit.o ./strerror.o ./strsignal.o ./timeval-utils.o ./unlink-if-ordinary.o ./xasprintf.o ./xatexit.o ./xexit.o ./xmalloc.o ./xmemdup.o ./xstrdup.o ./xstrerror.o ./xstrndup.o ./xvasprintf.o > required-list
make[3]: Nothing to be done for `all'.
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"zlib\" -DVERSION=\"1.1.4\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 -DHAVE_MEMCPY=1 -DHAVE_STRERROR=1 -DHAVE_UNISTD_H=1 -I. -I../../binutils/zlib      -w -O2 -g0  -c -o libz_a-zutil.o `test -f 'zutil.c' || echo '../../binutils/zlib/'`zutil.c
true "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-w -O2 -g0 " "CXXFLAGS=-w -O2 -g0 " "CFLAGS_FOR_BUILD=-w -O2 -g0 " "CFLAGS_FOR_TARGET=-g -O2" "INSTALL=/opt/homebrew/bin/ginstall -c" "INSTALL_DATA=/opt/homebrew/bin/ginstall -c -m 644" "INSTALL_PROGRAM=/opt/homebrew/bin/ginstall -c" "INSTALL_SCRIPT=/opt/homebrew/bin/ginstall -c" "LDFLAGS=-s " "LIBCFLAGS=-w -O2 -g0 " "LIBCFLAGS_FOR_TARGET=-g -O2" "MAKE=/Library/Developer/CommandLineTools/usr/bin/make" "MAKEINFO=/Users/anton/dev/src/ArduinoDroidProject/toolchain-from-arduino/toolchain-avr/binutils/missing makeinfo --split-size=5000000 --split-size=5000000 " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "EXPECT=expect" "RUNTEST=runtest" "RUNTESTFLAGS=" "exec_prefix=/Users/anton/dev/src/ArduinoDroidProject/toolchain-from-arduino/toolchain-avr/objdir" "infodir=/Users/anton/dev/src/ArduinoDroidProject/toolchain-from-arduino/toolchain-avr/objdir/share/info" "libdir=/Users/anton/dev/src/ArduinoDroidProject/toolchain-from-arduino/toolchain-avr/objdir/lib" "prefix=/Users/anton/dev/src/ArduinoDroidProject/toolchain-from-arduino/toolchain-avr/objdir" "tooldir=/Users/anton/dev/src/ArduinoDroidProject/toolchain-from-arduino/toolchain-avr/objdir/avr" "AR=ar" "AS=as" "CC=gcc" "CXX=g++" "LD=/Library/Developer/CommandLineTools/usr/bin/ld" "LIBCFLAGS=-w -O2 -g0 " "NM=nm" "PICFLAG=" "RANLIB=ranlib" "DESTDIR=" DO=all multi-do # /Library/Developer/CommandLineTools/usr/bin/make
make[2]: Nothing to be done for `all'.
In file included from ../../binutils/zlib/zutil.c:10:
In file included from ../../binutils/zlib/gzguts.h:21:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:61:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:318:7: error: expected identifier or '('
  318 | FILE    *fdopen(int, const char *) __DARWIN_ALIAS_STARTING(__MAC_10_6, __IPHONE_2_0, __DARWIN_ALIAS(fdopen));
      |          ^
../../binutils/zlib/zutil.h:128:33: note: expanded from macro 'fdopen'
  128 | #        define fdopen(fd,mode) NULL /* No fdopen() */
      |                                 ^
/Library/Developer/CommandLineTools/usr/lib/clang/17/include/__stddef_null.h:26:16: note: expanded from macro 'NULL'
   26 | #define NULL ((void*)0)
      |                ^
In file included from ../../binutils/zlib/zutil.c:10:
In file included from ../../binutils/zlib/gzguts.h:21:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:61:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:318:7: error: expected ')'
../../binutils/zlib/zutil.h:128:33: note: expanded from macro 'fdopen'
  128 | #        define fdopen(fd,mode) NULL /* No fdopen() */
      |                                 ^
/Library/Developer/CommandLineTools/usr/lib/clang/17/include/__stddef_null.h:26:16: note: expanded from macro 'NULL'
   26 | #define NULL ((void*)0)
      |                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:318:7: note: to match this '('
../../binutils/zlib/zutil.h:128:33: note: expanded from macro 'fdopen'
  128 | #        define fdopen(fd,mode) NULL /* No fdopen() */
      |                                 ^
/Library/Developer/CommandLineTools/usr/lib/clang/17/include/__stddef_null.h:26:15: note: expanded from macro 'NULL'
   26 | #define NULL ((void*)0)
      |               ^
In file included from ../../binutils/zlib/zutil.c:10:
In file included from ../../binutils/zlib/gzguts.h:21:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:61:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:318:7: error: expected ')'
  318 | FILE    *fdopen(int, const char *) __DARWIN_ALIAS_STARTING(__MAC_10_6, __IPHONE_2_0, __DARWIN_ALIAS(fdopen));
      |          ^
../../binutils/zlib/zutil.h:128:33: note: expanded from macro 'fdopen'
  128 | #        define fdopen(fd,mode) NULL /* No fdopen() */
      |                                 ^
/Library/Developer/CommandLineTools/usr/lib/clang/17/include/__stddef_null.h:26:22: note: expanded from macro 'NULL'
   26 | #define NULL ((void*)0)
      |                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:318:7: note: to match this '('
../../binutils/zlib/zutil.h:128:33: note: expanded from macro 'fdopen'
  128 | #        define fdopen(fd,mode) NULL /* No fdopen() */
      |                                 ^
/Library/Developer/CommandLineTools/usr/lib/clang/17/include/__stddef_null.h:26:14: note: expanded from macro 'NULL'
   26 | #define NULL ((void*)0)
      |              ^
3 errors generated.
make[2]: *** [libz_a-zutil.o] Error 1
make[1]: *** [all-zlib] Error 2
make: *** [all] Error 2

Full log attached.
binutils.log.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions