[LLVMbugs] [Bug 15666] New: clang does not know Red Hat Linux ARM triplets armv7hl-redhat-linux and armv5tel-redhat-linux
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Apr 3 23:08:41 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=15666
Bug ID: 15666
Summary: clang does not know Red Hat Linux ARM triplets
armv7hl-redhat-linux and armv5tel-redhat-linux
Product: clang
Version: 3.2
Hardware: Other
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Driver
Assignee: unassignedclangbugs at nondot.org
Reporter: petersen at redhat.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Clang on Fedora ARM does not work well because clang does not
recognize the Fedora ARM triplets and fallback to software floating point,
causing build failures like this:
clang: warning: unknown platform, assuming -mfloat-abi=soft
In file included from In file included from fsck_messages.c:25:
In file included from /usr/include/assert.hIn file included from :36cache.c:
:In file included from /usr/include/features.h24::
399In file included from :
/usr/include/errno.h:28/usr/include/gnu/stubs.h:
In file included from :/usr/include/features.h7::39911:
: fatal error: /usr/include/gnu/stubs.h'gnu/stubs-soft.h' file not found:
7:11: fatal error: 'gnu/stubs-soft.h' file not found
# include <gnu/stubs-soft.h># include <gnu/stubs-soft.h>
:
See this Fedora ARM bug:
https://bugzilla.redhat.com/show_bug.cgi?id=803433
Earlier I tried a simple naive patch like:
--- llvm-3.2.src/tools/clang/lib/Driver/ToolChains.cpp~ 2012-12-17
00:59:27.000000000 +0900
+++ llvm-3.2.src/tools/clang/lib/Driver/ToolChains.cpp 2013-02-12
19:18:00.755164292 +0900
@@ -1054,10 +1054,12 @@
static const char *const ARMLibDirs[] = { "/lib" };
static const char *const ARMTriples[] = {
"arm-linux-gnueabi",
- "arm-linux-androideabi"
+ "arm-linux-androideabi",
+ "armv5tel-redhat-linux",
};
static const char *const ARMHFTriples[] = {
"arm-linux-gnueabihf",
+ "armv7hl-redhat-linux",
};
but it was not sufficient - maybe fixes are also needed to on the llvm side,
perhaps?
(Similarly ppc64-redhat-linux is also not supported.)
--
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/20130404/ec75c32e/attachment.html>
More information about the llvm-bugs
mailing list