jpommerening / homebrew-avr

Homebrew formulas for SimulAVR
MIT License
1 stars 2 forks source link

Unsupported LLVM-gcc option #10

Open arnulfojr opened 7 years ago

arnulfojr commented 7 years ago

I have this gcc configuration under macOS 10.12 (Sierra)

Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin16.1.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

When I try to install simulavr I get this error.

==> Applying simulavr-1.0.0-avrgcc4.9.2-darwin.patch
patching file examples/atmega128_timer/main.c
patching file examples/atmel_key/Makefile.am
patching file examples/atmel_key/StdDefs.c
patching file examples/atmel_key/StdDefs.h
patching file examples/atmel_key/kb.c
patching file examples/atmel_key/main.c
patching file examples/atmel_key/scancodes.h
patching file examples/python/ex_pinout.c
patching file examples/python/example.c
patching file examples/python/example_io.c
patching file examples/python/multicore.c
patching file regress/extinttest/ext_int0.c
patching file regress/extinttest/ext_pcint.c
patching file regress/timertest/timer_16bit.c
patching file regress/timertest/timer_16bit_icap.c
patching file regress/timertest/timer_8bit.c
patching file regress/timertest/timer_8bit_ctc.c
clang: error: unsupported option '--print-multi-os-directory'

Looks like Apple has removed this option from their GCC distribution:

gcc --help | grep print
  -fdiagnostics-print-source-range-info
  -fno-elide-type         Do not elide types when printing diagnostics
  -print-file-name=<file> Print the full library path of <file>
  -print-ivar-layout      Enable Objective-C Ivar layout bitmap print trace
  -print-libgcc-file-name Print the library path for "libgcc.a"
  -print-prog-name=<name> Print the full program path of <name>
  -print-search-dirs      Print the paths used for finding libraries and programs
jpommerening commented 7 years ago

Hey there!

I'm sorry, I don't maintain this repository anymore. Let me recommend the guys at @osx-cross! We merged some of our homebrew taps together and they improved the homebrow formulas a lot since then. They also switched out simulavr with simavr which seems to be better maintained.

To switch to the osx-cross tap try the following:

$ brew uninstall avr-gcc avr-gdb avr-binutils avr-libc
$ brew untap jpommerening/avr
$ brew tap osx-cross/avr
$ brew install simavr

Let me know if you need any help!