[PATCH] Fix 64-bit BFD detection causing build failures

Maciej W. Rozycki macro@redhat.com
Fri Feb 14 16:08:56 GMT 2025
On Thu, 13 Feb 2025, Alan Modra wrote:

> > We have a discrepancy with 64-bit BFD handling across our component 
> > subdirectories leading to link failures such as:
> 
> Thanks for doing this.  The patch is OK for the binutils side.

 Thank you for your review.

 I had to post v2 however as I remembered that we also support explicit 
secondary targets and if we reconfigure from `--host=i386-linux-gnu' to 
`--host=i386-linux-gnu --enable-targets=riscv64-linux-gnu,all', then the 
build will fail owing to the stale value of the `bfd_cv_64_bit' cache 
variable.  And having thought about it a bit harder the same happens, 
perhaps more importantly, when switching from `--host=i386-linux-gnu 
--enable-targets=all' to `--host=i386-linux-gnu --enable-targets=all 
--enable-64-bit-bfd'.

 Therefore I have removed the variable and the check for BFD64 is now 
always run.

  Maciej



More information about the Binutils mailing list