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
On Thursday 20 September 2007 16:32, David Greene wrote:> > 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.Ha! We're both wrong! This is a bug in libtool 5.22, which llvm uses:>From the libtool 5.24 NEWS file:* Search paths with GCC on multilib systems like x86_64 have been fixed. We should upgrade our libtool. How does one go about doing this? Is it simply a matter of copying ltmain.sh from the libtool distribution? -Dave
David Greene wrote:> On Thursday 20 September 2007 16:32, David Greene wrote: > >>> 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. > > Ha! We're both wrong! This is a bug in libtool 5.22, which llvm uses: > >>From the libtool 5.24 NEWS file: > > * Search paths with GCC on multilib systems like x86_64 have been fixed.BTW, this probably works for you because you don't have 32-bit libs installed. Do you have a /usr/lib/libltdl*? Apparently some Linux distributions only install 64-bit libs while others install both 64-bit and 32-bit libs. -Dave