https://llvm.org/bugs/show_bug.cgi?id=23415
Bug ID: 23415
Summary: Unexpected arch error
Product: clang
Version: 3.6
Hardware: Other
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
I am trying to build LLVM/Clang-3.6.0 on a Raspberry Pi 1 Development board.
I followed the instructions on the LLVM.org site to build LLVM/Clang from
source.
Here is my configure command:
./configure --prefix=/home/pi/llvm/build --build=armv6l-unknown-linux-gnueabihf
--host=armv6l-unknown-linux-gnueabihf --target=armv6l-unknown-linux-gnueabihf
--with-cpu=arm1176jzf-s --with-float=hard --with-abi=aapcs-vfp --with-fpu=vfp
--enable-targets=arm --enable-optimized --enable-assertions --enable-shared
The Build was successfull.
But when I tried to compile a simple helloworld.c program I am getting
following errors:
pi@raspberrypi ~ $ clang hello.c
Unexpected arch
UNREACHABLE executed at Tools.cpp:7410!
Stack dump:
0. Program arguments: clang hello.c
1. Compilation construction
2. Building compilation jobs
3. Building compilation jobs
Aborted
pi@raspberrypi ~ $ clang -c hello.c
error: unknown target triple 'armv6l-unknown-linux-gnueabihf', please use
-triple or -arch
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs