This repository is deprecated - all new work is being done on osx-cross/homebrew-avr
larsimmisch / homebrew-avr Goto Github PK
View Code? Open in Web Editor NEWAVR toolchain for homebrew
AVR toolchain for homebrew
This repository is deprecated - all new work is being done on osx-cross/homebrew-avr
getting this on a first-time "brew install avr-libc"
==> Installing avr-libc dependency: avr-binutils
==> Downloading http://ftp.gnu.org/gnu/binutils/binutils-2.22.tar.bz2
Already downloaded: /Users/eric/Library/Caches/Homebrew/avr-binutils-2.22.tar.bz2
==> building libbfd
==> ./configure --enable-install-libbfd --prefix=/usr/local/Cellar/avr-binutils/2.22 --infodir=/usr/local/Cellar/avr-binutil
==> make
==> make install
==> ./configure --target=avr --prefix=/usr/local/Cellar/avr-binutils/2.22 --infodir=/usr/local/Cellar/avr-binutils/2.22/shar
==> make
mv -f .deps/eavrxmega7.Tpo .deps/eavrxmega7.Po
/bin/sh ./libtool --tag = CC --mode=link clang -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o ld-new ldgram.o ldlex-wrapper.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldfile.o ldcref.o plugin.o eavr2.o eavr1.o eavr25.o eavr3.o eavr31.o eavr35.o eavr4.o eavr5.o eavr51.o eavr6.o eavrxmega1.o eavrxmega2.o eavrxmega3.o eavrxmega4.o eavrxmega5.o eavrxmega6.o eavrxmega7.o ../bfd/libbfd.la ../libiberty/libiberty.a -lz
libtool: link: clang -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -o ld-new ldgram.o ldlex-wrapper.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldfile.o ldcref.o plugin.o eavr2.o eavr1.o eavr25.o eavr3.o eavr31.o eavr35.o eavr4.o eavr5.o eavr51.o eavr6.o eavrxmega1.o eavrxmega2.o eavrxmega3.o eavrxmega4.o eavrxmega5.o eavrxmega6.o eavrxmega7.o ../bfd/.libs/libbfd.a ../libiberty/libiberty.a -lz
brew: superenv removed: -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2
make: *** [all] Error 2
Error: avr-binutils did not build
Is there a possibility to add a formula for avr-gcc 4.1.2?
Currently, installing this package will link the following files in a way that conflicts with installing non-avr gdb:
/usr/local/share/info/configure.info -> /usr/local/Cellar/avr-binutils/2.23.1/share/info/configure.info
/usr/local/share/info/bfd.info -> /usr/local/Cellar/avr-binutils/2.23.1/share/info/bfd.info
These should be linked as being specific to avr. Might need to patch AVR to look for these under different file name though.
Is it possible to clean up after uninstalling avr-libc
right now despite uninstalling the library is still installed.
I'm not sure if this is specific to this homebrew formula, but has anyone else encountered this error?
In file included from ../../gcc/passes.c:33:
../../gcc/tree.h:fatal error: error in backend: ran out of registers during register allocation
==> Installing avr-libc dependency: avr-gcc
==> Downloading http://ftp.gnu.org/gnu/gcc/gcc-4.7.2/gcc-4.7.2.tar.bz2
######################################################################## 100.0%
==> ../configure --enable-languages=c,c++ --target=avr --disable-libssp --disabl
==> make
==> make install
clang: error: unsupported option '--print-multi-os-dir'
Error: No such file or directory - /usr/local/Cellar/avr-gcc/4.7.2/lib//libiberty.a
Note: this may be caused by my recent upgrade to XCode 5.0.
Is it possible to support avr-size -C
It's very useful for inspecting your code size:
See the following patch: http://git.makehackvoid.com/cgi-bin/gitweb.cgi?p=mhvavrtools.git;a=blob_plain;f=mhvavrtools/patches/binutils-001-avr-size.patch;h=e80d28eae46217551d996a2253256c97d10aa4b5;hb=refs/heads/master
$ touch test.c
$ avr-gcc test.c
$
(successful)
$ avr-gcc -flto test.c
collect2: fatal error: cannot find 'ld'
compilation terminated.
According to fs_usage
, collect2
is trying to find the linker using the name avr-avr-ld
. A workaround is to create a symlink with the expected name:
$ ln -s avr-ld /usr/local/bin/avr-avr-ld
$ avr-gcc -flto test.c
(successful)
I'm insufficiently familiar with the gcc build process to readily determine what might need to change in the recipe to prevent this issue.
Hello. In trying to install avr-gcc
I got the following error:
$ brew install larsimmisch/avr/avr-gcc
Error: Calling Formula.sha1 is disabled!
Use Formula.sha256 instead.
/usr/local/Homebrew/Library/Taps/larsimmisch/homebrew-avr/avr-gcc.rb:7:in `<class:AvrGcc>'
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
Let me know what else you'd need from me to help.
Thanks!
Hi, whey I try and build on my machine, the build fails.
bash$ brew -v install avr-binutils
.. checking whether malloc is declared... no checking whether realloc is declared... no checking whether stpcpy is declared... no checking whether strstr is declared... no checking whether snprintf is declared... no checking whether vsnprintf is declared... no checking for library containing zlibVersion... -lz checking zlib.h usability... no checking zlib.h presence... no checking for zlib.h... no checking linker --as-needed support... no checking for gcc version with buggy 64-bit support... no checking for ftello... yes checking for ftello64... no checking for fseeko... yes checking for fseeko64... no checking for fopen64... no checking size of off_t... 8 checking file_ptr type... BFD_HOST_64_BIT checking for stdlib.h... (cached) no checking for unistd.h... (cached) no checking for getpagesize... (cached) yes checking for working mmap... yes checking for madvise... yes checking for mprotect... yes configure: updating cache ./config.cache configure: creating ./config.status config.status: creating Makefile config.status: creating doc/Makefile config.status: creating bfd-in3.h config.status: creating po/Makefile.in config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands config.status: executing default-1 commands config.status: executing bfd_stdint.h commands config.status: executing default commands make: **\* [all] Error 2 config.log was copied to /Users/jason/Library/Logs/Homebrew ==> Exit Status: 2 https://github.com/larsimmisch/homebrew-avr/blob/master/./avr-binutils.rb#L48 ==> Build Environment HOMEBREW_VERSION: 0.9.2 HEAD: 9b0fb71a8848b29557e013cff98fd28db4befd90 CPU: dual-core 64-bit penryn OS X: 10.8-x86_64 Xcode: 4.4 CLT: N/A X11: N/A CC: clang CPPFLAGS: -I/usr/local/Cellar/avr-binutils/2.22/include CMAKE_PREFIX_PATH: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr LDFLAGS: -L/usr/local/lib -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/lib -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include MACOSX_DEPLOYMENT_TARGET: 10.8 MAKEFLAGS: -j2 Error: Failed executing: make (avr-binutils.rb:48) If `brew doctor` does not, this may help you fix or report the issue: https://github.com/larsimmisch/homebrew-avr/issues/newThere are plenty repos as:
https://github.com/jpommerening/homebrew-avr
https://github.com/larsimmisch/homebrew-avr
https://github.com/WeAreLeka/homebrew-avr
What do you think of joining efforts and avoiding duplication, by creating an org like homebrew-uC/homebrew-avr
And then we can also join suff from other uC archs ๐
i am also posting the same issue on the listed repos
Here is the error I get (Mac OS X 10.9.1):
avr-gcc -v -mmcu=atxmega16a4 -fpack-struct -O2 -Wall -fomit-frame-pointer -funsigned-char -MM ../src/*.c > depend.mk
Using built-in specs.
COLLECT_GCC=avr-gcc
Target: avr
Configured with: ../configure --enable-languages=c,c++ --target=avr --disable-libssp --disable-nls --with-dwarf2 --prefix=/usr/local/Cellar/avr-gcc/4.7.2 --with-gmp=/usr/local/Cellar/gmp/5.1.3 --with-mpfr=/usr/local/Cellar/mpfr/3.1.2 --with-mpc=/usr/local/Cellar/libmpc/1.0.1 --datarootdir=/usr/local/Cellar/avr-gcc/4.7.2/share --bindir=/usr/local/Cellar/avr-gcc/4.7.2/bin --with-as=/usr/local/bin/avr-as --with-ld=/usr/local/bin/avr-ld
Thread model: single
gcc version 4.7.2 (GCC)
COLLECT_GCC_OPTIONS='-v' '-mmcu=atxmega16a4' '-fpack-struct' '-O2' '-Wall' '-fomit-frame-pointer' '-funsigned-char' '-MM'
cc1 -E -quiet -v -imultilib avrxmega2 -iprefix /usr/local/bin/../lib/gcc/avr/4.7.2/ -MM ../src/capture.c -mmcu=atxmega16a4 -Wall -fpack-struct -fomit-frame-pointer -funsigned-char -O2
Note that cc1 does exist here and is world-readable/executable:
-rwxr-xr-x 1 root admin 6550188 Jan 24 14:45 /usr/local/Cellar/avr-gcc/4.7.2/libexec/gcc/avr/4.7.2/cc1
Hi,
I have the following warning for deprecation when using your tap :
Warning: Calling SoftwareSpec#sha1 is deprecated!
Use SoftwareSpec#sha256 instead.
/usr/local/Library/Taps/larsimmisch/homebrew-avr/avr-binutils.rb:7:in `<class:AvrBinutils>'
Please report this to the larsimmisch/avr tap!
Anything you can do ?
See Homebrew/brew#606 for details
Best regards,
Cyril
Hi,
I'm trying to brew install -v avr-libc
on my machine but to no avail, it keeps saying :
brew doctor
is fine, and brew
is up to date.
I'm having the following error :
/bin/sh: avr-ar: command not found
make[4]: *** [libgcov.a] Error 127
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
==> Configuration
HOMEBREW_VERSION: 0.9.4
HEAD: 9c7cf3667bc420d01e03cd55f58c9c6375549193
CPU: 8-core 64-bit ivybridge
OS X: 10.8.3-x86_64
Xcode: 4.6.2
CLT: 4.6.0.0.1.1365549073
X11: N/A
==> ENV
HOMEBREW_CC: 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_LIBDIR: /usr/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.8
ACLOCAL_PATH: /usr/local/share/aclocal
OBJC: cc
PATH: /usr/local/Library/ENV/4.3:/usr/bin:/bin:/usr/sbin:/sbin
Error: avr-gcc did not build
But avr-ar
seems present, as I can do :
$ avr-ar
Usage: avr-ar [emulation options] [-]{dmpqrstx}[abcDfilMNoPsSTuvV] [member-name] [count] archive-file file...
avr-ar -M [<mri-script]
Further info :
$ echo $PATH
/usr/local/bin:/usr/local/mysql/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/MacGPG2/bin
$ xcrun -find gcc
/Applications/Xcode.app/Contents/Developer/usr/bin/gcc
And I have the command line tools from Xcode installed (with Xcode).
So I'm not really sure what I am doing wrong here, of if it is a bug. I googled the stuff but found no apparent solution to this problem.
Any hint ?
Thanks !
==> Installing avr-gcc
==> Downloading http://ftp.gnu.org/gnu/gcc/gcc-4.7.2/gcc-4.7.2.tar.bz2
==> ../configure --enable-languages=c,c++ --target=avr --disable-libssp --disabl
==> make
==> make install
Warning: skip_clean :all is deprecated
Skip clean was commonly used to prevent brew from stripping binaries.
brew no longer strips binaries, if skip_clean is required to prevent
brew from removing empty directories, you should specify exact paths
in the formula.
/usr/local/Cellar/avr-gcc/4.7.2: 235 files, 45M, built in 13.1 minutes
I tried to get avr-gcc through homebrew and your formula.
It fails because one dependency (mpfr) did not build:
==> Installing avr-gcc dependency: mpfr
==> Downloading http://www.mpfr.org/mpfr-3.1.1/mpfr-3.1.1.tar.bz2
==> Downloading patches
==> Patching
patching file PATCHES
patching file VERSION
patching file src/get_d64.c
patching file src/mpfr.h
patching file src/version.c
patching file tests/tget_set_d64.c
patching file PATCHES
patching file VERSION
patching file src/mpfr.h
patching file src/strtofr.c
patching file src/version.c
patching file tests/tstrtofr.c
==> ./configure --prefix=/usr/local/Cellar/mpfr/3.1.1-p2 --build=x86_64-apple-da
==> make
clang: error: unable to execute command: Segmentation fault: 11
clang: error: linker command failed due to signal (use -v to see invocation)
make[2]: *** [libmpfr.la] Error 254
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1
Error: mpfr did not build
Details:
=> ./configure --prefix=/usr/local/linuxbrew/Cellar/gmp/5.1.2 --enable-cxx
checking size of mp_limb_t... 4
configure: error: Oops, mp_limb_t is 32 bits, but the assembler code
in this configuration expects 64 bits.
You appear to have set $CFLAGS, perhaps you also need to tell GMP the
intended ABI, see "ABI and ISA" in the manual.
Line 5: mirror 'http://ftp.gnu.org/gun/binutils/binutils-2.23.1.tar.bz2'
It should be http://ftp.gnu.org/gnu not gun.
I'm having issues on OSX 10.9.3 with the following version of "gcc" (Xcode's LLVM GCC interface)
Macintosh:$ gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.2.0
Thread model: posix
Here's the output when I go to compile the full suite.
Macintosh:$ brew install avr-libc
==> Installing avr-libc dependency: avr-gcc
==> Downloading http://ftpmirror.gnu.org/gcc/gcc-4.8.1/gcc-4.8.1.tar.bz2
Already downloaded: /Library/Caches/Homebrew/avr-gcc-4.8.1.tar.bz2
==> Downloading http://gcc.gnu.org/ml/gcc-patches/2013-04/txtHZ3i6zDtMz.txt
######################################################################## 100.0%
==> Patching
patching file gcc/config/avr/avr-mcus.def
patching file gcc/doc/avr-mmcu.texi
patching file gcc/config/avr/avr-tables.opt
patching file gcc/config/avr/t-multilib
==> ../configure --enable-languages=c,c++ --target=avr --disable-libssp --disable-nls --with-dwarf2 --prefix=/usr/local/Cellar/avr-gcc/4.8.1 --with-gmp=/usr/local/Cellar/gmp/5.1.3 --with-mpfr=/usr/local/C
==> make
==> make install
clang: error: unsupported option '--print-multi-os-dir'
Error: No such file or directory - /usr/local/Cellar/avr-gcc/4.8.1/lib//libiberty.a`
==> Installing dependencies for avr-libc: avr-binutils, avr-gcc
==> Installing avr-libc dependency: avr-binutils
==> Downloading http://ftp.gnu.org/gnu/binutils/binutils-2.22.tar.bz2
Already downloaded: /Library/Caches/Homebrew/avr-binutils-2.22.tar.bz2
Warning: MD5 support is deprecated and will be removed in a future version.
Please switch this formula to SHA1 or SHA256.
Error: wrong number of arguments (0 for 3)
Please report this bug:
https://github.com/Homebrew/homebrew/wiki/troubleshooting
/usr/local/Library/Homebrew/formula.rb:29:in `initialize'
/usr/local/Library/Taps/neonquill/homebrew-avr/avr-binutils.rb:20:in `new'
/usr/local/Library/Taps/neonquill/homebrew-avr/avr-binutils.rb:20:in `patches'
/usr/local/Library/Homebrew/formula.rb:578:in `patch'
/usr/local/Library/Homebrew/formula.rb:260:in `block in brew'
/usr/local/Library/Homebrew/formula.rb:572:in `block in stage'
/usr/local/Library/Homebrew/resource.rb:62:in `block in unpack'
/usr/local/Library/Homebrew/extend/fileutils.rb:21:in `mktemp'
/usr/local/Library/Homebrew/resource.rb:59:in `unpack'
/usr/local/Library/Homebrew/resource.rb:52:in `stage'
/usr/local/Library/Homebrew/formula.rb:570:in `stage'
/usr/local/Library/Homebrew/formula.rb:258:in `brew'
/usr/local/Library/Homebrew/build.rb:149:in `install'
/usr/local/Library/Homebrew/build.rb:44:in `main'
/usr/local/Library/Homebrew/build.rb:10:in `block in <top (required)>'
Installing on OS X 10.8.5: Brew Install avr-gcc results in
checking build system type... i386-apple-darwin12.5.0
checking host system type... i386-apple-darwin12.5.0
checking target system type... avr-unknown-none
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /usr/local/Library/ENV/4.3/sed
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking for libitm support... no
checking for gcc... llvm-gcc
checking for C compiler default output file name...
configure: error: in /private/tmp/avr-gcc-dSdy/gcc-4.7.2/build': configure: error: C compiler cannot create executables See
config.log' for more details.
HOMEBREW_VERSION: 0.9.5
HEAD: f78c26867c265f026ff0a005d2ec9041580388b0
CPU: 8-core 64-bit ivybridge
OS X: 10.8.5-x86_64
Xcode: 5.0
CLT: 5.0.0.0.1.1377666378
X11: 2.7.4 => /opt/X11
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.