You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a very simple swig project folder consisting of one .h file, one .cc file, one
.swigcxx file, and one go file. I'm running go 1.3.1 on Mac.
Running:
$ go build hippo/native
gives me "can't compile multiple files"
Drilling down further gives me:
===
WORK=/var/folders/vt/kwy8ctbx76bfgnm26ys88yrh0000gn/T/go-build622156101
mkdir -p $WORK/hippo/native/_obj/
mkdir -p $WORK/hippo/native/_obj/exe/
cd /Users/jphilbin/code/hippo/src/hippo/native
clang++ -I . -fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments
-fmessage-length=0 -fno-common -g -O2 -o $WORK/hippo/native/_obj/tensor.cc.o -c
./tensor.cc
swig -version
cd $WORK
/usr/local/go/pkg/tool/darwin_amd64/6g -o ./hippo/native/_obj/_go_.6 -trimpath . -p
command-line-arguments -complete -D _$WORK ./swig_intsize.go
cd /Users/jphilbin/code/hippo/src/hippo/native
swig -go -intgosize 32 -module native -o $WORK/hippo/native/_obj/native_wrap.cxx -outdir
$WORK/hippo/native/_obj/ -c++ native.swigcxx
/usr/local/go/pkg/tool/darwin_amd64/6c -F -V -w -trimpath $WORK -I
$WORK/hippo/native/_obj/ -I /usr/local/go/pkg/darwin_amd64 -o
$WORK/hippo/native/_obj/native_gc.6 -D GOOS_darwin -D GOARCH_amd64
$WORK/hippo/native/_obj/native_gc.c
# hippo/native
can't compile multiple files
===
I'm pretty sure that the argument to -trimpath is part of the problem as when I manually
run 6c without that flag it compiles fine. Can attach the source files if needed.
The text was updated successfully, but these errors were encountered:
Is there any chance that you are mixing multiple versions of Go? Do you have the GOROOT
environment variable set? (It's normally not needed.) Are you sure that
/usr/local/go/pkg/tool/darwin_amd64/6c is from Go 1.3.1?
by philbinj:
The text was updated successfully, but these errors were encountered: