runtimejs / runtime

[not maintained] Lightweight JavaScript library operating system for the cloud
http://runtimejs.org
Apache License 2.0
1.93k stars 128 forks source link

configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. #19

Closed groundwater closed 10 years ago

groundwater commented 10 years ago

Trying to build on OSX. Do i need to go install these, or did I mis-configure it?

export PATH=/Users/jacob/Projects/NodeOS/runtime/cross/bin:/Users/jacob/Projects/NodeOS/runtime/cross/fasm:$PATH
export PREFIX=/Users/jacob/Projects/NodeOS/runtime/cross
export TARGET=x86_64-elf
mkdir -p build-gcc && cd build-gcc && \
        ../gcc-4.9.0/configure --target=x86_64-elf --prefix="/Users/jacob/Projects/NodeOS/runtime/cross" --disable-nls --enable-languages=c,c++ --without-headers && \
            make all-gcc && make all-target-libgcc && make install-gcc && make install-target-libgcc
checking build system type... x86_64-apple-darwin13.2.0
checking host system type... x86_64-apple-darwin13.2.0
checking target system type... x86_64-pc-elf
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/bin/sed
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking for libatomic support... no
checking for libcilkrts support... no
checking for libitm support... no
checking for libsanitizer support... no
checking for libvtv support... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
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 g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
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... no
configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
their locations.  Source code for these libraries can be found at
their respective hosting sites as well as at
ftp://gcc.gnu.org/pub/gcc/infrastructure/.  See also
http://gcc.gnu.org/install/prerequisites.html for additional info.  If
you obtained GMP, MPFR and/or MPC from a vendor distribution package,
make sure that you have installed both the libraries and the header
files.  They may be located in separate packages.
make: *** [build-gcc] Error 1
iefserge commented 10 years ago

Check out this links http://wiki.osdev.org/GCC_Cross-Compiler (Mac OS X Users section) http://apple.stackexchange.com/questions/38222/how-do-i-install-gcc-via-homebrew/38247#38247

brew install gmp
brew install mpfr
brew install libmpc
groundwater commented 10 years ago

Got this working :+1: