[LLVMdev] Building on x86-64
David Greene
dag at cray.com
Thu Sep 20 14:32:29 PDT 2007
On Thursday 20 September 2007 14:08, Arnold Schwaighofer wrote:
> On my gentoo/amd64 installation i could get llvm and llvm-gcc to compile.
> llvm/tests are mostly passed
> the test-suite fails with a glibc double free error.
>
> you could try setting the CC="gcc -L/usr/lib64" or maybe even CC="gcc
> -m64 -L/usr/lib64" environment variable and likewise for CXX before
> configuring and make.
>
> although i would guess that something is wrong with your install
> because it should find the 64bit libs by default (that is if your on a
> 64bit system)
I suspect you are right. I just ran into a similar problem building another
package that uses libtool. The only "non-standard" flag I passed to
configure when building gcc was --disable-shared, but I don't see
how that would affect the search path for libraries. libtool does it's own
searching and I don't think it cares where gcc looks. But again, I know
very little about libtool, mostly just from looking at sh -x output.
Does anyone have any insight as to how libtool finds libraries? Why
can't it just pass -lltdl to the linker like the compile command told it to?
-Dave
More information about the llvm-dev
mailing list