What version of Go are you using (go version
)?
Not applicable.
Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (go env
)?
- Operating system: Ubuntu Linux (kernel 5.15.0.54)
- Architecture: ARM64
- Compiler: clang 14.0.0
- cmake v3.22.1
- ninja v1.10.1
What did you do?
I followed the directions from this page on building gollvm: https://go.googlesource.com/gollvm I was at the step to run this command: ninja gollvm
What did you expect to see?
I expected all the files to be compiled successfully.
What did you see instead?
I saw this error message: llvm-project/llvm/tools/gollvm/passes/GoNilChecks.cpp:28:10: fatal error: 'llvm/ADT/None.h' file not found
include "llvm/ADT/None.h"
^~~~~~~~~~~~~~~~~
1 error generated.
Additional info: None.h is located here on my system: /usr/include/llvm-14/llvm/ADT/None.h
Comment From: programmingkidx
The commit of gollvm I am using is 0f6ef9bc2a14be0a5fdb0d05fc6bb2d5474bf0c6.
Comment From: dmitshur
CC @ianlancetaylor, @thanm.
Comment From: Lantern-r
I think it's because the latest llvm-project doesn't include None.h.
https://github.com/llvm/llvm-project/commit/397f2e9ebee8d8e45547e90dd05228d7f965df67
Comment From: ALTree
Fixed by this commit. Closing here.