All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/elf2flt: fix build with Binutils >= 2.31
@ 2018-07-17 16:31 Romain Naour
  2018-07-17 19:57 ` Peter Korsgaard
  2018-07-18 11:14 ` Thomas Petazzoni
  0 siblings, 2 replies; 4+ messages in thread
From: Romain Naour @ 2018-07-17 16:31 UTC (permalink / raw)
  To: buildroot

Binutils added diagnostics.h to bfd.h [1], so elf2flt must create a
symlink for this header.

Fixes:
https://gitlab.com/free-electrons/toolchains-builder/-/jobs/82284139

[1] https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff;h=95da9854466ada2572b42f5528711a06a2d42db1

Signed-off-by: Romain Naour <romain.naour@smile.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>

---
Note: for Binutils < 2.31 elf2flt create a broken symlink diagnostics.h
in bfd-headers:
diagnostics.h -> output/build/host-binutils-2.30/include/diagnostics.h

We can add a HOST_ELF2FLT_POST_INSTALL_HOOKS to remove it if necessary.
---
 ...002-Makefile-fix-build-with-Binutils-2.31.patch | 34 ++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 package/elf2flt/0002-Makefile-fix-build-with-Binutils-2.31.patch

diff --git a/package/elf2flt/0002-Makefile-fix-build-with-Binutils-2.31.patch b/package/elf2flt/0002-Makefile-fix-build-with-Binutils-2.31.patch
new file mode 100644
index 0000000..8255825
--- /dev/null
+++ b/package/elf2flt/0002-Makefile-fix-build-with-Binutils-2.31.patch
@@ -0,0 +1,34 @@
+From faf1a1646093fbc5ed279bae1c7250c7dfea56f8 Mon Sep 17 00:00:00 2001
+From: Romain Naour <romain.naour@smile.fr>
+Date: Tue, 17 Jul 2018 16:36:16 +0200
+Subject: [PATCH] Makefile: fix build with Binutils 2.31
+
+Binutils added diagnostics.h to bfd.h [1], so elf2flt must create a symlink
+for this header.
+
+Fixes:
+https://gitlab.com/free-electrons/toolchains-builder/-/jobs/82284139
+
+[1] https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff;h=95da9854466ada2572b42f5528711a06a2d42db1
+
+Signed-off-by: Romain Naour <romain.naour@smile.fr>
+---
+ Makefile.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile.in b/Makefile.in
+index cfad06c..164e306 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -127,7 +127,7 @@ bfd-headers/.stamp:
+ 	rm -rf bfd-headers
+ 	mkdir bfd-headers
+ 	ln -sf $(BFD_INCLUDE_DIR)/bfd.h bfd-headers/bfd.h
+-	for f in ansidecl filenames hashtab libiberty symcat; do \
++	for f in ansidecl diagnostics filenames hashtab libiberty symcat; do \
+ 		ln -sf $(BINUTILS_INCLUDE_DIR)/$$f.h bfd-headers/$$f.h || exit 1; \
+ 	done
+ 	ln -sf $(BINUTILS_INCLUDE_DIR)/elf bfd-headers/elf
+-- 
+2.7.4
+
-- 
2.7.4

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

* [Buildroot] [PATCH] package/elf2flt: fix build with Binutils >= 2.31
  2018-07-17 16:31 [Buildroot] [PATCH] package/elf2flt: fix build with Binutils >= 2.31 Romain Naour
@ 2018-07-17 19:57 ` Peter Korsgaard
  2018-07-18 11:14 ` Thomas Petazzoni
  1 sibling, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2018-07-17 19:57 UTC (permalink / raw)
  To: buildroot

>>>>> "Romain" == Romain Naour <romain.naour@smile.fr> writes:

 > Binutils added diagnostics.h to bfd.h [1], so elf2flt must create a
 > symlink for this header.

 > Fixes:
 > https://gitlab.com/free-electrons/toolchains-builder/-/jobs/82284139

 > [1]
 > https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff;h=95da9854466ada2572b42f5528711a06a2d42db1

 > Signed-off-by: Romain Naour <romain.naour@smile.fr>
 > Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>

 > ---
 > Note: for Binutils < 2.31 elf2flt create a broken symlink diagnostics.h
 > in bfd-headers:
 > diagnostics.h -> output/build/host-binutils-2.30/include/diagnostics.h

 > We can add a HOST_ELF2FLT_POST_INSTALL_HOOKS to remove it if necessary.

Committed, thanks.

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH] package/elf2flt: fix build with Binutils >= 2.31
  2018-07-17 16:31 [Buildroot] [PATCH] package/elf2flt: fix build with Binutils >= 2.31 Romain Naour
  2018-07-17 19:57 ` Peter Korsgaard
@ 2018-07-18 11:14 ` Thomas Petazzoni
  2018-07-18 11:35   ` Romain Naour
  1 sibling, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2018-07-18 11:14 UTC (permalink / raw)
  To: buildroot

Hello Romain,

On Tue, 17 Jul 2018 18:31:42 +0200, Romain Naour wrote:
> Binutils added diagnostics.h to bfd.h [1], so elf2flt must create a
> symlink for this header.
> 
> Fixes:
> https://gitlab.com/free-electrons/toolchains-builder/-/jobs/82284139
> 
> [1] https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff;h=95da9854466ada2572b42f5528711a06a2d42db1
> 
> Signed-off-by: Romain Naour <romain.naour@smile.fr>
> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>

Thanks for this fix. After it was applied by Peter, I used it for the
Bootlin toolchains, and I was able to build the ARMv7-M and m68k
Coldfire toolchains with binutils 2.31. They are now online on
toolchains.bootlin.com.

The only remaining toolchain not building with binutils 2.31 is the
xtensa toolchain.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com

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

* [Buildroot] [PATCH] package/elf2flt: fix build with Binutils >= 2.31
  2018-07-18 11:14 ` Thomas Petazzoni
@ 2018-07-18 11:35   ` Romain Naour
  0 siblings, 0 replies; 4+ messages in thread
From: Romain Naour @ 2018-07-18 11:35 UTC (permalink / raw)
  To: buildroot

Hi Thomas,

Le 18/07/2018 ? 13:14, Thomas Petazzoni a ?crit?:
> Hello Romain,
> 
> On Tue, 17 Jul 2018 18:31:42 +0200, Romain Naour wrote:
>> Binutils added diagnostics.h to bfd.h [1], so elf2flt must create a
>> symlink for this header.
>>
>> Fixes:
>> https://gitlab.com/free-electrons/toolchains-builder/-/jobs/82284139
>>
>> [1] https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff;h=95da9854466ada2572b42f5528711a06a2d42db1
>>
>> Signed-off-by: Romain Naour <romain.naour@smile.fr>
>> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
> 
> Thanks for this fix. After it was applied by Peter, I used it for the
> Bootlin toolchains, and I was able to build the ARMv7-M and m68k
> Coldfire toolchains with binutils 2.31. They are now online on
> toolchains.bootlin.com.

Great :)

> 
> The only remaining toolchain not building with binutils 2.31 is the
> xtensa toolchain.

Yes I know, this require more time to find a fix.
Maybe Max Filippov can help us (once again :) )

Best regards,
Romain

> 
> Thanks!
> 
> Thomas
> 

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

end of thread, other threads:[~2018-07-18 11:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-17 16:31 [Buildroot] [PATCH] package/elf2flt: fix build with Binutils >= 2.31 Romain Naour
2018-07-17 19:57 ` Peter Korsgaard
2018-07-18 11:14 ` Thomas Petazzoni
2018-07-18 11:35   ` Romain Naour

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.