HowTo: Compiling GDC (v2) on Mac OS X Lion (10.7.x)
Mikko Ronkainen
mikoro at iki.fi
Wed Dec 18 15:24:56 PST 2013
I'm having problems compiling GDC on Mac OS X 10.9.
I have setup the build with these instructions:
http://gdcproject.org/wiki/Installation/General
Installed xcode command line tools. I have not installed full
Xcode.
Installed GCC 4.8 from macports and set it as default gcc (gcc -v
says gcc version 4.8.2 (MacPorts gcc48 4.8.2_0)).
Checked out gdc-4.8 branch.
Downloaded gcc-4.8.2 sources, ran setup-gcc.sh.
Commented out the AVX stuff as mentioned above.
Configured and built in a separate directory with:
../gcc-4.8.2/configure \
--prefix=/opt/gdc \
--enable-languages=d \
--disable-bootstrap \
--enable-checking=yes \
--disable-multilib \
--disable-nls \
--disable-libgomp \
--disable-libmudflap \
--with-gmp=/opt/local \
--with-mpfr=/opt/local \
--with-mpc=/opt/local \
--with-system-zlib=/opt/local
I have no idea at what stage does the build fail, but here are
the last lines:
Making all in doc
make[4]: Nothing to be done for `all'.
Making all in po
make[4]: Nothing to be done for `all'.
Making all in testsuite
make[4]: Nothing to be done for `all'.
Making all in python
sed -e 's, at pythondir@,/opt/gdc/share/gcc-4.8.2/python,' \
-e 's, at toolexeclibdir@,/opt/gdc/lib,' <
../../../../gcc-4.8.2/libstdc++-v3/python/hook.in > gdb.py
true "AR_FLAGS=rc" "CC_FOR_BUILD=gcc"
"CC_FOR_TARGET=/Users/mikko/gdc/objdir/./gcc/xgcc
-B/Users/mikko/gdc/objdir/./gcc/" "CFLAGS=-g -O2" "CXXFLAGS=-g
-O2" "CFLAGS_FOR_BUILD=-g -O2" "CFLAGS_FOR_TARGET=-g -O2"
"INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c
-m 644" "INSTALL_PROGRAM=/usr/bin/install -c"
"INSTALL_SCRIPT=/usr/bin/install -c" "LDFLAGS=" "LIBCFLAGS=-g
-O2" "LIBCFLAGS_FOR_TARGET=-g -O2"
"MAKE=/Library/Developer/CommandLineTools/usr/bin/make"
"MAKEINFO=makeinfo --split-size=5000000 --split-size=5000000 "
"SHELL=/bin/sh" "RUNTESTFLAGS=" "exec_prefix=/opt/gdc"
"infodir=/opt/gdc/share/info" "libdir=/opt/gdc/lib"
"includedir=/opt/gdc/include" "prefix=/opt/gdc"
"tooldir=/opt/gdc/x86_64-apple-darwin13.0.0"
"gxx_include_dir=/opt/gdc/include/c++/4.8.2" "AR=ar"
"AS=/Users/mikko/gdc/objdir/./gcc/as"
"LD=/Users/mikko/gdc/objdir/./gcc/collect-ld" "RANLIB=ranlib"
"NM=/Users/mikko/gdc/objdir/./gcc/nm" "NM_FOR_BUILD="
"NM_FOR_TARGET=nm" "DESTDIR=" "WERROR=" DO=all multi-do #
/Library/Developer/CommandLineTools/usr/bin/make
make: *** [all] Error 2
Any ideas what's wrong?
More information about the D.gnu
mailing list