dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* glapi/libdricore linking trouble with make install targets
@ 2012-09-09  7:48 Andreas Radke
  2012-09-09 16:09 ` Laurent Carlier
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Radke @ 2012-09-09  7:48 UTC (permalink / raw)
  To: dri-devel

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 to
make install targets. Here we run into several linking issues:

  make -C src/glx DESTDIR="${pkgdir}" install

fails with:

make[2]: Entering directory `/build/src/mesa-41d14eaf193c6b1eb87fe1998808a887f1c6c698/src/glx'
make[2]: Nothing to be done for `install-data-am'.
 /usr/bin/mkdir -p '/build/pkg/libgl/usr/lib'
 /bin/sh ../../libtool   --mode=install /usr/bin/install -c   libGL.la '/build/pkg/libgl/usr/lib'
libtool: install: warning: relinking `libGL.la'
libtool: install: (cd /build/src/mesa-41d14eaf193c6b1eb87fe1998808a887f1c6c698/src/glx; /bin/sh /build/src/mesa-41d14eaf193c6b1eb87fe1998808a887f1c6c698/libtool  --silent --tag CC --mode=relink gcc -I../../include -I../../include/GL/internal -I../../src/mapi -I../../src/mapi/glapi -I../../src/mapi -I../../src/mapi/glapi -DGLX_SHARED_GLAPI -DXF86VIDMODE -D_REENTRANT -DDEFAULT_DRIVER_DIR=\"/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_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_TLS -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DHAVE_ALIAS -DHAVE_MINCORE -DHAVE_LIBUDEV -DHAVE_LLVM=0x0301 -I/usr/include/libdrm -march=x86-64 -mtune=generic -O2 -pipe -fstack-protect
 or --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wall -std=c99 -Werror=implicit-function-declaration -Werror=missing-prototypes -fno-strict-aliasing -fno-builtin-memcmp -Wl,-Bsymbolic -vers
 ion-number 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 before 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="${pkgdir}" install

  # libGL & libdricore
  make -C src/glx DESTDIR="${pkgdir}" install
  make -C src/mesa/libdricore DESTDIR="${pkgdir}" install
  
  # fix linking because of splitted package - cleanup
  make -C src/mapi/shared-glapi DESTDIR="${pkgdir}" uninstall



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

* make -C src/egl DESTDIR="${pkgdir}" install
* make -C src/gbm DESTDIR="${pkgdir}" install

Similar issues seem to be there when trying to install the driver targets (intel, ati and nouveau),
the workaround seems to be then:

  # fix linking because of splitted package
  make -C src/mesa/libdricore DESTDIR="${pkgdir}" install

  make -C src/mesa/drivers/dri/i915 DESTDIR="${pkgdir}" install
  make -C src/mesa/drivers/dri/i965 DESTDIR="${pkgdir}" install

  # fix linking because of splitted package - cleanup
  make -C src/mesa/libdricore DESTDIR="${pkgdir}" uninstall


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

-Andy
ArchLinux

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: glapi/libdricore linking trouble with make install targets
  2012-09-09  7:48 glapi/libdricore linking trouble with make install targets Andreas Radke
@ 2012-09-09 16:09 ` Laurent Carlier
  0 siblings, 0 replies; 2+ messages in thread
From: Laurent Carlier @ 2012-09-09 16:09 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1.1: Type: text/plain, Size: 3787 bytes --]

Le dimanche 9 septembre 2012 09:48:54 Andreas Radke a écrit :
> 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 to
> make install targets. Here we run into several linking issues:
> 
>   make -C src/glx DESTDIR="${pkgdir}" install
> 
> fails with:
> 
> make[2]: Entering directory
> `/build/src/mesa-41d14eaf193c6b1eb87fe1998808a887f1c6c698/src/glx' make[2]:
> Nothing to be done for `install-data-am'.
>  /usr/bin/mkdir -p '/build/pkg/libgl/usr/lib'
>  /bin/sh ../../libtool   --mode=install /usr/bin/install -c   libGL.la
> '/build/pkg/libgl/usr/lib' libtool: install: warning: relinking `libGL.la'
> libtool: install: (cd
> /build/src/mesa-41d14eaf193c6b1eb87fe1998808a887f1c6c698/src/glx; /bin/sh
> /build/src/mesa-41d14eaf193c6b1eb87fe1998808a887f1c6c698/libtool  --silent
> --tag CC --mode=relink gcc -I../../include -I../../include/GL/internal
> -I../../src/mapi -I../../src/mapi/glapi -I../../src/mapi
> -I../../src/mapi/glapi -DGLX_SHARED_GLAPI -DXF86VIDMODE -D_REENTRANT
> -DDEFAULT_DRIVER_DIR=\"/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_RENDERING
> -DGLX_DIRECT_RENDERING -DGLX_USE_TLS -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1
> -DIN_DRI_DRIVER -DHAVE_ALIAS -DHAVE_MINCORE -DHAVE_LIBUDEV
> -DHAVE_LLVM=0x0301 -I/usr/include/libdrm -march=x86-64 -mtune=generic -O2
> -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wall
> -std=c99 -Werror=implicit-function-declaration -Werror=missing-prototypes
> -fno-strict-aliasing -fno-builtin-memcmp -Wl,-Bsymbolic -vers ion-number
> 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 before
> 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="${pkgdir}" install
> 
>   # libGL & libdricore
>   make -C src/glx DESTDIR="${pkgdir}" install
>   make -C src/mesa/libdricore DESTDIR="${pkgdir}" install
> 
>   # fix linking because of splitted package - cleanup
>   make -C src/mapi/shared-glapi DESTDIR="${pkgdir}" uninstall
> 
> 
> 
> Such step seems to be needed for these other target directories:
> 
> * make -C src/egl DESTDIR="${pkgdir}" install
> * make -C src/gbm DESTDIR="${pkgdir}" install
> 
> Similar issues seem to be there when trying to install the driver targets
> (intel, ati and nouveau), the workaround seems to be then:
> 
>   # fix linking because of splitted package
>   make -C src/mesa/libdricore DESTDIR="${pkgdir}" install
> 
>   make -C src/mesa/drivers/dri/i915 DESTDIR="${pkgdir}" install
>   make -C src/mesa/drivers/dri/i965 DESTDIR="${pkgdir}" install
> 
>   # fix linking because of splitted package - cleanup
>   make -C src/mesa/libdricore DESTDIR="${pkgdir}" uninstall
> 
> 
> 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=52435

++

[-- Attachment #1.1.2: Type: text/html, Size: 16646 bytes --]

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-09-09 16:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-09  7:48 glapi/libdricore linking trouble with make install targets Andreas Radke
2012-09-09 16:09 ` Laurent Carlier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox