Created
April 13, 2012 21:21
-
-
Save cdesch/2380263 to your computer and use it in GitHub Desktop.
avr-gcc error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cjs-MacBook-Pro:github cj$ cat cjs-MacBook-Pro:github cj$ brew install homebrew-alt/avr/avr-libc.rb | |
cat: cjs-MacBook-Pro:github: No such file or directory | |
cat: cj$: No such file or directory | |
cat: brew: No such file or directory | |
cat: install: No such file or directory | |
require 'formula' | |
def relative(name) | |
return name if name.kind_of? Formula | |
File.join(File.split(__FILE__)[0], name) + '.rb' | |
end | |
class AvrLibc < Formula | |
url 'http://download.savannah.gnu.org/releases/avr-libc/avr-libc-1.8.0.tar.bz2' | |
homepage 'http://www.nongnu.org/avr-libc/' | |
md5 '54c71798f24c96bab206be098062344f' | |
depends_on relative 'avr-gcc' | |
# brew's build environment is in our way | |
ENV.delete 'CFLAGS' | |
ENV.delete 'CXXFLAGS' | |
ENV.delete 'LD' | |
ENV.delete 'CC' | |
ENV.delete 'CXX' | |
def install | |
avr_gcc = Formula.factory(relative 'avr-gcc') | |
build = `./config.guess`.chomp | |
system "./configure", "--build=#{build}", "--prefix=#{prefix}", "--host=avr" | |
system "make install" | |
avr = File.join prefix, 'avr' | |
# copy include and lib files where avr-gcc searches for them | |
# this wouldn't be necessary with a standard prefix | |
ohai "copying #{avr} -> #{avr_gcc.prefix}" | |
cp_r avr, avr_gcc.prefix | |
end | |
end | |
cjs-MacBook-Pro:github cj$ ==> Installing avr-libc dependency: avr-gcc | |
-bash: ==: command not found | |
cjs-MacBook-Pro:github cj$ ==> Downloading http://ftp.gnu.org/gnu/gcc/gcc-4.6.2/gcc-4.6.2.tar.bz2 | |
-bash: ==: command not found | |
cjs-MacBook-Pro:github cj$ ######################################################################## 100.0% | |
cjs-MacBook-Pro:github cj$ ==> ../configure --enable-languages=c,c++ --target=avr --disable-libssp --disable-nls --with-dwarf2 --prefix=/usr/local/Cellar/avr-gcc/4.6.2 --with-gmp=/usr/local/Cellar/g | |
-bash: ==: command not found | |
cjs-MacBook-Pro:github cj$ ==> make | |
-bash: ==: command not found | |
cjs-MacBook-Pro:github cj$ ==> make install | |
-bash: ==: command not found | |
cjs-MacBook-Pro:github cj$ Error: The linking step did not complete successfully | |
-bash: Error:: command not found | |
cjs-MacBook-Pro:github cj$ The formula built, but is not symlinked into /usr/local | |
-bash: The: command not found | |
cjs-MacBook-Pro:github cj$ You can try again using `brew link avr-gcc' | |
> ==> Summary | |
> /usr/local/Cellar/avr-gcc/4.6.2: 203 files, 41M, built in 16.8 minutes | |
> ==> Installing avr-libc | |
> ==> Downloading http://download.savannah.gnu.org/releases/avr-libc/avr-libc-1.8.0.tar.bz2 | |
> ######################################################################## 100.0% | |
> ==> ./configure --build=i686-apple-darwin11.3.0 --prefix=/usr/local/Cellar/avr-libc/1.8.0 --host=avr | |
> checking build system type... i686-apple-darwin11.3.0 | |
> checking host system type... avr-unknown-none | |
> checking if configuring for cross compile... yes | |
> checking if target host is avr... yes | |
> checking for a BSD-compatible install... /usr/bin/install -c | |
> checking whether build environment is sane... yes | |
> checking for avr-strip... avr-strip | |
> checking for a thread-safe mkdir -p... ./install-sh -c -d | |
> checking for gawk... no | |
> checking for mawk... no | |
> checking for nawk... no | |
> checking for awk... awk | |
> checking whether make sets $(MAKE)... yes | |
> checking for avr-gcc... no | |
> checking for gcc... gcc | |
> configure: WARNING: using cross tools not prefixed with host triplet | |
> checking whether the C compiler works... yes | |
> checking for C compiler default output file name... a.out | |
> checking for suffix of executables... | |
> checking whether we are cross compiling... yes | |
> checking for suffix of object files... o | |
> checking whether we are using the GNU C compiler... yes | |
> checking whether gcc accepts -g... yes | |
> checking for gcc option to accept ISO C89... none needed | |
> checking for style of include used by make... GNU | |
> checking dependency style of gcc... gcc3 | |
> checking for avr-as... avr-as | |
> checking dependency style of gcc... gcc3 | |
> checking for avr-ranlib... avr-ranlib | |
> checking for avr-ar... avr-ar | |
> configure: error: Wrong C compiler found; check the PATH! | |
> config.log was copied to /Users/cj/Library/Logs/Homebrew | |
> ==> Build Environment | |
> CPU: quad-core 64-bit sandybridge | |
> MacOS: 10.7.3-x86_64 | |
> Xcode: 4.3.2 | |
> MAKEFLAGS: -j4 | |
> Error: Failed executing: ./configure --build=i686-apple-darwin11.3.0 --prefix=/usr/local/Cellar/avr-libc/1.8.0 --host=avr (.rb:) | |
> If `brew doctor' does not help diagnose the issue, please report the bug: | |
> https://github.com/mxcl/homebrew/wiki/reporting-bugs | |
> We saved the configure log, please gist it if you report the issue: | |
> ~/Library/Logs/Homebrew/config.log | |
> cjs-MacBook-Pro:github cj$ | |
> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment