Hi, I'm trying to compile the directory server component of dea_ng using gccgo (I'm on a platform, IBM s390x, that doesn't have a native gc compiler yet). It fails when trying to create the executable from runner.go:
root@pandb:~/dea_ng/go/src/runner# GOARCH=amd64 GOROOT=/usr/local/lib/go4.8 GOPATH=/root/dea_ng/go go install -compiler gccgo -x
WORK=/tmp/go-build681814294
mkdir -p $WORK/runner/_obj/
mkdir -p $WORK/runner/_obj/exe/
cd /root/dea_ng/go/src/runner
gccgo -I $WORK -I /root/dea_ng/go/pkg/gccgo_linux_amd64 -c -g -m64 -fgo-relative-import-path=_/root/dea_ng/go/src/runner -o $WORK/runner/_obj/main.o ./runner.go
ar cru $WORK/librunner.a $WORK/runner/_obj/main.o
cd .
gccgo -o $WORK/runner/_obj/exe/a.out $WORK/runner/_obj/main.o -Wl,-( -m64 /root/dea_ng/go/pkg/gccgo/
github.com/cloudfoundry/gosteno/libsyslog.a /root/dea_ng/go/pkg/gccgo/
launchpad.net/libgoyaml.a /root/dea_ng/go/pkg/gccgo/libcommon.a /root/dea_ng/go/pkg/gccgo/
github.com/howeyc/libfsnotify.a /root/dea_ng/go/pkg/gccgo/libdirectoryserver.a /root/dea_ng/go/pkg/gccgo/
github.com/cloudfoundry/libgosteno.a -framework CoreFoundation -framework Security -Wl,-)
# runner
gccgo: error: CoreFoundation: No such file or directory
gccgo: error: Security: No such file or directory
gccgo: error: unrecognized command line option ‘-framework’
gccgo: error: unrecognized command line option ‘-framework’
The gccgo version I'm using is 4.8.1:
root@pandb:~/dea_ng/go/src/runner# gccgo -v
Using built-in specs.
COLLECT_GCC=gccgo
COLLECT_LTO_WRAPPER=/usr/lib/gcc/s390x-linux-gnu/4.8/lto-wrapper
Target: s390x-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.8.1-10' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libitm --disable-libsanitizer --disable-libquadmath --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-s390x/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-s390x --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-s390x --with-arch-directory=s390x --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --with-long-double-128 --enable-checking=release --build=s390x-linux-gnu --host=s390x-linux-gnu --target=s390x-linux-gnu
Thread model: posix
gcc version 4.8.1 (Debian 4.8.1-10)
Is there any way around this? Thank you.