package/aespipe: bump version to 2.4d
PATCH 1/2 package/aespipe: bump version to 2.4d
--- package/aespipe/aespipe.hash | 2 +- package/aespipe/aespipe.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
package/aespipe/aespipe.hash +1 -1
@@ -1,2 +1,2 @@ # Locally computed: -sha256 260190beea911190a839e711f610ec3454a9b13985d35479775b7e26ad4c845e aespipe-v2.4c.tar.bz2 +sha256 c5ce656e0ade49b93e1163ec7b35450721d5743d8d804ad3a9e39add0389e50f aespipe-v2.4d.tar.bz2
package/aespipe/aespipe.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -AESPIPE_VERSION = 2.4c +AESPIPE_VERSION = 2.4d AESPIPE_SOURCE = aespipe-v$(AESPIPE_VERSION).tar.bz2 AESPIPE_SITE = http://loop-aes.sourceforge.net/aespipe AESPIPE_LICENSE = GPL
Signature · 1 line
2.10.2
PATCH 2/2 package/aespipe: fix host compile
Building host-aespipe fails on
$ cat /etc/debian_version stretch/sid
at linking stage:
/usr/bin/gcc -L/home/buildroot/br6/output/host/lib -L/home/buildroot/br6/output/host/usr/lib -Wl,-rpath,/home/buildroot/br6/output/host/usr/lib -o aespipe aespipe.o aes-amd64.o md5-amd64.o md5-2x-amd64.o aes-intel64.o sha512.o rmd160.o /usr/bin/ld: aes-amd64.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
Fix is also used in Debian:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=837393
--- package/aespipe/aespipe.mk | 4 ++++ 1 file changed, 4 insertions(+)
package/aespipe/aespipe.mk +4 -0
@@ -9,5 +9,9 @@ AESPIPE_SOURCE = aespipe-v$(AESPIPE_VERSION).tar.bz2 AESPIPE_SITE = http://loop-aes.sourceforge.net/aespipe AESPIPE_LICENSE = GPL +HOST_AESPIPE_CONF_ENV = \ + CFLAGS="$(HOST_CFLAGS) -no-pie" \ + LDFLAGS="$(HOST_LDFLAGS) -no-pie" + $(eval $(autotools-package)) $(eval $(host-autotools-package))
Signature · 1 line
2.10.2
PATCH 2/2 package/aespipe: fix host compile
Quoted 16 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Bernd" == Bernd Kuhls <[email protected]> writes:
Building host-aespipe fails on
$ cat /etc/debian_version stretch/sidat linking stage:
/usr/bin/gcc-L/home/buildroot/br6/output/host/lib(quoted diff) +0
-2-L/home/buildroot/br6/output/host/usr/lib -Wl,-rpath,/home/buildroot/br6/output/host/usr/lib -o aespipeaespipe.o aes-amd64.o md5-amd64.o md5-2x-amd64.o aes-intel64.o sha512.o rmd160.o
/usr/bin/ld: aes-amd64.o: relocationR_X86_64_32Sagainst `.rodata' can not be used when making a shared object; recompile with -fPIC
Quoted 2 lines
Fix is also used in Debian:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=837393
Ahh, so we will start to see various fallout of them enabling -fPIE by default?
If it happends to a lot of packages, then I think we should do it globally in HOST_CFLAGS / HOST_LDFLAGS, but I have committed this for now after adding a comment explaining why, thanks.
Quoted 26 lines
Signed-off-by Bernd Kuhls <[email protected]>--- package/aespipe/aespipe.mk | 4 ++++ 1 file changed, 4 insertions(+)package/aespipe/aespipe.mk +4
-0@@ -9,5 +9,9 @@ AESPIPE_SOURCE = aespipe-v$(AESPIPE_VERSION).tar.bz2 AESPIPE_SITE = http://loop-aes.sourceforge.net/aespipe AESPIPE_LICENSE = GPL +HOST_AESPIPE_CONF_ENV = \ + CFLAGS="$(HOST_CFLAGS) -no-pie" \ + LDFLAGS="$(HOST_LDFLAGS) -no-pie" + $(eval $(autotools-package)) $(eval $(host-autotools-package))Signature · 6 lines
2.10.2 _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 1 line
Bye, Peter Korsgaard
PATCH 2/2 package/aespipe: fix host compile
In reply to Bernd KuhlsHello,
package/aespipe/aespipe.mk AESPIPE_SOURCE = aespipe-v$(AESPIPE_VERSION).tar.bz2 · line 14
Quoted 3 lines · Bernd Kuhls
package/aespipe/aespipe.mk +3
-0+HOST_AESPIPE_CONF_ENV = \ + CFLAGS="$(HOST_CFLAGS) -no-pie" \ + LDFLAGS="$(HOST_LDFLAGS) -no-pie"
I reverted this patch as it breaks the build on systems where gcc does not understand -no-pie:
http://autobuild.buildroot.net/?reason=host-aespipe-2.4d
A better solution is needed for this problem.
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
PATCH 2/2 package/aespipe: fix host compile
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
Hello,
On Sat, 17 Dec 2016 08:16:59 +0100, Bernd Kuhls wrote:
Quoted 8 lines
package/aespipe/aespipe.mk AESPIPE_SOURCE = aespipe-v$(AESPIPE_VERSION).tar.bz2 · line 14
Quoted 3 lines
package/aespipe/aespipe.mk +3
-0+HOST_AESPIPE_CONF_ENV = \ + CFLAGS="$(HOST_CFLAGS) -no-pie" \ + LDFLAGS="$(HOST_LDFLAGS) -no-pie"I reverted this patch as it breaks the build on systems where gcc does not understand -no-pie:
Crap, so the option is also a Debian specific change? :/
Quoted 1 line
A better solution is needed for this problem.
We could do something like the kernel's cc-option to see if HOSTCC accepts -no-pie - And if so, unconditionally add it to HOST_CFLAGS / HOST_LDFLAGS.
cc-option is defined in scripts/Kbuild.include:
# cc-option # Usage: cflags-y += $(call cc-option,-march=winchip-c6,-march=i586)
cc-option = $(call try-run,\
$(CC) $(KBUILD_CPPFLAGS) $(CC_OPTION_CFLAGS) $(1) -c -x c /dev/null -o "$$TMP",$(1),$(2))Signature · 1 line
Bye, Peter Korsgaard
PATCH 2/2 package/aespipe: fix host compile
Am Sat, 17 Dec 2016 17:55:02 +0100 schrieb Peter Korsgaard:
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
"Thomas" == Thomas Petazzoni
<thomas.petazzoni-wi1
+55ScJUtKEb57/[email protected]>
Quoted 11 lines
Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
writes:
Hello,
Review
Quoted 2 lines · Bernd Kuhls
(quoted diff) +2
-0+HOST_AESPIPE_CONF_ENV = \ + CFLAGS="$(HOST_CFLAGS) -no-pie" \ + LDFLAGS="$(HOST_LDFLAGS) -no-pie"I reverted this patch as it breaks the build on systems where gcc does not understand -no-pie:
Quoted 5 lines
Quoted 1 line
Crap, so the option is also a Debian specific change? :/
Quoted 1 line
A better solution is needed for this problem.
Hi,
any progress on this issue? I just stumbled across it while building an allyesconfig setup on the next branch.
Regards, Bernd
PATCH 1/2 package/aespipe: bump version to 2.4d
In reply to Bernd KuhlsQuoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Bernd" == Bernd Kuhls <[email protected]> writes:
Signed-off-by Bernd Kuhls <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard