Coder Social home page Coder Social logo

homebrew-mspgcc's People

Contributors

beshrns avatar bz007 avatar dderiso avatar lukeadams avatar mvochoa avatar sampsyo avatar tsparber avatar turbo87 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

dbalatero

homebrew-mspgcc's Issues

msp430-gcc dependency fails in make

Tried to install this recipe today using
brew install msp430-libc

I fail on high sierra at make:
../configure --target=msp430 --enable-languages=c,c++ --program-prefix='msp430-' --prefix=/usr/local/Cellar/msp430-gcc/4.7.0 --with-as=/usr/local/opt/msp ==> make

if [ xinfo = xinfo ]; then \
		makeinfo --split-size=5000000 --split-size=5000000 --no-split -I ../../gcc/doc \
			-I ../../gcc/doc/include -o doc/gccinstall.info ../../gcc/doc/install.texi; \
	fi
../../gcc/doc/install.texi:3143: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:3158: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:3215: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:3222: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:3231: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:3268: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:3285: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:3308: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:3343: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:3355: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:3362: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:3400: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:3413: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:3465: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:3478: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:3589: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:3598: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:3610: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:3630: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:3659: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:3679: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:3694: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:3844: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:3851: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:3858: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:3865: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:3872: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:3879: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:3907: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:3917: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:3924: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:3931: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:3983: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:3990: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:4089: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:4096: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:4108: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:4124: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:4130: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:4137: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:4143: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:4150: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:4156: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:4162: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:4169: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:4175: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:4182: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:4190: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:4196: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:4202: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:4213: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:4334: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:4349: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:4411: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:4427: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:4437: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:4462: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:4469: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:4476: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:4484: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:4492: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:4527: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:4537: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:4553: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:4571: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:4583: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:4640: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:4657: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:4667: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:4676: warning: @anchor should not appear in @heading
../../gcc/doc/install.texi:4722: warning: @anchor should not appear in @heading
../../gcc/doc/cppopts.texi:806: @itemx must follow @item
make[2]: *** [doc/cpp.info] Error 1
make[2]: *** Waiting for unfinished jobs....
../../gcc/doc/gcc.texi:89: warning: @tex should only appear at a line beginning
../../gcc/doc/gcc.texi:89: warning: @end should only appear at a line beginning
../../gcc/doc/gcc.texi:91: warning: @tex should only appear at a line beginning
../../gcc/doc/gcc.texi:91: warning: @end should only appear at a line beginning
../../gcc/doc/invoke.texi:5180: @itemx must follow @item
../../gcc/doc/invoke.texi:5328: @itemx must follow @item
../../gcc/doc/invoke.texi:5332: @itemx must follow @item
../../gcc/doc/invoke.texi:5343: @itemx must follow @item
../../gcc/doc/invoke.texi:5347: @itemx must follow @item
../../gcc/doc/invoke.texi:5392: @itemx must follow @item
../../gcc/doc/invoke.texi:5422: @itemx must follow @item
../../gcc/doc/invoke.texi:5434: @itemx must follow @item
../../gcc/doc/cppopts.texi:806: @itemx must follow @item
../../gcc/doc/invoke.texi:1016: warning: node next `Overall Options' in menu `C Dialect Options' and in sectioning `Invoking G++' differ
../../gcc/doc/invoke.texi:1016: warning: node up `Overall Options' in menu `Option Summary' and in sectioning `Invoking GCC' differ
../../gcc/doc/invoke.texi:1481: warning: node prev `C Dialect Options' in menu `Overall Options' and in sectioning `Invoking G++' differ
../../gcc/doc/invoke.texi:1481: warning: node up `C Dialect Options' in menu `Option Summary' and in sectioning `Invoking GCC' differ
../../gcc/doc/invoke.texi:1871: warning: node up `C++ Dialect Options' in menu `Option Summary' and in sectioning `Invoking GCC' differ
../../gcc/doc/invoke.texi:2608: warning: node up `Objective-C and Objective-C++ Dialect Options' in menu `Option Summary' and in sectioning `Invoking GCC' differ
../../gcc/doc/invoke.texi:2840: warning: node up `Language Independent Options' in menu `Option Summary' and in sectioning `Invoking GCC' differ
../../gcc/doc/invoke.texi:2888: warning: node up `Warning Options' in menu `Option Summary' and in sectioning `Invoking GCC' differ
../../gcc/doc/invoke.texi:4690: warning: node up `Debugging Options' in menu `Option Summary' and in sectioning `Invoking GCC' differ
../../gcc/doc/invoke.texi:6109: warning: node up `Optimize Options' in menu `Option Summary' and in sectioning `Invoking GCC' differ
../../gcc/doc/invoke.texi:9277: warning: node up `Preprocessor Options' in menu `Option Summary' and in sectioning `Invoking GCC' differ
../../gcc/doc/invoke.texi:9315: warning: node up `Assembler Options' in menu `Option Summary' and in sectioning `Invoking GCC' differ
../../gcc/doc/invoke.texi:9338: warning: node up `Link Options' in menu `Option Summary' and in sectioning `Invoking GCC' differ
../../gcc/doc/invoke.texi:9589: warning: node up `Directory Options' in menu `Option Summary' and in sectioning `Invoking GCC' differ
../../gcc/doc/invoke.texi:9733: warning: node up `Spec Files' in menu `Option Summary' and in sectioning `Invoking GCC' differ
../../gcc/doc/invoke.texi:10292: warning: node up `Target Options' in menu `Option Summary' and in sectioning `Invoking GCC' differ
../../gcc/doc/implement-c.texi:6: warning: node next `C Implementation' in menu `C Extensions' and in sectioning `C++ Implementation' differ
../../gcc/doc/implement-cxx.texi:6: warning: node next `C++ Implementation' in menu `C++ Extensions' and in sectioning `C Extensions' differ
../../gcc/doc/implement-cxx.texi:6: warning: node prev `C++ Implementation' in menu `C Extensions' and in sectioning `C Implementation' differ
../../gcc/doc/extend.texi:8: warning: node next `C Extensions' in menu `C++ Implementation' and in sectioning `C++ Extensions' differ
../../gcc/doc/extend.texi:8: warning: node prev `C Extensions' in menu `C Implementation' and in sectioning `C++ Implementation' differ
../../gcc/doc/extend.texi:772: warning: node next `Conditionals' in menu `Long Long' and in sectioning `__int128' differ
../../gcc/doc/extend.texi:810: warning: node next `__int128' in menu `Complex' and in sectioning `Long Long' differ
../../gcc/doc/extend.texi:810: warning: node prev `__int128' in menu `Long Long' and in sectioning `Conditionals' differ
../../gcc/doc/extend.texi:821: warning: node next `Long Long' in menu `__int128' and in sectioning `Complex' differ
../../gcc/doc/extend.texi:821: warning: node prev `Long Long' in menu `Conditionals' and in sectioning `__int128' differ
../../gcc/doc/extend.texi:853: warning: node prev `Complex' in menu `__int128' and in sectioning `Long Long' differ
../../gcc/doc/extend.texi:1410: warning: node next `Zero Length' in menu `Variable Length' and in sectioning `Empty Structures' differ
../../gcc/doc/extend.texi:1508: warning: node next `Empty Structures' in menu `Variadic Macros' and in sectioning `Variable Length' differ
../../gcc/doc/extend.texi:1508: warning: node prev `Empty Structures' in menu `Variable Length' and in sectioning `Zero Length' differ
../../gcc/doc/extend.texi:1524: warning: node next `Variable Length' in menu `Empty Structures' and in sectioning `Variadic Macros' differ
../../gcc/doc/extend.texi:1524: warning: node prev `Variable Length' in menu `Zero Length' and in sectioning `Empty Structures' differ
../../gcc/doc/extend.texi:1605: warning: node prev `Variadic Macros' in menu `Empty Structures' and in sectioning `Variable Length' differ
../../gcc/doc/extend.texi:1823: warning: node next `Designated Inits' in menu `Cast to Union' and in sectioning `Case Ranges' differ
../../gcc/doc/extend.texi:1967: warning: node next `Case Ranges' in menu `Mixed Declarations' and in sectioning `Cast to Union' differ
../../gcc/doc/extend.texi:1967: warning: node prev `Case Ranges' in menu `Cast to Union' and in sectioning `Designated Inits' differ
../../gcc/doc/extend.texi:2004: warning: node next `Cast to Union' in menu `Case Ranges' and in sectioning `Mixed Declarations' differ
../../gcc/doc/extend.texi:2004: warning: node prev `Cast to Union' in menu `Designated Inits' and in sectioning `Case Ranges' differ
../../gcc/doc/extend.texi:2045: warning: node prev `Mixed Declarations' in menu `Case Ranges' and in sectioning `Cast to Union' differ
../../gcc/doc/extend.texi:10914: warning: node next `MIPS Loongson Built-in Functions' in menu `Other MIPS Built-in Functions' and in sectioning `picoChip Built-in Functions' differ
../../gcc/doc/extend.texi:11317: warning: node next `picoChip Built-in Functions' in menu `PowerPC AltiVec/VSX Built-in Functions' and in sectioning `Other MIPS Built-in Functions' differ
../../gcc/doc/extend.texi:11317: warning: node prev `picoChip Built-in Functions' in menu `Other MIPS Built-in Functions' and in sectioning `MIPS Loongson Built-in Functions' differ
../../gcc/doc/extend.texi:11353: warning: node next `Other MIPS Built-in Functions' in menu `picoChip Built-in Functions' and in sectioning `PowerPC AltiVec/VSX Built-in Functions' differ
../../gcc/doc/extend.texi:11353: warning: node prev `Other MIPS Built-in Functions' in menu `MIPS Loongson Built-in Functions' and in sectioning `picoChip Built-in Functions' differ
../../gcc/doc/extend.texi:11365: warning: node prev `PowerPC AltiVec/VSX Built-in Functions' in menu `picoChip Built-in Functions' and in sectioning `Other MIPS Built-in Functions' differ
../../gcc/doc/extend.texi:14826: warning: node prev `C++ Extensions' in menu `C++ Implementation' and in sectioning `C Extensions' differ
../../gcc/doc/trouble.texi:7: warning: node next `Trouble' in menu `Service' and in sectioning `Bugs' differ
../../gcc/doc/trouble.texi:7: warning: node prev `Trouble' in menu `Bug Reporting' and in sectioning `Gcov' differ
../../gcc/doc/trouble.texi:7: warning: node up `Trouble' in menu `Bugs' and in sectioning `Top' differ
../../gcc/doc/service.texi:6: warning: node prev `Service' in menu `Trouble' and in sectioning `Bugs' differ
../../gcc/doc/service.texi:6: warning: node up `Service' in menu `Bugs' and in sectioning `Top' differ
make[2]: *** [doc/gcc.info] Error 1
/bin/sh ../../gcc/../move-if-change tmp-mlib.h multilib.h
echo timestamp > s-mlib
make[1]: *** [all-gcc] Error 2
make: *** [all] Error 2

HOMEBREW_VERSION: 1.6.3
ORIGIN: https://github.com/Homebrew/brew
HEAD: d14d0c25d6bd5a15f3fbca4cb402f0f2245c4631
Last commit: 2 weeks ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: dadebf4d9d0ead7a962422119ed0536246df76fd
Core tap last commit: 8 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CACHE: /Users/david/Library/Caches/Homebrew
CPU: quad-core 64-bit haswell
Homebrew Ruby: 2.3.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby
Clang: 9.1 build 902
Git: 2.17.0 => /usr/local/bin/git
Curl: 7.49.1 => /usr/local/MacGPG2/bin/curl
Java: 1.8.0_20
macOS: 10.13.5-x86_64
CLT: 9.3.0.0.1.1521514116
Xcode: 9.3.1
XQuartz: 2.7.11 => /opt/X11

CC: /usr/bin/clang
CXX: /usr/bin/clang++
OBJC: /usr/bin/clang
OBJCXX: /usr/bin/clang++
CFLAGS: -Os -w -pipe
CXXFLAGS: -Os -w -pipe
CPPFLAGS: -F/usr/local/Frameworks
LDFLAGS: -L/usr/local/lib -F/usr/local/Frameworks -Wl,-headerpad_max_install_names
MAKEFLAGS: -j4
CMAKE_FRAMEWORK_PATH: /usr/local/Frameworks
PKG_CONFIG_LIBDIR: /usr/local/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/10.13:/usr/lib/pkgconfig
PATH: /Users/david/gcc-arm-none-eabi-5_2-2015q4/bin:/Users/david/.local/bin:/opt/X11/bin:/usr/local/MacGPG2/bin:/Library/TeX/texbin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/sbin:/usr/local/bin:/Users/david/anaconda3/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/Homebrew/Library/Homebrew/shims/scm
CPATH: /usr/local/include

edited to actually include the error...

Compile error on macOS Catalina 10.15

Any ideas?

# brew install msp430-libc
[...]
==> ../configure --target=msp430 --enable-languages=c,c++ --program-prefix='msp430-' --prefix=/usr/local/Cellar/msp430-gcc/4.7.0 --with-as=/usr/local/opt/msp430-binutils/msp430/bin/as --with-ld=/usr/lo
==> make
Last 15 lines from /Users/roroor/Library/Logs/Homebrew/msp430-gcc/02.make:
checking for --enable-version-specific-runtime-libs... no
checking for a BSD-compatible install... /usr/local/bin/ginstall -c
checking for gawk... awk
checking for msp430-ar... msp430-ar
checking for msp430-lipo... msp430-lipo
checking for msp430-nm... /private/tmp/msp430-gcc-20200118-36884-t0kt64/gcc-4.7.0/build/./gcc/nm
checking for msp430-ranlib... msp430-ranlib
checking for msp430-strip... msp430-strip
checking whether ln -s works... yes
checking for msp430-gcc... /private/tmp/msp430-gcc-20200118-36884-t0kt64/gcc-4.7.0/build/./gcc/xgcc -B/private/tmp/msp430-gcc-20200118-36884-t0kt64/gcc-4.7.0/build/./gcc/ -B/usr/local/Cellar/msp430-gcc/4.7.0/msp430/bin/ -B/usr/local/Cellar/msp430-gcc/4.7.0/msp430/lib/ -isystem /usr/local/Cellar/msp430-gcc/4.7.0/msp430/include -isystem /usr/local/Cellar/msp430-gcc/4.7.0/msp430/sys-include
checking for suffix of object files... configure: error: in `/private/tmp/msp430-gcc-20200118-36884-t0kt64/gcc-4.7.0/build/msp430/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[1]: *** [configure-target-libgcc] Error 1
make: *** [all] Error 2

Various failures on macOS Mojave and High Sierra

In the (somewhat distant) past I have installed this no problem at all, until a friend tried a couple of days ago and ran into problems, that I can confirm.

Straight off the box:

$ brew reinstall msp430-gcc
[...]
==> ../configure --target=msp430 --enable-languages=c,c++ --program-prefix='msp430-' --prefix=/usr/local/Cellar/msp430-gcc/4.7.0 --with-as=/usr/local/opt/msp430-binutils/
==> make
Last 15 lines from /Users/cexgo/Library/Logs/Homebrew/msp430-gcc/02.make:
checking for msp430-nm... /private/tmp/msp430-gcc-20181114-60411-1ftv2oq/gcc-4.7.0/build/./gcc/nm
checking for msp430-ranlib... msp430-ranlib
checking for msp430-strip... msp430-strip
checking whether ln -s works... yes
checking for msp430-gcc... /private/tmp/msp430-gcc-20181114-60411-1ftv2oq/gcc-4.7.0/build/./gcc/xgcc -B/private/tmp/msp430-gcc-20181114-60411-1ftv2oq/gcc-4.7.0/build/./gcc/ -B/usr/local/Cellar/msp430-gcc/4.7.0/msp430/bin/ -B/usr/local/Cellar/msp430-gcc/4.7.0/msp430/lib/ -isystem /usr/local/Cellar/msp430-gcc/4.7.0/msp430/include -isystem /usr/local/Cellar/msp430-gcc/4.7.0/msp430/sys-include   
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /private/tmp/msp430-gcc-20181114-60411-1ftv2oq/gcc-4.7.0/build/./gcc/xgcc -B/private/tmp/msp430-gcc-20181114-60411-1ftv2oq/gcc-4.7.0/build/./gcc/ -B/usr/local/Cellar/msp430-gcc/4.7.0/msp430/bin/ -B/usr/local/Cellar/msp430-gcc/4.7.0/msp430/lib/ -isystem /usr/local/Cellar/msp430-gcc/4.7.0/msp430/include -isystem /usr/local/Cellar/msp430-gcc/4.7.0/msp430/sys-include    accepts -g... yes
checking for /private/tmp/msp430-gcc-20181114-60411-1ftv2oq/gcc-4.7.0/build/./gcc/xgcc -B/private/tmp/msp430-gcc-20181114-60411-1ftv2oq/gcc-4.7.0/build/./gcc/ -B/usr/local/Cellar/msp430-gcc/4.7.0/msp430/bin/ -B/usr/local/Cellar/msp430-gcc/4.7.0/msp430/lib/ -isystem /usr/local/Cellar/msp430-gcc/4.7.0/msp430/include -isystem /usr/local/Cellar/msp430-gcc/4.7.0/msp430/sys-include    option to accept ISO C89... unsupported
checking how to run the C preprocessor... /lib/cpp
configure: error: in `/private/tmp/msp430-gcc-20181114-60411-1ftv2oq/gcc-4.7.0/build/msp430/libgcc':
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
make[1]: *** [configure-target-libgcc] Error 1
make: *** [all] Error 2

I tried the recommended fix from sampsyo#13, same behaviour.

No idea why it goes and tries with /lib/cpp, which does not exist. So I changed msp430-gcc.rb like so:

$ git diff
diff --git a/msp430-gcc.rb b/msp430-gcc.rb
index 6f81ff6..f0d9e65 100644
--- a/msp430-gcc.rb
+++ b/msp430-gcc.rb
@@ -35,6 +35,7 @@ class Msp430Gcc < Formula
     ENV.remove_from_cflags(/ ?-march=\S*/)
     ENV.remove_from_cflags(/ ?-msse[\d\.]*/)
     ENV.remove_from_cflags(/ ?-mmacosx-version-min=10\.\d+/)
+    ENV['CPP'] = 'clang -E'
 
     # gcc must be built outside of the source directory.
     mkdir "build" do

Different problem:

$ brew reinstall msp430-gcc
[...]
==> ../configure --target=msp430 --enable-languages=c,c++ --program-prefix='msp430-' --prefix=/usr/local/Cellar/msp430-gcc/4.7.0 --with-as=/usr/local/opt/msp430-binutils/
==> make
Last 15 lines from /Users/cexgo/Library/Logs/Homebrew/msp430-gcc/02.make:
                 from ../../../../libgcc/libgcc2.c:29:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/sys/_types/_size_t.h:31:1: error: unknown type name '__darwin_size_t'
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/stddef.h:79:0,
                 from ../../../../libgcc/../gcc/tsystem.h:45,
                 from ../../../../libgcc/libgcc2.c:29:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/sys/_types/_wchar_t.h:34:1: error: unknown type name '__darwin_wchar_t'
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/stddef.h:82:0,
                 from ../../../../libgcc/../gcc/tsystem.h:45,
                 from ../../../../libgcc/libgcc2.c:29:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/sys/_types/_wint_t.h:32:1: error: unknown type name '__darwin_wint_t'
make[4]: *** [__main.o] Error 1
make[3]: *** [multi-do] Error 1
make[2]: *** [all-multi] Error 2
make[1]: *** [all-target-libgcc] Error 2
make: *** [all] Error 2

Changed the formula again, using ENV['CPP'] = 'gcc -E'

$ brew reinstall msp430-gcc
[...]
==> ../configure --target=msp430 --enable-languages=c,c++ --program-prefix='msp430-' --prefix=/usr/local/Cellar/msp430-gcc/4.7.0 --with-as=/usr/local/opt/msp430-binutils/
==> make
Last 15 lines from /Users/cexgo/Library/Logs/Homebrew/msp430-gcc/02.make:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/stddef.h:79:0,
                 from ../../../../libgcc/../gcc/tsystem.h:45,
                 from ../../../../libgcc/libgcc2.c:29:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/sys/_types/_wchar_t.h:34:1: error: unknown type name '__darwin_wchar_t'
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/stddef.h:82:0,
                 from ../../../../libgcc/../gcc/tsystem.h:45,
                 from ../../../../libgcc/libgcc2.c:29:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/sys/_types/_wint_t.h:32:1: error: unknown type name '__darwin_wint_t'
make[4]: *** [_clear_cache.o] Error 1
make[4]: *** [_trampoline.o] Error 1
make[4]: *** [__main.o] Error 1
make[3]: *** [multi-do] Error 1
make[2]: *** [all-multi] Error 2
make[1]: *** [all-target-libgcc] Error 2
make: *** [all] Error 2

With ENV['CPP'] = '/usr/bin/cpp'

==> ../configure --target=msp430 --enable-languages=c,c++ --program-prefix='msp430-' --prefix=/usr/local/Cellar/msp430-gcc/4.7.0 --with-as=/usr/local/opt/msp430-binutils/
==> make
Last 15 lines from /Users/cexgo/Library/Logs/Homebrew/msp430-gcc/02.make:
checking for x86_64-apple-darwin18.2.0-lipo... no
checking for lipo... lipo
checking for x86_64-apple-darwin18.2.0-otool... no
checking for otool... otool
checking for x86_64-apple-darwin18.2.0-otool64... no
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
checking how to run the C preprocessor... /usr/bin/cpp
configure: error: in `/private/tmp/msp430-gcc-20181114-78241-oksnvi/gcc-4.7.0/build/lto-plugin':
configure: error: C preprocessor "/usr/bin/cpp" fails sanity check
See `config.log' for more details.
make[1]: *** [configure-lto-plugin] Error 1
make: *** [all] Error 2

I am running out of ideas here, not even sure whether this is a problem with the formula or whether it's a bug with msp430-gcc sources / build system. Any clues?

$ gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1
Apple LLVM version 10.0.0 (clang-1000.10.44.4)
Target: x86_64-apple-darwin18.2.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.