[llvm-bugs] [Bug 47036] New: Clang: The "x86_64-unknown-elf" target does not define __ELF__

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Aug 7 06:34:54 PDT 2020


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

            Bug ID: 47036
           Summary: Clang: The "x86_64-unknown-elf" target does not define
                    __ELF__
           Product: clang
           Version: 10.0
          Hardware: PC
                OS: other
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: kaeptmblaubaer1000 at gmail.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
                    neeilans at live.com, richard-llvm at metafoo.co.uk

kb1000 <kaeptmblaubaer1000 at gmail.com>

Do., 6. Aug., 22:17 (vor 17 Stunden)

an Visual
Minimal reproduction:
clang -E -dM -target x86_64-unknown-elf -x c /dev/null
vs.
clang -E -dM -target x86_64-unknown-linux-elf -x c /dev/null

While you won't see __ELF__ for the first command, you will see it for the
second command.
Please note that I only verified this against clang 10.0.1.
I originally noticed this while trying to compile the Firework Kernel
(https://github.com/Firework-OS/Kernel) on Termux, which uses libc++, which in
turn complains if it does not detect the object file format.

-- 
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/20200807/c931c52d/attachment.html>


More information about the llvm-bugs mailing list