From mboxrd@z Thu Jan 1 00:00:00 1970 From: Laurent Carlier Subject: Re: glapi/libdricore linking trouble with make install targets Date: Sun, 09 Sep 2012 18:09:07 +0200 Message-ID: <36411929.NY5tq5yi8E@archmain> References: <20120909094854.0005c45c@workstation64.home> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0556966236==" Return-path: Received: from mail-ey0-f177.google.com (mail-ey0-f177.google.com [209.85.215.177]) by gabe.freedesktop.org (Postfix) with ESMTP id 52F039E804 for ; Sun, 9 Sep 2012 09:09:38 -0700 (PDT) Received: by eaai12 with SMTP id i12so481025eaa.36 for ; Sun, 09 Sep 2012 09:09:38 -0700 (PDT) In-Reply-To: <20120909094854.0005c45c@workstation64.home> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0556966236== Content-Type: multipart/signed; boundary="nextPart2393838.7a6hHrNQuB"; micalg="pgp-sha1"; protocol="application/pgp-signature" Content-Transfer-Encoding: 7Bit --nextPart2393838.7a6hHrNQuB Content-Type: multipart/alternative; boundary="nextPart1414579.7XgOPX7P0M" Content-Transfer-Encoding: 7Bit This is a multi-part message in MIME format. --nextPart1414579.7XgOPX7P0M Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Le dimanche 9 septembre 2012 09:48:54 Andreas Radke a =E9crit : > When building packages in ArchLinux we try to avoid the old > bin/minstall to move each and every file by hand. So we try to move t= o > make install targets. Here we run into several linking issues: >=20 > make -C src/glx DESTDIR=3D"${pkgdir}" install >=20 > fails with: >=20 > make[2]: Entering directory > `/build/src/mesa-41d14eaf193c6b1eb87fe1998808a887f1c6c698/src/glx' ma= ke[2]: > Nothing to be done for `install-data-am'. > /usr/bin/mkdir -p '/build/pkg/libgl/usr/lib' > /bin/sh ../../libtool --mode=3Dinstall /usr/bin/install -c libGL= .la > '/build/pkg/libgl/usr/lib' libtool: install: warning: relinking `libG= L.la' > libtool: install: (cd > /build/src/mesa-41d14eaf193c6b1eb87fe1998808a887f1c6c698/src/glx; /bi= n/sh > /build/src/mesa-41d14eaf193c6b1eb87fe1998808a887f1c6c698/libtool --s= ilent > --tag CC --mode=3Drelink gcc -I../../include -I../../include/GL/inter= nal > -I../../src/mapi -I../../src/mapi/glapi -I../../src/mapi > -I../../src/mapi/glapi -DGLX_SHARED_GLAPI -DXF86VIDMODE -D_REENTRANT > -DDEFAULT_DRIVER_DIR=3D\"/usr/lib/xorg/modules/dri\" -D_GNU_SOURCE -D= PTHREADS > -DTEXTURE_FLOAT_ENABLED -DUSE_X86_64_ASM -DHAVE_DLOPEN > -DHAVE_POSIX_MEMALIGN -DIN_DRI_DRIVER -DUSE_XCB -DGLX_INDIRECT_RENDER= ING > -DGLX_DIRECT_RENDERING -DGLX_USE_TLS -DPTHREADS -DUSE_EXTERNAL_DXTN_L= IB=3D1 > -DIN_DRI_DRIVER -DHAVE_ALIAS -DHAVE_MINCORE -DHAVE_LIBUDEV > -DHAVE_LLVM=3D0x0301 -I/usr/include/libdrm -march=3Dx86-64 -mtune=3Dg= eneric -O2 > -pipe -fstack-protector --param=3Dssp-buffer-size=3D4 -D_FORTIFY_SOUR= CE=3D2 -Wall > -std=3Dc99 -Werror=3Dimplicit-function-declaration -Werror=3Dmissing-= prototypes > -fno-strict-aliasing -fno-builtin-memcmp -Wl,-Bsymbolic -vers ion-num= ber > 1:2 -no-undefined -Wl,-O1,--sort-common,--as-needed,-z,relro -o libGL= .la > -rpath /usr/lib libglx.la ../../src/mapi/shared-glapi/libglapi.la > ../../src/mapi/glapi/libglapi.la -lXext -lXdamage -lXfixes -lX11-xcb = -lX11 > -lxcb-glx -lxcb -lXxf86vm -ldrm -lm -lpthread -ldl -inst-prefix-dir > /build/pkg/libgl) /usr/bin/ld: cannot find -lglapi > collect2: error: ld returned 1 exit status > libtool: install: error: relink `libGL.la' with the above command bef= ore > installing it make[2]: *** [install-libLTLIBRARIES] Error 1 >=20 >=20 > Similar errors happen with other targets. Our community found > a workaround by running this: >=20 > # fix linking because of splitted package > make -C src/mapi/shared-glapi DESTDIR=3D"${pkgdir}" install >=20 > # libGL & libdricore > make -C src/glx DESTDIR=3D"${pkgdir}" install > make -C src/mesa/libdricore DESTDIR=3D"${pkgdir}" install >=20 > # fix linking because of splitted package - cleanup > make -C src/mapi/shared-glapi DESTDIR=3D"${pkgdir}" uninstall >=20 >=20 >=20 > Such step seems to be needed for these other target directories: >=20 > * make -C src/egl DESTDIR=3D"${pkgdir}" install > * make -C src/gbm DESTDIR=3D"${pkgdir}" install >=20 > Similar issues seem to be there when trying to install the driver tar= gets > (intel, ati and nouveau), the workaround seems to be then: >=20 > # fix linking because of splitted package > make -C src/mesa/libdricore DESTDIR=3D"${pkgdir}" install >=20 > make -C src/mesa/drivers/dri/i915 DESTDIR=3D"${pkgdir}" install > make -C src/mesa/drivers/dri/i965 DESTDIR=3D"${pkgdir}" install >=20 > # fix linking because of splitted package - cleanup > make -C src/mesa/libdricore DESTDIR=3D"${pkgdir}" uninstall >=20 >=20 > Can't these targets do proper linking on their own? >=20 > -Andy > ArchLinux > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/dri-devel See https://bugs.freedesktop.org/show_bug.cgi?id=3D52435 ++ --nextPart1414579.7XgOPX7P0M Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="iso-8859-1"

Le = dimanche 9 septembre 2012 09:48:54 Andreas Radke a =E9crit=A0:

>= ; When building packages in ArchLinux we try to avoid the old

>= ; bin/minstall to move each and every file by hand. So we try to move t= o

>= ; make install targets. Here we run into several linking issues:

>= ;

>= ; make -C src/glx DESTDIR=3D"${pkgdir}" install

>= ;

>= ; fails with:

>= ;

>= ; make[2]: Entering directory

>= ; `/build/src/mesa-41d14eaf193c6b1eb87fe1998808a887f1c6c698/src/glx' ma= ke[2]:

>= ; Nothing to be done for `install-data-am'.

>= ; /usr/bin/mkdir -p '/build/pkg/libgl/usr/lib'

>= ; /bin/sh ../../libtool --mode=3Dinstall /usr/bin/install -c libGL= .la

>= ; '/build/pkg/libgl/usr/lib' libtool: install: warning: relinking `libG= L.la'

>= ; libtool: install: (cd

>= ; /build/src/mesa-41d14eaf193c6b1eb87fe1998808a887f1c6c698/src/glx; /bi= n/sh

>= ; /build/src/mesa-41d14eaf193c6b1eb87fe1998808a887f1c6c698/libtool --s= ilent

>= ; --tag CC --mode=3Drelink gcc -I../../include -I../../include/GL/inter= nal

>= ; -I../../src/mapi -I../../src/mapi/glapi -I../../src/mapi

>= ; -I../../src/mapi/glapi -DGLX_SHARED_GLAPI -DXF86VIDMODE -D_REENTRANT<= /p>

>= ; -DDEFAULT_DRIVER_DIR=3D\"/usr/lib/xorg/modules/dri\" -D_GNU= _SOURCE -DPTHREADS

>= ; -DTEXTURE_FLOAT_ENABLED -DUSE_X86_64_ASM -DHAVE_DLOPEN

>= ; -DHAVE_POSIX_MEMALIGN -DIN_DRI_DRIVER -DUSE_XCB -DGLX_INDIRECT_RENDER= ING

>= ; -DGLX_DIRECT_RENDERING -DGLX_USE_TLS -DPTHREADS -DUSE_EXTERNAL_DXTN_L= IB=3D1

>= ; -DIN_DRI_DRIVER -DHAVE_ALIAS -DHAVE_MINCORE -DHAVE_LIBUDEV

>= ; -DHAVE_LLVM=3D0x0301 -I/usr/include/libdrm -march=3Dx86-64 -mtune=3Dg= eneric -O2

>= ; -pipe -fstack-protector --param=3Dssp-buffer-size=3D4 -D_FORTIFY_SOUR= CE=3D2 -Wall

>= ; -std=3Dc99 -Werror=3Dimplicit-function-declaration -Werror=3Dmissing-= prototypes

>= ; -fno-strict-aliasing -fno-builtin-memcmp -Wl,-Bsymbolic -vers ion-num= ber

>= ; 1:2 -no-undefined -Wl,-O1,--sort-common,--as-needed,-z,relro -o libGL= .la

>= ; -rpath /usr/lib libglx.la ../../src/mapi/shared-glapi/libglapi.la

=

>= ; ../../src/mapi/glapi/libglapi.la -lXext -lXdamage -lXfixes -lX11-xcb = -lX11

>= ; -lxcb-glx -lxcb -lXxf86vm -ldrm -lm -lpthread -ldl -inst-prefix-dir

>= ; /build/pkg/libgl) /usr/bin/ld: cannot find -lglapi

>= ; collect2: error: ld returned 1 exit status

>= ; libtool: install: error: relink `libGL.la' with the above command bef= ore

>= ; installing it make[2]: *** [install-libLTLIBRARIES] Error 1

>= ;

>= ;

>= ; Similar errors happen with other targets. Our community found

>= ; a workaround by running this:

>= ;

>= ; # fix linking because of splitted package

>= ; make -C src/mapi/shared-glapi DESTDIR=3D"${pkgdir}" insta= ll

>= ;

>= ; # libGL & libdricore

>= ; make -C src/glx DESTDIR=3D"${pkgdir}" install

>= ; make -C src/mesa/libdricore DESTDIR=3D"${pkgdir}" install=

>= ;

>= ; # fix linking because of splitted package - cleanup

>= ; make -C src/mapi/shared-glapi DESTDIR=3D"${pkgdir}" unins= tall

>= ;

>= ;

>= ;

>= ; Such step seems to be needed for these other target directories:

>= ;

>= ; * make -C src/egl DESTDIR=3D"${pkgdir}" install

>= ; * make -C src/gbm DESTDIR=3D"${pkgdir}" install

>= ;

>= ; Similar issues seem to be there when trying to install the driver tar= gets

>= ; (intel, ati and nouveau), the workaround seems to be then:

>= ;

>= ; # fix linking because of splitted package

>= ; make -C src/mesa/libdricore DESTDIR=3D"${pkgdir}" install=

>= ;

>= ; make -C src/mesa/drivers/dri/i915 DESTDIR=3D"${pkgdir}" i= nstall

>= ; make -C src/mesa/drivers/dri/i965 DESTDIR=3D"${pkgdir}" i= nstall

>= ;

>= ; # fix linking because of splitted package - cleanup

>= ; make -C src/mesa/libdricore DESTDIR=3D"${pkgdir}" uninsta= ll

>= ;

>= ;

>= ; Can't these targets do proper linking on their own?

>= ;

>= ; -Andy

>= ; ArchLinux

>= ; _______________________________________________

>= ; dri-devel mailing list

>= ; dri-devel@lists.freedesktop.org

>= ; http://lists.freedesktop.org/mailman/listinfo/dri-devel

 

See= https://bugs.freedesktop.org/show_bug.cgi?id=3D52435

 

++<= /p>

 

--nextPart1414579.7XgOPX7P0M-- --nextPart2393838.7a6hHrNQuB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iQEcBAABAgAGBQJQTL8kAAoJEAYJamrRzt2sjHAH/iMa0zoNk6J2urvm6s/jfbWL lAz8K70Gp6M2jz6yQ45GwxtZP++VXFVIqG3c8a1KN39/CxgCC04yS7DeJItJEo0s ach5bjCiXmD5ebdeZ8XX8gWISmBnu2KgVZHJjV2t/mJ7pboYEYuDZi7CDf0ArIp+ 7gGltR5bjF51hngZ0O6EcFzDg78nQP4M8q62MVQJh46BjKFoZ4/yQGHB2kx/2+2S mvOoBfg0mmT1eaQOhUlC7kW9ucw0A93ZFI+ii2/H/7nuKwHqHLXgdeD+GeqpzNFy 49aMD5NZ7pS4lgLkGMs8PwErS3dYTAKwXfWHQH/gnznTHliULLLkbW4PYjeNxcc= =k9q4 -----END PGP SIGNATURE----- --nextPart2393838.7a6hHrNQuB-- --===============0556966236== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel --===============0556966236==--