Skip to content

Instantly share code, notes, and snippets.

@walchko
Created October 24, 2012 11:34
Show Gist options
  • Save walchko/3945584 to your computer and use it in GitHub Desktop.
Save walchko/3945584 to your computer and use it in GitHub Desktop.
homebrew crosstools-ng install
[kevin@tardis Desktop]$ brew install -v ./crosstool-ng.rb
==> Downloading http://crosstool-ng.org/download/crosstool-ng/crosstool-ng-1.16.0.tar.bz2
Already downloaded: /Library/Caches/Homebrew/crosstool-ng-1.16.0.tar.bz2
/usr/bin/tar xf /Library/Caches/Homebrew/crosstool-ng-1.16.0.tar.bz2
==> Patching
/usr/bin/patch -f -p1 -i 000-homebrew.diff
patching file Makefile.in
patching file kconfig/zconf.gperf
patch unexpectedly ends in middle of line
==> ./configure --prefix=/usr/local/Cellar/crosstool-ng/1.16.0 --exec-prefix=/usr/local/Cellar/crosstool-ng/1.16.0 --with-objcopy=gobjcopy --with-objdump=gobjdump --with-readelf=greadelf --with-libtool=glibtool --with-libtoolize=glibtoolize --with-install=ginstall CFLAGS=-std=gnu89
./configure --prefix=/usr/local/Cellar/crosstool-ng/1.16.0 --exec-prefix=/usr/local/Cellar/crosstool-ng/1.16.0 --with-objcopy=gobjcopy --with-objdump=gobjdump --with-readelf=greadelf --with-libtool=glibtool --with-libtoolize=glibtoolize --with-install=ginstall CFLAGS=-std=gnu89
checking build system type... x86_64-apple-darwin12.2.0
checking host system type... x86_64-apple-darwin12.2.0
checking for a BSD-compatible install... ginstall
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/local/opt/gnu-sed/bin/gsed
checking whether sed understands -r -i -e... yes
checking whether ln -s works... yes
checking for gcc... cc
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... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for ranlib... ranlib
checking for absolute path to gobjcopy...
checking for absolute path to gobjdump...
checking for absolute path to greadelf...
checking for bison... bison
checking for flex... flex
checking for gperf... gperf
checking for makeinfo... makeinfo
checking for cut... cut
checking for stat... stat
checking for readlink... readlink
checking for wget... wget
checking for tar... tar
checking for gzip... gzip
checking for bzip2... bzip2
checking for patch... /usr/bin/patch
checking for bash >= 3.1... /bin/bash
checking for GNU awk... /usr/local/opt/gawk/bin/awk
checking for GNU make >= 3.80... /usr/local/Library/ENV/4.3/make
checking whether /usr/local/Library/ENV/4.3/make sets $(MAKE)... yes
checking for GNU libtool >= 1.5.26... (cached) glibtool
checking for GNU libtoolize >= 1.5.26... (cached) glibtoolize
checking for GNU automake >= 1.10... /usr/local/opt/automake/bin/automake
checking for xz... xz
checking for cvs... cvs
checking for svn... svn
checking for inline... inline
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for working alloca.h... yes
checking for alloca... yes
checking libintl.h usability... no
checking libintl.h presence... no
checking for libintl.h... no
checking ncurses/ncurses.h usability... no
checking ncurses/ncurses.h presence... no
checking for ncurses/ncurses.h... no
checking ncurses/curses.h usability... no
checking ncurses/curses.h presence... no
checking for ncurses/curses.h... no
checking ncursesw/curses.h usability... no
checking ncursesw/curses.h presence... no
checking for ncursesw/curses.h... no
checking ncurses.h usability... yes
checking ncurses.h presence... yes
checking for ncurses.h... yes
checking for library containing initscr... -lncurses
configure: creating ./config.status
config.status: creating Makefile
==> make install
make install
SED 'ct-ng'
SED 'scripts/crosstool-NG.sh'
SED 'scripts/saveSample.sh'
SED 'scripts/showTuple.sh'
GEN 'paths.mk'
GEN 'config/configure.in'
GEN 'paths.sh'
SED 'docs/ct-ng.1'
DEP 'nconf.gui.dep'
MKDIR '/usr/local/Cellar/crosstool-ng/1.16.0/bin/'
RMDIR '/usr/local/Cellar/crosstool-ng/1.16.0/lib/ct-ng.1.16.0/'
DEP 'nconf.dep'
DEP 'lxdialog/yesno.dep'
DEP 'lxdialog/util.dep'
DEP 'lxdialog/textbox.dep'
DEP 'lxdialog/menubox.dep'
DEP 'lxdialog/inputbox.dep'
DEP 'lxdialog/checklist.dep'
DEP 'mconf.dep'
DEP 'conf.dep'
BISON 'zconf.tab.c'
MKDIR '/usr/local/Cellar/crosstool-ng/1.16.0/lib/ct-ng.1.16.0/'
GPERF 'zconf.hash.c'
MKDIR '/usr/local/Cellar/crosstool-ng/1.16.0/share/doc/crosstool-ng/ct-ng.1.16.0/'
LEX 'lex.zconf.c'
MKDIR '/usr/local/Cellar/crosstool-ng/1.16.0/share/man/man1/'
DEP 'zconf.tab.dep'
For auto-completion, do not forget to install 'ct-ng.comp' into
your bash completion directory (usually /etc/bash_completion.d)
GZIP 'docs/ct-ng.1.gz'
INST 'ct-ng'
INSTDIR 'config/'
INSTDIR 'contrib/'
INSTDIR 'patches/'
CC 'zconf.tab.o'
CC 'conf.o'
CC 'lxdialog/checklist.o'
CC 'lxdialog/inputbox.o'
CC 'lxdialog/menubox.o'
INSTDIR 'scripts/'
INST 'docs/*.txt'
CC 'lxdialog/textbox.o'
INST 'ct-ng.1.gz'
CC 'lxdialog/util.o'
CC 'lxdialog/yesno.o'
CC 'mconf.o'
CC 'nconf.o'
CC 'nconf.gui.o'
LD 'conf'
LD 'mconf'
LD 'nconf'
INST 'steps.mk'
INST 'paths'
INSTDIR 'samples/'
INST 'kconfig/'
==> Cleaning
==> Caveats
If building a cross compiler your may expirience the following error:
error: elf.h: No such file or directory
To fix it, perform the following:
curl https://raw.github.com/gist/3769372/98e0a084470d2d6be7b4b61551ef00d44c682b4a/elf.h > elf.h
sudo cp -p elf.h /usr/local/include/
==> Finishing up
ln -s ../Cellar/crosstool-ng/1.16.0/bin/ct-ng ct-ng
ln -s ../../../Cellar/crosstool-ng/1.16.0/share/man/man1/ct-ng.1.gz ct-ng.1.gz
ln -s ../../Cellar/crosstool-ng/1.16.0/share/doc/crosstool-ng crosstool-ng
ln -s ../Cellar/crosstool-ng/1.16.0/lib/ct-ng.1.16.0 ct-ng.1.16.0
ln -s ../../Cellar/crosstool-ng/1.16.0 crosstool-ng
ln -s ../Cellar/crosstool-ng/1.16.0 crosstool-ng
==> Summary
/usr/local/Cellar/crosstool-ng/1.16.0: 1402 files, 12M, built in 14 seconds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment