Skip to content

Build the host compiler fail on MAC OS X

Following the readme file. I get below error when run 'make && make install' for build the host compier:

cd build; /Applications/Xcode.app/Contents/Developer/usr/bin/make
cd c; /Applications/Xcode.app/Contents/Developer/usr/bin/make
if test -f ../CROSS-DPP; then touch dpp; else \
gcc -I/Users/myusername/Applications/ecl/src/c -I/Users/myusername/Applications/ecl/build -I./ /Users/myusername/Applications/ecl/src/c/dpp.c    -m32 -g -O2 -fPIC -fno-common -D_THREAD_SAFE -Ddarwin -o dpp ; \
fi
ld: can't write output file: dpp for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: myusername [dpp] Error 1
make[1]: myusername [libeclmin.a] Error 2
make: myusername [all] Error 2

my gcc version:

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 7.0.2 (clang-700.1.81)
Target: x86_64-apple-darwin15.2.0
Thread model: posix

Could you help me figure out what happened?