tinygo icon indicating copy to clipboard operation
tinygo copied to clipboard

Trying to build from source fails because of `go-llvm`

Open lentscode opened this issue 3 months ago • 13 comments

I was trying to build tinygo from source using the guide. I'm on a Mac Mini M4, with fresh llvm and lld installed via Homebrew.

However, when doing go install the following error appears:

# tinygo.org/x/go-llvm
../../go/pkg/mod/tinygo.org/x/[email protected]/version.go:16:10: fatal error: 'llvm/Config/llvm-config.h' file not found
   16 | #include "llvm/Config/llvm-config.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

Don't know if ever happened before. I checked the current version of version.go in go-llvm and the line that contains the include is commented out.

lentscode avatar Sep 08 '25 16:09 lentscode