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
$/tmp/workspace/clang_debug/bin/llvm-goc --version
gollvm version 1 (experimental) [LLVM version 12]
$/tmp/workspace/clang_debug/tools/gollvm/gotools/cgo -V
cgo version go1.14.6 gollvm LLVM 12.0.0git
Does this issue reproduce with the latest release?
I didn't build gollvm for Golang 1.15 - so not sure (yet).
What operating system and processor architecture are you using (go env)?
Ubuntu 20 x86_64$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Intel(R) Core(TM)2 Quad CPU Q9400 @ 2.66GHz Output
It was compile using
$cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=clang++ -D CMAKE_C_COMPILER=clang -DCMAKE_CXX_FLAGS=-stdlib=libc++ -DLLVM_USE_LINKER=gold -DLLVM_TARGETS_TO_BUILD="X86;ARM;RISCV;AArch64" -G Ninja ../llvm-project/llvm
I am not targeting 3rd party back-ends, for now - but enabled those, to ensure that it would compile.
Exporting PATH and LD_LIBRARY_PATH did the trick - but I wasn't using enforced installation target (for Ninja).
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
I didn't build gollvm for Golang 1.15 - so not sure (yet).
What operating system and processor architecture are you using (
go env
)?Ubuntu 20 x86_64
$ cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 23 model name : Intel(R) Core(TM)2 Quad CPU Q9400 @ 2.66GHz
OutputWhat did you do?
Well, I took my debug build (cause I was not able to use my release build https://drive.google.com/file/d/1g-poP_5C_BaeUWPD9eIvFNCfnl28yjH9/view?usp=sharing using https://go.googlesource.com/gollvm/#using instructions - so I took my debug release https://drive.google.com/file/d/1g8vk15zX944li6Qzg_BLPUG9OFGfOqvQ/view?usp=sharing .
It was compile using
$cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=clang++ -D CMAKE_C_COMPILER=clang -DCMAKE_CXX_FLAGS=-stdlib=libc++ -DLLVM_USE_LINKER=gold -DLLVM_TARGETS_TO_BUILD="X86;ARM;RISCV;AArch64" -G Ninja ../llvm-project/llvm
I am not targeting 3rd party back-ends, for now - but enabled those, to ensure that it would compile.
Exporting PATH and LD_LIBRARY_PATH did the trick - but I wasn't using enforced installation target (for Ninja).
I was trying to compile (file-by-file) the source code of StreamSets Data Collector Edge .
$ git clone https://github.com/streamsets/datacollector-edge
ubuntu@ubuntu:/media/ubuntu/b23fdd4f-ed60-4566-85e3-d738616745c5$
ubuntu@ubuntu:/media/ubuntu/b23fdd4f-ed60-4566-85e3-d738616745c5/datacollector-edge$ llvm-goc main.go
ubuntu@ubuntu:/media/ubuntu/b23fdd4f-ed60-4566-85e3-d738616745c5/datacollector-edge/api/fieldtype$ llvm-goc field_type.go
llvm-goc: /tmp/workspace/llvm-project/llvm/tools/gollvm/driver/GnuTools.cpp:366: virtual bool gnutools::Linker::constructCommand(gollvm::driver::Compilation &, const gollvm::driver::Action &, const gollvm::driver::ArtifactList &, const gollvm::driver::Artifact &): Assertion `llvm::sys::path::is_absolute(executable)' failed.
l
What did you expect to see?
Either a compiled executable or an assemly source file.
What did you see instead?
Gollvm crashed.
So this is the file, which I tried to compile:
https://github.com/streamsets/datacollector-edge/blob/master/api/fieldtype/field_type.go
Referenced source code, for gollvm project, is related to this line/file:
https://go.googlesource.com/gollvm/+/refs/heads/master/driver/GnuTools.cpp#366
If there is anything that I could run/debug/trace - please let me know.
Ivan
The text was updated successfully, but these errors were encountered: