package/pkg-meson: always set b_pie to false
PATCH v2 1/1 package/pkg-meson: always set b_pie to false
pipewire unconditionally enables b_pie since version 0.3.20 and
https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/abe73c9146cd223b40b22581b1fd58bc044c671e
which will raise the following build failure on m68k since commit a6d88d3ba5e30e11f4d726f341bc56c1be7c71c9:
/srv/storage/autobuild/run/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/m68k-buildroot-linux-uclibc/9.3.0/../../../../m68k-buildroot-linux-uclibc/bin/ld: /srv/storage/autobuild/run/instance-1/output-1/host/m68k-buildroot-linux-uclibc/sysroot/usr/lib/Scrt1.o: in function `lib_main':
(.text+0x4): undefined reference to `__shared_flat_add_library'
To fix this build failure, always set b_pie to false as PIE will be enabled by toolchain/toolchain-wrapper.mk if needed
Fixes:
- http://autobuild.buildroot.org/results/c258a2736661af8ea73abeda2503d8682e65f1e2
---
Changes v1 -> v2:
- Always set b_pie to false
package/pkg-meson.mk | 1 + 1 file changed, 1 insertion(+)
package/pkg-meson.mk +1 -0
@@ -91,6 +91,7 @@ define $(2)_CONFIGURE_CMDS --default-library=$(if $(BR2_STATIC_LIBS),static,shared) \ --buildtype=$(if $(BR2_ENABLE_DEBUG),debug,release) \ --cross-file=$$($$(PKG)_SRCDIR)/build/cross-compilation.conf \ + -Db_pie=false \ -Dstrip=false \ -Dbuild.pkg_config_path=$$(HOST_DIR)/lib/pkgconfig \ $$($$(PKG)_CONF_OPTS) \
Signature · 1 line
2.30.2
PATCH v2 1/1 package/pkg-meson: always set b_pie to false
Fabrice, All,
On 2021-05-29 10:48 +0200, Fabrice Fontaine spake thusly:
Quoted 10 lines
pipewire unconditionally enables
b_piesince version 0.3.20 and
https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/abe73c9146cd223b40b22581b1fd58bc044c671e
which will raise the following build failure on m68k since commita6d88d3ba5e30e11f4d726f341bc56c1be7c71c9:
/srv/storage/autobuild/run/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/m68k-buildroot-linux-uclibc/9.3.0/../../../../m68k-buildroot-linux-uclibc/bin/ld:/srv/storage/autobuild/run/instance-1/output-1/host/m68k-buildroot-linux-uclibc/sysroot/usr/lib/Scrt1.o: in function `lib_main':
(.text+0x4): undefined reference to `__shared_flat_add_library'To fix this build failure, always set
b_pieto false as PIE will be enabled bytoolchain/toolchain-wrapper.mkif needed
Did you verify that indeed, generated executables are PIE?
Quoted 7 lines
Fixes:
- http://autobuild.buildroot.org/results/c258a2736661af8ea73abeda2503d8682e65f1e2Signed-off-by Fabrice Fontaine <[email protected]>---
Changes v1 -> v2:
- Always setb_pieto false
Arf.. This arrived while I was working on v1, that set it depending on the toolchain config...
Ah, but now I see that previous patch uses BR2_TOOLCHAIN_SUPPORTS_PIE; it should have been using BR2_PIC_PIE indeed.
While waiting for more info, I'll revert the previous patch...
Regards,
Yann E. MORIN.
Quoted 22 lines
package/pkg-meson.mk | 1 + 1 file changed, 1 insertion(+)package/pkg-meson.mk +1
-0@@ -91,6 +91,7 @@ define $(2)_CONFIGURE_CMDS --default-library=$(if $(BR2_STATIC_LIBS),static,shared) \ --buildtype=$(if $(BR2_ENABLE_DEBUG),debug,release) \ --cross-file=$$($$(PKG)_SRCDIR)/build/cross-compilation.conf \ + -Db_pie=false \ -Dstrip=false \ -Dbuild.pkg_config_path=$$(HOST_DIR)/lib/pkgconfig \ $$($$(PKG)_CONF_OPTS) \Signature · 6 lines
2.30.2 _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 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. | '------------------------------^-------^------------------^--------------------'
Yann E. MORIN
AppliedPATCH v2 1/1 package/pkg-meson: always set b_pie to false
In reply to Fabrice FontaineFabrice, All,
On 2021-05-29 10:48 +0200, Fabrice Fontaine spake thusly:
Quoted 8 lines
pipewire unconditionally enables
b_piesince version 0.3.20 and
https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/abe73c9146cd223b40b22581b1fd58bc044c671e
which will raise the following build failure on m68k since commita6d88d3ba5e30e11f4d726f341bc56c1be7c71c9:
/srv/storage/autobuild/run/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/m68k-buildroot-linux-uclibc/9.3.0/../../../../m68k-buildroot-linux-uclibc/bin/ld:/srv/storage/autobuild/run/instance-1/output-1/host/m68k-buildroot-linux-uclibc/sysroot/usr/lib/Scrt1.o: in function `lib_main':
(.text+0x4): undefined reference to `__shared_flat_add_library'
Quoted 7 lines
To fix this build failure, always set
b_pieto false as PIE will be enabled bytoolchain/toolchain-wrapper.mkif neededFixes:
- http://autobuild.buildroot.org/results/c258a2736661af8ea73abeda2503d8682e65f1e2Signed-off-by Fabrice Fontaine <[email protected]>
Applied to master, thanks.
Moving the options to the cross-compilation file can be done in a later patch, possibly to be applied after the release to avoid introducing too much unknown so close to the release...
Thanks!
Regards,
Yann E. MORIN.
Quoted 26 lines
---
Changes v1 -> v2:
- Always setb_pieto falsepackage/pkg-meson.mk | 1 + 1 file changed, 1 insertion(+)package/pkg-meson.mk +1
-0@@ -91,6 +91,7 @@ define $(2)_CONFIGURE_CMDS --default-library=$(if $(BR2_STATIC_LIBS),static,shared) \ --buildtype=$(if $(BR2_ENABLE_DEBUG),debug,release) \ --cross-file=$$($$(PKG)_SRCDIR)/build/cross-compilation.conf \ + -Db_pie=false \ -Dstrip=false \ -Dbuild.pkg_config_path=$$(HOST_DIR)/lib/pkgconfig \ $$($$(PKG)_CONF_OPTS) \Signature · 6 lines
2.30.2 _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 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. | '------------------------------^-------^------------------^--------------------'