Open saltzm opened 2 days ago
gcc --version && as --version
?
$ gcc --version
gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
...
$ as --version
GNU assembler (GNU Binutils for Ubuntu) 2.34
...
$ cmake --version
cmake version 3.16.3
Ah, I just noticed this note from the build from source instructions:
LLVM, Clang, LLD development libraries == 18.x, compiled with the same gcc or clang version above
I just downloaded the binary directly from the llvm site rather than compiling from source locally, in case that makes a difference
compiled with the same gcc or clang version above
This is not likely to be the issue, I think. The problem here is more likely that your gcc
/as
versions are too old. Ubuntu should have newer versions in its repos with an explicit version suffix; I suggest trying with these first of all. So e.g. cmake .. -DCMAKE_PREFIX_PATH=<clang+llvm> -DCMAKE_C_COMPILER=gcc-12
.
For what it's worth, on my RPi5 running Debian Bookworm, gcc
is 12.2.0.
Interesting - the instructions say that only gcc >= 7.0.0 is required so I was going off of that. I'll try with an upgraded gcc and see what happens
I am attempting to build zig from source in an Ubuntu VM on a Macbook Pro with an M1 chip.
I used the clang+llvm binaries from here, choosing this one clang+llvm-18.1.8-aarch64-linux-gnu.tar.xz.
Used
And then I'm getting the following error: