New: mesa3d package fails to build when BR2_SHARED_STATIC_LIBS=y
https://bugs.busybox.net/show_bug.cgi?id=10326
Bug ID: 10326
Summary: mesa3d package fails to build when
BR2_SHARED_STATIC_LIBS=y
Product: buildroot
Version: unspecified
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned at buildroot.uclibc.org
Reporter: frederic.mathieu at dualis.com
CC: buildroot at uclibc.org
Target Milestone: ---
Created attachment 7236
--> https://bugs.busybox.net/attachment.cgi?id=7236&action=edit
compilation log
Hi
with BR2_SHARED_STATIC_LIBS=y, mesa3d package compilation exits with error 2. the compilation is successfully completed if I add the following lines to makefile (package/mesa3d/mesa3d.mk) :
ifeq ($(BR2_SHARED_STATIC_LIBS),y)MESA3D_CONF_OPTS += --disable-static
endif
bug found on versions 2017.08, 2017.05.x
regards
Fredric MATHIEU
Signature · 2 lines
You are receiving this mail because: You are on the CC list for the bug.
[Buildroot] [Bug 10326] mesa3d package fails to build when BR2_SHARED_STATIC_LIBS=y
https://bugs.busybox.net/show_bug.cgi?id=10326
Bernd Kuhls <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at buildroot.uclibc |bernd.kuhls at t-online.de
|.org |
Status|NEW |ASSIGNED--- Comment #1 from Bernd Kuhls <[email protected]> --- Fixed with http://patchwork.ozlabs.org/patch/818330/
Signature · 2 lines
You are receiving this mail because: You are on the CC list for the bug.
[Buildroot] [Bug 10326] mesa3d package fails to build when BR2_SHARED_STATIC_LIBS=y
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=10326
--- Comment #2 from Frederic MATHIEU <[email protected]> --- This patch no longer allows you to compile the package if the configuration uses BR2_SHARED_STATIC_LIBS (static and shared). Some static libraries are wished for others packages.
this is not the solution to use.
Regards
Frederic MATHIEU
Signature · 2 lines
You are receiving this mail because: You are on the CC list for the bug.
[Buildroot] [Bug 10326] mesa3d package fails to build when BR2_SHARED_STATIC_LIBS=y
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=10326
--- Comment #3 from Bernd Kuhls <[email protected]> --- (In reply to Frederic MATHIEU from comment #2)
Why?
BR2_SHARED_STATIC_LIBS=y means
https://git.buildroot.net/buildroot/tree/Config.in#n655
"Build both shared and static libraries".
Mesa3d does not support this combination:
https://cgit.freedesktop.org/mesa/mesa/tree/configure.ac?h=17.2#n490
Signature · 2 lines
You are receiving this mail because: You are on the CC list for the bug.
[Buildroot] [Bug 10326] mesa3d package fails to build when BR2_SHARED_STATIC_LIBS=y
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=10326
--- Comment #4 from Frederic MATHIEU <[email protected]> --- I do understand that the package mesa3d does not support static libraries, but others packages do. BR2_SHARED_STATIC_LIBS is global to all buildroot packages. So if the Mesa package does support this feature, it must be deactivated only for it. This is why the following code works very well:
ifeq ($(BR2_SHARED_STATIC_LIBS),y)MESA3D_CONF_OPTS += --disable-static
endif
Signature · 2 lines
You are receiving this mail because: You are on the CC list for the bug.
[Buildroot] [Bug 10326] mesa3d package fails to build when BR2_SHARED_STATIC_LIBS=y
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=10326
--- Comment #5 from Arnout Vandecappelle <[email protected]> ---
I agree with Frederic, there is no reason to exclude mesa3d, since it builds fine under SHARED_STATIC with the additional --disable-static option. SHARED_STATIC is meant for building a shared-library based rootfs and still allowing some (custom?) packages to link statically. So if some package is shared-only (or static-only, for that matter), it should still be possible to build it.
Frederic, would you send your proposal as a properly formatted patch to the mailing list?
https://buildroot.org/downloads/manual/manual.html#submitting-patches
Signature · 2 lines
You are receiving this mail because: You are on the CC list for the bug.
[Buildroot] [Bug 10326] mesa3d package fails to build when BR2_SHARED_STATIC_LIBS=y
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=10326
Thomas Petazzoni <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED--- Comment #6 from Thomas Petazzoni <[email protected]> --- Fixed by
https://git.buildroot.org/buildroot/commit/?id=dd09d500aa6972808b2549e4b8c7fa4e396ca91f.
Thanks!
Signature · 2 lines
You are receiving this mail because: You are on the CC list for the bug.