https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124897

            Bug ID: 124897
           Summary: The default multilib set of amdgcn fails to build with
                    llvm19
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Keywords: build, documentation
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rguenth at gcc dot gnu.org
  Target Milestone: ---
            Target: amdgcn

Docs say

By default, multilib support is built for @code{gfx908}, @code{gfx90a},
@code{gfx9-generic}, @code{gfx9-4-generic}, @code{gfx10-3-generic}, and
@code{gfx11-generic}, which covers all supported archs.  The default multilib
configuration requires LLVM 19 or newer.  LLVM 13.0.1 or LLVM 14 can be used by
specifying a @code{--with-multilib-list=} that only lists GFX9 or GFX10-3
devices, while LLVM 15 is required for GFX 11 device and @code{gfx1036}.
At least LLVM 16 is required for @code{gfx1150} and @code{gfx1151},
LLVM 18 for @code{gfx942}, LLVM 19 for the generic @code{gfx9-generic},
@code{gfx10-3-generic}, and @code{gfx11-generic} targets and for
@code{gfx1152},
while LLVM 20 is required for @code{gfx950}, @code{gfx1153}, and
@code{gfx9-4-generic}.

and I get

configure:3580:
/home/abuild/rpmbuild/BUILD/cross-amdgcn-gcc16-16.0.1+git8664-build/gcc-16.0.1+git8664/obj-x86_64-suse-linux/./gcc/xgcc
-B/home/abuild/rpmbuild/BUILD/cross-amdgcn-gcc16-16.0.1+git8664-build/gcc-16.0.1+git8664/obj-x86_64-suse-linux/./gcc/
-nostdinc
-B/home/abuild/rpmbuild/BUILD/cross-amdgcn-gcc16-16.0.1+git8664-build/gcc-16.0.1+git8664/obj-x86_64-suse-linux/amdgcn-amdhsa/gfx9-4-generic/newlib/
-isystem
/home/abuild/rpmbuild/BUILD/cross-amdgcn-gcc16-16.0.1+git8664-build/gcc-16.0.1+git8664/obj-x86_64-suse-linux/amdgcn-amdhsa/gfx9-4-generic/newlib/targ-include
-isystem
/home/abuild/rpmbuild/BUILD/cross-amdgcn-gcc16-16.0.1+git8664-build/gcc-16.0.1+git8664/newlib/libc/include
-B/usr/amdgcn-amdhsa/bin/ -B/usr/amdgcn-amdhsa/lib/gfx9-4-generic
-B/usr/amdgcn-amdhsa/lib/ -isystem /usr/amdgcn-amdhsa/include -isystem
/usr/amdgcn-amdhsa/sys-include  -march=gfx9-4-generic -o conftest -g -O2  
conftest.c  >&5
'gfx9-4-generic' is not a recognized processor for this target (ignoring
processor)
'gfx9-4-generic' is not a recognized processor for this target (ignoring
processor)     
/tmp/ccjVt9RK.s:1:17: error: .amdgcn_target directive's target id
amdgcn-unknown-amdhsa--gfx9-4-generic does not match the specified target id
amdgcn-unknown-amdhsa--gfx000
        .amdgcn_target "amdgcn-unknown-amdhsa--gfx9-4-generic"
                       ^
/tmp/ccjVt9RK.s:35:4: error: directive requires gfx8+
          .amdhsa_reserve_xnack_mask    1
          ^~~~~~~~~~~~~~~~~~~~~~~~~~
...

Reply via email to