[llvmlinux] [libdrm][clang] libtool: Relinking BROKEN on 'sudo make install'

Sedat Dilek sedat.dilek at gmail.com
Fri Jan 18 14:11:55 UTC 2013


[ Restoring CCs ]

On 01/18/2013 03:30 PM, Sedat Dilek wrote:
> [ CC friends from LLVMLinux ]
>
> Hi,
>
> I am still playing with llvm/clang v3.2 and mesa.
>
> My clang version is:
>
> $ clang -v
> clang version 3.2 (tags/RELEASE_32/final)
> Target: x86_64-unknown-linux-gnu
> Thread model: posix
>
> As Brian suggested me to switch to mesa-9.x, I wanted to do so.
> So, I needed to bump my libdrm (here: v2.4.41), but the installation
> fails reproducibly!
>
> I am no Makefile/autotools/libtool expert, but as far as my research
> showed me it seems to be a problem of relinking/relink_command caused
> by libtool.
>
> In [1] I have seen the advice to use "--enable-fast-install"
> configure-option as a workaround, but this does NOT help here.
>
> In [2] I read about version mismatch between included libtool.m4 and
> acinclude.m4 files, but libtool.m4 from my libdrm-builddir is
> identical with the system-wide libtool.m4.
>
> 287004 Jan 18 14:04 ~/src/libdrm/libdrm-git/m4/libtool.m4
> 287004 Nov 12  2011 /usr/share/aclocal/libtool.m4
>
> $ diff -uprN ~/src/libdrm/libdrm-git/m4/libtool.m4 /usr/share/aclocal/libtool.m4
> [ NO OUTPUT <--- files are identical ]
>
> Unfortunately, I still see on 'sudo make install':

>> Doesn't sudo reset your $PATH?

Aaargh, of course it does! Forgot about this.
( But why does mesa-install not fail? )

>
> NOTE: My clang binary is in my $PATH and /opt/llvm is ldconfig-ed!

>> Is it in root's path though?

NO!

$ sudo su -

root# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

root# export PATH=$PATH:/opt/llvm/bin

root# cd /path/to/libdrm-builddir/
root# make install

That run like a charm :-)!

A big thank you!

- Sedat -

>> --Edwin


More information about the LLVMLinux mailing list