Tiny Core Extensions > TCE Talk

Compiling with clang

(1/1)

Juanito:
In case anybody has had problems compiling with clang - here a a couple of fixes that help when clang complains it cannot find one or more of the gcc c++ header files:

Make llvm-config an actual file rather than a symlink:
--- Code: ---sudo cp /tmp/tcloop/llvm19-dev/usr/local/bin/llvm-config /usr/local/bin
--- End code ---

Make clang-19 an actual file and redo symlinks to it:
--- Code: ---sudo cp /tmp/tcloop/clang/usr/local/bin/clang-19 /usr/local/bin
cd /usr/local/bin
sudo ln -sf clang-19 clang
sudo ln -sf clang-19 clang++
--- End code ---

Navigation

[0] Message Index

Go to full version