You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm trying to apply the expressif/llvm-project's Xtensa support on the apple/llvm-project to make the Swift for tensorflow tool chain available for esp32. Here is the patch I have applied . My general idea is to build the ML/AI models using S4TF and optimize it to run it on the esp32 cam. For this purpose I'm trying to cross compile the toolchain by applying the xtensa patch on the apple/llvm-project on swift/tensorflow branch.
I'm not sure what is the exact cause though. I looked at the other implementations of Disassembler I find the similar code. So I cannot pin point the exact reason for failure. But I'm guessing it is something related to the include which is happening
I'm not sure how this file is generated. But this inc file doesn't have any include guards. So I'm suspecting this could be causing this error.
Any inputs on how to fix this error will be helpful.
I'm not an expert in this cross compilation stuff. If this approach of creating a custom patch is not correct. Any inputs on the best practice/industry standard on how to do the same is appreciated.
The text was updated successfully, but these errors were encountered:
Santhosh-KS
changed the title
Compilation failure
Compilation failure when trying to add xtensa as custom patch on apple/llvm-project
Sep 27, 2020
Hi,
I'm trying to apply the expressif/llvm-project's Xtensa support on the apple/llvm-project to make the Swift for tensorflow tool chain available for esp32. Here is the patch I have applied . My general idea is to build the ML/AI models using S4TF and optimize it to run it on the esp32 cam. For this purpose I'm trying to cross compile the toolchain by applying the xtensa patch on the apple/llvm-project on swift/tensorflow branch.
When I am trying to build the espressif/llvm-project fork with the set of toolchains with clang support suggested here, I am facing the following error.
Here is the build command I'm using
cmake -G Ninja -DCMAKE_CROSSCOMPILING=True -DCMAKE_INSTALL_PREFIX=/opt/my_esp32_clang -DLLVM_DEFAULT_TARGET_TRIPLE=xtensa-esp32-elf-clang -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=Xtensa --sysroot=/home/gl-245/esp_stuff/xtensa-esp32-elf-clang --target xtensa-esp32-elf-clang -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="clang;libcxx;libcxxabi" --tool-chain=/home/gl-245/esp_stuff/xtensa-esp32-elf-clang ../llvm
Initially I got some errors on
LLVM_EXTERNAL_VISIBILITY
I fixed as follows by usingLLVM_LIBRARY_VISIBILITY
Can you please confirm if this fix is correct?
Here is the error I'm facing.
I'm not sure what is the exact cause though. I looked at the other implementations of Disassembler I find the similar code. So I cannot pin point the exact reason for failure. But I'm guessing it is something related to the include which is happening
I'm not sure how this file is generated. But this inc file doesn't have any include guards. So I'm suspecting this could be causing this error.
Any inputs on how to fix this error will be helpful.
I'm not an expert in this cross compilation stuff. If this approach of creating a custom patch is not correct. Any inputs on the best practice/industry standard on how to do the same is appreciated.
The text was updated successfully, but these errors were encountered: