Page 1 of 1

Compiling esp clang tools

Posted: Thu Jun 27, 2024 6:11 am
by MikeColeGuru
Hi,

I am trying to compile a newer version of the esp-clang package for the platforms.

For example for version esp-17.0.1_20240419, the binary packages are here:
https://github.com/espressif/llvm-proje ... 1_20240419

I have compiled llvm/clang from the repo successfully.
Repo: https://github.com/espressif/llvm-project

However, I might be configuring llvm build wrong as the output does not include all the files included in the release.

For example these files and several others:

Code: Select all

xtensa-esp32-elf-clang-as
xtensa-esp32-elf-clang-ld
xtensa-esp32-elf-clang-objcopy
xtensa-esp32-elf-clang-objdump
xtensa-esp32s2-elf-clang-as
xtensa-esp32s2-elf-clang-ld
xtensa-esp32s2-elf-clang-objcopy
xtensa-esp32s2-elf-clang-objdump
xtensa-esp32s3-elf-clang-as
xtensa-esp32s3-elf-clang-ld
xtensa-esp32s3-elf-clang-objcopy
xtensa-esp32s3-elf-clang-objdump
Is there a script somewhere (or instructions) that builds all of the releases for all of the platforms?

Thanks!

Re: Compiling esp clang tools

Posted: Wed Sep 11, 2024 2:51 pm
by dkovar
If I understand your question correctly, you need to hand this to cmake:
-DLLVM_ENABLE_PROJECTS='bolt;clang;clang-tools-extra;compiler-rt;cross-project-tests;libclc;lld;lldb;mlir;openmp;polly;pstl