[LLVMdev] linking a parser bitcode

Samuel Crow samuraileumas at yahoo.com
Fri Dec 4 13:41:50 PST 2009

Hello Anton,

Our main.bc was generated with the following command line:

llvm-g++ -Illvm\include -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -c -emit-llvm -omain.bc main.cpp

The amos.bc file was generated by our experimental llvm-peg parser generator whose internal workings are assembled internally using LLVM Assembly.  The parser generator links a C++ library bitcode with C bindings called libBasicFrontends.bc internally.  The command line for the libBasicFrontends.bc is similar to the llvm-g++ command line given above.  Is there anything we should be doing differently for the libBasicFrontends.bc file?

Also, as a quick update, the command line parser is now linking properly so only the SJ/LJ stuff is not linking correctly.

Kind regards,

--Sam Crow

----- Original Message ----
> From: Anton Korobeynikov <anton at korobeynikov.info>
> To: Samuel Crow <samuraileumas at yahoo.com>
> Cc: LLVM Developers Mailing List <llvmdev at cs.uiuc.edu>
> Sent: Fri, December 4, 2009 3:30:02 PM
> Subject: Re: [LLVMdev] linking a parser bitcode
> Hello
> > It is complaining about not being able to find __gxx_personality_sj0 and the 
> LLVM command line parser-related files.  What else do we need to link?
> This is personality function for sjlj eh. How the source bitcode files
> in questions were generated?
> -- 
> With best regards, Anton Korobeynikov
> Faculty of Mathematics and Mechanics, Saint Petersburg State University


More information about the llvm-dev mailing list