|
From: | Dragiša Durić |
Subject: | Re: [Gm2] build on osx |
Date: | Thu, 10 Nov 2016 00:26:27 +0100 |
I am still stuck with this… Now I had tried various settings but error persists. I have this error: … gcc -g -DIN_GCC -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wc++-compat -fno-common -DHAVE_CONFIG_H -o stage1/gm2/cc1gm2 gm2/gm2-lang.o gm2/stor-layout.o gm2/m2pp.o gm2/gm2-gcc/m2assert.o gm2/gm2-gcc/m2block.o gm2/gm2-gcc/m2builtins.o gm2/gm2-gcc/m2except.o gm2/gm2-gcc/m2convert.o gm2/gm2-gcc/m2decl.o gm2/gm2-gcc/m2expr.o gm2/gm2-gcc/m2linemap.o gm2/gm2-gcc/m2statement.o gm2/gm2-gcc/m2type.o gm2/gm2-gcc/m2tree.o gm2/gm2-gcc/m2treelib.o gm2/gm2-gcc/m2top.o gm2/gm2-gcc/m2misc.o gm2/gm2-gcc/init.o gm2/gm2-compiler-boot/m2flex.o \ attribs.o \ gm2/gm2-compiler-boot/gm2.a gm2/gm2-libs-boot/libgm2.a gm2/p2c/p2c-src/src/libp2c.a \ main.o tree-browser.o libbackend.a libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a -lintl -liconv ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -Lyes/lib -Lyes/lib -lmpc -lmpfr -lgmp -lz ld: warning: directory not found for option '-Lyes/lib' ld: warning: directory not found for option '-Lyes/lib' /Users/dragisha/gm2/build-4.7.3/./gcc/xgcc -B/Users/dragisha/gm2/build-4.7.3/./gcc/ -dumpspecs > tmp-specs /bin/bash: line 1: 23372 Segmentation fault: 11 /Users/dragisha/gm2/build-4.7.3/./gcc/xgcc -B/Users/dragisha/gm2/build-4.7.3/./gcc/ -dumpspecs > tmp-specs make[2]: *** [specs] Error 139 make[1]: *** [all-gcc] Error 2 make: *** [all] Error 2 My gcc is MacPorts one: narsil:dragisha/s000: ~/gm2% gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/x86_64-apple-darwin15/4.8.5/lto-wrapper Target: x86_64-apple-darwin15 Configured with: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc48/gcc48/work/gcc-4.8.5/configure --prefix=/opt/local --build=x86_64-apple-darwin15 --enable-languages=c,c++,objc,obj-c++,lto,fortran,java --libdir=/opt/local/lib/gcc48 --includedir=/opt/local/include/gcc48 --infodir=/opt/local/share/info --mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-4.8 --with-local-prefix=/opt/local --with-system-zlib --disable-nls --program-suffix=-mp-4.8 --with-gxx-include-dir=/opt/local/include/gcc48/c++/ --with-gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local --with-isl=/opt/local --disable-isl-version-check --with-cloog=/opt/local --disable-cloog-version-check --enable-stage1-checking --disable-multilib --enable-lto --enable-libstdcxx-time --with-as=/opt/local/bin/as --with-ld=/opt/local/bin/ld --with-ar=/opt/local/bin/ar --with-bugurl=https://trac.macports.org/newticket --with-pkgversion='MacPorts gcc48 4.8.5_0' Thread model: posix gcc version 4.8.5 (MacPorts gcc48 4.8.5_0) My build script is: TARGET=x86_64-apple-darwin15 # Macbook Pro LANGUAGES=c,c++,gm2 cd $HOME/gm2 GCC=4.7.3 rm -rf build-${GCC} mkdir build-${GCC} cd build-${GCC} echo -n "checking for multiarch headers:" gcc -print-multiarch LIBRARY_PATH=/opt/local/lib/$(gcc -print-multiarch) CPATH=/opt/local/include/$(gcc -print-multiarch) export LIBRARY_PATH CPATH CFLAGS="-g" CBOOTFLAGS="-g" ../gcc-4.7.3+gm2-cvs-latest/configure --enable-languages=${LANGUAGES} \ --libexecdir=$HOME/opt/lib --enable-shared \ --enable-threads=posix \ --enable-clocale=gnu \ --with-gmp --with-mpfr \ --disable-multilib --disable-bootstrap \ --enable-checking=all \ --with-bugurl=mailto://address@hidden \ --enable-shared --enable-linker-build-id --with-system-zlib \ --build=$TARGET --host=$TARGET \ --target=$TARGET echo Set time ( ( make "SHELL=/bin/bash" && cd gcc && make check-gm2 ) >& build-log ) < /dev/null &
|
[Prev in Thread] | Current Thread | [Next in Thread] |