Skip to content

Trying to build from source fails because of go-llvm #5029

@lentscode

Description

@lentscode

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    info-neededWe need further information to help resolve

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions