[LLVMdev] amd64, FreeBSD and shared libraries

Chris Lattner sabre at nondot.org
Sat Feb 16 16:46:28 PST 2008


On Feb 15, 2008, at 7:17 PM, Coleman Kane wrote:

> Hello,
>
> I am trying to build llvm-gcc 4.2 w/ llvm 2.2 on FreeBSD/amd64 and  
> have
> found that it doesn't seem to want to build shared libraries. I've  
> found
> numerous notes that I should try --disable-shared, because the linker
> ends up erroring out with a linker error when building libgcc_s.so.
> Subsequently, the same error is produced when it attempts to build
> libstdc++.so. If you do happen to build and install it, any attempt to
> link a shared library results in this very same behavior. The
> crtbeginS.o object seems to contain the offending relocation data  
> which
> ld doesn't like.

This is due to http://llvm.org/PR1711.  Please try configuring with -- 
disable-shared and --disable-bootstrap.

-Chris



More information about the llvm-dev mailing list