Question on test failure: LLVM :: Bindings/Go/go.test

(on trunk 258810)

I installed go (to play around with from glang.org) but it has caused my ‘llvm check-all’ build to fail the LLVM :: Bindings/Go/go.test test.

I’m not sure what triggered this test (setting $GOROOT?) but if someone could please point me to the docs on how to fix my setup or shutoff this test, many thanks!

MORE DETAILS (log from make check-all, and my setup of go)

The Go bindings are enabled if you have a 'go' executable in your $PATH and
it is at least Go 1.2.

I don't think there is a way to explicitly disable the bindings, but you
might try adding one (see llvm/cmake/config-ix.cmake).

Can you show us the rest of the output from make check-llvm?

Peter

I believe you can disable the tests using -DLLVM_INCLUDE_GO_TESTS=No.
This won't stop the bindings from being built though.

Peter Collingbourne via cfe-dev <cfe-dev@lists.llvm.org> writes:

I believe you can disable the tests using -DLLVM_INCLUDE_GO_TESTS=No.
This won't stop the bindings from being built though.

Yes this works. Thanks, but see below -- I think the tests should work.

Peter Collingbourne via cfe-dev <cfe-dev@lists.llvm.org> writes:
> The Go bindings are enabled if you have a 'go' executable in your $PATH
and
> it is at least Go 1.2.
>
> I don't think there is a way to explicitly disable the bindings, but you
> might try adding one (see llvm/cmake/config-ix.cmake).

The bindings seem to be building but my GOROOT is /home/tim/apps/go not
/usr/local/go

I searched around a bit and could not figure out how the GOROOT is lost in
the test. If I symlink /usr/local/go to my GOROOT the regression tests run
fine:

[100%] Running all regression tests
lit.py: lit.cfg:195: note: using clang:
'/home/tim/Source/llvm-trunk/build/./bin/clang'
Testing Time: 246.71s
  Expected Passes : 25722
  Expected Failures : 164
  Unsupported Tests : 516
[100%] Built target check-all
{tim@arkham:~/Source/llvm-trunk/build}

This is on Linux and GOROOT is exported in .profile as

# Go
export GOROOT=$HOME/apps/go
export PATH=$PATH:$GOROOT/bin

Any idea why the tests ignore this setting.

> Can you show us the rest of the output from make check-llvm?
>
> Peter

See text file attached (when it breaks due to my GOROOT setting)

make-check-all.txt (28.1 KB)