[llvm-dev] How to make .ll file compiled on linux work on mac?
Anton Korobeynikov via llvm-dev
llvm-dev at lists.llvm.org
Fri Jan 25 01:38:33 PST 2019
No. It seem you're trying to use LLVM IR obtained via compilation of C
code. This is not target neutral.
On Fri, Jan 25, 2019 at 8:40 AM Peng Yu via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
>
> Hi,
>
> I got the following error when I run a bc file (compiled on Linux with
> -flto and ld.gold) on Mac. Is there an easy way to make it work on
> Mac? Thanks.
>
> $ lli bash.0.0.preopt.bc
> Stack dump:
> 0. Program arguments: lli bash.0.0.preopt.bc
> 0 lli 0x0000000106a5d922
> llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37
> 1 lli 0x0000000106a5dd26 SignalHandler(int) + 200
> 2 libsystem_platform.dylib 0x00007fff56cfef5a _sigtramp + 26
> 3 libsystem_platform.dylib 0x00007ffee9762b90 _sigtramp + 2460367952
> 4 lli 0x00000001067df045
> llvm::MCJIT::runFunction(llvm::Function*,
> llvm::ArrayRef<llvm::GenericValue>) + 535
> 5 lli 0x0000000106771ae7
> llvm::ExecutionEngine::runFunctionAsMain(llvm::Function*,
> std::__1::vector<std::__1::basic_string<char,
> std::__1::char_traits<char>, std::__1::allocator<char> >,
> std::__1::allocator<std::__1::basic_string<char,
> std::__1::char_traits<char>, std::__1::allocator<char> > > > const&,
> char const* const*) + 1159
> 6 lli 0x000000010649eb84 main + 9104
> 7 libdyld.dylib 0x00007fff569f0015 start + 1
> 8 libdyld.dylib 0x0000000000000002 start + 2841706478
> Segmentation fault: 11
>
> --
> Regards,
> Peng
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
--
With best regards, Anton Korobeynikov
Department of Statistical Modelling, Saint Petersburg State University
More information about the llvm-dev
mailing list