[llvm-bugs] [Bug 52091] New: Building llvm 13 - Cross Compile - clang-ast-debug Exec format error
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Oct 6 07:09:30 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=52091
Bug ID: 52091
Summary: Building llvm 13 - Cross Compile - clang-ast-debug
Exec format error
Product: Build scripts
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: cmake
Assignee: unassignedbugs at nondot.org
Reporter: lancethepants at gmail.com
CC: llvm-bugs at lists.llvm.org
I'm cross-compiling clang, lld and ldb for an arm32 cpu. I previously
cross-compiled clang 12.0.1, and am now trying to now compile clang 13.
I first compile the requisite tools llvm-tblgen, clang-tblgen and lldb-tblgen
for the build system and then make sure to pass those to the cmake invocations
LLVM_TABLEGEN, CLANG_TABLEGEN LLDB_TABLEGEN so it knows where to find them when
needed in cross compilation.
With llvm 13 I'm now getting the error "clang-ast-dump: Exec format error". It
is attempting to run the cross-compiled 'clang-ast-dump' which of course won't
run on the build system. I built the host version of 'clang-ast-dump' but I
can't see any cmake variable to tell it the location of the build system's
'clang-ast-dump'. I attempted putting it ahead in the PATH but it doesn't
automatically pick it up that way.
Am I looking over a variable to pass this to cmake, or is there something I can
disable so it does not require 'clang-ast-dump'? I just want the c/c++
compiler, lld and ldb.
thanks,
Lance Fredrickson
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20211006/14e19f75/attachment.html>
More information about the llvm-bugs
mailing list