[LLVMdev] Weird Exception Handling Compilation Bug

Bill Wendling isanbard at gmail.com
Mon Sep 10 15:12:56 PDT 2007


On 9/10/07, Chris Lattner <sabre at nondot.org> wrote:
> On Mon, 10 Sep 2007, Bill Wendling wrote:
> > When I compile the following program with llvm-gcc on Mac x86, it segfaults:
> > However, if I compile it to a .s file and then compile it with gcc, it
> > works fine:
> > This is weird. Anyone have an idea of what's going on?
>
> They are probably linking against different libstdc++ versions.  Passing
> -v to the compiler should print the command line passed to the linker.
>
> Note that libstdc++ in the llvm-gcc repo isn't ABI compatible with the mac
> OS X system libstdc++.
>

Ah! Okay. That would seem to be the problem then. GCC's getting the
libstdc++ from another directory.

-bw



More information about the llvm-dev mailing list