[cfe-dev] Unkown C++ abi?
Enea Zaffanella
zaffanella at cs.unipr.it
Sat Jun 12 07:04:05 PDT 2010
Seth Burleigh wrote:
> So im trying to build some simple code but when i run it it gives a seg
> fault with the message 'unkown c++ abi' i was able to run it awhile ago,
> which makes me believe that when i recompiled llvm + clang i did
> something wrong. Any ideas?
>
>
>
>
> llvm::raw_stdout_ostream ost;
> const DiagnosticOptions options;
> TextDiagnosticPrinter tdp(ost,options);//, dops);
> Diagnostic diag(&tdp);
> LangOptions lang;
> SourceManager sm(diag);
> FileManager fm;
> TargetOptions target_options;
> printf(LLVM_HOSTTRIPLE);
> target_options.Triple = "i686-pc-linux-gnu";//LLVM_HOSTTRIPLE;
Try adding
target_options.CXXABI = "itanium";
Documentation says it is the default, but a recent commit made the
comment obsolete.
Enea.
> TargetInfo *ti = TargetInfo::CreateTargetInfo(diag,target_options);
>
>
> ==>results in
> error: unknown C++ ABI ''
> i686-pc-linux-gnu
> Process finished
>
>
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>
More information about the cfe-dev
mailing list