package/mesa3d: fix build on m68k
PATCH 1/1 package/mesa3d: fix build on m68k
To build mesa3d for m68k we need to pass -mlong-jump-table-offsets CFLAG since 'switch' blocks are pretty wide and lead to build failure. This way 'switch' blocks will have a 32-bit addressing by default instead of the standard 16-bit.
Fixes:
http://autobuild.buildroot.net/results/60c4653c2a93125edbdd0beb43cd47301643464a/
--- package/mesa3d/mesa3d.mk | 9 +++++++++ 1 file changed, 9 insertions(+)
package/mesa3d/mesa3d.mk +9 -0
@@ -259,4 +259,13 @@ else MESA3D_CONF_OPTS += -Dzstd=disabled endif +MESA3D_CFLAGS = $(TARGET_CFLAGS) + +# m68k needs 32-bit offsets in switch tables to build +ifeq ($(BR2_m68k),y) +MESA3D_CFLAGS += -mlong-jump-table-offsets +endif + +MESA3D_CONF_OPTS += -DCMAKE_C_FLAGS="$(MESA3D_CFLAGS)" + $(eval $(meson-package))
Signature · 6 lines
2.25.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Giulio, All,
On 2021-09-15 00:10 +0200, Giulio Benetti spake thusly:
Quoted 18 lines
To build mesa3d for m68k we need to pass -mlong-jump-table-offsets CFLAG since 'switch' blocks are pretty wide and lead to build failure. This way 'switch' blocks will have a 32-bit addressing by default instead of the standard 16-bit.
Fixes:
http://autobuild.buildroot.net/results/60c4653c2a93125edbdd0beb43cd47301643464a/Signed-off-by Giulio Benetti <[email protected]>--- package/mesa3d/mesa3d.mk | 9 +++++++++ 1 file changed, 9 insertions(+)package/mesa3d/mesa3d.mk +0
-0
package/mesa3d/mesa3d.mk else · line 266
Quoted 8 lines
package/mesa3d/mesa3d.mk +5
-0@@ -259,4 +259,13 @@ else MESA3D_CONF_OPTS += -Dzstd=disabled endif +MESA3D_CFLAGS = $(TARGET_CFLAGS) + +# m68k needs 32-bit offsets in switch tables to build +ifeq ($(BR2_m68k),y) +MESA3D_CFLAGS += -mlong-jump-table-offsets
That option has only been added to gcc-7 [0] [1], which makes gcc >= 7 a pre-requisite for m68k, while mesa3d currently has no such requirement. Maybe add something like:
depends on !BR2_m68k || BR2_TOOLCHAIN_GCC_AT_LEAST_7
Then it should be propagated to the few packages that select mesa3d;
package/intel-mediadriver/
-> not needed, already depends on x86_64, so implies !m68k
package/x11r7/xdriver_xf86-video-imx-viv/
-> this should not be needed either, because imx is an ARM, but
xdriver_xf86-video-imx-viv is missing a depends on BR2_arm (although the comments do have that dependency). However, it depends on other imx related packages, and they depend on either arm or aarch64, so that implies !m68k.
So, no need to propagate the new dependency.
[0] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57583#c15
[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57583#c16
Regards,
Yann E. MORIN.
Quoted 12 lines
package/mesa3d/mesa3d.mk +4
-0+endif + +MESA3D_CONF_OPTS += -DCMAKE_C_FLAGS="$(MESA3D_CFLAGS)" + $(eval $(meson-package))Signature · 6 lines
2.25.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 1/1 package/mesa3d: fix build on m68k
To build mesa3d for m68k we need to pass -mlong-jump-table-offsets CFLAG since 'switch' blocks are pretty wide and lead to build failure. This way 'switch' blocks will have a 32-bit addressing by default instead of the standard 16-bit. This can be done only with m68k gcc version >= 7.x because gcc flag used to fix this(-mlong-jump-table-offsets) is available only from that version on.
Fixes:
http://autobuild.buildroot.net/results/60c4653c2a93125edbdd0beb43cd47301643464a/
---V1->V2:
* add gcc >= 7.x dependency to Config.in as suggested by Yann Morin
* improve commit log according to Config.in change
--- package/mesa3d/Config.in | 1 + package/mesa3d/mesa3d.mk | 9 +++++++++ 2 files changed, 10 insertions(+)
package/mesa3d/Config.in +1 -0
@@ -4,6 +4,7 @@ menuconfig BR2_PACKAGE_MESA3D depends on !BR2_STATIC_LIBS depends on BR2_TOOLCHAIN_HAS_SYNC_1 depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL + depends on !BR2_m68k || BR2_TOOLCHAIN_GCC_AT_LEAST_7 # m68k needs gcc >= 7.x select BR2_PACKAGE_EXPAT select BR2_PACKAGE_LIBDRM select BR2_PACKAGE_WAYLAND_PROTOCOLS if BR2_PACKAGE_WAYLAND
package/mesa3d/mesa3d.mk +9 -0
@@ -259,4 +259,13 @@ else MESA3D_CONF_OPTS += -Dzstd=disabled endif +MESA3D_CFLAGS = $(TARGET_CFLAGS) + +# m68k needs 32-bit offsets in switch tables to build +ifeq ($(BR2_m68k),y) +MESA3D_CFLAGS += -mlong-jump-table-offsets +endif + +MESA3D_CONF_OPTS += -DCMAKE_C_FLAGS="$(MESA3D_CFLAGS)" + $(eval $(meson-package))
Signature · 6 lines
2.25.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Yann E. MORIN
AppliedGiulio, All,
On 2021-09-19 02:51 +0200, Giulio Benetti spake thusly:
Quoted 11 lines
To build mesa3d for m68k we need to pass -mlong-jump-table-offsets CFLAG since 'switch' blocks are pretty wide and lead to build failure. This way 'switch' blocks will have a 32-bit addressing by default instead of the standard 16-bit. This can be done only with m68k gcc version >= 7.x because gcc flag used to fix this(-mlong-jump-table-offsets) is available only from that version on.
Fixes:
http://autobuild.buildroot.net/results/60c4653c2a93125edbdd0beb43cd47301643464a/Signed-off-by Giulio Benetti <[email protected]>
I've reworded the commit log (expain problem first, explain how it is fixed them; add upstream BZ references, and non-propagation notes).
I also added a comment in Config.in about this new dependency.
Applied to master, thanks.
Regards,
Yann E. MORIN.
Quoted 46 lines
---
V1->V2:
* add gcc >= 7.x dependency to Config.in as suggested by Yann Morin
* improve commit log according to Config.in change--- package/mesa3d/Config.in | 1 + package/mesa3d/mesa3d.mk | 9 +++++++++ 2 files changed, 10 insertions(+)package/mesa3d/Config.in +1
-0@@ -4,6 +4,7 @@ menuconfig BR2_PACKAGE_MESA3D depends on !BR2_STATIC_LIBS depends on BR2_TOOLCHAIN_HAS_SYNC_1 depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL + depends on !BR2_m68k || BR2_TOOLCHAIN_GCC_AT_LEAST_7 # m68k needs gcc >= 7.x select BR2_PACKAGE_EXPAT select BR2_PACKAGE_LIBDRM select BR2_PACKAGE_WAYLAND_PROTOCOLS if BR2_PACKAGE_WAYLANDpackage/mesa3d/mesa3d.mk +9
-0@@ -259,4 +259,13 @@ else MESA3D_CONF_OPTS += -Dzstd=disabled endif +MESA3D_CFLAGS = $(TARGET_CFLAGS) + +# m68k needs 32-bit offsets in switch tables to build +ifeq ($(BR2_m68k),y) +MESA3D_CFLAGS += -mlong-jump-table-offsets +endif + +MESA3D_CONF_OPTS += -DCMAKE_C_FLAGS="$(MESA3D_CFLAGS)" + $(eval $(meson-package))Signature · 6 lines
2.25.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 17 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Giulio" == Giulio Benetti <[email protected]> writes:
To build mesa3d for m68k we need to pass -mlong-jump-table-offsets CFLAG since 'switch' blocks are pretty wide and lead to build failure. This way 'switch' blocks will have a 32-bit addressing by default instead of the standard 16-bit. This can be done only with m68k gcc version >= 7.x because gcc flag used to fix this(-mlong-jump-table-offsets) is available only from that version on.
Fixes:
http://autobuild.buildroot.net/results/60c4653c2a93125edbdd0beb43cd47301643464a/Signed-off-by Giulio Benetti <[email protected]>---
V1-> V2:
* add gcc >= 7.x dependency to Config.in as suggested by Yann Morin
* improve commit log according to Config.in change
..
package/mesa3d/mesa3d.mk else · line 271
Quoted 8 lines
package/mesa3d/mesa3d.mk +7
-0+# m68k needs 32-bit offsets in switch tables to build +ifeq ($(BR2_m68k),y) +MESA3D_CFLAGS += -mlong-jump-table-offsets +endif + +MESA3D_CONF_OPTS += -DCMAKE_C_FLAGS="$(MESA3D_CFLAGS)" + $(eval $(meson-package))
Does that really work? mesa3d is using meson, not cmake.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Peter, Giulio, All,
On 2021-10-04 13:46 +0200, Peter Korsgaard spake thusly:
Quoted 20 lines
Quoted 17 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Giulio" == Giulio Benetti <[email protected]> writes:
To build mesa3d for m68k we need to pass -mlong-jump-table-offsets CFLAG since 'switch' blocks are pretty wide and lead to build failure. This way 'switch' blocks will have a 32-bit addressing by default instead of the standard 16-bit. This can be done only with m68k gcc version >= 7.x because gcc flag used to fix this(-mlong-jump-table-offsets) is available only from that version on.
Fixes:
http://autobuild.buildroot.net/results/60c4653c2a93125edbdd0beb43cd47301643464a/Signed-off-by Giulio Benetti <[email protected]>---
V1-> V2:
* add gcc >= 7.x dependency to Config.in as suggested by Yann Morin
* improve commit log according to Config.in change..
Quoted 10 lines
package/mesa3d/mesa3d.mk else · line 271
Quoted 8 lines
package/mesa3d/mesa3d.mk +7
-0+# m68k needs 32-bit offsets in switch tables to build +ifeq ($(BR2_m68k),y) +MESA3D_CFLAGS += -mlong-jump-table-offsets +endif + +MESA3D_CONF_OPTS += -DCMAKE_C_FLAGS="$(MESA3D_CFLAGS)" + $(eval $(meson-package))Does that really work? mesa3d is using meson, not cmake.
Apparently, no:
http://autobuild.buildroot.org/results/26a/26a97e080c49c42c06ed59ec6a9d51d81b0ab882/build-end.log
Damn, not sure how I let this split through... :-/
Regards,
Yann E. MORIN.
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Peter, Yann, All,
Quoted 36 lines
Il giorno 4 ott 2021, alle ore 17:01, Yann E. MORIN <[email protected]> ha scritto:
Peter, Giulio, All,
On 2021-10-04 13:46 +0200, Peter Korsgaard spake thusly:
Quoted 20 lines
Quoted 17 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Giulio" == Giulio Benetti <[email protected]> writes:
To build mesa3d for m68k we need to pass -mlong-jump-table-offsets CFLAG since 'switch' blocks are pretty wide and lead to build failure. This way 'switch' blocks will have a 32-bit addressing by default instead of the standard 16-bit. This can be done only with m68k gcc version >= 7.x because gcc flag used to fix this(-mlong-jump-table-offsets) is available only from that version on.
Fixes:
http://autobuild.buildroot.net/results/60c4653c2a93125edbdd0beb43cd47301643464a/Signed-off-by Giulio Benetti <[email protected]>---
V1-> V2:
* add gcc >= 7.x dependency to Config.in as suggested by Yann Morin
* improve commit log according to Config.in change..
Quoted 10 lines
Quoted 8 lines
package/mesa3d/mesa3d.mk +7
-0+# m68k needs 32-bit offsets in switch tables to build +ifeq ($(BR2_m68k),y) +MESA3D_CFLAGS += -mlong-jump-table-offsets +endif + +MESA3D_CONF_OPTS += -DCMAKE_C_FLAGS="$(MESA3D_CFLAGS)" +$(eval $(meson-package))
Does that really work? mesa3d is using meson, not cmake.
Quoted 2 lines
Apparently, no:
http://autobuild.buildroot.org/results/26a/26a97e080c49c42c06ed59ec6a9d51d81b0ab882/build-end.log
Strange, I’m going to fix it tonight. I don’t know how it could be, because I’m sure the solution works. Sorry
Giulio
Quoted 17 lines
Damn, not sure how I let this split through... :-/
Regards,
Yann E. MORIN.Signature · 10 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Hi again Peter, Yann, All,
Quoted 37 lines · Giulio Benetti
Hi Peter, Yann, All,
Quoted 35 lines
Il giorno 4 ott 2021, alle ore 17:01, Yann E. MORIN <[email protected]> ha scritto:
Peter, Giulio, All,
On 2021-10-04 13:46 +0200, Peter Korsgaard spake thusly:
Quoted 30 lines
Quoted 17 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Giulio" == Giulio Benetti <[email protected]> writes:
To build mesa3d for m68k we need to pass -mlong-jump-table-offsets CFLAG since 'switch' blocks are pretty wide and lead to build failure. This way 'switch' blocks will have a 32-bit addressing by default instead of the standard 16-bit. This can be done only with m68k gcc version >= 7.x because gcc flag used to fix this(-mlong-jump-table-offsets) is available only from that version on.
Fixes:
http://autobuild.buildroot.net/results/60c4653c2a93125edbdd0beb43cd47301643464a/Signed-off-by Giulio Benetti <[email protected]>---
V1-> V2:
* add gcc >= 7.x dependency to Config.in as suggested by Yann Morin
* improve commit log according to Config.in change..
Quoted 8 lines
package/mesa3d/mesa3d.mk +7
-0+# m68k needs 32-bit offsets in switch tables to build +ifeq ($(BR2_m68k),y) +MESA3D_CFLAGS += -mlong-jump-table-offsets +endif + +MESA3D_CONF_OPTS += -DCMAKE_C_FLAGS="$(MESA3D_CFLAGS)" +$(eval $(meson-package))
Does that really work? mesa3d is using meson, not cmake.
It comes out that it works
Quoted 3 lines
Quoted 3 lines
Apparently, no:
http://autobuild.buildroot.org/results/26a/26a97e080c49c42c06ed59ec6a9d51d81b0ab882/build-end.log
This has not this patch applied, so it's ok it fails.
There is one unnecessary line:MESA3D_CONF_OPTS += -DCMAKE_C_FLAGS="$(MESA3D_CFLAGS)"
On meson we don't need it, so it's superflous and what really passes the additional CFLAGS is itself:MESA3D_CFLAGS += -mlong-jump-table-offsets
because in pkg-meson.mk:
$(2)_CFLAGS ?= $$(TARGET_CFLAGS)
I've just submitted a patch to remove the unnecessary line.
Best regards
Signature · 2 lines
Giulio Benetti Benetti Engineering sas
Quoted 22 lines
Strange, I’m going to fix it tonight. I don’t know how it could be, because I’m sure the solution works. Sorry
Giulio
Quoted 17 lines
Damn, not sure how I let this split through... :-/
Regards,
Yann E. MORIN.Signature · 10 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 5 lines
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 52 lines · Giulio Benetti
Hi again Peter, Yann, All,
Quoted 37 lines · Giulio Benetti
Hi Peter, Yann, All,
Quoted 35 lines
Il giorno 4 ott 2021, alle ore 17:01, Yann E. MORIN <[email protected]> ha scritto:
Peter, Giulio, All,
On 2021-10-04 13:46 +0200, Peter Korsgaard spake thusly:
Quoted 30 lines
Quoted 17 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Giulio" == Giulio Benetti <[email protected]> writes:
To build mesa3d for m68k we need to pass -mlong-jump-table-offsets CFLAG since 'switch' blocks are pretty wide and lead to build failure. This way 'switch' blocks will have a 32-bit addressing by default instead of the standard 16-bit. This can be done only with m68k gcc version >= 7.x because gcc flag used to fix this(-mlong-jump-table-offsets) is available only from that version on.
Fixes:
http://autobuild.buildroot.net/results/60c4653c2a93125edbdd0beb43cd47301643464a/Signed-off-by Giulio Benetti <[email protected]>---
V1-> V2:
* add gcc >= 7.x dependency to Config.in as suggested by Yann Morin
* improve commit log according to Config.in change..
Quoted 8 lines
package/mesa3d/mesa3d.mk +7
-0+# m68k needs 32-bit offsets in switch tables to build +ifeq ($(BR2_m68k),y) +MESA3D_CFLAGS += -mlong-jump-table-offsets +endif + +MESA3D_CONF_OPTS += -DCMAKE_C_FLAGS="$(MESA3D_CFLAGS)" +$(eval $(meson-package))
Does that really work? mesa3d is using meson, not cmake.
It comes out that it works
Quoted 3 lines
Quoted 3 lines
Apparently, no:
http://autobuild.buildroot.org/results/26a/26a97e080c49c42c06ed59ec6a9d51d81b0ab882/build-end.logThis has not this patch applied, so it's ok it fails.
There is one unnecessary line:
MESA3D_CONF_OPTS+= -DCMAKE_C_FLAGS="$(MESA3D_CFLAGS)"
Quoted 7 lines
On meson we don't need it, so it's superflous and what really passes the additional CFLAGS is itself:
MESA3D_CFLAGS+= -mlong-jump-table-offsets
because in pkg-meson.mk:
$(2)_CFLAGS ?= $$(TARGET_CFLAGS)I've just submitted a patch to remove the unnecessary line:
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/
I've forgotten to point it, sorry for the noise
Best regards
Signature · 6 lines
Giulio Benetti Benetti Engineering sas _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Yann,
Quoted 48 lines · Yann E. MORIN
Giulio, All,
On 2021-09-15 00:10 +0200, Giulio Benetti spake thusly:
Quoted 18 lines
To build mesa3d for m68k we need to pass -mlong-jump-table-offsets CFLAG since 'switch' blocks are pretty wide and lead to build failure. This way 'switch' blocks will have a 32-bit addressing by default instead of the standard 16-bit.
Fixes:
http://autobuild.buildroot.net/results/60c4653c2a93125edbdd0beb43cd47301643464a/Signed-off-by Giulio Benetti <[email protected]>--- package/mesa3d/mesa3d.mk | 9 +++++++++ 1 file changed, 9 insertions(+)package/mesa3d/mesa3d.mk +0
-0package/mesa3d/mesa3d.mk else · line 266
Quoted 8 lines
package/mesa3d/mesa3d.mk +5
-0@@ -259,4 +259,13 @@ else MESA3D_CONF_OPTS += -Dzstd=disabled endif +MESA3D_CFLAGS = $(TARGET_CFLAGS) + +# m68k needs 32-bit offsets in switch tables to build +ifeq ($(BR2_m68k),y) +MESA3D_CFLAGS += -mlong-jump-table-offsetsThat option has only been added to gcc-7 [0] [1], which makes gcc >= 7 a pre-requisite for m68k, while mesa3d currently has no such requirement. Maybe add something like:
depends on !BR2_m68k || BR2_TOOLCHAIN_GCC_AT_LEAST_7Then it should be propagated to the few packages that select mesa3d;
package/intel-mediadriver/
-> not needed, already depends onx86_64, so implies !m68kpackage/x11r7/xdriver_xf86-video-imx-viv/
-> this should not be needed either, because imx is an ARM, but
xdriver_xf86-video-imx-viv is missing a depends onBR2_arm(although the comments do have that dependency). However, it depends on other imx related packages, and they depend on either arm or aarch64, so that implies !m68k.
Quoted 4 lines
So, no need to propagate the new dependency.
[0] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57583#c15
[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57583#c16
Thank you for reviewing and pointing me this, I didn't think about CFLAG availability through version.
Just submitted v2.
Best regards
Signature · 2 lines
Giulio Benetti Benetti Engineering sas
Quoted 11 lines
Regards,
Yann E. MORIN.Quoted 8 lines
package/mesa3d/mesa3d.mk +4
-0+endif + +MESA3D_CONF_OPTS += -DCMAKE_C_FLAGS="$(MESA3D_CFLAGS)" + $(eval $(meson-package))Signature · 1 line
2.25.1
Quoted 5 lines
Quoted 4 lines
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 24 lines · Yann E. MORIN
Giulio, All,
On 2021-09-15 00:10 +0200, Giulio Benetti spake thusly:
Quoted 21 lines
To build mesa3d for m68k we need to pass -mlong-jump-table-offsets CFLAG since 'switch' blocks are pretty wide and lead to build failure. This way 'switch' blocks will have a 32-bit addressing by default instead of the standard 16-bit.
Fixes:
http://autobuild.buildroot.net/results/60c4653c2a93125edbdd0beb43cd47301643464a/Signed-off-by Giulio Benetti <[email protected]>--- package/mesa3d/mesa3d.mk | 9 +++++++++ 1 file changed, 9 insertions(+)package/mesa3d/mesa3d.mk +0
-0@@ -259,4 +259,13 @@ else MESA3D_CONF_OPTS += -Dzstd=disabled endif
Quoted 8 lines
package/mesa3d/mesa3d.mk else · line 266
Quoted 5 lines
package/mesa3d/mesa3d.mk +5
-0+MESA3D_CFLAGS = $(TARGET_CFLAGS) + +# m68k needs 32-bit offsets in switch tables to build +ifeq ($(BR2_m68k),y) +MESA3D_CFLAGS += -mlong-jump-table-offsetsThat option has only been added to gcc-7 [0] [1], which makes gcc >= 7 a pre-requisite for m68k, while mesa3d currently has no such requirement.
It's been merged, so OK for now, but I think this is exactly the reason why we
decided some time ago to just pass -O0 to work around compiler bugs for niche architectures...
Regards,
Arnout
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Arnout,
Quoted 36 lines · Arnout Vandecappelle
Quoted 24 lines · Yann E. MORIN
Giulio, All,
On 2021-09-15 00:10 +0200, Giulio Benetti spake thusly:
Quoted 21 lines
To build mesa3d for m68k we need to pass -mlong-jump-table-offsets CFLAG since 'switch' blocks are pretty wide and lead to build failure. This way 'switch' blocks will have a 32-bit addressing by default instead of the standard 16-bit.
Fixes:
http://autobuild.buildroot.net/results/60c4653c2a93125edbdd0beb43cd47301643464a/Signed-off-by Giulio Benetti <[email protected]>--- package/mesa3d/mesa3d.mk | 9 +++++++++ 1 file changed, 9 insertions(+)package/mesa3d/mesa3d.mk +0
-0@@ -259,4 +259,13 @@ else MESA3D_CONF_OPTS += -Dzstd=disabled endifQuoted 8 lines
package/mesa3d/mesa3d.mk else · line 266
Quoted 5 lines
package/mesa3d/mesa3d.mk +5
-0+MESA3D_CFLAGS = $(TARGET_CFLAGS) + +# m68k needs 32-bit offsets in switch tables to build +ifeq ($(BR2_m68k),y) +MESA3D_CFLAGS += -mlong-jump-table-offsetsThat option has only been added to gcc-7 [0] [1], which makes gcc >= 7 a pre-requisite for m68k, while mesa3d currently has no such requirement.
Quoted 3 lines
It's been merged, so OK for now, but I think this is exactly the reason why we
decided some time ago to just pass -O0 to work around compiler bugs for niche architectures...
My bad here. I was sure that -O0 didn't work instead it works while another package I was facing had no work-around. So this is only due to my mistake :-/
Signature · 2 lines
Giulio Benetti Benetti Engineering sas
Quoted 7 lines
Regards,
Arnout
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot