Skip to content

[email protected] +rocm fails: g++-11: error: unrecognized command-line option '--offload-arch=gfx900' #33249

@eugeneswalker

Description

@eugeneswalker

Steps to reproduce the issue

Having trouble building [email protected] +rocm

Concretization
==> Concretized raja+rocm amdgpu_target=gfx90a
 -   ltz5si5  [email protected]%[email protected]~cuda+examples+exercises~ipo~openmp+rocm+shared~tests amdgpu_target=gfx90a build_type=RelWithDebInfo arch=linux-ubuntu20.04-x86_64
[+]  y36fzbw      ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  5ihoqvh          ^[email protected]%[email protected]~doc+ncurses+ownlibs~qt build_type=Release arch=linux-ubuntu20.04-x86_64
[+]  i2hv5jc              ^[email protected]%[email protected]~symlinks+termlib abi=none arch=linux-ubuntu20.04-x86_64
[+]  6kp4r3o                  ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  faop6us              ^[email protected]%[email protected]~docs~shared certs=mozilla patches=3fdcf2d arch=linux-ubuntu20.04-x86_64
[+]  t3c4o5i                  ^ca-certificates-mozilla@2022-07-19%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  3drusxj                  ^[email protected]%[email protected]+cpanm+shared+threads arch=linux-ubuntu20.04-x86_64
[+]  fzp4src                      ^[email protected]%[email protected]+cxx~docs+stl patches=26090f4,b231fcc arch=linux-ubuntu20.04-x86_64
[+]  3gilvnw                      ^[email protected]%[email protected]~debug~pic+shared arch=linux-ubuntu20.04-x86_64
[+]  6id7p5g                          ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  nxnzjyt                              ^[email protected]%[email protected] libs=shared,static arch=linux-ubuntu20.04-x86_64
[+]  u3nqjvs                      ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  tfambxv                          ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  hdtjtng                      ^[email protected]%[email protected]+optimize+pic+shared patches=0d38234 arch=linux-ubuntu20.04-x86_64
[+]  xy7tm6z      ^[email protected]%[email protected]~cuda~ipo~openmp+rocm~tests amdgpu_target=gfx90a build_type=RelWithDebInfo arch=linux-ubuntu20.04-x86_64
[+]  hfpcdg2          ^[email protected]%[email protected]~ipo build_type=Release patches=7ed1232 arch=linux-ubuntu20.04-x86_64
[+]  ow27dxy              ^[email protected]%[email protected]~ipo build_type=Release arch=linux-ubuntu20.04-x86_64
[+]  vagrfdi                  ^[email protected]%[email protected]~ipo~link_llvm_dylib~llvm_dylib~openmp+rocm-device-libs build_type=Release patches=a08bbe1 arch=linux-ubuntu20.04-x86_64
[+]  gftl34f                      ^[email protected]%[email protected]+bz2+ctypes+dbm~debug+libxml2+lzma~nis~optimizations+pic+pyexpat+pythoncmd+readline+shared+sqlite3+ssl~tix~tkinter~ucs4+uuid+zlib patches=0d98e93,4c24573,f2fd060 arch=linux-ubuntu20.04-x86_64
[+]  3ns5tna                          ^[email protected]%[email protected]+libbsd arch=linux-ubuntu20.04-x86_64
[+]  kibpzfz                              ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  5zyum6y                                  ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  uswfuz3                          ^[email protected]%[email protected]+bzip2+curses+git~libunistring+libxml2+tar+xz arch=linux-ubuntu20.04-x86_64
[+]  qlk2epp                              ^[email protected]%[email protected]~python arch=linux-ubuntu20.04-x86_64
[+]  gwvbhfp                                  ^[email protected]%[email protected]+pic libs=shared,static arch=linux-ubuntu20.04-x86_64
[+]  2kugi24                              ^[email protected]%[email protected] zip=pigz arch=linux-ubuntu20.04-x86_64
[+]  6jrwfc4                                  ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  x3a2d4r                                  ^[email protected]%[email protected]+programs compression=none libs=shared,static arch=linux-ubuntu20.04-x86_64
[+]  5qtg5wc                          ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  ihcyikh                          ^[email protected]%[email protected]+column_metadata+dynamic_extensions+fts~functions+rtree arch=linux-ubuntu20.04-x86_64
[+]  dsfre7u                          ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  zj7acxm                      ^[email protected]%[email protected]~gmp~ipo~python build_type=RelWithDebInfo arch=linux-ubuntu20.04-x86_64
[+]  vrt2z4v                  ^[email protected]%[email protected]~ipo build_type=Release arch=linux-ubuntu20.04-x86_64
[+]  xzv3omk              ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  5b57tdg                  ^[email protected]%[email protected]+glx+llvm+opengl~opengles+osmesa~strip buildtype=release default_library=shared patches=ee737d1 arch=linux-ubuntu20.04-x86_64
[+]  xu7jvvq                      ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  acee3tg                          ^[email protected]%[email protected]+sigsegv patches=9dc5fbd,bfdffa7 arch=linux-ubuntu20.04-x86_64
[+]  u7hwsy2                              ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  ml5tvbh                      ^[email protected]%[email protected]+lex~nls arch=linux-ubuntu20.04-x86_64
[+]  5mzjae6                          ^[email protected]%[email protected] patches=440b954 arch=linux-ubuntu20.04-x86_64
[+]  iv6zhz3                      ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  5ihrf5i                          ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  ylfxdla                      ^[email protected]%[email protected]~block_signals~conservative_checks~cxx_exceptions~debug~debug_frame+docs+pic+tests+weak_backtrace+xz~zlib components=none libs=shared,static arch=linux-ubuntu20.04-x86_64
[+]  vex4vcl                      ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  fis6jp6                          ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  yhhhztg                          ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  pe7dxpq                          ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  ub7ci27                              ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  t7xel4f                              ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  w6cnc4k                                  ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  n7q2iq6                              ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  mref4sa                              ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  t22vlc2                          ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  3mwnaio                          ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  24i2cnb                      ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  4smd4xv                      ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  mhfncfu                          ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  h52iyaq                          ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  e6mv35z                      ^[email protected]%[email protected] patches=9c87472,aa6c50d arch=linux-ubuntu20.04-x86_64
[+]  wfpqhjm                          ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  yhbf5kl                          ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  zchroq5                          ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  s5roi7t                          ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  uqmugj7                      ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  aza5h7i                          ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  ku4fu3r                      ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  l63xxu7                          ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  towhy7y                              ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  efo3pqc                                  ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  qqopv4v                              ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  nyqryd3              ^[email protected]%[email protected]+image~ipo+shared build_type=Release patches=71e6851 arch=linux-ubuntu20.04-x86_64
[+]  yted4k6                  ^[email protected]%[email protected]+bzip2~debuginfod~nls+xz arch=linux-ubuntu20.04-x86_64
[+]  xo6atzn                  ^[email protected]%[email protected]~ipo+shared build_type=Release patches=f926273 arch=linux-ubuntu20.04-x86_64
[+]  t67ee5n                      ^[email protected]%[email protected]~docs arch=linux-ubuntu20.04-x86_64
[+]  dch343z                          ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  tqvtjqs                              ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  jpprdqh                      ^[email protected]%[email protected] patches=4e1d78c,62fc8a8,ff37630 arch=linux-ubuntu20.04-x86_64
[+]  m4tefbd                          ^[email protected]%[email protected] patches=35c4492,7793209,a49dd5b arch=linux-ubuntu20.04-x86_64
[+]  mgplfvc                          ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  ymzwm3g                  ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  occp6xt              ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  y74btj7              ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  mw2f3sb                  ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  7ql2d75              ^[email protected]%[email protected]~ipo build_type=Release arch=linux-ubuntu20.04-x86_64
[+]  gb5nbls              ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  5yvj2bh      ^[email protected]%[email protected]~ipo amdgpu_target=auto build_type=Release arch=linux-ubuntu20.04-x86_64

Build error:

==> Installing raja-2022.03.0-ltz5si5tuwx6essz7cfoulxivnrbckgh
==> No binary for raja-2022.03.0-ltz5si5tuwx6essz7cfoulxivnrbckgh found: installing from source
==> Using cached archive: /spack/var/spack/cache/_source-cache/git//LLNL/RAJA.git/v2022.03.0.tar.gz
==> Warning: Fetching from mirror without a checksum!
  This package is normally checked out from a version control system, but it has been archived on a spack mirror.  This means we cannot know a checksum for the tarball in advance. Be sure that your connection to this mirror is secure!
==> No patches needed for raja
==> raja: Executing phase: 'initconfig'
==> raja: Executing phase: 'cmake'
==> raja: Executing phase: 'build'
==> Error: ProcessError: Command exited with status 2:
    'make' '-j16'

23 errors found in build log:
     122    /spack/lib/spack/env/gcc/g++ -DRAJA_EXPORTS -D__HIP_PLATFORM_AMD__=1 -D__HIP_PLATFORM_HCC__=1 -I/tmp/root/spack-stage/spack-stage-raja-2022.03.0-ltz5si5tuwx6es
            sz7cfoulxivnrbckgh/spack-src/include -I/tmp/root/spack-stage/spack-stage-raja-2022.03.0-ltz5si5tuwx6essz7cfoulxivnrbckgh/spack-build-ltz5si5/include -isystem /
            spack/opt/spack/linux-ubuntu20.04-x86_64/gcc-11.1.0/hip-5.2.3-hfpcdg2uumxftpzv7uhcstwixila35hj/include -isystem /spack/opt/spack/linux-ubuntu20.04-x86_64/gcc-1
            1.1.0/llvm-amdgpu-5.2.3-vagrfdijduqwiu34udaobkgt4hr3cp7q/lib/clang/14.0.0/include/.. -isystem /spack/opt/spack/linux-ubuntu20.04-x86_64/gcc-11.1.0/hsa-rocr-dev
            -5.2.3-nyqryd3jg6ifbyypfduiam5guuuzt2ax/include -isystem /spack/opt/spack/linux-ubuntu20.04-x86_64/gcc-11.1.0/rocprim-5.2.3-5yvj2bhumn44xq236jccmmnnvcdjvqmm/in
            clude -isystem /spack/opt/spack/linux-ubuntu20.04-x86_64/gcc-11.1.0/camp-2022.03.2-xy7tm6zzfp745gbctojfhjx4obtydnay/include -Wall -Wextra      -O2 -g -DNDEBUG
            -fPIC --rocm-path=/spack/opt/spack/linux-ubuntu20.04-x86_64/gcc-11.1.0/hip-5.2.3-hfpcdg2uumxftpzv7uhcstwixila35hj -x hip --offload-arch=gfx900 -std=c++14 -MD -
            MT CMakeFiles/RAJA.dir/src/MemUtils_CUDA.cpp.o -MF CMakeFiles/RAJA.dir/src/MemUtils_CUDA.cpp.o.d -o CMakeFiles/RAJA.dir/src/MemUtils_CUDA.cpp.o -c /tmp/root/sp
            ack-stage/spack-stage-raja-2022.03.0-ltz5si5tuwx6essz7cfoulxivnrbckgh/spack-src/src/MemUtils_CUDA.cpp
     123    [  5%] Building CXX object CMakeFiles/RAJA.dir/src/MemUtils_SYCL.cpp.o
     124    /spack/lib/spack/env/gcc/g++ -DRAJA_EXPORTS -D__HIP_PLATFORM_AMD__=1 -D__HIP_PLATFORM_HCC__=1 -I/tmp/root/spack-stage/spack-stage-raja-2022.03.0-ltz5si5tuwx6es
            sz7cfoulxivnrbckgh/spack-src/include -I/tmp/root/spack-stage/spack-stage-raja-2022.03.0-ltz5si5tuwx6essz7cfoulxivnrbckgh/spack-build-ltz5si5/include -isystem /
            spack/opt/spack/linux-ubuntu20.04-x86_64/gcc-11.1.0/hip-5.2.3-hfpcdg2uumxftpzv7uhcstwixila35hj/include -isystem /spack/opt/spack/linux-ubuntu20.04-x86_64/gcc-1
            1.1.0/llvm-amdgpu-5.2.3-vagrfdijduqwiu34udaobkgt4hr3cp7q/lib/clang/14.0.0/include/.. -isystem /spack/opt/spack/linux-ubuntu20.04-x86_64/gcc-11.1.0/hsa-rocr-dev
            -5.2.3-nyqryd3jg6ifbyypfduiam5guuuzt2ax/include -isystem /spack/opt/spack/linux-ubuntu20.04-x86_64/gcc-11.1.0/rocprim-5.2.3-5yvj2bhumn44xq236jccmmnnvcdjvqmm/in
            clude -isystem /spack/opt/spack/linux-ubuntu20.04-x86_64/gcc-11.1.0/camp-2022.03.2-xy7tm6zzfp745gbctojfhjx4obtydnay/include -Wall -Wextra      -O2 -g -DNDEBUG
            -fPIC --rocm-path=/spack/opt/spack/linux-ubuntu20.04-x86_64/gcc-11.1.0/hip-5.2.3-hfpcdg2uumxftpzv7uhcstwixila35hj -x hip --offload-arch=gfx900 -std=c++14 -MD -
            MT CMakeFiles/RAJA.dir/src/MemUtils_HIP.cpp.o -MF CMakeFiles/RAJA.dir/src/MemUtils_HIP.cpp.o.d -o CMakeFiles/RAJA.dir/src/MemUtils_HIP.cpp.o -c /tmp/root/spack
            -stage/spack-stage-raja-2022.03.0-ltz5si5tuwx6essz7cfoulxivnrbckgh/spack-src/src/MemUtils_HIP.cpp
     125    [  6%] Building CXX object CMakeFiles/RAJA.dir/src/PluginStrategy.cpp.o
     126    /spack/lib/spack/env/gcc/g++ -DRAJA_EXPORTS -D__HIP_PLATFORM_AMD__=1 -D__HIP_PLATFORM_HCC__=1 -I/tmp/root/spack-stage/spack-stage-raja-2022.03.0-ltz5si5tuwx6es
            sz7cfoulxivnrbckgh/spack-src/include -I/tmp/root/spack-stage/spack-stage-raja-2022.03.0-ltz5si5tuwx6essz7cfoulxivnrbckgh/spack-build-ltz5si5/include -isystem /
            spack/opt/spack/linux-ubuntu20.04-x86_64/gcc-11.1.0/hip-5.2.3-hfpcdg2uumxftpzv7uhcstwixila35hj/include -isystem /spack/opt/spack/linux-ubuntu20.04-x86_64/gcc-1
            1.1.0/llvm-amdgpu-5.2.3-vagrfdijduqwiu34udaobkgt4hr3cp7q/lib/clang/14.0.0/include/.. -isystem /spack/opt/spack/linux-ubuntu20.04-x86_64/gcc-11.1.0/hsa-rocr-dev
            -5.2.3-nyqryd3jg6ifbyypfduiam5guuuzt2ax/include -isystem /spack/opt/spack/linux-ubuntu20.04-x86_64/gcc-11.1.0/rocprim-5.2.3-5yvj2bhumn44xq236jccmmnnvcdjvqmm/in
            clude -isystem /spack/opt/spack/linux-ubuntu20.04-x86_64/gcc-11.1.0/camp-2022.03.2-xy7tm6zzfp745gbctojfhjx4obtydnay/include -Wall -Wextra      -O2 -g -DNDEBUG
            -fPIC --rocm-path=/spack/opt/spack/linux-ubuntu20.04-x86_64/gcc-11.1.0/hip-5.2.3-hfpcdg2uumxftpzv7uhcstwixila35hj -x hip --offload-arch=gfx900 -std=c++14 -MD -
            MT CMakeFiles/RAJA.dir/src/MemUtils_SYCL.cpp.o -MF CMakeFiles/RAJA.dir/src/MemUtils_SYCL.cpp.o.d -o CMakeFiles/RAJA.dir/src/MemUtils_SYCL.cpp.o -c /tmp/root/sp
            ack-stage/spack-stage-raja-2022.03.0-ltz5si5tuwx6essz7cfoulxivnrbckgh/spack-src/src/MemUtils_SYCL.cpp
     127    /spack/lib/spack/env/gcc/g++ -DRAJA_EXPORTS -D__HIP_PLATFORM_AMD__=1 -D__HIP_PLATFORM_HCC__=1 -I/tmp/root/spack-stage/spack-stage-raja-2022.03.0-ltz5si5tuwx6es
            sz7cfoulxivnrbckgh/spack-src/include -I/tmp/root/spack-stage/spack-stage-raja-2022.03.0-ltz5si5tuwx6essz7cfoulxivnrbckgh/spack-build-ltz5si5/include -isystem /
            spack/opt/spack/linux-ubuntu20.04-x86_64/gcc-11.1.0/hip-5.2.3-hfpcdg2uumxftpzv7uhcstwixila35hj/include -isystem /spack/opt/spack/linux-ubuntu20.04-x86_64/gcc-1
            1.1.0/llvm-amdgpu-5.2.3-vagrfdijduqwiu34udaobkgt4hr3cp7q/lib/clang/14.0.0/include/.. -isystem /spack/opt/spack/linux-ubuntu20.04-x86_64/gcc-11.1.0/hsa-rocr-dev
            -5.2.3-nyqryd3jg6ifbyypfduiam5guuuzt2ax/include -isystem /spack/opt/spack/linux-ubuntu20.04-x86_64/gcc-11.1.0/rocprim-5.2.3-5yvj2bhumn44xq236jccmmnnvcdjvqmm/in
            clude -isystem /spack/opt/spack/linux-ubuntu20.04-x86_64/gcc-11.1.0/camp-2022.03.2-xy7tm6zzfp745gbctojfhjx4obtydnay/include -Wall -Wextra      -O2 -g -DNDEBUG
            -fPIC --rocm-path=/spack/opt/spack/linux-ubuntu20.04-x86_64/gcc-11.1.0/hip-5.2.3-hfpcdg2uumxftpzv7uhcstwixila35hj -x hip --offload-arch=gfx900 -std=c++14 -MD -
            MT CMakeFiles/RAJA.dir/src/PluginStrategy.cpp.o -MF CMakeFiles/RAJA.dir/src/PluginStrategy.cpp.o.d -o CMakeFiles/RAJA.dir/src/PluginStrategy.cpp.o -c /tmp/root
            /spack-stage/spack-stage-raja-2022.03.0-ltz5si5tuwx6essz7cfoulxivnrbckgh/spack-src/src/PluginStrategy.cpp
  >> 128    g++-11: error: unrecognized command-line option '--rocm-path=/spack/opt/spack/linux-ubuntu20.04-x86_64/gcc-11.1.0/hip-5.2.3-hfpcdg2uumxftpzv7uhcstwixila35hj'
  >> 129    g++-11: error: unrecognized command-line option '--rocm-path=/spack/opt/spack/linux-ubuntu20.04-x86_64/gcc-11.1.0/hip-5.2.3-hfpcdg2uumxftpzv7uhcstwixila35hj'
  >> 130    g++-11: error: unrecognized command-line option '--rocm-path=/spack/opt/spack/linux-ubuntu20.04-x86_64/gcc-11.1.0/hip-5.2.3-hfpcdg2uumxftpzv7uhcstwixila35hj'
  >> 131    g++-11: error: unrecognized command-line option '--rocm-path=/spack/opt/spack/linux-ubuntu20.04-x86_64/gcc-11.1.0/hip-5.2.3-hfpcdg2uumxftpzv7uhcstwixila35hj'
  >> 132    g++-11: error: unrecognized command-line option '--rocm-path=/spack/opt/spack/linux-ubuntu20.04-x86_64/gcc-11.1.0/hip-5.2.3-hfpcdg2uumxftpzv7uhcstwixila35hj'
  >> 133    g++-11: error: unrecognized command-line option '--rocm-path=/spack/opt/spack/linux-ubuntu20.04-x86_64/gcc-11.1.0/hip-5.2.3-hfpcdg2uumxftpzv7uhcstwixila35hj'
  >> 134    g++-11: error: unrecognized command-line option '--rocm-path=/spack/opt/spack/linux-ubuntu20.04-x86_64/gcc-11.1.0/hip-5.2.3-hfpcdg2uumxftpzv7uhcstwixila35hj'
  >> 135    g++-11: error: unrecognized command-line option '--offload-arch=gfx900'
  >> 136    g++-11: error: unrecognized command-line option '--offload-arch=gfx900'
  >> 137    make[2]: *** [CMakeFiles/RAJA.dir/build.make:149: CMakeFiles/RAJA.dir/src/MemUtils_SYCL.cpp.o] Error 1
     138    make[2]: *** Waiting for unfinished jobs....
  >> 139    make[2]: *** [CMakeFiles/RAJA.dir/build.make:163: CMakeFiles/RAJA.dir/src/PluginStrategy.cpp.o] Error 1
  >> 140    g++-11: error: unrecognized command-line option '--offload-arch=gfx900'
  >> 141    g++-11: error: unrecognized command-line option '--offload-arch=gfx900'
  >> 142    g++-11: error: unrecognized command-line option '--offload-arch=gfx900'
  >> 143    make[2]: *** [CMakeFiles/RAJA.dir/build.make:79: CMakeFiles/RAJA.dir/src/AlignedRangeIndexSetBuilders.cpp.o] Error 1
  >> 144    make[2]: *** [CMakeFiles/RAJA.dir/build.make:107: CMakeFiles/RAJA.dir/src/LockFreeIndexSetBuilders.cpp.o] Error 1
  >> 145    g++-11: error: unrecognized command-line option '--offload-arch=gfx900'
  >> 146    make[2]: *** [CMakeFiles/RAJA.dir/build.make:93: CMakeFiles/RAJA.dir/src/DepGraphNode.cpp.o] Error 1
  >> 147    make[2]: *** [CMakeFiles/RAJA.dir/build.make:135: CMakeFiles/RAJA.dir/src/MemUtils_HIP.cpp.o] Error 1
  >> 148    g++-11: error: unrecognized command-line option '--offload-arch=gfx900'
  >> 149    make[2]: *** [CMakeFiles/RAJA.dir/build.make:121: CMakeFiles/RAJA.dir/src/MemUtils_CUDA.cpp.o] Error 1
     150    make[2]: Leaving directory '/tmp/root/spack-stage/spack-stage-raja-2022.03.0-ltz5si5tuwx6essz7cfoulxivnrbckgh/spack-build-ltz5si5'
  >> 151    make[1]: *** [CMakeFiles/Makefile2:273: CMakeFiles/RAJA.dir/all] Error 2
     152    make[1]: Leaving directory '/tmp/root/spack-stage/spack-stage-raja-2022.03.0-ltz5si5tuwx6essz7cfoulxivnrbckgh/spack-build-ltz5si5'
  >> 153    make: *** [Makefile:139: all] Error 2

Error message

Error message
... see above

Information on your system

  • Spack: 0.19.0.dev0 (4b866e8)
  • Python: 3.8.10
  • Platform: linux-ubuntu20.04-cascadelake
  • Concretizer: clingo

Additional information

CMakeOutput.log
CMakeError.log
spack-build-env.txt
spack-build-out.txt

@davidbeckingsale @wspear @mcfadden8

General information

  • I have run spack debug report and reported the version of Spack/Python/Platform
  • I have run spack maintainers <name-of-the-package> and @mentioned any maintainers
  • I have uploaded the build log and environment files
  • I have searched the issues of this repo and believe this is not a duplicate

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions