[binutils-gdb] AMDGCN: Disable subdirectory configuration for unsupported GAS and LD

Maciej W. Rozycki macro@sourceware.org
Wed Feb 18 17:35:39 GMT 2026


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=58d798318c42f503db3ac41e10596396d8e1950e

commit 58d798318c42f503db3ac41e10596396d8e1950e
Author: Maciej W. Rozycki <macro@orcam.me.uk>
Date:   Wed Feb 18 17:32:32 2026 +0000

    AMDGCN: Disable subdirectory configuration for unsupported GAS and LD
    
    The `amdgcn' target is not supported by GAS or LD, so disable building
    in the respective subdirectories, removing configuration errors such as:
    
    This target is no longer supported in gas
    make[1]: *** [Makefile:5473: configure-gas] Error 1
    
    and:
    
    *** ld does not support target amdgcn-unknown-none
    *** see ld/configure.tgt for supported targets
    make[1]: *** [Makefile:6968: configure-ld] Error 1
    
    in builds where no explicit `--disable-gas' and `--disable-ld' options
    have been used with the top-level `configure' script.  Users must not
    have to disable features selected by default to get a working
    configuration.
    
            /
            * configure.ac <amdgcn-*-*> (noconfigdirs): Add `ld' and `gas'.
            * configure: Regenerate.

Diff:
---
 configure    | 1 +
 configure.ac | 1 +
 2 files changed, 2 insertions(+)

diff --git a/configure b/configure
index 2551fe02752..4c2aa195810 100755
--- a/configure
+++ b/configure
@@ -3939,6 +3939,7 @@ case "${target}" in
     noconfigdirs="$noconfigdirs sim target-rda"
     ;;
   amdgcn*-*-*)
+    noconfigdirs="$noconfigdirs ld gas"
     ;;
   arm-*-darwin*)
     noconfigdirs="$noconfigdirs ld gas gdb gprof"
diff --git a/configure.ac b/configure.ac
index 94321ffd20a..cae0042411b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1108,6 +1108,7 @@ case "${target}" in
     noconfigdirs="$noconfigdirs sim target-rda"
     ;;
   amdgcn*-*-*)
+    noconfigdirs="$noconfigdirs ld gas"
     ;;
   arm-*-darwin*)
     noconfigdirs="$noconfigdirs ld gas gdb gprof"


More information about the Binutils-cvs mailing list