osx-cross / homebrew-avr Goto Github PK
View Code? Open in Web Editor NEWHomebrew AVR Toolchain
License: BSD 2-Clause "Simplified" License
Homebrew AVR Toolchain
License: BSD 2-Clause "Simplified" License
Hi!
About a year ago I installed the AVR toolchain on my mac using this guide. It worked like a charm, and I currently have avr-gcc 4.9.3 and avr-libc 2.0.0 installed.
I'm working on a project where I want to compile optiboot for the new ATmega48PB/88PB/168PB/328PB chips, but I'm getting an error saying that the device isn't supported (or in the list of supported devices).
In order to update the toolchain I tried to run the following command; resulting in an error:
$ brew upgrade avr-libc
Error: No available formula with the name "avr-libc"
... And trying to install avr-gcc@4 didn't work either
$ brew install avr-gcc@4
==> Installing avr-gcc@4 from osx-cross/avr
==> Downloading ftp://gcc.gnu.org/pub/gcc/releases/gcc-4.9.4/gcc-4.9.4.tar.bz2
Already downloaded: /Users/Hans/Library/Caches/Homebrew/[email protected]
==> ../configure --target=avr --prefix=/usr/local/Cellar/avr-gcc@4/4.9.4 --enable-languages=c,c++ --with-gnu-as --with-gnu-
==> make
Last 15 lines from /Users/Hans/Library/Logs/Homebrew/avr-gcc@4/02.make:
-v header_name="config.h system.h coretypes.h options.h tm.h" < optionlist > options.c
if [ xinfo = xinfo ]; then \
makeinfo --split-size=5000000 --split-size=5000000 --no-split -I . -I ../../gcc/doc \
-I ../../gcc/doc/include -o doc/gcc.info ../../gcc/doc/gcc.texi; \
fi
../../gcc/doc//invoke.texi:1535: Unknown command `4-20170826-74408-aqhezd/gcc-4.9.4/build/gcc/../../gcc'.
../../gcc/doc//invoke.texi:1534: @include `/private/tmp/avr-gcc/../libiberty/at-file.texi': No such file or directory.
makeinfo: Removing output file `doc/gcc.info' due to errors; use --force to preserve.
make[2]: *** [doc/gcc.info] Error 1
make[2]: *** Waiting for unfinished jobs....
/bin/sh ../../gcc/../move-if-change tmp-mlib.h multilib.h
echo timestamp > s-mlib
rm gcc.pod
make[1]: *** [all-gcc] 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
How can I update the toolchain in order to compile for the new *PB series?
brew tap osx-cross/avr
brew install --HEAD simavr
==> Installing simavr from osx-cross/avr
==> Cloning https://github.com/buserror/simavr.git
Updating /Users/patrick/Library/Caches/Homebrew/simavr--git
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
HEAD is now at b3a8e8f Merge pull request #301 from aznoohwee/bugfix/polling-flag-within-isr
==> make all HOMEBREW_PREFIX=/usr/local RELEASE=1
==> make install DESTDIR=/usr/local/Cellar/simavr/HEAD-b3a8e8f HOMEBREW_PREFIX=/usr/local RELEASE=1
Last 15 lines from /Users/patrick/Library/Logs/Homebrew/simavr/02.make:
LD obj-x86_64-apple-darwin17.7.0/run_avr.elf
ln -sf obj-x86_64-apple-darwin17.7.0/run_avr.elf run_avr
mkdir -p /usr/local/Cellar/simavr/HEAD-b3a8e8f/include/simavr/avr
install -m644 sim/*.h /usr/local/Cellar/simavr/HEAD-b3a8e8f/include/simavr/
install -m644 sim_core_*.h /usr/local/Cellar/simavr/HEAD-b3a8e8f/include/simavr/
install -m644 sim/avr/*.h /usr/local/Cellar/simavr/HEAD-b3a8e8f/include/simavr/avr/
mkdir -p /usr/local/Cellar/simavr/HEAD-b3a8e8f/lib
install obj-x86_64-apple-darwin17.7.0/libsimavr.a /usr/local/Cellar/simavr/HEAD-b3a8e8f/lib/
mkdir -p /usr/local/Cellar/simavr/HEAD-b3a8e8f/lib/pkgconfig/
sed -e "s|PREFIX|/usr/local/Cellar/simavr/HEAD-b3a8e8f|g" -e "s|VERSION|unknown|g" \
simavr-avr.pc >/usr/local/Cellar/simavr/HEAD-b3a8e8f/lib/pkgconfig/simavr-avr.pc
sed -e "s|PREFIX|/usr/local/Cellar/simavr/HEAD-b3a8e8f|g" -e "s|VERSION|unknown|g" \
simavr.pc >/usr/local/Cellar/simavr/HEAD-b3a8e8f/lib/pkgconfig/simavr.pc
mkdir -p /usr/local/Cellar/simavr/HEAD-b3a8e8f/bin
install obj-x86_64-apple-darwin17.7.0/run_avr.elf /usr/local/Cellar/simavr/HEAD-b3a8e8f/bin/simavr
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/osx-cross/homebrew-avr/issues
I use homebrew-avr with Arduino-mk and have been for a while. Updating to the latest formula, I suffered a segmentation fault at the linking stage.
Doing some digging, this is due to the -flto
flag, set by default for Arduino-mk (and presumably arduino builds) but missing from the 6.2.0 homebrew build. I'm not that well versed with the gcc compiler but Link Time Optimization (lto) seems to be merged into the latest branch and was working in the previous homebrew formulae - is there a reason it's missing from the homebrew build?
One can workaround it be manually setting the C++ flags - excluding -flto
- but it would be nice to have it working by default.
Thanks.
It seems that qt5 depends on this this library. So far I have not managed to install it.
alkopop79@MacBook-Pro ~> brew install qt5
Error: Calling Formula.sha1 is disabled!
Use Formula.sha256 instead.
/usr/local/Homebrew/Library/Taps/larsimmisch/homebrew-avr/avr-binutils.rb:7:in `<class:AvrBinutils>'
Please report this to the larsimmisch/avr tap!
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/larsimmisch/homebrew-avr/issues
alkopop79@MacBook-Pro ~> brew tap osx-cross/avr
alkopop79@MacBook-Pro ~> brew install avr-gcc
Error: Formulae found in multiple taps:
* osx-cross/avr/avr-gcc
* larsimmisch/avr/avr-gcc
Please use the fully-qualified name e.g. osx-cross/avr/avr-gcc to refer the formula.
I attempted to install avr-gcc with brew, but the following error occurs and it fails.
looked at past Issue and tried brew's update and clean, but the situation did not change.
Getting this when trying to install:
$ brew install osx-cross/avr/avr-gcc
==> Installing avr-gcc from osx-cross/avr
==> Downloading https://gcc.gnu.org/pub/gcc/releases/gcc-8.1.0/gcc-8.1.0.tar.xz
Already downloaded: /Users/daikiojm/Library/Caches/Homebrew/avr-gcc-8.1.0.tar.xz
==> ../configure --target=avr --prefix=/usr/local/Cellar/avr-gcc/8.1.0 --libdir=/usr/local/Cellar/avr-gcc/8.1.0/lib/avr-gcc/8 --enable-languages=c,c++ --with-ld=/usr/local/opt/avr-binuti
==> make
Last 15 lines from /Users/daikiojm/Library/Logs/Homebrew/avr-gcc/02.make:
/usr/local/include/isl/map.h:496:21: note: 'isl_map_domain' declared here
__isl_give isl_set *isl_map_domain(__isl_take isl_map *bmap);
^
../../gcc/graphite-sese-to-poly.c:524:26: error: cannot initialize a parameter of type 'isl_map *' with an rvalue of type 'isl_space *'
isl_space_domain (isl_map_get_space (acc)));
^~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/isl/map.h:496:56: note: passing argument to parameter 'bmap' here
__isl_give isl_set *isl_map_domain(__isl_take isl_map *bmap);
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [graphite-sese-to-poly.o] Error 1
rm gcc.pod
make[1]: *** [all-gcc] 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
There is output with --verbose
My environment confirmed with the brew config
$ brew config
HOMEBREW_VERSION: 1.7.1
ORIGIN: https://github.com/Homebrew/brew
HEAD: d6a245c05110c240e680da594c2cc6038998b82e
Last commit: 13 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 2792778ca306e223ca1b3cf32e6891190ab1370f
Core tap last commit: 18 hours ago
HOMEBREW_PREFIX: /usr/local
CPU: octa-core 64-bit kabylake
Homebrew Ruby: 2.3.7 => /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby
Clang: 9.1 build 902
Git: 2.18.0 => /usr/local/bin/git
Curl: 7.54.0 => /usr/bin/curl
Java: N/A
macOS: 10.13.6-x86_64
CLT: 9.4.1.0.1.1528165917
Xcode: 9.4.1
XQuartz: N/A
wenhui-2:sim WenhuiZhang$ brew link [email protected]
Linking /usr/local/Cellar/[email protected]/4.8.4... 25 symlinks created
wenhui-2:sim WenhuiZhang$ brew install --HEAD osx-cross/avr/simavr
==> Installing simavr from osx-cross/avr
==> Cloning https://github.com/buserror/simavr.git
Updating /Users/WenhuiZhang/Library/Caches/Homebrew/simavr--git
==> Checking out branch master
==> make install DESTDIR=/usr/local/Cellar/simavr/HEAD-1ae1912 HOMEBREW_PREFIX=/usr/local RELEASE=1
Last 15 lines from /Users/WenhuiZhang/Library/Logs/Homebrew/simavr/01.make:
/Applications/Xcode.app/Contents/Developer/usr/bin/make libsimavr run_avr
CC sim/sim_cmds.c
CC sim/sim_cycle_timers.c
CC sim/sim_avr.c
sim/sim_elf.c:32:10: fatal error: 'libelf.h' file not found
#include <libelf.h>
^
1 error generated.
make[2]: *** [obj-x86_64-apple-darwin16.4.0/sim_elf.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CC sim/sim_hex.c
CC sim/sim_core.c
CC sim/sim_gdb.c
make[1]: *** [all] Error 2
make: *** [install] Error 2
brew update
and retried your prior step?brew doctor
, fixed as many issues as possible and retried your prior step?brew config
and brew doctor
and included their output with your issue?To help us debug your issue please explain:
brew
commands)Please note we may immediately close your issue without comment if you do not fill out the issue template and provide ALL the requested information.
Please replace this section with a detailed description of your proposed feature, the motivation for it and alternatives considered.
Please note we may close this issue or ask you to create a pull-request if it's something we're not actively planning to work on.
Hi. I think that the removal of brew install avr-libc
is intended, as per #54. Would someone just clarify if that's right, and what the correct approach for installing avr-libc now is? Thanks.
Already it seems to have been patched.
% brew install --HEAD simavr
==> Installing simavr from osx-cross/avr
==> Cloning https://github.com/buserror/simavr.git
Updating /Library/Caches/Homebrew/simavr--git
==> Checking out branch master
==> Downloading https://patch-diff.githubusercontent.com/raw/buserror/simavr/pull/149.diff
Already downloaded: /Library/Caches/Homebrew/simavr--patch-2899af128549706da8b964fc3838f9edb729ad37557143a25ec1bdd6da2985b6.diff
==> Patching
patching file Makefile.common
Hunk #1 FAILED at 55.
1 out of 1 hunk FAILED -- saving rejects to file Makefile.common.rej
Error: Failure while executing: /usr/bin/patch -g 0 -f -p1 -i /private/tmp/simavr--patch20160131-21769-1xdcgn9/149.diff
macOS 10.13.5
Homebrew 1.7.3
Perhaps similar issue at #80 (comment).
I'm not good at Ruby. Could anyone improve this issue ?
==> Downloading ftp://gcc.gnu.org/pub/gcc/releases/gcc-5.4.0/gcc-5.4.0.tar.bz2
######################################################################## 100.0%
==> Downloading https://raw.githubusercontent.com/Homebrew/formula-patches/078797f1b9/gcc%405/xcode9.patch
######################################################################## 100.0%
==> Patching
==> Applying xcode9.patch
patching file gcc/system.h
==> ../configure --target=avr --prefix=/Applications/Homebrew/Cellar/avr-gcc@5/5.4.0 --libdir=/Applications/Homebrew/Cellar/avr-gcc@5/
==> make
Last 15 lines from /Users/leico_studio/Library/Logs/Homebrew/avr-gcc@5/02.make:
^
../../gcc/graphite-dependences.c:422:47: error: use of undeclared identifier 'isl_space_copy'
isl_union_map *must_w = isl_union_map_empty (isl_space_copy (space));
^
../../gcc/graphite-dependences.c:423:46: error: use of undeclared identifier 'isl_space_copy'
isl_union_map *may_w = isl_union_map_empty (isl_space_copy (space));
^
../../gcc/graphite-dependences.c:547:3: error: use of undeclared identifier 'isl_space_free'
isl_space_free (space);
^
19 errors generated.
make[2]: *** [graphite-dependences.o] Error 1
rm gcc.pod
make[1]: *** [all-gcc] Error 2
make: *** [all] Error 2
I appriciate your reading to the end.
Here is log:
==> Installing avr-gcc48 from osx-cross/avr
==> Downloading http://ftp.gnu.org/gnu/gcc/gcc-4.8.5/gcc-4.8.5.tar.bz2
Already downloaded: /Library/Caches/Homebrew/avr-gcc48-4.8.5.tar.bz2
==> ../configure --target=avr --prefix=/usr/local/Cellar/avr-gcc48/4.8.5 --enabl
Last 15 lines from /Users/cosmo/Library/Logs/Homebrew/avr-gcc48/01.configure:
checking whether g++ accepts -static-libstdc++ -static-libgcc... no
checking for gnatbind... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for objdir... .libs
checking for the correct version of gmp.h... yes
checking for the correct version of mpfr.h... yes
checking for the correct version of mpc.h... yes
checking for the correct version of the gmp/mpfr/mpc libraries... yes
checking for version 0.10 of ISL... no
checking for version 0.11 of ISL... no
checking for version 0.12 of ISL... no
checking for version 0.14 of ISL... no
configure: error: Unable to find a usable ISL. See config.log for details.
Note that current Homebrew mainline ISL version is 0.15:
% brew info isl
isl: stable 0.15 (bottled), HEAD
Integer Set Library for the polyhedral model
http://isl.gforge.inria.fr
/usr/local/Cellar/isl/0.14.1 (68 files, 3.2M)
Poured from bottle
/usr/local/Cellar/isl/0.15 (69 files, 3.6M) *
Poured from bottle
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/isl.rb
==> Dependencies
Required: gmp โ
We should use homebrew-versions' isl formula instead.
After upgrading to avr-gcc 4.9.3, I have to set the following compilation flags for ATmega328p, which were not required in the previous version. Could this be automated in somewhere else or should this be done always in this way?
COMMON += -I/usr/local/Cellar/avr-libc/1.8.1/avr/include
COMMON += -L/usr/local/Cellar/avr-libc/1.8.1/avr/lib
COMMON += -L/usr/local/Cellar/avr-binutils/2.25/avr/lib
COMMON += -B/usr/local/Cellar/avr-libc/1.8.1/avr/lib/avr5
Runs upgrading avr-gcc to 7.2.0, always fails in downloading avr-libc 2.0.0 from TW's server. Here is console's log:
$ brew upgrade
==> Upgrading 1 outdated package, with result:
osx-cross/avr/avr-gcc 7.2.0
==> Upgrading osx-cross/avr/avr-gcc
==> Downloading https://gcc.gnu.org/pub/gcc/releases/gcc-7.2.0/gcc-7.2.0.tar.xz
Already downloaded: /Users/anybody/Library/Caches/Homebrew/avr-gcc-7.2.0.tar.xz
==> ../configure --target=avr --prefix=/usr/local/Cellar/avr-gcc/7.2.0 --enable-languages=c,c++ --with-ld=/usr/local/opt
==> make
==> make install
==> Downloading https://download.savannah.gnu.org/releases/avr-libc/avr-libc-2.0.0.tar.bz2
==> Downloading from http://ftp.yzu.edu.tw/nongnu/avr-libc/avr-libc-2.0.0.tar.bz2
curl: (7) Failed to connect to ftp.yzu.edu.tw port 80: Operation timed out
Error: Failed to download resource "avr-gcc--avr-libc"
Download failed: https://download.savannah.gnu.org/releases/avr-libc/avr-libc-2.0.0.tar.bz2
How to fix it?
I would like to know how to use homebrew-avr with Xcode. Can you please list the steps please, and i can help in creating a wiki with those details.
Hi,
I just installed avr-gcc@7 and the install failed at the linking stage:
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink lib/gcc/7/libcc1.0.so
Target /usr/local/lib/gcc/7/libcc1.0.so
In fact, I already had gcc@7 installed, and this is the reason for the clash.
Wouldn't it be possible to add a dependency from avr-gcc to gcc@7 instead of recompiling gcc in the avr-gcc formula?
Thanks
Will
can anyone confirm this?
leo@colossus ~ > brew install avr-gcc48
Error: stack level too deep
Please report this bug:
https://git.io/brew-troubleshooting
/usr/local/Library/Homebrew/formulary.rb:21
Just rebased the repo, and going to upgrade some stuff
I will try to add some of those untill the end of the week (maybe borrowed from @jpommerening repo):
Want to share/assing some tasks?!
@jpommerening
@ladislas
@larsimmisch
As of today, when I tried compiling my code, I got the following error:
dyld: Library not loaded: /usr/local/lib/libisl.10.dylib
Referenced from: /usr/local/Cellar/avr-gcc/4.9.2/libexec/gcc/avr/4.9.2/cc1plus
Reason: image not found
avr-g++: internal compiler error: Trace/BPT trap: 5 (program cc1plus)
libbacktrace could not find executable to open
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** [/Users/ladislas/dev/leka/moti/bin/ColorChanger/uno/main.o] Error 4
I brew remove
d everything and try installing the tool chain again but got an error saying that ISL
can't be found after trying different versions (I'm sorry I can provide the real error, I closed my terminal window...)
Anyway, after some research it seems that isl
has been updated in hombrew to v0.14
which is not supported by avr-gcc 4.9.x
.
The work around is to brew tap homebrew/versions
and to modify the formula to install isl012
. Now the installation works and I can compile my code.
Do any of you have the same issue? If so, maybe we should find a fix as it is not really straight forward to first time users.
Or we can ask ourselves "why is --with-isl
used?" Do we really need it to compile code on AVR?
Hi!
I'm not able to install avr-gcc@4 or avr-gcc@5 when using brew. Here's the error when i tried avr-gcc@5:
brew install osx-cross/avr/avr-gcc@5
==> Installing avr-gcc@5 from osx-cross/avr
==> Downloading ftp://gcc.gnu.org/pub/gcc/releases/gcc-5.4.0/gcc-5.4.0.tar.bz2
######################################################################## 100.0%
==> ../configure --target=avr --prefix=/usr/local/Cellar/avr-gcc@5/5.4.0 --libdi
==> make
Last 15 lines from /Users/Hans/Library/Logs/Homebrew/avr-gcc@5/02.make:
/Library/Developer/CommandLineTools/usr/include/c++/v1/functional:1398:2: error: no member named 'fancy_abort' in namespace 'std::__1'; did you mean simply 'fancy_abort'?
_VSTD::abort();
^~~~~~~
/Library/Developer/CommandLineTools/usr/include/c++/v1/__config:392:15: note: expanded from macro '_VSTD'
#define _VSTD std::_LIBCPP_NAMESPACE
^
../../gcc/system.h:700:13: note: 'fancy_abort' declared here
extern void fancy_abort (const char *, int, const char *) ATTRIBUTE_NORETURN;
^
1 error generated.
make[2]: *** [auto-profile.o] Error 1
make[2]: *** Waiting for unfinished jobs....
rm gcc.pod
make[1]: *** [all-gcc] 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
The error looks to me identical to the one I get when trying to install avr-gcc@4. What's wrong?
Not sure what gnu.cardse.net
is, but it's not resolving, the mirror does seem to work however.
==> Installing osx-cross/avr/avr-libc dependency: avr-gcc
==> Downloading http://gnu.cardse.net/gcc/gcc-4.9.2/gcc-4.9.2.tar.bz2
curl: (6) Could not resolve host: gnu.cardse.net
Trying a mirror...
==> Downloading ftp://gcc.gnu.org/pub/gcc/releases/gcc-4.9.2/gcc-4.9.2.tar.bz2
######################################################################## 100.0%
# ...
$ brew install avr-gdb
(...)
checking for version 0.10 of ISL... no
checking for version 0.11 of ISL... no
checking for version 0.12 of ISL... no
configure: error: Unable to find a usable ISL. See config.log for details.
I have isl
(0.15) and isl012
(0.12) both installed. I have also tried with only either of them installed, and with none. brew doctor
is clean. I tried to do an xcode-select --install
(saw that in a similar bug) but that didn't help either.
(I have avr-binutils
, avr-gcc
, avr-libc
and avrdude
all installed without issue)
$ brew install avr-gcc
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (caskroom/cask, homebrew/core).
==> Updated Formulae
apache-geode apibuilder-cli brotli docker2aci efl faad2 grails grpc lean ott paket sysdig
==> Installing avr-gcc from osx-cross/avr
==> Downloading https://gcc.gnu.org/pub/gcc/releases/gcc-7.2.0/gcc-7.2.0.tar.xz
Already downloaded: /Users/mota/Library/Caches/Homebrew/avr-gcc-7.2.0.tar.xz
==> ../configure --target=avr --prefix=/usr/local/Cellar/avr-gcc/7.2.0 --enable-languages=c,c++ --with-ld=/usr/local/opt/avr-binutils/bin/avr-ld --with-as=/usr/local/opt/avr-binutils/bin/avr-as --disable-
==> make
==> make install
==> Downloading https://download.savannah.gnu.org/releases/avr-libc/avr-libc-2.0.0.tar.bz2
==> Downloading from http://mirror.csclub.uwaterloo.ca/nongnu/avr-libc/avr-libc-2.0.0.tar.bz2
######################################################################## 100.0%
==> ./configure --build=i686-apple-darwin16.7.0 --prefix=/usr/local/Cellar/avr-gcc/7.2.0 --host=avr
==> make install
$ uname -a
Darwin computer.local 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64
I see there are a few previous issues similar to mine, but none of the solutions in them (if any) have helped me.
I need to stay on avr-gcc version 7 for now as the QMK keyboard firmware and/or LUFA apparently have some issues with the new version at the moment. Now avr-gcc itself won't build when I attempt to install it.
Here is the output of 02.make. Lines 3252-3254 seem to be where the action is.
brew doctor
didn't find anything. I tried untap/tap, cleanup, deleting cached downloads etc, no dice. Installing Homebrew onto an older Macbook Pro that hadn't had its Xcode command line tools updated in a while gave the same result before and after updating (so it doesn't appear to be the culprit).
because of the changing of the "avr-binutils-size.patch"
it was changed to "https://gist.githubusercontent.com/larsimmisch/4190960/raw/16c6b9627f8451eeebd644a4b9a741edfdb0c45e/avr-binutils-size.patch"
I'm having an issue with building an Arduino app from the IDE. I get the following output:
...
"/usr/local/bin/avr-g++" -c -g -O3 -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-I/Users/lw/Library/Arduino15/packages/arduino/hardware/avr/1.6.21/cores/arduino" "-I/Users/lw/Library/Arduino15/packages/arduino/hardware/avr/1.6.21/variants/mega" "/Users/lw/Library/Arduino15/packages/arduino/hardware/avr/1.6.21/cores/arduino/new.cpp" -o "/var/folders/sv/1y3fb14n0tq0l80pmmbpjpmm0000gn/T/arduino_build_701954/core/new.cpp.o"
"/usr/local/bin/avr-gcc-ar" rcs "/var/folders/sv/1y3fb14n0tq0l80pmmbpjpmm0000gn/T/arduino_build_701954/core/core.a" "/var/folders/sv/1y3fb14n0tq0l80pmmbpjpmm0000gn/T/arduino_build_701954/core/wiring_pulse.S.o"
/usr/local/bin/avr-gcc-ar: Cannot find binary 'avr-ar'
exit status 1
Error compiling for board Arduino/Genuino Mega or Mega 2560.
However, the error does not happen when I run the failed command in the terminal. I would appreciate any ideas or feedback, maybe I need to move folders around? Thank you!
Getting this when trying to install.
$ brew install avr-gcc
==> Installing avr-gcc from osx-cross/avr
==> Installing dependencies for osx-cross/avr/avr-gcc: avr-binutils
==> Installing osx-cross/avr/avr-gcc dependency: avr-binutils
==> Downloading http://ftp.gnu.org/gnu/binutils/binutils-2.30.tar.bz2
Already downloaded: /Users/dag/Library/Caches/Homebrew/avr-binutils-2.30.tar.bz2
==> Downloading https://raw.githubusercontent.com/osx-cross/homebrew-avr/master/
Already downloaded: /Users/dag/Library/Caches/Homebrew/avr-binutils--patch-4748f87aee912f954be9968a5a01f61e4f1897adf21e2549d0ac988b9fe8ef1d.patch
==> Patching
==> Applying avr-binutils-size.patch
patching file binutils/size.c
==> ../configure --prefix=/usr/local/Cellar/avr-binutils/2.30 --infodir=/usr/loc
==> make
Last 15 lines from /Users/dag/Library/Logs/Homebrew/avr-binutils/02.make:
clang -DHAVE_CONFIG_H -I. -I../../binutils -I. -I../../binutils -I../bfd -I../../binutils/../bfd -I../../binutils/../include -DLOCALEDIR="\"/usr/local/Cellar/avr-binutils/2.30/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -I../../binutils/../zlib -g -O2 -MT is-strip.o -MD -MP -MF .deps/is-strip.Tpo -c -o is-strip.o ../../binutils/is-strip.c
20 errors generated.
make[4]: *** [readelf.o] Error 1
make[4]: *** Waiting for unfinished jobs....
mv -f .deps/wrstabs.Tpo .deps/wrstabs.Po
mv -f .deps/elfedit.Tpo .deps/elfedit.Po
mv -f .deps/is-strip.Tpo .deps/is-strip.Po
mv -f .deps/nm.Tpo .deps/nm.Po
mv -f .deps/objcopy.Tpo .deps/objcopy.Po
mv -f .deps/dwarf.Tpo .deps/dwarf.Po
mv -f .deps/ieee.Tpo .deps/ieee.Po
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-binutils] 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
(Why does this not include binaries? Building this beast can easily take an hour. This is a huge waste of resources, and providing binaries would also avoid mystery errors like this.)
Getting this when trying to install:
Last 15 lines from /Users/j792280/Library/Logs/Homebrew/avr-gcc/02.make:
checking for gethostbyname... yes
checking for exported symbols... yes
checking for library containing dlopen... none required
checking for -fPIC -shared... yes
checking for socketpair... yes
checking for select... yes
checking for fork... yes
configure: updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating cc1plugin-config.h
config.status: executing depfiles commands
config.status: executing libtool commands
make: *** [all] Error 2
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:
$ brew remove avr-gcc avr-binutils
$ brew untap osx-cross/avr
$ brew cleanup -scf
$ brew upgrade
$ brew tap osx-cross/avr
$ brew install avr-gcc
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)
avr-gcc-4.9.3 does not support attiny828 in mmcu options
Note: The included C files do have the required support (accessible with #define __AVR_ATtiny828__
), but the command line tool seems to be missing it.
~ โฏโฏโฏ brew install avr-libc โ
==> Installing avr-libc from osx-cross/avr
==> Installing dependencies for osx-cross/avr/avr-libc: avr-gcc
==> Installing osx-cross/avr/avr-libc dependency: avr-gcc
==> Downloading ftp://gcc.gnu.org/pub/gcc/releases/gcc-6.3.0/gcc-6.3.0.tar.bz2
Already downloaded: /Users/johannes.huber/Library/Caches/Homebrew/avr-gcc-6.3.0.tar.bz2
==> ../configure --target=avr --prefix=/usr/local/Cellar/avr-gcc/6.3.0 --enable-languages=c,c++ --with-gnu-as --with-gnu-ld --with-ld=/usr/local/opt/avr-binutils/bin/avr-ld --with-as=/usr/local/opt/avr-binutils/bin/avr-as --disable-nls --disable-shared --disable-threads
==> make
Last 15 lines from /Users/johannes.huber/Library/Logs/Homebrew/avr-gcc/02.make:
"_inflateInit_", referenced from:
lto_end_uncompression(lto_compression_stream*) in libbackend.a(lto-compress.o)
ld: symbol(s) not found for architecture x86_64
"_zError", referenced from:
lto_end_compression(lto_compression_stream*) in libbackend.a(lto-compress.o)
lto_end_uncompression(lto_compression_stream*) in libbackend.a(lto-compress.o)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [cc1plus] Error 1
make[2]: *** Waiting for unfinished jobs....
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [cc1] Error 1
rm gcc.pod
make[1]: *** [all-gcc] 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
~ โฏโฏโฏ brew install avr-gcc49
==> Installing avr-gcc49 from osx-cross/avr
==> Downloading ftp://gcc.gnu.org/pub/gcc/releases/gcc-4.9.3/gcc-4.9.3.tar.bz2
######################################################################## 100,0%
==> ../configure --target=avr --prefix=/usr/local/Cellar/avr-gcc49/4.9.3 --enable-languages=c,c++ --with-gnu-as --with-gnu-ld --with-ld=/usr/local/opt/avr-binutils/bin/avr-ld --with-as=/usr/local/opt/avr-binutils/bin/avr-as --disable-nls --disable-shared --disable-threa
==> make
Last 15 lines from /Users/johannes.huber/Library/Logs/Homebrew/avr-gcc49/02.make:
lto_end_uncompression(lto_compression_stream*) in libbackend.a(lto-compress.o)
"_inflateEnd", referenced from:
lto_end_uncompression(lto_compression_stream*) in libbackend.a(lto-compress.o)
"_inflateInit_", referenced from:
lto_end_uncompression(lto_compression_stream*) in libbackend.a(lto-compress.o)
"_zError", referenced from:
lto_end_compression(lto_compression_stream*) in libbackend.a(lto-compress.o)
lto_end_uncompression(lto_compression_stream*) in libbackend.a(lto-compress.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [cc1] Error 1
make[2]: *** Waiting for unfinished jobs....
rm gcc.pod
make[1]: *** [all-gcc] Error 2
make: *** [all] Error 2
When I run the install into terminal I have the following problem
I can run brew tap osx-cross/avr with no issues
the second step of running the following is were an error occurs
brew install avr-libc
Last 15 lines from /Users/chris/Library/Logs/Homebrew/avr-binutils/02.make:
looking for an incomplete stdint.h in stdint.h, checking for uint32_t... no
looking for an incomplete stdint.h in inttypes.h, checking for uint32_t... no
looking for an incomplete stdint.h in sys/inttypes.h, checking for uint32_t... no
looking for u_intXX_t types in sys/types.h, checking for u_int32_t... no
looking for u_intXX_t types in inttypes.h, checking for u_int32_t... no
looking for u_intXX_t types in sys/inttypes.h, checking for u_int32_t... no
checking what to include in bfd_stdint.h... stddef.h (using manual detection)
checking size of void ... (cached) 0
checking size of long... (cached) 0
checking size of int... 0
checking size of short... 0
checking size of char... 0
checking for type equivalent to int8_t... configure: error: no 8-bit type, please report a bug
make[1]: ** [configure-bfd] Error 1
make: *** [all] Error 2
Hi, I cant build avr-gcc@7 om high sierra, 02.make looks like this in the end:
...
clang++ -fno-PIE -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-strict-aliasing -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../../gcc -I../../gcc/. -I../../gcc/../include -I../../gcc/../libcpp/include -I../../gcc/../libdecnumber -I../../gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc/../libbacktrace -o graphite-dependences.o -MT graphite-dependences.o -MMD -MP -MF ./.deps/graphite-dependences.TPo ../../gcc/graphite-dependences.c
clang++ -fno-PIE -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-strict-aliasing -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../../gcc -I../../gcc/. -I../../gcc/../include -I../../gcc/../libcpp/include -I../../gcc/../libdecnumber -I../../gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc/../libbacktrace -o graphite-optimize-isl.o -MT graphite-optimize-isl.o -MMD -MP -MF ./.deps/graphite-optimize-isl.TPo ../../gcc/graphite-optimize-isl.c
clang++ -fno-PIE -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-strict-aliasing -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../../gcc -I../../gcc/. -I../../gcc/../include -I../../gcc/../libcpp/include -I../../gcc/../libdecnumber -I../../gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc/../libbacktrace -o graphite-poly.o -MT graphite-poly.o -MMD -MP -MF ./.deps/graphite-poly.TPo ../../gcc/graphite-poly.c
clang++ -fno-PIE -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-strict-aliasing -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../../gcc -I../../gcc/. -I../../gcc/../include -I../../gcc/../libcpp/include -I../../gcc/../libdecnumber -I../../gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc/../libbacktrace -o graphite-scop-detection.o -MT graphite-scop-detection.o -MMD -MP -MF ./.deps/graphite-scop-detection.TPo ../../gcc/graphite-scop-detection.c
clang++ -fno-PIE -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-strict-aliasing -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../../gcc -I../../gcc/. -I../../gcc/../include -I../../gcc/../libcpp/include -I../../gcc/../libdecnumber -I../../gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc/../libbacktrace -o graphite-sese-to-poly.o -MT graphite-sese-to-poly.o -MMD -MP -MF ./.deps/graphite-sese-to-poly.TPo ../../gcc/graphite-sese-to-poly.c
../../gcc/graphite-optimize-isl.c:57:19: error: use of undeclared identifier 'isl_space_dim'
unsigned dims = isl_space_dim (space, isl_dim_set);
^
../../gcc/graphite-dependences.c:48:16: error: use of undeclared identifier 'isl_space_get_tuple_id'; did you mean 'isl_map_get_tuple_id'?
isl_id *id = isl_space_get_tuple_id (d, isl_dim_in);
^~~~~~~~~~~~~~~~~~~~~~
isl_map_get_tuple_id
/usr/local/include/isl/map.h:102:20: note: 'isl_map_get_tuple_id' declared here
__isl_give isl_id *isl_map_get_tuple_id(__isl_keep isl_map *map,
^
../../gcc/graphite-dependences.c:48:40: error: cannot initialize a parameter of type 'isl_map *' with an lvalue of type 'isl_space *'
isl_id *id = isl_space_get_tuple_id (d, isl_dim_in);
^
/usr/local/include/isl/map.h:102:61: note: passing argument to parameter 'map' here
__isl_give isl_id *isl_map_get_tuple_id(__isl_keep isl_map *map,
^
../../gcc/graphite-optimize-isl.c:60:3: error: use of undeclared identifier 'isl_space_free'
isl_space_free (space);
^
../../gcc/graphite-dependences.c:51:3: error: use of undeclared identifier 'isl_space_free'
isl_space_free (d);
^
../../gcc/graphite-dependences.c:179:16: error: use of undeclared identifier 'isl_space_dim'
int nb_out = isl_space_dim (space, isl_dim_out);
^
2 errors generated.
make[2]: *** [graphite-optimize-isl.o] Error 1
make[2]: *** Waiting for unfinished jobs....
../../gcc/graphite-dependences.c:185:3: error: use of undeclared identifier 'isl_space_free'
isl_space_free (space);
^
../../gcc/graphite-dependences.c:195:11: error: use of undeclared identifier 'isl_space_dim'
int n = isl_space_dim (space, isl_dim_out);
^
../../gcc/graphite-dependences.c:197:3: error: use of undeclared identifier 'isl_space_free'
isl_space_free (space);
^
../../gcc/graphite-dependences.c:272:34: error: use of undeclared identifier 'isl_space_range'; did you mean 'isl_map_range'?
isl_map *lex = isl_map_lex_le (isl_space_range (space));
^~~~~~~~~~~~~~~
isl_map_range
/usr/local/include/isl/map.h:497:21: note: 'isl_map_range' declared here
__isl_give isl_set *isl_map_range(__isl_take isl_map *map);
^
../../gcc/graphite-dependences.c:272:51: error: cannot initialize a parameter of type 'isl_map *' with an lvalue of type 'isl_space *'
isl_map *lex = isl_map_lex_le (isl_space_range (space));
^~~~~
/usr/local/include/isl/map.h:497:55: note: passing argument to parameter 'map' here
__isl_give isl_set *isl_map_range(__isl_take isl_map *map);
^
../../gcc/graphite-isl-ast-to-gimple.c:98:7: error: use of undeclared identifier 'isl_id_free'
isl_id_free (it->first);
^
../../gcc/graphite-isl-ast-to-gimple.c:293:3: error: use of undeclared identifier 'isl_id_free'
isl_id_free (tmp_isl_id);
^
9 errors generated.
make[2]: *** [graphite-dependences.o] Error 1
../../gcc/graphite-isl-ast-to-gimple.c:629:5: error: use of undeclared identifier 'isl_id_free'
isl_id_free (res->first);
^
../../gcc/graphite-isl-ast-to-gimple.c:669:53: error: use of undeclared identifier 'isl_id_get_user'
ast_build_info *for_info = (ast_build_info *) isl_id_get_user (id);
^
../../gcc/graphite-isl-ast-to-gimple.c:672:7: error: use of undeclared identifier 'isl_id_free'
isl_id_free (id);
^
../../gcc/graphite-isl-ast-to-gimple.c:876:31: error: use of undeclared identifier 'isl_id_get_user'
poly_bb_p pbb = (poly_bb_p) isl_id_get_user (name_id);
^
../../gcc/graphite-isl-ast-to-gimple.c:882:3: error: use of undeclared identifier 'isl_id_free'
isl_id_free (name_id);
^
../../gcc/graphite-isl-ast-to-gimple.c:2886:19: error: use of undeclared identifier 'isl_space_dim'
int dimension = isl_space_dim (schedule_space, isl_dim_out);
^
../../gcc/graphite-isl-ast-to-gimple.c:2890:3: error: use of undeclared identifier 'isl_space_free'
isl_space_free (schedule_space);
^
../../gcc/graphite-isl-ast-to-gimple.c:2891:16: error: use of undeclared identifier 'isl_id_alloc'; did you mean 'isl_mat_alloc'?
isl_id *id = isl_id_alloc (isl_ast_build_get_ctx (build), "", for_info);
^~~~~~~~~~~~
isl_mat_alloc
/usr/local/include/isl/mat.h:28:21: note: 'isl_mat_alloc' declared here
__isl_give isl_mat *isl_mat_alloc(isl_ctx *ctx,
^
../../gcc/graphite-isl-ast-to-gimple.c:2891:61: error: cannot initialize a parameter of type 'unsigned int' with an lvalue of type 'const char [1]'
isl_id *id = isl_id_alloc (isl_ast_build_get_ctx (build), "", for_info);
^~
/usr/local/include/isl/mat.h:29:11: note: passing argument to parameter 'n_row' here
unsigned n_row, unsigned n_col);
^
11 errors generated.
make[2]: *** [graphite-isl-ast-to-gimple.o] Error 1
../../gcc/graphite-sese-to-poly.c:76:10: error: use of undeclared identifier 'isl_id_alloc'; did you mean 'isl_mat_alloc'?
return isl_id_alloc (s->isl_context, name, pbb);
^~~~~~~~~~~~
isl_mat_alloc
/usr/local/include/isl/mat.h:28:21: note: 'isl_mat_alloc' declared here
__isl_give isl_mat *isl_mat_alloc(isl_ctx *ctx,
^
../../gcc/graphite-sese-to-poly.c:76:40: error: cannot initialize a parameter of type 'unsigned int' with an lvalue of type 'char [14]'
return isl_id_alloc (s->isl_context, name, pbb);
^~~~
/usr/local/include/isl/mat.h:29:11: note: passing argument to parameter 'n_row' here
unsigned n_row, unsigned n_col);
^
../../gcc/graphite-sese-to-poly.c:86:56: error: use of undeclared identifier 'isl_space_copy'
isl_pw_aff *lhs = extract_affine (s, CHREC_LEFT (e), isl_space_copy (space));
^
../../gcc/graphite-sese-to-poly.c:87:57: error: use of undeclared identifier 'isl_space_copy'
isl_pw_aff *rhs = extract_affine (s, CHREC_RIGHT (e), isl_space_copy (space));
^
../../gcc/graphite-sese-to-poly.c:107:9: error: use of undeclared identifier 'isl_space_copy'
isl_space_copy (space));
^
../../gcc/graphite-sese-to-poly.c:128:10: error: use of undeclared identifier 'isl_id_alloc'; did you mean 'isl_mat_alloc'?
return isl_id_alloc (s->isl_context, name1, e);
^~~~~~~~~~~~
isl_mat_alloc
/usr/local/include/isl/mat.h:28:21: note: 'isl_mat_alloc' declared here
__isl_give isl_mat *isl_mat_alloc(isl_ctx *ctx,
^
../../gcc/graphite-sese-to-poly.c:128:40: error: cannot initialize a parameter of type 'unsigned int' with an lvalue of type 'char [14]'
return isl_id_alloc (s->isl_context, name1, e);
^~~~~
/usr/local/include/isl/mat.h:29:11: note: passing argument to parameter 'n_row' here
unsigned n_row, unsigned n_col);
^
../../gcc/graphite-sese-to-poly.c:139:10: error: use of undeclared identifier 'isl_id_alloc'; did you mean 'isl_mat_alloc'?
return isl_id_alloc (s->isl_context, "", 0);
^~~~~~~~~~~~
isl_mat_alloc
/usr/local/include/isl/mat.h:28:21: note: 'isl_mat_alloc' declared here
__isl_give isl_mat *isl_mat_alloc(isl_ctx *ctx,
^
../../gcc/graphite-sese-to-poly.c:139:40: error: cannot initialize a parameter of type 'unsigned int' with an lvalue of type 'const char [1]'
return isl_id_alloc (s->isl_context, "", 0);
^~
/usr/local/include/isl/mat.h:29:11: note: passing argument to parameter 'n_row' here
unsigned n_row, unsigned n_col);
^
../../gcc/graphite-sese-to-poly.c:148:19: error: use of undeclared identifier 'isl_space_find_dim_by_id'
int dimension = isl_space_find_dim_by_id (space, isl_dim_param, id);
^
../../gcc/graphite-sese-to-poly.c:149:3: error: use of undeclared identifier 'isl_id_free'
isl_id_free (id);
^
../../gcc/graphite-sese-to-poly.c:150:36: error: use of undeclared identifier 'isl_space_copy'
isl_set *dom = isl_set_universe (isl_space_copy (space));
^
../../gcc/graphite-sese-to-poly.c:177:53: error: use of undeclared identifier 'isl_space_copy'
isl_local_space *ls = isl_local_space_from_space (isl_space_copy (space));
^
../../gcc/graphite-sese-to-poly.c:236:5: error: use of undeclared identifier 'isl_space_free'
isl_space_free (space);
^
../../gcc/graphite-sese-to-poly.c:252:53: error: use of undeclared identifier 'isl_space_copy'
lhs = extract_affine (s, TREE_OPERAND (e, 0), isl_space_copy (space));
^
../../gcc/graphite-sese-to-poly.c:258:53: error: use of undeclared identifier 'isl_space_copy'
lhs = extract_affine (s, TREE_OPERAND (e, 0), isl_space_copy (space));
^
../../gcc/graphite-sese-to-poly.c:265:53: error: use of undeclared identifier 'isl_space_copy'
lhs = extract_affine (s, TREE_OPERAND (e, 0), isl_space_copy (space));
^
../../gcc/graphite-sese-to-poly.c:529:8: error: use of undeclared identifier 'isl_space_domain'; did you mean 'isl_map_domain'?
isl_space_domain (isl_map_get_space (acc)));
^~~~~~~~~~~~~~~~
isl_map_domain
/usr/local/include/isl/map.h:496:21: note: 'isl_map_domain' declared here
__isl_give isl_set *isl_map_domain(__isl_take isl_map *bmap);
^
../../gcc/graphite-sese-to-poly.c:529:26: error: cannot initialize a parameter of type 'isl_map *' with an rvalue of type 'isl_space *'
isl_space_domain (isl_map_get_space (acc)));
^~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/isl/map.h:496:56: note: passing argument to parameter 'bmap' here
__isl_give isl_set *isl_map_domain(__isl_take isl_map *bmap);
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [graphite-sese-to-poly.o] Error 1
rm gcc.pod
make[1]: *** [all-gcc] Error 2
make: *** [all] Error 2
HOMEBREW_VERSION: 1.7.1
ORIGIN: https://github.com/Homebrew/brew
HEAD: d6a245c05110c240e680da594c2cc6038998b82e
Last commit: 3 weeks ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 58cdc01769fbfb064c7861195dd6a59612e8d5df
Core tap last commit: 3 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CACHE: /Users/henrikjonhed/Library/Caches/Homebrew
CPU: octa-core 64-bit haswell
Homebrew Ruby: 2.3.7 => /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.54.0 => /usr/bin/curl
Java: 1.8.0_102
macOS: 10.13.6-x86_64
CLT: 9.4.1.0.1.1528165917
Xcode: 9.4.1
XQuartz: 2.7.9 => /opt/X11
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j8
CMAKE_PREFIX_PATH: /usr/local
CMAKE_INCLUDE_PATH: /usr/include/libxml2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
PKG_CONFIG_PATH: /usr/local/opt/mpfr/lib/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/10.13
ACLOCAL_PATH: /usr/local/share/aclocal
PATH: /usr/local/Homebrew/Library/Homebrew/shims/mac/super:/usr/local/opt/avr-binutils/bin:/usr/bin:/bin:/usr/sbin:/sbin
just updated but had to brew switch avr-gcc 6.3.0
to have my code compile again.
Compiling C: main.c
avr-gcc -c -mmcu=atmega8515 -I. -gdwarf-2 -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=./main.lst -std=gnu99 -MMD -MP -MF .dep/main.o.d main.c -o main.o
main.c:34:10: fatal error: avr/io.h: No such file or directory
#include <avr/io.h>
^~~~~~~~~~
compilation terminated.
make: *** [main.o] Error 1
I get the following error when I try to brew install avr-gcc:
`==> Downloading https://raw.githubusercontent.com/osx-cross/homebrew-avr/update-
curl: (22) The requested URL returned error: 404 Not Found
Error: Failed to download resource "avr-binutils--patch"
Download failed: https://raw.githubusercontent.com/osx-cross/homebrew-avr/update-formula/avr-binutils-size.patch`
command used:
brew install --HEAD osx-cross/avr/avr-gcc osx-cross/avr/avarice osx-cross/avr/simavr
log:
==> Installing avr-gcc from osx-cross/avr
==> Installing dependencies for osx-cross/avr/avr-gcc: gmp, mpfr, libmpc, avr-binutils
==> Installing osx-cross/avr/avr-gcc dependency: gmp
==> Downloading https://homebrew.bintray.com/bottles/gmp-6.1.2_1.high_sierra.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/ea/eadb377c507f5d04e8d47861fa76471be6c09dc54991540e125ee1cbc04fecd6?__gda__=exp=15
######################################################################## 100.0%
==> Pouring gmp-6.1.2_1.high_sierra.bottle.tar.gz
๐บ /usr/local/Cellar/gmp/6.1.2_1: 18 files, 3.1MB
==> Installing osx-cross/avr/avr-gcc dependency: mpfr
==> Downloading https://homebrew.bintray.com/bottles/mpfr-3.1.6.high_sierra.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/ff/ff2f02099a071f15f73ac776026c30e33bb43f9b389b19b87f575cd9bd4ac0bb?__gda__=exp=15
######################################################################## 100.0%
==> Pouring mpfr-3.1.6.high_sierra.bottle.tar.gz
๐บ /usr/local/Cellar/mpfr/3.1.6: 26 files, 3.6MB
==> Installing osx-cross/avr/avr-gcc dependency: libmpc
==> Downloading https://homebrew.bintray.com/bottles/libmpc-1.0.3_1.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libmpc-1.0.3_1.high_sierra.bottle.tar.gz
๐บ /usr/local/Cellar/libmpc/1.0.3_1: 12 files, 345.1KB
==> Installing osx-cross/avr/avr-gcc dependency: avr-binutils
==> Downloading http://ftp.gnu.org/gnu/binutils/binutils-2.29.tar.bz2
######################################################################## 100.0%
==> Downloading https://raw.githubusercontent.com/osx-cross/homebrew-avr/master/avr-binutils-size.patch
######################################################################## 100.0%
==> Patching
==> Applying avr-binutils-size.patch
patching file binutils/size.c
==> ../configure --prefix=/usr/local/Cellar/avr-binutils/2.29 --infodir=/usr/local/Cellar/avr-binutils/2.29/share/info --mandir=/u
==> make
==> make install
๐บ /usr/local/Cellar/avr-binutils/2.29: 140 files, 12.2MB, built in 2 minutes 30 seconds
==> Installing osx-cross/avr/avr-gcc --HEAD
==> Cloning svn://gcc.gnu.org/svn/gcc/trunk
==> ../configure --target=avr --prefix=/usr/local/Cellar/avr-gcc/HEAD-255997 --libdir=/usr/local/Cellar/avr-gcc/HEAD-255997/lib/av
==> make
==> make install
==> Downloading https://download.savannah.gnu.org/releases/avr-libc/avr-libc-2.0.0.tar.bz2
==> Downloading from https://mirror.netcologne.de/savannah/avr-libc/avr-libc-2.0.0.tar.bz2
######################################################################## 100.0%
==> ./configure --build=i686-apple-darwin17.3.0 --prefix=/usr/local/Cellar/avr-gcc/HEAD-255997 --host=avr
==> make install
Last 15 lines from /Users/k/Library/Logs/Homebrew/avr-gcc/05.make:
avr-gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../common -I../../../include -I../../../include -Wall -W -Wstrict-prototypes -mmcu=avr2 -D__COMPILING_AVR_LIBC__ -mcall-prologues -Os -MT asctime_r.o -MD -MP -MF .deps/asctime_r.Tpo -c -o asctime_r.o ../../../libc/time/asctime_r.c
during RTL pass: expand
../../../libc/time/asctime_r.c: In function 'asctime_r':
../../../libc/time/asctime_r.c:57:16: internal compiler error: in convert_memory_address_addr_space_1, at explow.c:300
buffer[i] = ascdays[d++];
~~~~~~~~~~^~~~~~~~~~~~~~
libbacktrace could not find executable to open
Please submit a full bug report,
with preprocessed source if appropriate.
See https://gcc.gnu.org/bugs/ for instructions.
make[4]: *** [asctime_r.o] Error 1
make[3]: *** [install-recursive] Error 1
make[2]: *** [install-recursive] Error 1
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/osx-cross/homebrew-avr/issues
As of today, we have 3 versions of GCC:
We don't have 5.x.
I'm wondering if we should have them all, or none at all. Doesn't really make sense to jump from 4 to 6. In homebrew they have all the versions from 4.6 to 5. My opinion would be to keep only the latest version of each big version:
but don't bother with multiple versions of each.
And regarding binutils and avr-libc, only keep the latest version. If they are not compatible with older version of gcc, drop support of those versions of gcc.
what do you thing?
client-130-203-90-97:simavr--git WenhuiZhang$ make
Makefile:30: warning: overriding recipe for target 'install'
Makefile:24: warning: ignoring old recipe for target 'install'
make -C simavr RELEASE=0
make[1]: Entering directory '/Users/WenhuiZhang/Library/Caches/Homebrew/simavr--git/simavr'
Makefile:30: warning: overriding recipe for target 'install'
Makefile:24: warning: ignoring old recipe for target 'install'
make -C simavr RELEASE=0
make[2]: Entering directory '/Users/WenhuiZhang/Library/Caches/Homebrew/simavr--git/simavr/simavr'
CONF obj-x86_64-apple-darwin16.4.0/cores.deps
WARNING cores/sim_90usb162.c did not compile, check your avr-gcc toolchain
WARNING cores/sim_mega128.c did not compile, check your avr-gcc toolchain
WARNING cores/sim_mega1280.c did not compile, check your avr-gcc toolchain
WARNING cores/sim_mega1281.c did not compile, check your avr-gcc toolchain
WARNING cores/sim_mega1284.c did not compile, check your avr-gcc toolchain
WARNING cores/sim_mega128rfa1.c did not compile, check your avr-gcc toolchain
WARNING cores/sim_mega128rfr2.c did not compile, check your avr-gcc toolchain
WARNING cores/sim_mega16.c did not compile, check your avr-gcc toolchain
WARNING cores/sim_mega164.c did not compile, check your avr-gcc toolchain
WARNING cores/sim_mega168.c did not compile, check your avr-gcc toolchain
WARNING cores/sim_mega169.c did not compile, check your avr-gcc toolchain
WARNING cores/sim_mega16m1.c did not compile, check your avr-gcc toolchain
WARNING cores/sim_mega2560.c did not compile, check your avr-gcc toolchain
WARNING cores/sim_mega32.c did not compile, check your avr-gcc toolchain
WARNING cores/sim_mega324.c did not compile, check your avr-gcc toolchain
WARNING cores/sim_mega324a.c did not compile, check your avr-gcc toolchain
WARNING cores/sim_mega328.c did not compile, check your avr-gcc toolchain
WARNING cores/sim_mega48.c did not compile, check your avr-gcc toolchain
WARNING cores/sim_mega644.c did not compile, check your avr-gcc toolchain
WARNING cores/sim_mega8.c did not compile, check your avr-gcc toolchain
WARNING cores/sim_mega88.c did not compile, check your avr-gcc toolchain
WARNING cores/sim_tiny13.c did not compile, check your avr-gcc toolchain
WARNING cores/sim_tiny2313.c did not compile, check your avr-gcc toolchain
WARNING cores/sim_tiny24.c did not compile, check your avr-gcc toolchain
WARNING cores/sim_tiny25.c did not compile, check your avr-gcc toolchain
WARNING cores/sim_tiny44.c did not compile, check your avr-gcc toolchain
WARNING cores/sim_tiny45.c did not compile, check your avr-gcc toolchain
WARNING cores/sim_tiny84.c did not compile, check your avr-gcc toolchain
WARNING cores/sim_tiny85.c did not compile, check your avr-gcc toolchain
make obj config
make[3]: Entering directory '/Users/WenhuiZhang/Library/Caches/Homebrew/simavr--git/simavr/simavr'
make[3]: Nothing to be done for 'obj'.
CONF sim_core_decl.h
make[3]: Leaving directory '/Users/WenhuiZhang/Library/Caches/Homebrew/simavr--git/simavr/simavr'
make libsimavr run_avr
make[3]: Entering directory '/Users/WenhuiZhang/Library/Caches/Homebrew/simavr--git/simavr/simavr'
CC sim/sim_vcd_file.c
CC sim/sim_hex.c
CC sim/sim_avr.c
CC sim/sim_io.c
CC sim/sim_elf.c
CC sim/sim_irq.c
CC sim/sim_cmds.c
CC sim/sim_core.c
CC sim/sim_cycle_timers.c
CC sim/sim_gdb.c
CC sim/sim_utils.c
CC sim/sim_interrupts.c
CC sim/avr_watchdog.c
CC sim/avr_bitbang.c
CC sim/avr_timer.c
CC sim/avr_eeprom.c
CC sim/avr_extint.c
CC sim/avr_uart.c
CC sim/avr_ioport.c
CC sim/avr_usb.c
CC sim/avr_spi.c
CC sim/avr_adc.c
CC sim/avr_twi.c
CC sim/avr_flash.c
CC sim/avr_lin.c
In file included from cores/sim_megax.c:22:
In file included from sim/sim_avr.h:29:
sim/sim_irq.h:25:10: fatal error: 'stdint.h' file not found
#include <stdint.h>
^
1 error generated.
../Makefile.common:176: recipe for target 'obj-x86_64-apple-darwin16.4.0/sim_megax.o' failed
make[3]: *** [obj-x86_64-apple-darwin16.4.0/sim_megax.o] Error 1
make[3]: Leaving directory '/Users/WenhuiZhang/Library/Caches/Homebrew/simavr--git/simavr/simavr'
Makefile:34: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/Users/WenhuiZhang/Library/Caches/Homebrew/simavr--git/simavr/simavr'
Makefile:15: recipe for target 'build-simavr' failed
make[1]: *** [build-simavr] Error 2
make[1]: Leaving directory '/Users/WenhuiZhang/Library/Caches/Homebrew/simavr--git/simavr'
Makefile:15: recipe for target 'build-simavr' failed
make: *** [build-simavr] Error 2
I'm trying to compile QMK. It used to work fine with 6.2.0, but it looks like 6.3.0 is missing a required header.
6.2.0 had this file:
/usr/local/Cellar/avr-gcc/6.2.0/avr/include/avr/pgmspace.h
6.3.0 appears to have no equivalent. Am I doing something wrong? I just brew update
d.
Thanks!
Currently there is no good way to reliably link to the libraries in avr-libc
. I'd like to see something akin to usr/local/include
for avr, maybe usr/local/avr/(include | lib)
.
Here is log:
% brew install --sandbox avr-libc
==> Installing avr-libc from osx-cross/avr
==> Installing dependencies for osx-cross/avr/avr-libc: avr-binutils, avr
==> Installing osx-cross/avr/avr-libc dependency: avr-binutils
==> Using the sandbox
==> Downloading http://ftpmirror.gnu.org/binutils/binutils-2.25.tar.gz
==> Downloading from http://mirror.jre655.com/GNU/binutils/binutils-2.25.tar.gz
######################################################################## 100.0%
==> Downloading https://gist.github.com/larsimmisch/4190960/raw/b36f3d6d08698000
==> Downloading from https://gist.githubusercontent.com/larsimmisch/4190960/raw/
######################################################################## 100.0%
==> Patching
patching file binutils/size.c
Hunk #1 succeeded at 34 (offset -2 lines).
Hunk #2 succeeded at 67 (offset -2 lines).
Hunk #3 succeeded at 82 (offset -2 lines).
Hunk #4 succeeded at 335 (offset -2 lines).
Hunk #5 succeeded at 335 (offset -2 lines).
Hunk #6 succeeded at 357 (offset -2 lines).
Hunk #7 succeeded at 366 (offset -2 lines).
Hunk #8 succeeded at 397 (offset -2 lines).
Hunk #9 succeeded at 407 (offset -2 lines).
Hunk #10 succeeded at 422 (offset -2 lines).
Hunk #11 succeeded at 455 (offset -2 lines).
Hunk #12 succeeded at 507 (offset -2 lines).
Hunk #13 succeeded at 867 (offset -2 lines).
==> ../configure --disable-debug --disable-dependency-tracking --target=avr --pr
==> make
==> make install
๐บ /usr/local/Cellar/avr-binutils/2.25: 138 files, 19.0M, built in 2 minutes 36 seconds
==> Installing osx-cross/avr/avr-libc dependency: avr-gcc
==> Downloading ftp://gcc.gnu.org/pub/gcc/releases/gcc-4.9.3/gcc-4.9.3.tar.bz2
######################################################################## 100.0%
==> ../configure --target=avr --prefix=/usr/local/Cellar/avr-gcc/4.9.3 --enable-
==> make
==> make install
๐บ /usr/local/Cellar/avr-gcc/4.9.3: 285 files, 509.0M, built in 46 minutes 25 seconds
==> Installing osx-cross/avr/avr-libc
==> Downloading http://download.savannah.gnu.org/releases/avr-libc/avr-libc-1.8.
==> Downloading from http://public.p-knowledge.co.jp/Savannah-nongnu-mirror//avr
######################################################################## 100.0%
==> ./configure --build=x86_64-apple-darwin15.3.0 --prefix=/usr/local/Cellar/avr
==> make install
==> copying /usr/local/Cellar/avr-libc/1.8.1/avr -> /usr/local/Cellar/avr-gcc/4.
Error: Operation not permitted - /usr/local/Cellar/avr-gcc/4.9.3/avr
To solve this issue, it should bundle avr-libc into avr-gcc formula with resource syntax.
$ brew install avr-gcc
Updating Homebrewโฆ
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/cask).
No changes to formulae.
==> Installing avr-gcc from osx-cross/avr
==> Installing dependencies for osx-cross/avr/avr-gcc: avr-binutils
==> Installing osx-cross/avr/avr-gcc dependency: avr-binutils
==> Downloading http://ftp.gnu.org/gnu/binutils/binutils-2.30.tar.bz2
Already downloaded: /Users/max/Library/Caches/Homebrew/avr-binutils-2.30.tar.bz2
==> Downloading https://raw.githubusercontent.com/osx-cross/homebrew-avr/master/avr-binutils-size.patch
Already downloaded: /Users/max/Library/Caches/Homebrew/avr-binutils--patch-4748f87aee912f954be9968a5a01f61e4f1897adf21e2549d0ac988b9fe8ef1d.patch
==> Patching
==> Applying avr-binutils-size.patch
patching file binutils/size.c
==> ../configure --prefix=/usr/local/Cellar/avr-binutils/2.30 --infodir=/usr/local/Cellar/avr-binutils/2.30/share/info --mandir=/usr/local/Cellar/avr-binutils/2.30/share/man --target=avr --disable-nls --disable-werror
==> make
==> make install
๐บ /usr/local/Cellar/avr-binutils/2.30: 158 files, 12.5MB, built in 5 minutes 16 seconds
==> Installing osx-cross/avr/avr-gcc
==> Downloading https://gcc.gnu.org/pub/gcc/releases/gcc-8.1.0/gcc-8.1.0.tar.xz
Already downloaded: /Users/max/Library/Caches/Homebrew/avr-gcc-8.1.0.tar.xz
==> ../configure --target=avr --prefix=/usr/local/Cellar/avr-gcc/8.1.0 --libdir=/usr/local/Cellar/avr-gcc/8.1.0/lib/avr-gcc/8 --enable-languages=c,c++ --with-ld=/usr/local/opt/avr-binutils/bin/avr-ld --with-as=/usr/local/opt/avr-binutils/bin/avr-as --disable-nls --disable
==> make
Last 15 lines from /Users/max/Library/Logs/Homebrew/avr-gcc/02.make:
/private/tmp/avr-gcc-20180723-19951-ub9qsk/gcc-8.1.0/build/./gcc/nm -pg _udivmodhi4_s.o | awk 'NF == 3 && $2 !~ /^[UN]$/ && $3 !~ /.*_compat/ && $3 !~ /.*@.*/ { print "\t.hidden", $3 }' > _udivmodhi4.visT
/private/tmp/avr-gcc-20180723-19951-ub9qsk/gcc-8.1.0/build/./gcc/nm -pg _divmodhi4_s.o | awk 'NF == 3 && $2 !~ /^[UN]$/ && $3 !~ /.*_compat/ && $3 !~ /.*@.*/ { print "\t.hidden", $3 }' > _divmodhi4.visT
/private/tmp/avr-gcc-20180723-19951-ub9qsk/gcc-8.1.0/build/./gcc/nm -pg _divmodpsi4_s.o | awk 'NF == 3 && $2 !~ /^[UN]$/ && $3 !~ /.*_compat/ && $3 !~ /.*@.*/ { print "\t.hidden", $3 }' > _divmodpsi4.visT
/private/tmp/avr-gcc-20180723-19951-ub9qsk/gcc-8.1.0/build/./gcc/nm -pg _udivmodpsi4_s.o | awk 'NF == 3 && $2 !~ /^[UN]$/ && $3 !~ /.*_compat/ && $3 !~ /.*@.*/ { print "\t.hidden", $3 }' > _udivmodpsi4.visT
mv -f _divmodhi4.visT _divmodhi4.vis
make[4]: mv: Bad executable (or shared library)
mv -f _udivmodpsi4.visT _udivmodpsi4.vis
make[4]: *** [_divmodhi4.vis] Error 1
make[4]: *** Waiting for unfinished jobs....
mv -f _divmodpsi4.visT _divmodpsi4.vis
mv -f _udivmodhi4.visT _udivmodhi4.vis
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
Today I installed homebrew-avr and was surprised when the fan on my MacBook started revving up. I checked Terminal and saw the title bar jumping between gcc and ruby with the fan whirring and the laptop practically shuddering -- very steampunk but I almost killed the installation convinced that it was stuck in an endless loop.
In the end, the installation did succeed, taking almost half an hour. I've installed Crosspack-AVR with brew last week (and brew uninstalled it today) and neither process took more than ten minutes with minimal fuss. Is this an issue?
I'm running MacOs 10.13.2 and Xcode Version 9.2 (9C40b).
-------------Terminal------------------------------
==> Tapping osx-cross/avr
Cloning into '/usr/local/Homebrew/Library/Taps/osx-cross/homebrew-avr'...
remote: Counting objects: 14, done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 14 (delta 4), reused 4 (delta 0), pack-reused 0
Unpacking objects: 100% (14/14), done.
Tapped 8 formulae (47 files, 66KB)
tirion:local elisevanlooij$ brew install avr-gcc
==> Installing avr-gcc from osx-cross/avr
==> Installing dependencies for osx-cross/avr/avr-gcc: gmp, mpfr, libmpc, avr-binutils
==> Installing osx-cross/avr/avr-gcc dependency: gmp
==> Downloading https://homebrew.bintray.com/bottles/gmp-6.1.2_1.high_sierra.bot
==> Downloading from https://akamai.bintray.com/ea/eadb377c507f5d04e8d47861fa764
######################################################################## 100.0%
==> Pouring gmp-6.1.2_1.high_sierra.bottle.tar.gz
๐บ /usr/local/Cellar/gmp/6.1.2_1: 18 files, 3.1MB
==> Installing osx-cross/avr/avr-gcc dependency: mpfr
==> Downloading https://homebrew.bintray.com/bottles/mpfr-4.0.0.high_sierra.bott
==> Downloading from https://akamai.bintray.com/e0/e09cdf149a648968e92fb36f88e00
######################################################################## 100.0%
==> Pouring mpfr-4.0.0.high_sierra.bottle.tar.gz
๐บ /usr/local/Cellar/mpfr/4.0.0: 28 files, 4.6MB
==> Installing osx-cross/avr/avr-gcc dependency: libmpc
==> Downloading https://homebrew.bintray.com/bottles/libmpc-1.1.0.high_sierra.bo
######################################################################## 100.0%
==> Pouring libmpc-1.1.0.high_sierra.bottle.tar.gz
๐บ /usr/local/Cellar/libmpc/1.1.0: 12 files, 353.8KB
==> Installing osx-cross/avr/avr-gcc dependency: avr-binutils
==> Downloading http://ftp.gnu.org/gnu/binutils/binutils-2.29.tar.bz2
######################################################################## 100.0%
==> Downloading https://raw.githubusercontent.com/osx-cross/homebrew-avr/master/
######################################################################## 100.0%
==> Patching
==> Applying avr-binutils-size.patch
patching file binutils/size.c
==> ../configure --prefix=/usr/local/Cellar/avr-binutils/2.29 --infodir=/usr/loc
==> make
==> make install
๐บ /usr/local/Cellar/avr-binutils/2.29: 140 files, 12.2MB, built in 2 minutes 29 seconds
==> Installing osx-cross/avr/avr-gcc
==> Downloading https://gcc.gnu.org/pub/gcc/releases/gcc-7.2.0/gcc-7.2.0.tar.xz
######################################################################## 100.0%
==> ../configure --target=avr --prefix=/usr/local/Cellar/avr-gcc/7.2.0 --libdir=
==> make
==> make install
==> Downloading https://download.savannah.gnu.org/releases/avr-libc/avr-libc-2.0
==> Downloading from https://mirrors.up.pt/pub/nongnu/avr-libc/avr-libc-2.0.0.ta
######################################################################## 100.0%
==> ./configure --build=i686-apple-darwin17.3.0 --prefix=/usr/local/Cellar/avr-g
==> make install
๐บ /usr/local/Cellar/avr-gcc/7.2.0: 1,682 files, 174.6MB, built in 24 minutes 57 seconds
Getting the following error trying to install avr-libc:
$ brew install avr-libc
Error: Formulae found in multiple taps:
* larsimmisch/avr/avr-libc
* osx-cross/avr/avr-libc
Please use the fully-qualified name e.g. larsimmisch/avr/avr-libc to refer the formula.
$ brew install osx-cross/avr/avr-libc
==> Installing avr-libc from osx-cross/avr
Error: Formulae found in multiple taps:
* larsimmisch/avr/avr-gcc
* osx-cross/avr/avr-gcc
Please use the fully-qualified name e.g. larsimmisch/avr/avr-gcc to refer the formula.
I've already brew tap osx-cross/avr
and installed xcode command line tools. Let me know what other information you need from me.
Thanks!
~ $ brew install --HEAD simavr
==> Installing simavr from osx-cross/avr
Error: No available formula with the name "avr-libc" (dependency of osx-cross/avr/simavr)
==> Searching for a previously deleted formula...
Warning: homebrew/core is shallow clone. To get complete history run:
git -C "$(brew --repo homebrew/core)" fetch --unshallow
Error: No previously deleted formula found.
==> Searching for similarly named formulae...
==> Searching local taps...
Error: No similarly named formulae found.
==> Searching taps...
==> Searching taps on GitHub...
Error: No formulae found in taps.
I suspect this was caused by #54 removing the avr-libc
formula, and not changing simavr
to use the resource, but I don't know how to test with a local formula to confirm this.
On a brand new installation of 10.11.15, I can't seem to install avr-gcc:
brew install avr-libc
==> Installing avr-libc from osx-cross/avr
==> Installing dependencies for osx-cross/avr/avr-libc: avr-gcc
==> Installing osx-cross/avr/avr-libc dependency: avr-gcc
==> Downloading ftp://gcc.gnu.org/pub/gcc/releases/gcc-4.9.3/gcc-4.9.3.tar.bz2
Already downloaded: /Users/edasque/Library/Caches/Homebrew/avr-gcc-4.9.3.tar.bz2
==> ../configure --target=avr --prefix=/usr/local/Cellar/avr-gcc/4.9.3 --enable-languages=c,c++ --with-gnu-as --with-g
==> make
Last 15 lines from /Users/edasque/Library/Logs/Homebrew/avr-gcc/02.make:
make[2]: *** [s-opinit] Error 1
make[2]: *** Waiting for unfinished jobs....
/bin/sh ../../gcc/../move-if-change tmp-attr-common.h insn-attr-common.h
echo timestamp > s-codes
echo timestamp > s-flags
/bin/sh ../../gcc/../move-if-change tmp-attr.h insn-attr.h
echo timestamp > s-attr-common
/bin/sh ../../gcc/../move-if-change tmp-config.h insn-config.h
echo timestamp > s-attr
echo timestamp > s-config
/bin/sh ../../gcc/../move-if-change tmp-mlib.h multilib.h
echo timestamp > s-mlib
rm gcc.pod
make[1]: *** [all-gcc] Error 2
make: *** [all] Error 2
READ THIS: https://git.io/brew-troubleshooting
If reporting this issue please do so at (not Homebrew/brew):
https://github.com/osx-cross/homebrew-avr/issues
These open issues may also help:
Bundle avr-libc to avr-gcc to resolve sandbox issue https://github.com/osx-cross/homebrew-avr/pull/21
Any idea how I could fix it? I tried to install 48 with similar issues. It doesn't work on this work mac but works on my home Mac for some reason.
brew --version
Homebrew 0.9.9 (git revision 8282; last commit 2016-07-08)
Homebrew/homebrew-core (git revision 2302; last commit 2016-07-08)
gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 7.3.0 (clang-703.0.31)
Target: x86_64-apple-darwin15.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Hi there!
The formula still has two versions of gcc. Changing from one to the other used to work well just for me but I don't think it's a suitable way to do it.
I thought about this: why not avec different repository for different versions of gcc:
this way people can use which ever version they want.
what do you guys think?
I already have arm-none-eabi-gcc installed. This causes a conflict when trying to install avr-gcc:
`==> Installing avr-gcc from osx-cross/avr
...
==> make install
Error: The brew link
step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink lib/libcc1.0.so
Target /usr/local/lib/libcc1.0.so is a symlink belonging to arm-none-eabi-gcc. You can unlink it:
brew unlink arm-none-eabi-gcc
`
It seems the latest version (avr-gcc -v
says 4.9.3) has no support for ATtiny441 and the related ATtiny841, installed with default options (brew install avr-libc
).
Am I missing something?
Tries to install in avr-gcc48/4.8.5 instead of avr-gcc49/4.9.3
==> copying /usr/local/Cellar/avr-libc49/2.0.0/avr -> /usr/local/Cellar/avr-gcc48/4.8.5
Error: No such file or directory - /usr/local/Cellar/avr-gcc48/4.8.5
brew install avr-libc
Results in:
...
==> Installing osx-cross/avr/avr-libc
==> Downloading http://download.savannah.gnu.org/releases/avr-libc/avr-libc-1.8.1.tar.bz2
==> Downloading from http://public.p-knowledge.co.jp/Savannah-nongnu-mirror//avr-libc/avr-libc-1.8.1.tar.bz2
curl: (7) Failed to connect to public.p-knowledge.co.jp port 80: Connection refused
Error: Failed to download resource "avr-libc"
Download failed: http://public.p-knowledge.co.jp/Savannah-nongnu-mirror//avr-libc/avr-libc-1.8.1.tar.bz2
Are there any other mirrors for this package?
Here is the error when I try to install via Homebrew:
Last 15 lines from /Users/Library/Logs/Homebrew/avr-gcc/02.make:
checking for --enable-version-specific-runtime-libs... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for gawk... awk
checking for avr-ar... avr-ar
checking for avr-lipo... avr-lipo
checking for avr-nm... /private/tmp/avr-gcc-20161224-889-xdcwwo/gcc-6.2.0/build/./gcc/nm
checking for avr-ranlib... avr-ranlib
checking for avr-strip... avr-strip
checking whether ln -s works... yes
checking for avr-gcc... /private/tmp/avr-gcc-20161224-889-xdcwwo/gcc-6.2.0/build/./gcc/xgcc -B/private/tmp/avr-gcc-20161224-889-xdcwwo/gcc-6.2.0/build/./gcc/ -B/usr/local/Cellar/avr-gcc/6.2.0/avr/bin/ -B/usr/local/Cellar/avr-gcc/6.2.0/avr/lib/ -isystem /usr/local/Cellar/avr-gcc/6.2.0/avr/include -isystem /usr/local/Cellar/avr-gcc/6.2.0/avr/sys-include -mmcu=avrtiny
checking for suffix of object files... configure: error: in `/private/tmp/avr-gcc-20161224-889-xdcwwo/gcc-6.2.0/build/avr/avrtiny/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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.