richfelker / musl-cross-make

Simple makefile-based build for musl cross compiler
MIT License
1.29k stars 266 forks source link

OS X build of arm fails because of bracket-depth #11

Open FiloSottile opened 8 years ago

FiloSottile commented 8 years ago

On OS X the arm build only works with

COMMON_CONFIG += CFLAGS="-fbracket-depth=512" CXXFLAGS="-fbracket-depth=512"

Can you add this by default?

There's a bug in LLVM for this: https://llvm.org/bugs/show_bug.cgi?id=19650

FiloSottile commented 8 years ago

Actually, even with that it fails:

cd build-arm-linux-musleabihf && make all
make[1]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf'
ln -sf lib obj_sysroot/lib64
cd obj_toolchain && make MULTILIB_OSDIRNAMES= INFO_DEPS= infodir= ac_cv_prog_lex_root=lex.yy.c MAKE="make MULTILIB_OSDIRNAMES= INFO_DEPS= infodir= ac_cv_prog_lex_root=lex.yy.c" LC_ROOT=/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf all-gcc
make[2]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain'
/bin/sh: line 2: LC_ROOT: command not found
make[3]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp'
make MULTILIB_OSDIRNAMES= INFO_DEPS= infodir= ac_cv_prog_lex_root=lex.yy.c  all-recursive
make[4]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp'
Making all in tests
make[5]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/tests'
Making all in .
make[6]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/tests'
make[6]: Nothing to be done for 'all-am'.
make[6]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/tests'
Making all in devel
make[6]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/tests/devel'
make[6]: Nothing to be done for 'all'.
make[6]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/tests/devel'
Making all in mpn
make[6]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/tests/mpn'
make[6]: Nothing to be done for 'all'.
make[6]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/tests/mpn'
Making all in mpz
make[6]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/tests/mpz'
make[6]: Nothing to be done for 'all'.
make[6]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/tests/mpz'
Making all in mpq
make[6]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/tests/mpq'
make[6]: Nothing to be done for 'all'.
make[6]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/tests/mpq'
Making all in mpf
make[6]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/tests/mpf'
make[6]: Nothing to be done for 'all'.
make[6]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/tests/mpf'
Making all in rand
make[6]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/tests/rand'
make[6]: Nothing to be done for 'all'.
make[6]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/tests/rand'
Making all in misc
make[6]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/tests/misc'
make[6]: Nothing to be done for 'all'.
make[6]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/tests/misc'
Making all in cxx
make[6]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/tests/cxx'
make[6]: Nothing to be done for 'all'.
make[6]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/tests/cxx'
make[5]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/tests'
Making all in mpn
make[5]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/mpn'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/mpn'
Making all in mpz
make[5]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/mpz'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/mpz'
Making all in mpq
make[5]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/mpq'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/mpq'
Making all in mpf
make[5]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/mpf'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/mpf'
Making all in printf
make[5]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/printf'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/printf'
Making all in scanf
make[5]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/scanf'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/scanf'
Making all in rand
make[5]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/rand'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/rand'
Making all in cxx
make[5]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/cxx'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/cxx'
Making all in demos
make[5]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/demos'
Making all in calc
make[6]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/demos/calc'
make MULTILIB_OSDIRNAMES= INFO_DEPS= infodir= ac_cv_prog_lex_root=lex.yy.c  all-am
make[7]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/demos/calc'
make[7]: Nothing to be done for 'all-am'.
make[7]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/demos/calc'
make[6]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/demos/calc'
Making all in expr
make[6]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/demos/expr'
make[6]: Nothing to be done for 'all'.
make[6]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/demos/expr'
make[6]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/demos'
make[6]: Nothing to be done for 'all-am'.
make[6]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/demos'
make[5]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/demos'
Making all in tune
make[5]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/tune'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/tune'
Making all in doc
make[5]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/doc'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp/doc'
make[5]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp'
make[5]: Nothing to be done for 'all-am'.
make[5]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp'
make[4]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp'
make[3]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gmp'
/bin/sh: line 2: LC_ROOT: command not found
make[3]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/mpfr'
Making all in doc
make[4]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/mpfr/doc'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/mpfr/doc'
Making all in src
make[4]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/mpfr/src'
make MULTILIB_OSDIRNAMES= INFO_DEPS= infodir= ac_cv_prog_lex_root=lex.yy.c  all-am
make[5]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/mpfr/src'
make[5]: Nothing to be done for 'all-am'.
make[5]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/mpfr/src'
make[4]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/mpfr/src'
Making all in tests
make[4]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/mpfr/tests'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/mpfr/tests'
Making all in tune
make[4]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/mpfr/tune'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/mpfr/tune'
make[4]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/mpfr'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/mpfr'
make[3]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/mpfr'
/bin/sh: line 2: LC_ROOT: command not found
make[3]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/mpc'
make MULTILIB_OSDIRNAMES= INFO_DEPS= infodir= ac_cv_prog_lex_root=lex.yy.c  all-recursive
make[4]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/mpc'
Making all in src
make[5]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/mpc/src'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/mpc/src'
Making all in tests
make[5]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/mpc/tests'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/mpc/tests'
Making all in doc
make[5]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/mpc/doc'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/mpc/doc'
make[5]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/mpc'
make[5]: Nothing to be done for 'all-am'.
make[5]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/mpc'
make[4]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/mpc'
make[3]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/mpc'
/bin/sh: line 2: LC_ROOT: command not found
make[3]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/libiberty'
make[4]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/libiberty/testsuite'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/libiberty/testsuite'
make[3]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/libiberty'
/bin/sh: line 2: LC_ROOT: command not found
make[3]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/lto-plugin'
make MULTILIB_OSDIRNAMES= INFO_DEPS= infodir= ac_cv_prog_lex_root=lex.yy.c  all-am
make[4]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/lto-plugin'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/lto-plugin'
make[3]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/lto-plugin'
/bin/sh: line 2: LC_ROOT: command not found
make[3]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/intl'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/intl'
/bin/sh: line 2: LC_ROOT: command not found
make[3]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/bfd'
Making info in doc
make[4]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/bfd/doc'
make[4]: Nothing to be done for 'info'.
make[4]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/bfd/doc'
Making info in po
make[4]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/bfd/po'
make[4]: Nothing to be done for 'info'.
make[4]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/bfd/po'
make[4]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/bfd'
make[4]: Nothing to be done for 'info-am'.
make[4]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/bfd'
make MULTILIB_OSDIRNAMES= INFO_DEPS= infodir= ac_cv_prog_lex_root=lex.yy.c  all-recursive
make[4]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/bfd'
Making all in doc
make[5]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/bfd/doc'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/bfd/doc'
Making all in po
make[5]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/bfd/po'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/bfd/po'
make[5]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/bfd'
make[5]: Nothing to be done for 'all-am'.
make[5]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/bfd'
make[4]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/bfd'
make[3]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/bfd'
/bin/sh: line 2: LC_ROOT: command not found
make[3]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/opcodes'
make MULTILIB_OSDIRNAMES= INFO_DEPS= infodir= ac_cv_prog_lex_root=lex.yy.c  all-recursive
make[4]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/opcodes'
Making all in .
make[5]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/opcodes'
make[5]: Nothing to be done for 'all-am'.
make[5]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/opcodes'
Making all in po
make[5]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/opcodes/po'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/opcodes/po'
make[4]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/opcodes'
make[3]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/opcodes'
/bin/sh: line 2: LC_ROOT: command not found
make[3]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gas'
make MULTILIB_OSDIRNAMES= INFO_DEPS= infodir= ac_cv_prog_lex_root=lex.yy.c  all-recursive
make[4]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gas'
Making all in doc
make[5]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gas/doc'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gas/doc'
Making all in po
make[5]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gas/po'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gas/po'
make[5]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gas'
make[5]: Nothing to be done for 'all-am'.
make[5]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gas'
make[4]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gas'
make[3]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gas'
/bin/sh: line 2: LC_ROOT: command not found
make[3]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/binutils'
make[4]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/binutils'
make[4]: '../../src_toolchain/binutils/rcparse.c' is up to date.
make[4]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/binutils'
Making info in doc
make[4]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/binutils/doc'
make[4]: Nothing to be done for 'info'.
make[4]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/binutils/doc'
Making info in po
make[4]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/binutils/po'
make[4]: Nothing to be done for 'info'.
make[4]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/binutils/po'
make[4]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/binutils'
make[4]: Nothing to be done for 'info-am'.
make[4]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/binutils'
make MULTILIB_OSDIRNAMES= INFO_DEPS= infodir= ac_cv_prog_lex_root=lex.yy.c  all-recursive
make[4]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/binutils'
Making all in doc
make[5]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/binutils/doc'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/binutils/doc'
Making all in po
make[5]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/binutils/po'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/binutils/po'
make[5]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/binutils'
make[5]: Nothing to be done for 'all-am'.
make[5]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/binutils'
make[4]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/binutils'
make[3]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/binutils'
/bin/sh: line 2: LC_ROOT: command not found
make[3]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/ld'
make MULTILIB_OSDIRNAMES= INFO_DEPS= infodir= ac_cv_prog_lex_root=lex.yy.c  all-recursive
make[4]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/ld'
Making all in po
make[5]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/ld/po'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/ld/po'
make[5]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/ld'
make[5]: Nothing to be done for 'all-am'.
make[5]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/ld'
make[4]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/ld'
make[3]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/ld'
make[3]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/build-x86_64-apple-darwin15.4.0/libiberty'
make[4]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/build-x86_64-apple-darwin15.4.0/libiberty/testsuite'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/build-x86_64-apple-darwin15.4.0/libiberty/testsuite'
make[3]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/build-x86_64-apple-darwin15.4.0/libiberty'
make[3]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/build-x86_64-apple-darwin15.4.0/fixincludes'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/build-x86_64-apple-darwin15.4.0/fixincludes'
make[3]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/build-x86_64-apple-darwin15.4.0/libcpp'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/build-x86_64-apple-darwin15.4.0/libcpp'
/bin/sh: line 2: LC_ROOT: command not found
make[3]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/zlib'
true "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-fbracket-depth=512" "CXXFLAGS=-g -O2" "CFLAGS_FOR_BUILD=-fbracket-depth=512" "CFLAGS_FOR_TARGET=-g -O2" "INSTALL=/usr/local/bin/ginstall -c" "INSTALL_DATA=/usr/local/bin/ginstall -c -m 644" "INSTALL_PROGRAM=/usr/local/bin/ginstall -c" "INSTALL_SCRIPT=/usr/local/bin/ginstall -c" "LDFLAGS=-Wl,-no_pie " "LIBCFLAGS=-fbracket-depth=512" "LIBCFLAGS_FOR_TARGET=-g -O2" "MAKE=make MULTILIB_OSDIRNAMES= INFO_DEPS= infodir= ac_cv_prog_lex_root=lex.yy.c" "MAKEINFO=makeinfo --split-size=5000000 " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "EXPECT=expect" "RUNTEST=runtest" "RUNTESTFLAGS=" "exec_prefix=" "infodir=" "libdir=/lib" "prefix=" "tooldir=/arm-linux-musleabihf" "AR=ar" "AS=as" "CC=gcc" "CXX=g++" "LD=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld" "LIBCFLAGS=-fbracket-depth=512" "NM=nm" "PICFLAG=" "RANLIB=ranlib" "DESTDIR=" DO=all multi-do # make MULTILIB_OSDIRNAMES= INFO_DEPS= infodir= ac_cv_prog_lex_root=lex.yy.c
make[3]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/zlib'
/bin/sh: line 2: LC_ROOT: command not found
make[3]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/libbacktrace'
make MULTILIB_OSDIRNAMES= INFO_DEPS= infodir= ac_cv_prog_lex_root=lex.yy.c  all-am
make[4]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/libbacktrace'
true  DO=all multi-do # make MULTILIB_OSDIRNAMES= INFO_DEPS= infodir= ac_cv_prog_lex_root=lex.yy.c
make[4]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/libbacktrace'
make[3]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/libbacktrace'
/bin/sh: line 2: LC_ROOT: command not found
make[3]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/libcpp'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/libcpp'
/bin/sh: line 2: LC_ROOT: command not found
make[3]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/libdecnumber'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/libdecnumber'
/bin/sh: line 2: LC_ROOT: command not found
make[3]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/fixincludes'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/fixincludes'
/bin/sh: line 2: LC_ROOT: command not found
make[3]: Entering directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gcc'
g++ -c   -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE  -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -I. -I. -I../../src_toolchain/gcc -I../../src_toolchain/gcc/. -I../../src_toolchain/gcc/../include -I../../src_toolchain/gcc/../libcpp/include -I/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/./gmp -I/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/src_toolchain/gmp -I/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/./mpfr/src -I/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/src_toolchain/mpfr/src -I/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/src_toolchain/mpc/src  -I../../src_toolchain/gcc/../libdecnumber -I../../src_toolchain/gcc/../libdecnumber/dpd -I../libdecnumber -I../../src_toolchain/gcc/../libbacktrace   -o insn-attrtab.o -MT insn-attrtab.o -MMD -MP -MF ./.deps/insn-attrtab.TPo insn-attrtab.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
In file included from insn-attrtab.c:6:
../../src_toolchain/gcc/coretypes.h:62:1: warning: class 'rtx_def' was previously declared as a struct [-Wmismatched-tags]
class rtx_def;
^
../../src_toolchain/gcc/coretypes.h:55:8: note: previous use is here
struct rtx_def;
       ^
In file included from insn-attrtab.c:8:
In file included from ../../src_toolchain/gcc/hash-set.h:24:
In file included from ../../src_toolchain/gcc/hash-table.h:199:
../../src_toolchain/gcc/ggc.h:278:15: warning: struct 'rtx_def' was previously declared as a class [-Wmismatched-tags]
static inline struct rtx_def *
              ^
../../src_toolchain/gcc/coretypes.h:62:7: note: previous use is here
class rtx_def;
      ^
In file included from insn-attrtab.c:8:
In file included from ../../src_toolchain/gcc/hash-set.h:24:
In file included from ../../src_toolchain/gcc/hash-table.h:199:
../../src_toolchain/gcc/ggc.h:281:11: warning: struct 'rtx_def' was previously declared as a class [-Wmismatched-tags]
  return (struct rtx_def *) ggc_internal_alloc (s PASS_MEM_STAT);
          ^
../../src_toolchain/gcc/coretypes.h:62:7: note: previous use is here
class rtx_def;
      ^
In file included from insn-attrtab.c:11:
In file included from ../../src_toolchain/gcc/double-int.h:23:
../../src_toolchain/gcc/wide-int.h:1116:1: warning: 'fixed_wide_int_storage' defined as a class template here but previously declared as a struct template [-Wmismatched-tags]
class GTY(()) fixed_wide_int_storage
^
../../src_toolchain/gcc/wide-int.h:284:18: note: did you mean class here?
template <int N> struct fixed_wide_int_storage;
                 ^~~~~~
                 class
In file included from insn-attrtab.c:22:
../../src_toolchain/gcc/rtl.h:282:1: warning: 'rtx_def' defined as a struct here but previously declared as a class [-Wmismatched-tags]
struct GTY((desc("0"), tag("0"),
^
../../src_toolchain/gcc/coretypes.h:62:1: note: did you mean struct here?
class rtx_def;
^~~~~
struct
In file included from insn-attrtab.c:22:
In file included from ../../src_toolchain/gcc/rtl.h:3167:
./genrtl.h:435:3: warning: array index 1 is past the end of the array (which contains 1 element) [-Warray-bounds]
  XWINT (rt, 1) = arg1;
  ^          ~
../../src_toolchain/gcc/rtl.h:1120:29: note: expanded from macro 'XWINT'
#define XWINT(RTX, N)               ((RTX)->u.hwint[N])
                                     ^              ~
../../src_toolchain/gcc/rtl.h:397:5: note: array 'hwint' declared here
    HOST_WIDE_INT hwint[1];
    ^
../../src_toolchain/gcc/hwint.h:58:26: note: expanded from macro 'HOST_WIDE_INT'
#   define HOST_WIDE_INT long long
                         ^
In file included from insn-attrtab.c:22:
In file included from ../../src_toolchain/gcc/rtl.h:3167:
./genrtl.h:436:3: warning: array index 2 is past the end of the array (which contains 1 element) [-Warray-bounds]
  XWINT (rt, 2) = arg2;
  ^          ~
../../src_toolchain/gcc/rtl.h:1120:29: note: expanded from macro 'XWINT'
#define XWINT(RTX, N)               ((RTX)->u.hwint[N])
                                     ^              ~
../../src_toolchain/gcc/rtl.h:397:5: note: array 'hwint' declared here
    HOST_WIDE_INT hwint[1];
    ^
../../src_toolchain/gcc/hwint.h:58:26: note: expanded from macro 'HOST_WIDE_INT'
#   define HOST_WIDE_INT long long
                         ^
In file included from insn-attrtab.c:29:
../../src_toolchain/gcc/output.h:133:6: warning: '__format__' attribute argument not supported: asm_fprintf [-Wignored-attributes]
     ATTRIBUTE_ASM_FPRINTF(2, 3);
     ^
../../src_toolchain/gcc/output.h:123:53: note: expanded from macro 'ATTRIBUTE_ASM_FPRINTF'
#define ATTRIBUTE_ASM_FPRINTF(m, n) __attribute__ ((__format__ (__asm_fprintf__, m, n))) ATTRIBUTE_NONNULL(m)
                                                    ^
../../src_toolchain/gcc/config/arm/arm.md:72:15: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
(thumb_code)) == (
~~~~~~~~~~~~~~^~~~
../../src_toolchain/gcc/config/arm/arm.md:72:15: note: remove extraneous parentheses around the comparison to silence this warning
(thumb_code)) == (
              ^
../../src_toolchain/gcc/config/arm/arm.md:72:15: note: use '=' to turn this equality comparison into an assignment
(thumb_code)) == (
              ^~
              =
../../src_toolchain/gcc/config/arm/arm.md:72:15: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
(thumb_code)) == (
~~~~~~~~~~~~~~^~~~
../../src_toolchain/gcc/config/arm/arm.md:72:15: note: remove extraneous parentheses around the comparison to silence this warning
(thumb_code)) == (
              ^
../../src_toolchain/gcc/config/arm/arm.md:72:15: note: use '=' to turn this equality comparison into an assignment
(thumb_code)) == (
              ^~
              =
../../src_toolchain/gcc/config/arm/arm.md:75:14: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
(arm_arch6)) == (
~~~~~~~~~~~~~^~~~
../../src_toolchain/gcc/config/arm/arm.md:75:14: note: remove extraneous parentheses around the comparison to silence this warning
(arm_arch6)) == (
             ^
../../src_toolchain/gcc/config/arm/arm.md:75:14: note: use '=' to turn this equality comparison into an assignment
(arm_arch6)) == (
             ^~
             =
../../src_toolchain/gcc/config/arm/arm.md:75:14: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
(arm_arch6)) == (
~~~~~~~~~~~~~^~~~
../../src_toolchain/gcc/config/arm/arm.md:75:14: note: remove extraneous parentheses around the comparison to silence this warning
(arm_arch6)) == (
             ^
../../src_toolchain/gcc/config/arm/arm.md:75:14: note: use '=' to turn this equality comparison into an assignment
(arm_arch6)) == (
             ^~
             =
../../src_toolchain/gcc/config/arm/arm.md:75:14: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
(arm_arch6)) == (
~~~~~~~~~~~~~^~~~
../../src_toolchain/gcc/config/arm/arm.md:75:14: note: remove extraneous parentheses around the comparison to silence this warning
(arm_arch6)) == (
             ^
../../src_toolchain/gcc/config/arm/arm.md:75:14: note: use '=' to turn this equality comparison into an assignment
(arm_arch6)) == (
             ^~
             =
../../src_toolchain/gcc/config/arm/arm.md:72:15: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
(thumb_code)) == (
~~~~~~~~~~~~~~^~~~
../../src_toolchain/gcc/config/arm/arm.md:72:15: note: remove extraneous parentheses around the comparison to silence this warning
(thumb_code)) == (
              ^
../../src_toolchain/gcc/config/arm/arm.md:72:15: note: use '=' to turn this equality comparison into an assignment
(thumb_code)) == (
              ^~
              =
../../src_toolchain/gcc/config/arm/arm.md:72:15: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
(thumb_code)) == (
~~~~~~~~~~~~~~^~~~
../../src_toolchain/gcc/config/arm/arm.md:72:15: note: remove extraneous parentheses around the comparison to silence this warning
(thumb_code)) == (
              ^
../../src_toolchain/gcc/config/arm/arm.md:72:15: note: use '=' to turn this equality comparison into an assignment
(thumb_code)) == (
              ^~
              =
../../src_toolchain/gcc/config/arm/arm.md:72:15: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
(thumb_code)) == (
~~~~~~~~~~~~~~^~~~
../../src_toolchain/gcc/config/arm/arm.md:72:15: note: remove extraneous parentheses around the comparison to silence this warning
(thumb_code)) == (
              ^
../../src_toolchain/gcc/config/arm/arm.md:72:15: note: use '=' to turn this equality comparison into an assignment
(thumb_code)) == (
              ^~
              =
../../src_toolchain/gcc/config/arm/arm.md:72:15: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
(thumb_code)) == (
~~~~~~~~~~~~~~^~~~
../../src_toolchain/gcc/config/arm/arm.md:72:15: note: remove extraneous parentheses around the comparison to silence this warning
(thumb_code)) == (
              ^
../../src_toolchain/gcc/config/arm/arm.md:72:15: note: use '=' to turn this equality comparison into an assignment
(thumb_code)) == (
              ^~
              =
../../src_toolchain/gcc/config/arm/arm.md:72:15: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
(thumb_code)) == (
~~~~~~~~~~~~~~^~~~
../../src_toolchain/gcc/config/arm/arm.md:72:15: note: remove extraneous parentheses around the comparison to silence this warning
(thumb_code)) == (
              ^
../../src_toolchain/gcc/config/arm/arm.md:72:15: note: use '=' to turn this equality comparison into an assignment
(thumb_code)) == (
              ^~
              =
../../src_toolchain/gcc/config/arm/arm.md:75:14: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
(arm_arch6)) == (
~~~~~~~~~~~~~^~~~
../../src_toolchain/gcc/config/arm/arm.md:75:14: note: remove extraneous parentheses around the comparison to silence this warning
(arm_arch6)) == (
             ^
../../src_toolchain/gcc/config/arm/arm.md:75:14: note: use '=' to turn this equality comparison into an assignment
(arm_arch6)) == (
             ^~
             =
../../src_toolchain/gcc/config/arm/arm.md:75:14: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
(arm_arch6)) == (
~~~~~~~~~~~~~^~~~
../../src_toolchain/gcc/config/arm/arm.md:75:14: note: remove extraneous parentheses around the comparison to silence this warning
(arm_arch6)) == (
             ^
../../src_toolchain/gcc/config/arm/arm.md:75:14: note: use '=' to turn this equality comparison into an assignment
(arm_arch6)) == (
             ^~
             =
../../src_toolchain/gcc/config/arm/arm.md:75:14: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
(arm_arch6)) == (
~~~~~~~~~~~~~^~~~
../../src_toolchain/gcc/config/arm/arm.md:75:14: note: remove extraneous parentheses around the comparison to silence this warning
(arm_arch6)) == (
             ^
../../src_toolchain/gcc/config/arm/arm.md:75:14: note: use '=' to turn this equality comparison into an assignment
(arm_arch6)) == (
             ^~
             =
../../src_toolchain/gcc/config/arm/arm.md:72:15: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
(thumb_code)) == (
~~~~~~~~~~~~~~^~~~
../../src_toolchain/gcc/config/arm/arm.md:72:15: note: remove extraneous parentheses around the comparison to silence this warning
(thumb_code)) == (
              ^
../../src_toolchain/gcc/config/arm/arm.md:72:15: note: use '=' to turn this equality comparison into an assignment
(thumb_code)) == (
              ^~
              =
../../src_toolchain/gcc/config/arm/arm.md:72:15: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
(thumb_code)) == (
~~~~~~~~~~~~~~^~~~
../../src_toolchain/gcc/config/arm/arm.md:72:15: note: remove extraneous parentheses around the comparison to silence this warning
(thumb_code)) == (
              ^
../../src_toolchain/gcc/config/arm/arm.md:72:15: note: use '=' to turn this equality comparison into an assignment
(thumb_code)) == (
              ^~
              =
../../src_toolchain/gcc/config/arm/arm.md:72:15: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
(thumb_code)) == (
~~~~~~~~~~~~~~^~~~
../../src_toolchain/gcc/config/arm/arm.md:72:15: note: remove extraneous parentheses around the comparison to silence this warning
(thumb_code)) == (
              ^
../../src_toolchain/gcc/config/arm/arm.md:72:15: note: use '=' to turn this equality comparison into an assignment
(thumb_code)) == (
              ^~
              =
../../src_toolchain/gcc/config/arm/arm.md:78:16: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
(thumb1_code)) == (
~~~~~~~~~~~~~~~^~~~
../../src_toolchain/gcc/config/arm/arm.md:78:16: note: remove extraneous parentheses around the comparison to silence this warning
(thumb1_code)) == (
               ^
../../src_toolchain/gcc/config/arm/arm.md:78:16: note: use '=' to turn this equality comparison into an assignment
(thumb1_code)) == (
               ^~
               =
../../src_toolchain/gcc/config/arm/arm.md:78:16: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
(thumb1_code)) == (
~~~~~~~~~~~~~~~^~~~
../../src_toolchain/gcc/config/arm/arm.md:78:16: note: remove extraneous parentheses around the comparison to silence this warning
(thumb1_code)) == (
               ^
../../src_toolchain/gcc/config/arm/arm.md:78:16: note: use '=' to turn this equality comparison into an assignment
(thumb1_code)) == (
               ^~
               =
../../src_toolchain/gcc/config/arm/arm.md:78:16: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
(thumb1_code)) == (
~~~~~~~~~~~~~~~^~~~
../../src_toolchain/gcc/config/arm/arm.md:78:16: note: remove extraneous parentheses around the comparison to silence this warning
(thumb1_code)) == (
               ^
../../src_toolchain/gcc/config/arm/arm.md:78:16: note: use '=' to turn this equality comparison into an assignment
(thumb1_code)) == (
               ^~
               =
../../src_toolchain/gcc/config/arm/arm.md:78:16: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
(thumb1_code)) == (
~~~~~~~~~~~~~~~^~~~
../../src_toolchain/gcc/config/arm/arm.md:78:16: note: remove extraneous parentheses around the comparison to silence this warning
(thumb1_code)) == (
               ^
../../src_toolchain/gcc/config/arm/arm.md:78:16: note: use '=' to turn this equality comparison into an assignment
(thumb1_code)) == (
               ^~
               =
../../src_toolchain/gcc/config/arm/arm.md:78:16: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
(thumb1_code)) == (
~~~~~~~~~~~~~~~^~~~
../../src_toolchain/gcc/config/arm/arm.md:78:16: note: remove extraneous parentheses around the comparison to silence this warning
(thumb1_code)) == (
               ^
../../src_toolchain/gcc/config/arm/arm.md:78:16: note: use '=' to turn this equality comparison into an assignment
(thumb1_code)) == (
               ^~
               =
../../src_toolchain/gcc/config/arm/arm.md:78:16: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
(thumb1_code)) == (
~~~~~~~~~~~~~~~^~~~
../../src_toolchain/gcc/config/arm/arm.md:78:16: note: remove extraneous parentheses around the comparison to silence this warning
(thumb1_code)) == (
               ^
../../src_toolchain/gcc/config/arm/arm.md:78:16: note: use '=' to turn this equality comparison into an assignment
(thumb1_code)) == (
               ^~
               =
../../src_toolchain/gcc/config/arm/arm.md:78:16: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
(thumb1_code)) == (
~~~~~~~~~~~~~~~^~~~
../../src_toolchain/gcc/config/arm/arm.md:78:16: note: remove extraneous parentheses around the comparison to silence this warning
(thumb1_code)) == (
               ^
../../src_toolchain/gcc/config/arm/arm.md:78:16: note: use '=' to turn this equality comparison into an assignment
(thumb1_code)) == (
               ^~
               =
../../src_toolchain/gcc/config/arm/arm.md:78:16: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
(thumb1_code)) == (
~~~~~~~~~~~~~~~^~~~
../../src_toolchain/gcc/config/arm/arm.md:78:16: note: remove extraneous parentheses around the comparison to silence this warning
(thumb1_code)) == (
               ^
../../src_toolchain/gcc/config/arm/arm.md:78:16: note: use '=' to turn this equality comparison into an assignment
(thumb1_code)) == (
               ^~
               =
../../src_toolchain/gcc/config/arm/arm.md:78:16: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
(thumb1_code)) == (
~~~~~~~~~~~~~~~^~~~
../../src_toolchain/gcc/config/arm/arm.md:78:16: note: remove extraneous parentheses around the comparison to silence this warning
(thumb1_code)) == (
               ^
../../src_toolchain/gcc/config/arm/arm.md:78:16: note: use '=' to turn this equality comparison into an assignment
(thumb1_code)) == (
               ^~
               =
../../src_toolchain/gcc/config/arm/arm.md:78:16: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
(thumb1_code)) == (
~~~~~~~~~~~~~~~^~~~
../../src_toolchain/gcc/config/arm/arm.md:78:16: note: remove extraneous parentheses around the comparison to silence this warning
(thumb1_code)) == (
               ^
../../src_toolchain/gcc/config/arm/arm.md:78:16: note: use '=' to turn this equality comparison into an assignment
(thumb1_code)) == (
               ^~
               =
../../src_toolchain/gcc/config/arm/arm.md:78:16: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
(thumb1_code)) == (
~~~~~~~~~~~~~~~^~~~
../../src_toolchain/gcc/config/arm/arm.md:78:16: note: remove extraneous parentheses around the comparison to silence this warning
(thumb1_code)) == (
               ^
../../src_toolchain/gcc/config/arm/arm.md:78:16: note: use '=' to turn this equality comparison into an assignment
(thumb1_code)) == (
               ^~
               =
../../src_toolchain/gcc/config/arm/arm.md:78:16: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
(thumb1_code)) == (
~~~~~~~~~~~~~~~^~~~
../../src_toolchain/gcc/config/arm/arm.md:78:16: note: remove extraneous parentheses around the comparison to silence this warning
(thumb1_code)) == (
               ^
../../src_toolchain/gcc/config/arm/arm.md:78:16: note: use '=' to turn this equality comparison into an assignment
(thumb1_code)) == (
               ^~
               =
../../src_toolchain/gcc/config/arm/arm.md:78:16: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
(thumb1_code)) == (
~~~~~~~~~~~~~~~^~~~
../../src_toolchain/gcc/config/arm/arm.md:78:16: note: remove extraneous parentheses around the comparison to silence this warning
(thumb1_code)) == (
               ^
../../src_toolchain/gcc/config/arm/arm.md:78:16: note: use '=' to turn this equality comparison into an assignment
(thumb1_code)) == (
               ^~
               =
../../src_toolchain/gcc/config/arm/neon.md:3463:10917: fatal error: bracket nesting level exceeded maximum of 256
../../src_toolchain/gcc/config/arm/neon.md:3463:10917: note: use -fbracket-depth=N to increase maximum nesting level
37 warnings and 1 error generated.
Makefile:1065: recipe for target 'insn-attrtab.o' failed
make[3]: *** [insn-attrtab.o] Error 1
make[3]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain/gcc'
Makefile:5771: recipe for target 'all-gcc' failed
make[2]: *** [all-gcc] Error 2
make[2]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf/obj_toolchain'
Makefile:152: recipe for target 'obj_toolchain/gcc/.lc_built' failed
make[1]: *** [obj_toolchain/gcc/.lc_built] Error 2
make[1]: Leaving directory '/Users/filippo/build/musl-cross-make/build-arm-linux-musleabihf'
Makefile:152: recipe for target 'all' failed
make: *** [all] Error 2
FiloSottile commented 8 years ago

After at least 30 builds trying to figure this out, I went back to a patch that should be almost like the one in the first comment, so no idea why that didn't work.

Anyway, added to the OS X PR

richfelker commented 8 years ago

I don't think straight setting of CXXFLAGS here is right because that will either override, or be overridden by, any user settings of CXXFLAGS. In particular possibly-desirable things like CXXFLAGS="-g0 -O2" or "-g0 -Os" will clash with it. There probably should be some approach to constructively building these up and just setting them once, or some trick to poke at and modify an existing setting...

FiloSottile commented 8 years ago

Agreed, it's not optimal at all. But I honestly looked for cleaner ways, and after many cycles I have to say that I can't find any. Not that it means anything except that I'm not worth much at writing Makefiles :)

FiloSottile commented 8 years ago

Realized I could just append it to CXX. It composes well (no overriding issues), and it even makes more sense, since the option is needed only with that CXX, and it's needed to make it a functional CXX.

9 now has that version of the patch and builds cleanly for me.