Hi,

Those constants are supposed to be defined in the generated file
<buildarea>/tools/gollvm/libgo/zgoarch.go, which is written as out part of
the gollvm build process, e.g. here

https://go.googlesource.com/gollvm/+/253c122ed62d5e9a32a9806e83c47a389a6435bf/cmake/modules/AutoGenGo.cmake#63

What does the zgoarch.go file look like in your build area?

Thanks, Than


On Wed, Oct 19, 2022 at 8:20 AM Alex Markin <alexan...@gmail.com> wrote:

> Hello.
>
> I'm trying to build gollvm on my gentoo system and get the following error:
>
> FAILED: tools/gollvm/libgo/internal/.pic/goarch.o
> /home/alex/test/gollvm/build-debug/tools/gollvm/libgo/internal/.pic/goarch.o
>
> cd /home/alex/test/gollvm/build-debug/tools/gollvm/libgo && /usr/bin/cmake
> -E make_directory ./internal/.pic &&
> /home/alex/test/gollvm/build-debug/./bin/llvm
> -goc -c -o
> /home/alex/test/gollvm/build-debug/tools/gollvm/libgo/internal/.pic/goarch.o
> -fPIC -fgo-pkgpath=internal/goarch -I . /home/alex/test/gollvm/llvm-p
> roject/llvm/tools/gollvm/gofrontend/libgo/go/internal/goarch/goarch.go
> /home/alex/test/gollvm/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/internal/goarch/goarch.go:15:35:
> error: reference to undefined name '_ArchFamily'
> /home/alex/test/gollvm/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/internal/goarch/goarch.go:18:19:
> error: reference to undefined name '_BigEndian'
> /home/alex/test/gollvm/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/internal/goarch/goarch.go:21:29:
> error: reference to undefined name '_DefaultPhysPa
> geSize'
> /home/alex/test/gollvm/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/internal/goarch/goarch.go:25:19:
> error: reference to undefined name '_PCQuantum'
> /home/alex/test/gollvm/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/internal/goarch/goarch.go:28:20:
> error: reference to undefined name '_Int64Align'
> /home/alex/test/gollvm/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/internal/goarch/goarch.go:35:22:
> error: reference to undefined name '_MinFrameSize'
> /home/alex/test/gollvm/llvm-project/llvm/tools/gollvm/gofrontend/libgo/go/internal/goarch/goarch.go:39:20:
> error: reference to undefined name '_StackAlign'
>
> What can be the reason of such error? On another ubuntu system everything
> goes correctly.
>
> The cmake line:
>
> cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=clang++
> -DCMAKE_C_COMPILER=clang -G Ninja ../llvm-project/llvm
>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-nuts+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/golang-nuts/9ad0d8dc-d118-45d2-984e-9cdf36ab4f28n%40googlegroups.com
> <https://groups.google.com/d/msgid/golang-nuts/9ad0d8dc-d118-45d2-984e-9cdf36ab4f28n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CA%2BUr55GV3enisrghVbCjf0FauPif3mPgMOrzPCMUBBpK2LdUsQ%40mail.gmail.com.

Reply via email to