Closed JacobJerrell closed 6 years ago
could you share the result of brew doctor
?
If you don't have too many packages installed, you could try removing brew completely and starting from scratch. it happens to me sometimes and really helps.
I have a number of packages installed because I work for a software company... currently is not the time to uproot my system, but if all else fails I can wait until things settled down a bit and then go down that road... After putting the node folder back into the /usr/local/include directory, this is the result of brew doctor
Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.
Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:
/anaconda3/bin/icu-config
/anaconda3/bin/freetype-config
/anaconda3/bin/xslt-config
/anaconda3/bin/libpng16-config
/anaconda3/bin/python3.6m-config
/anaconda3/bin/libpng-config
/anaconda3/bin/xml2-config
/anaconda3/bin/python3-config
/anaconda3/bin/curl-config
/anaconda3/bin/ncursesw6-config
/anaconda3/bin/pcre-config
/anaconda3/bin/python3.6-config
Warning: Unbrewed header files were found in /usr/local/include.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected header files:
/usr/local/include/node/android-ifaddrs.h
/usr/local/include/node/libplatform/libplatform-export.h
/usr/local/include/node/libplatform/libplatform.h
/usr/local/include/node/libplatform/v8-tracing.h
/usr/local/include/node/node.h
/usr/local/include/node/node_api.h
/usr/local/include/node/node_api_types.h
/usr/local/include/node/node_buffer.h
/usr/local/include/node/node_object_wrap.h
/usr/local/include/node/node_version.h
/usr/local/include/node/openssl/aes.h
/usr/local/include/node/openssl/archs/BSD-x86/opensslconf.h
/usr/local/include/node/openssl/archs/BSD-x86_64/opensslconf.h
/usr/local/include/node/openssl/archs/VC-WIN32/opensslconf.h
/usr/local/include/node/openssl/archs/VC-WIN64A/opensslconf.h
/usr/local/include/node/openssl/archs/aix-gcc/opensslconf.h
/usr/local/include/node/openssl/archs/aix64-gcc/opensslconf.h
/usr/local/include/node/openssl/archs/darwin-i386-cc/opensslconf.h
/usr/local/include/node/openssl/archs/darwin64-x86_64-cc/opensslconf.h
/usr/local/include/node/openssl/archs/linux-aarch64/opensslconf.h
/usr/local/include/node/openssl/archs/linux-armv4/opensslconf.h
/usr/local/include/node/openssl/archs/linux-elf/opensslconf.h
/usr/local/include/node/openssl/archs/linux-ppc/opensslconf.h
/usr/local/include/node/openssl/archs/linux-ppc64/opensslconf.h
/usr/local/include/node/openssl/archs/linux-x32/opensslconf.h
/usr/local/include/node/openssl/archs/linux-x86_64/opensslconf.h
/usr/local/include/node/openssl/archs/linux32-s390x/opensslconf.h
/usr/local/include/node/openssl/archs/linux64-s390x/opensslconf.h
/usr/local/include/node/openssl/archs/solaris-x86-gcc/opensslconf.h
/usr/local/include/node/openssl/archs/solaris64-x86_64-gcc/opensslconf.h
/usr/local/include/node/openssl/asn1.h
/usr/local/include/node/openssl/asn1_mac.h
/usr/local/include/node/openssl/asn1t.h
/usr/local/include/node/openssl/bio.h
/usr/local/include/node/openssl/blowfish.h
/usr/local/include/node/openssl/bn.h
/usr/local/include/node/openssl/buffer.h
/usr/local/include/node/openssl/camellia.h
/usr/local/include/node/openssl/cast.h
/usr/local/include/node/openssl/cmac.h
/usr/local/include/node/openssl/cms.h
/usr/local/include/node/openssl/comp.h
/usr/local/include/node/openssl/conf.h
/usr/local/include/node/openssl/conf_api.h
/usr/local/include/node/openssl/crypto.h
/usr/local/include/node/openssl/des.h
/usr/local/include/node/openssl/des_old.h
/usr/local/include/node/openssl/dh.h
/usr/local/include/node/openssl/dsa.h
/usr/local/include/node/openssl/dso.h
/usr/local/include/node/openssl/dtls1.h
/usr/local/include/node/openssl/e_os2.h
/usr/local/include/node/openssl/ebcdic.h
/usr/local/include/node/openssl/ec.h
/usr/local/include/node/openssl/ecdh.h
/usr/local/include/node/openssl/ecdsa.h
/usr/local/include/node/openssl/engine.h
/usr/local/include/node/openssl/err.h
/usr/local/include/node/openssl/evp.h
/usr/local/include/node/openssl/hmac.h
/usr/local/include/node/openssl/idea.h
/usr/local/include/node/openssl/krb5_asn.h
/usr/local/include/node/openssl/kssl.h
/usr/local/include/node/openssl/lhash.h
/usr/local/include/node/openssl/md4.h
/usr/local/include/node/openssl/md5.h
/usr/local/include/node/openssl/mdc2.h
/usr/local/include/node/openssl/modes.h
/usr/local/include/node/openssl/obj_mac.h
/usr/local/include/node/openssl/objects.h
/usr/local/include/node/openssl/ocsp.h
/usr/local/include/node/openssl/opensslconf.h
/usr/local/include/node/openssl/opensslv.h
/usr/local/include/node/openssl/ossl_typ.h
/usr/local/include/node/openssl/pem.h
/usr/local/include/node/openssl/pem2.h
/usr/local/include/node/openssl/pkcs12.h
/usr/local/include/node/openssl/pkcs7.h
/usr/local/include/node/openssl/pqueue.h
/usr/local/include/node/openssl/rand.h
/usr/local/include/node/openssl/rc2.h
/usr/local/include/node/openssl/rc4.h
/usr/local/include/node/openssl/ripemd.h
/usr/local/include/node/openssl/rsa.h
/usr/local/include/node/openssl/safestack.h
/usr/local/include/node/openssl/seed.h
/usr/local/include/node/openssl/sha.h
/usr/local/include/node/openssl/srp.h
/usr/local/include/node/openssl/srtp.h
/usr/local/include/node/openssl/ssl.h
/usr/local/include/node/openssl/ssl2.h
/usr/local/include/node/openssl/ssl23.h
/usr/local/include/node/openssl/ssl3.h
/usr/local/include/node/openssl/stack.h
/usr/local/include/node/openssl/symhacks.h
/usr/local/include/node/openssl/tls1.h
/usr/local/include/node/openssl/ts.h
/usr/local/include/node/openssl/txt_db.h
/usr/local/include/node/openssl/ui.h
/usr/local/include/node/openssl/ui_compat.h
/usr/local/include/node/openssl/whrlpool.h
/usr/local/include/node/openssl/x509.h
/usr/local/include/node/openssl/x509_vfy.h
/usr/local/include/node/openssl/x509v3.h
/usr/local/include/node/pthread-barrier.h
/usr/local/include/node/stdint-msvc2008.h
/usr/local/include/node/tree.h
/usr/local/include/node/uv-aix.h
/usr/local/include/node/uv-bsd.h
/usr/local/include/node/uv-darwin.h
/usr/local/include/node/uv-errno.h
/usr/local/include/node/uv-linux.h
/usr/local/include/node/uv-os390.h
/usr/local/include/node/uv-posix.h
/usr/local/include/node/uv-sunos.h
/usr/local/include/node/uv-threadpool.h
/usr/local/include/node/uv-unix.h
/usr/local/include/node/uv-version.h
/usr/local/include/node/uv-win.h
/usr/local/include/node/uv.h
/usr/local/include/node/v8-debug.h
/usr/local/include/node/v8-inspector-protocol.h
/usr/local/include/node/v8-inspector.h
/usr/local/include/node/v8-platform.h
/usr/local/include/node/v8-profiler.h
/usr/local/include/node/v8-testing.h
/usr/local/include/node/v8-util.h
/usr/local/include/node/v8-value-serializer-version.h
/usr/local/include/node/v8-version-string.h
/usr/local/include/node/v8-version.h
/usr/local/include/node/v8.h
/usr/local/include/node/v8config.h
/usr/local/include/node/zconf.h
/usr/local/include/node/zlib.h
I've tried re-installing it myself on High Sierra and it works perfectly.
I'm not sure what's causing the issue as the log is not very useful...
trying brew remove anaconda node
might help, but i'm not sure.
as said earlier, removing hombrew and resinstalling it might fix it.
(quick tip: take a screenshot of brew list
so you know which package you need to reinstall)
I blew out homebrew and reinstalled. The first thing I tried to install was avr-gcc, and this is the result:
==> make
Last 15 lines from /Users/myUsername/Library/Logs/Homebrew/avr-gcc/02.make:
/private/tmp/avr-gcc-20180307-69759-6u86j8/gcc-7.3.0/build/./gcc/xgcc -B/private/tmp/avr-gcc-20180307-69759-6u86j8/gcc-7.3.0/build/./gcc/ -B/usr/local/Cellar/avr-gcc/7.3.0/avr/bin/ -B/usr/local/Cellar/avr-gcc/7.3.0/avr/lib/ -isystem /usr/local/Cellar/avr-gcc/7.3.0/avr/include -isystem /usr/local/Cellar/avr-gcc/7.3.0/avr/sys-include -g -O2 -mmcu=avr31 -O2 -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -DDF=SF -Dinhibit_libc -mcall-prologues -Os -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc -DDF=SF -Dinhibit_libc -mcall-prologues -Os -I. -I. -I../../.././gcc -I../../../../libgcc -I../../../../libgcc/. -I../../../../libgcc/../gcc -I../../../../libgcc/../include -DHAVE_CC_TLS -DUSE_EMUTLS -o _satfractSQUSQ.o -MT _satfractSQUSQ.o -MD -MP -MF _satfractSQUSQ.dep -DL_satfract -DFROM_SQ -DTO_USQ -c ../../../../libgcc/fixed-bit.c -fvisibility=hidden -DHIDE_EXPORTS
/private/tmp/avr-gcc-20180307-69759-6u86j8/gcc-7.3.0/build/./gcc/xgcc -B/private/tmp/avr-gcc-20180307-69759-6u86j8/gcc-7.3.0/build/./gcc/ -B/usr/local/Cellar/avr-gcc/7.3.0/avr/bin/ -B/usr/local/Cellar/avr-gcc/7.3.0/avr/lib/ -isystem /usr/local/Cellar/avr-gcc/7.3.0/avr/include -isystem /usr/local/Cellar/avr-gcc/7.3.0/avr/sys-include -g -O2 -mmcu=avr31 -O2 -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -DDF=SF -Dinhibit_libc -mcall-prologues -Os -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc -DDF=SF -Dinhibit_libc -mcall-prologues -Os -I. -I. -I../../.././gcc -I../../../../libgcc -I../../../../libgcc/. -I../../../../libgcc/../gcc -I../../../../libgcc/../include -DHAVE_CC_TLS -DUSE_EMUTLS -o _satfractSQUDQ.o -MT _satfractSQUDQ.o -MD -MP -MF _satfractSQUDQ.dep -DL_satfract -DFROM_SQ -DTO_UDQ -c ../../../../libgcc/fixed-bit.c -fvisibility=hidden -DHIDE_EXPORTS
/private/tmp/avr-gcc-20180307-69759-6u86j8/gcc-7.3.0/build/./gcc/xgcc -B/private/tmp/avr-gcc-20180307-69759-6u86j8/gcc-7.3.0/build/./gcc/ -B/usr/local/Cellar/avr-gcc/7.3.0/avr/bin/ -B/usr/local/Cellar/avr-gcc/7.3.0/avr/lib/ -isystem /usr/local/Cellar/avr-gcc/7.3.0/avr/include -isystem /usr/local/Cellar/avr-gcc/7.3.0/avr/sys-include -g -O2 -mmcu=avr31 -O2 -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -DDF=SF -Dinhibit_libc -mcall-prologues -Os -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc -DDF=SF -Dinhibit_libc -mcall-prologues -Os -I. -I. -I../../.././gcc -I../../../../libgcc -I../../../../libgcc/. -I../../../../libgcc/../gcc -I../../../../libgcc/../include -DHAVE_CC_TLS -DUSE_EMUTLS -o _satfractSQUTQ.o -MT _satfractSQUTQ.o -MD -MP -MF _satfractSQUTQ.dep -DL_satfract -DFROM_SQ -DTO_UTQ -c ../../../../libgcc/fixed-bit.c -fvisibility=hidden -DHIDE_EXPORTS
/private/tmp/avr-gcc-20180307-69759-6u86j8/gcc-7.3.0/build/./gcc/xgcc -B/private/tmp/avr-gcc-20180307-69759-6u86j8/gcc-7.3.0/build/./gcc/ -B/usr/local/Cellar/avr-gcc/7.3.0/avr/bin/ -B/usr/local/Cellar/avr-gcc/7.3.0/avr/lib/ -isystem /usr/local/Cellar/avr-gcc/7.3.0/avr/include -isystem /usr/local/Cellar/avr-gcc/7.3.0/avr/sys-include -g -O2 -mmcu=avr31 -O2 -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -DDF=SF -Dinhibit_libc -mcall-prologues -Os -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc -DDF=SF -Dinhibit_libc -mcall-prologues -Os -I. -I. -I../../.././gcc -I../../../../libgcc -I../../../../libgcc/. -I../../../../libgcc/../gcc -I../../../../libgcc/../include -DHAVE_CC_TLS -DUSE_EMUTLS -o _satfractSQUHA.o -MT _satfractSQUHA.o -MD -MP -MF _satfractSQUHA.dep -DL_satfract -DFROM_SQ -DTO_UHA -c ../../../../libgcc/fixed-bit.c -fvisibility=hidden -DHIDE_EXPORTS
/private/tmp/avr-gcc-20180307-69759-6u86j8/gcc-7.3.0/build/./gcc/xgcc -B/private/tmp/avr-gcc-20180307-69759-6u86j8/gcc-7.3.0/build/./gcc/ -B/usr/local/Cellar/avr-gcc/7.3.0/avr/bin/ -B/usr/local/Cellar/avr-gcc/7.3.0/avr/lib/ -isystem /usr/local/Cellar/avr-gcc/7.3.0/avr/include -isystem /usr/local/Cellar/avr-gcc/7.3.0/avr/sys-include -g -O2 -mmcu=avr31 -O2 -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -DDF=SF -Dinhibit_libc -mcall-prologues -Os -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc -DDF=SF -Dinhibit_libc -mcall-prologues -Os -I. -I. -I../../.././gcc -I../../../../libgcc -I../../../../libgcc/. -I../../../../libgcc/../gcc -I../../../../libgcc/../include -DHAVE_CC_TLS -DUSE_EMUTLS -o _satfractSQUSA.o -MT _satfractSQUSA.o -MD -MP -MF _satfractSQUSA.dep -DL_satfract -DFROM_SQ -DTO_USA -c ../../../../libgcc/fixed-bit.c -fvisibility=hidden -DHIDE_EXPORTS
/private/tmp/avr-gcc-20180307-69759-6u86j8/gcc-7.3.0/build/./gcc/xgcc -B/private/tmp/avr-gcc-20180307-69759-6u86j8/gcc-7.3.0/build/./gcc/ -B/usr/local/Cellar/avr-gcc/7.3.0/avr/bin/ -B/usr/local/Cellar/avr-gcc/7.3.0/avr/lib/ -isystem /usr/local/Cellar/avr-gcc/7.3.0/avr/include -isystem /usr/local/Cellar/avr-gcc/7.3.0/avr/sys-include -g -O2 -mmcu=avr31 -O2 -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -DDF=SF -Dinhibit_libc -mcall-prologues -Os -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc -DDF=SF -Dinhibit_libc -mcall-prologues -Os -I. -I. -I../../.././gcc -I../../../../libgcc -I../../../../libgcc/. -I../../../../libgcc/../gcc -I../../../../libgcc/../include -DHAVE_CC_TLS -DUSE_EMUTLS -o _satfractSQUDA.o -MT _satfractSQUDA.o -MD -MP -MF _satfractSQUDA.dep -DL_satfract -DFROM_SQ -DTO_UDA -c ../../../../libgcc/fixed-bit.c -fvisibility=hidden -DHIDE_EXPORTS
/private/tmp/avr-gcc-20180307-69759-6u86j8/gcc-7.3.0/build/./gcc/xgcc -B/private/tmp/avr-gcc-20180307-69759-6u86j8/gcc-7.3.0/build/./gcc/ -B/usr/local/Cellar/avr-gcc/7.3.0/avr/bin/ -B/usr/local/Cellar/avr-gcc/7.3.0/avr/lib/ -isystem /usr/local/Cellar/avr-gcc/7.3.0/avr/include -isystem /usr/local/Cellar/avr-gcc/7.3.0/avr/sys-include -g -O2 -mmcu=avr31 -O2 -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -DDF=SF -Dinhibit_libc -mcall-prologues -Os -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc -DDF=SF -Dinhibit_libc -mcall-prologues -Os -I. -I. -I../../.././gcc -I../../../../libgcc -I../../../../libgcc/. -I../../../../libgcc/../gcc -I../../../../libgcc/../include -DHAVE_CC_TLS -DUSE_EMUTLS -o _satfractSQUTA.o -MT _satfractSQUTA.o -MD -MP -MF _satfractSQUTA.dep -DL_satfract -DFROM_SQ -DTO_UTA -c ../../../../libgcc/fixed-bit.c -fvisibility=hidden -DHIDE_EXPORTS
make[4]: /private/tmp/avr-gcc-20180307-69759-6u86j8/gcc-7.3.0/build/./gcc/xgcc: Bad executable (or shared library)
/private/tmp/avr-gcc-20180307-69759-6u86j8/gcc-7.3.0/build/./gcc/xgcc -B/private/tmp/avr-gcc-20180307-69759-6u86j8/gcc-7.3.0/build/./gcc/ -B/usr/local/Cellar/avr-gcc/7.3.0/avr/bin/ -B/usr/local/Cellar/avr-gcc/7.3.0/avr/lib/ -isystem /usr/local/Cellar/avr-gcc/7.3.0/avr/include -isystem /usr/local/Cellar/avr-gcc/7.3.0/avr/sys-include -g -O2 -mmcu=avr31 -O2 -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -DDF=SF -Dinhibit_libc -mcall-prologues -Os -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibit_libc -DDF=SF -Dinhibit_libc -mcall-prologues -Os -I. -I. -I../../.././gcc -I../../../../libgcc -I../../../../libgcc/. -I../../../../libgcc/../gcc -I../../../../libgcc/../include -DHAVE_CC_TLS -DUSE_EMUTLS -o _satfractDQQQ.o -MT _satfractDQQQ.o -MD -MP -MF _satfractDQQQ.dep -DL_satfract -DFROM_DQ -DTO_QQ -c ../../../../libgcc/fixed-bit.c -fvisibility=hidden -DHIDE_EXPORTS
make[4]: *** [_satfractSQUTA.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [multi-do] Error 1
make[2]: *** [all-multi] Error 2
make[1]: *** [all-target-libgcc] Error 2
make: *** [all] Error 2
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/osx-cross/homebrew-avr/issues```
can you run brew install avr-gcc --verbose
and provide me with the full output?
are you running the latest version of XCode and/or command line tools?
Sorry it's taking so long to get back... XCode is v9.2
--verbose output (last 129 lines because of terminal memory limit)
00.options.out:
osx-cross/avr/avr-gcc
02.make and 02.make.cc are too large for pastebin... email?
Thank you
Honestly I don't know what could go wrong...
@leojrfs @larsimmisch any ideas?
I resolved the issue by skipping homebrew and compiling the everything locally.
Seems like the big fixes were --without-headers
and --disable-libssp
. This solution is a combination of various install walkthrough's and issue resolutions found on the web. Maybe it will help someone else
Getting this when trying to install:
I've run through the following troubleshooting as suggested in other similar issues:
Using
brew doctor
, a lot of stuff was in the node folder regarding openssl, and v8. I moved the entire /usr/local/include/node folder to the desktop and ran:Sorry for the Tarantino script, but the above error is what happened after the above troubleshooting. Any attempts to install prior to that resulted in the brew install hanging at
make
for a very very long time (I was warned that it would be at least 20 minutes. I'm on a 2017 MacBook Pro, and waited greater than an hour)