[llvm-dev] Core dump Compiling with clang sample

Dave Ryan via llvm-dev llvm-dev at lists.llvm.org
Sun Jan 31 18:56:57 PST 2016


All,

 

I successfully compiled all of llvm, clang etc for Solaris SPARC however
when I try and compile with clang I get 'Unsupported architecture'. Help, is
this really true or did I forget to setup a path?

 

Thanks in Advance,

Dave

 

dave at athena:~$ clang hello.c -o hello

Unsupported architecture

UNREACHABLE executed at
/home/dave/llvm/tools/clang/lib/Driver/Tools.cpp:6745!

0  libLLVM-3.7.so 0xfef7ff0c llvm::sys::PrintStackTrace(llvm::raw_ostream&)
+ 36

1  libLLVM-3.7.so 0xfef7f710 SignalHandler(int) + 504

2  libc.so.1      0xf68a8470 __sighndlr + 12

3  libc.so.1      0xf689b3fc call_user_handler + 880

4  libc.so.1      0xf689b704 sigacthandler + 88

5  libc.so.1      0xf68acf50 __lwp_sigqueue + 8

6  libc.so.1      0xf682988c abort + 200

7  libLLVM-3.7.so 0xfef61318 llvm::llvm_unreachable_internal(char const*,
char const*, unsigned int) + 376

8  clang          0x00888a94
clang::driver::tools::solaris::Linker::ConstructJob(clang::driver::Compilati
on&, clang::driver::JobAction const&, clang::driver::InputInfo const&,
llvm::SmallVector<clang::driver::InputInfo, 4u> const&, llvm::opt::ArgList
const&, char const*) const + 1348

9  clang          0x00835938
clang::driver::Driver::BuildJobsForAction(clang::driver::Compilation&,
clang::driver::Action const*, clang::driver::ToolChain const*, char const*,
bool, bool, char const*, clang::driver::InputInfo&) const + 1832

10 clang          0x00836174
clang::driver::Driver::BuildJobs(clang::driver::Compilation&) const + 356

11 clang          0x008373f0
clang::driver::Driver::BuildCompilation(llvm::ArrayRef<char const*>) + 3192

12 clang          0x0075a180 main + 3800

13 clang          0x00750160 _start + 92

Stack dump:

0.      Program arguments: clang hello.c -o hello

1.      Compilation construction

2.      Building compilation jobs

3.      Building compilation jobs

Abort (core dumped)

dave at athena:~$

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160131/54778292/attachment.html>


More information about the llvm-dev mailing list