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

            Bug ID: 102260
           Summary: amdgcn offload compiler fails to configure, not
                    matching target directive's target id
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: doko at debian dot org
  Target Milestone: ---

building the amdgcn offload compiler using the current trunk fails with newer
LLVM versions (used as the "binutils). LLVM 9 is known to work, LLVM 10 to 13
don't work, with LLVM 13 bailing outin the libgcc gfx900 configure:

configure:3566: /packages/gcc/snap/gcc-snapshot-20210909/build-gcn/./gcc/xgcc
-B/packages/gcc/snap/gcc-snapshot-20210909/build-gc
n/./gcc/ -nostdinc
-B/packages/gcc/snap/gcc-snapshot-20210909/build-gcn/amdgcn-amdhsa/gfx900/newlib/
-isystem /packages/gcc/snap/
gcc-snapshot-20210909/build-gcn/amdgcn-amdhsa/gfx900/newlib/targ-include
-isystem /packages/gcc/snap/gcc-snapshot-20210909/src-gc
n/newlib/libc/include -B/usr/lib/gcc-snapshot/amdgcn-amdhsa/bin/
-B/usr/lib/gcc-snapshot/amdgcn-amdhsa/lib/ -isystem /usr/lib/gcc
-snapshot/amdgcn-amdhsa/include -isystem
/usr/lib/gcc-snapshot/amdgcn-amdhsa/sys-include  -march=gfx900 -o conftest -g
-O2   conf
test.c  >&5
/tmp/ccuvyB8E.s:1:17: error: .amdgcn_target directive's target id
amdgcn-unknown-amdhsa--gfx900 does not match the specified targ
et id amdgcn-unknown-amdhsa--gfx900:xnack-
        .amdgcn_target "amdgcn-unknown-amdhsa--gfx900"
                       ^

Reply via email to