...[ 92%] Built target llvm-configScanning dependencies of target llgomake[2]: *** No rule to make target 'bin/llvm-go', needed by 'bin/llgo'. Stop.CMakeFiles/Makefile2:18269: recipe for target 'tools/llgo/CMakeFiles/llgo.dir/all' failedmake[1]: *** [tools/llgo/CMakeFiles/llgo.dir/all] Error 2Makefile:137: recipe for target 'all' failedmake: *** [all] Error 2
Could someone give me some help please.I've attempted to build the system using the instructions in http://llvm.org/viewvc/llvm-project/llgo/trunk/README.TXT?view=markupHowever I did not understand what value I should put in for "/path/to/llvm-inst" in:cmake /path/to/llvm -DCMAKE_INSTALL_PREFIX=/path/to/llvm-inst
Therefore I did not provide a "-DCMAKE_INSTALL_PREFIX" setting ... the error message I have (after a very long build process) is:...[ 92%] Built target llvm-configScanning dependencies of target llgomake[2]: *** No rule to make target 'bin/llvm-go', needed by 'bin/llgo'. Stop.CMakeFiles/Makefile2:18269: recipe for target 'tools/llgo/CMakeFiles/llgo.dir/all' failedmake[1]: *** [tools/llgo/CMakeFiles/llgo.dir/all] Error 2Makefile:137: recipe for target 'all' failedmake: *** [all] Error 2I'm running on the latest Ubuntu with go 1.5 installed.
I'm particularly interested in investigating llgoi.
Thanks for taking the time to read this, please let me know what I should do to get it working if you know.
elliott@elliott-VirtualBox:~/llvm$ svn infoPath: .Working Copy Root Path: /home/elliott/llvmRelative URL: ^/llvm/trunkRepository Root: http://llvm.org/svn/llvm-projectRepository UUID: 91177308-0d34-0410-b5e6-96231b3b80d8Revision: 246532Node Kind: directorySchedule: normalLast Changed Author: ruiuLast Changed Rev: 246532Last Changed Date: 2015-09-01 07:01:53 +0100 (Tue, 01 Sep 2015)elliott@elliott-VirtualBox:~/llvm$ go envGOARCH="amd64"GOBIN=""GOEXE=""GOHOSTARCH="amd64"GOHOSTOS="linux"GOOS="linux"GOPATH="/home/elliott/go"GORACE=""GOROOT="/usr/local/go"GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"GO15VENDOREXPERIMENT=""CC="gcc"GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"CXX="g++"CGO_ENABLED="1"elliott@elliott-VirtualBox:~/llvm$ go versiongo version go1.5 linux/amd64elliott@elliott-VirtualBox:~/llvm$
elliott@elliott-VirtualBox:~/go/src/elliott/hw$ llvm-go run *.gohello, worldelliott@elliott-VirtualBox:~/go/src/elliott/hw$ llvm-go buildelliott@elliott-VirtualBox:~/go/src/elliott/hw$ ls -ltotal 2308-rwxr-xr-x 1 elliott elliott 2356520 Sep 2 09:57 hw-rw-rw-r-- 1 elliott elliott 78 Sep 1 07:19 hw.goelliott@elliott-VirtualBox:~/go/src/elliott/hw$ ./hwhello, world
--Elliott
You received this message because you are subscribed to the Google Groups "llgo-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to llgo-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
elliott@elliott-VirtualBox:~/go/src/elliott/hw$ llgo hw.goelliott@elliott-VirtualBox:~/go/src/elliott/hw$ ls -ltotal 2336-rwxrwxr-x 1 elliott elliott 26792 Sep 3 07:47 a.out
-rwxr-xr-x 1 elliott elliott 2356520 Sep 2 09:57 hw-rw-rw-r-- 1 elliott elliott 78 Sep 1 07:19 hw.go
elliott@elliott-VirtualBox:~/go/src/elliott/hw$ ./a.outhello, world
OK so llvm-go seems to be damn clever, and uses normal Go where it can...
elliott@elliott-VirtualBox:~/go/src/elliott/hw$ llgo hw.go -emit-llvm/tmp/llgo820448161.o: file not recognized: File format not recognisedcollect2: error: ld returned 1 exit statusgllgo: error: exit status 1
Thanks,Elliott