gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gm2] build on osx


From: Dragiša Durić
Subject: Re: [Gm2] build on osx
Date: Thu, 10 Nov 2016 01:03:24 +0100

Also got same error, using same script and MacPorts gcc with gcc-4.7.4+gm2-git-latest.tar.gz
--
Dragiša Durić

On 10 Nov 2016, at 00:26, Dragiša Durić <address@hidden> wrote:

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 &

--
Dragiša Durić

On 26 Jun 2016, at 11:15, Dragiša Durić <address@hidden> wrote:

While building on OSX:

gcc   -g -fkeep-inline-functions -DIN_GCC   -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat -fno-common  -DHAVE_CONFIG_H  -o xgcc gcc.o ggc-none.o \
  gccspec.o driver-i386.o darwin-driver.o libcommon-target.a \
  libcommon.a ../libcpp/libcpp.a ./../intl/libintl.a  ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a 
gcc -c   -g -fkeep-inline-functions -DIN_GCC   -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat -fno-common  -DHAVE_CONFIG_H -I. -I. -I../../gcc-versionno/gcc -I../../gcc-versionno/gcc/. -I../../gcc-versionno/gcc/../include -I./../intl -I../../gcc-versionno/gcc/../libcpp/include -I/opt/local/include  -I../../gcc-versionno/gcc/../libdecnumber -I../../gcc-versionno/gcc/../libdecnumber/dpd -I../libdecnumber    ../../gcc-versionno/gcc/cppspec.c -o cppspec.o
gcc   -g -fkeep-inline-functions -DIN_GCC   -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat -fno-common  -DHAVE_CONFIG_H  -o cpp gcc.o ggc-none.o \
  cppspec.o driver-i386.o darwin-driver.o libcommon-target.a \
  libcommon.a ../libcpp/libcpp.a ./../intl/libintl.a  ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a 
/Users/dragisha/gcc-4.7.4+gm2-1.1.5/gm2/build/./gcc/xgcc -B/Users/dragisha/gcc-4.7.4+gm2-1.1.5/gm2/build/./gcc/ -dumpspecs > tmp-specs
/bin/sh: line 1: 69406 Segmentation fault: 11  /Users/dragisha/gcc-4.7.4+gm2-1.1.5/gm2/build/./gcc/xgcc -B/Users/dragisha/gcc-4.7.4+gm2-1.1.5/gm2/build/./gcc/ -dumpspecs > tmp-specs
make[3]: *** [specs] Error 139
make[2]: *** [all-stage1-gcc] Error 2
make[1]: *** [stage1-bubble] Error 2
make: *** [all] Error 2

--
Dragiša Durić

_______________________________________________
gm2 mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/gm2

_______________________________________________
gm2 mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/gm2


reply via email to

[Prev in Thread] Current Thread [Next in Thread]