[llvm-bugs] [Bug 52106] New: Cross Compiling Clang Build is broken in Clang 13

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Oct 7 08:50:35 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=52106

            Bug ID: 52106
           Summary: Cross Compiling Clang Build is broken in Clang 13
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Tooling
          Assignee: unassignedclangbugs 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.

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' like with the various TABLEGEN.  I attempted putting it ahead
in the PATH but it doesn't automatically pick it up that way.

The issue was also brought up in this thread.
https://reviews.llvm.org/D93164/new/

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/20211007/609e36ae/attachment.html>


More information about the llvm-bugs mailing list