-
Notifications
You must be signed in to change notification settings - Fork 546
Open
Labels
Description
Steps to reproduce the issue
In an environment with gcc@11.5.0 as the system compiler:
spack:
concretizer:
targets:
host_compatible: false
unify: true
packages:
all:
require: target=zen4
variants:
- +cuda
- cuda_arch=90
definitions:
- current_compiler:
- gcc@11.5.0 +bootstrap -nvptx
- cuda_compiler:
- cuda@13.0.2
- gcc_compiler:
- gcc@15.2.0 -bootstrap +nvptx +binutils
- all:
- $gcc_compiler
- out_of_matrix:
- $cuda_compiler
specs:
- matrix:
- - $all
- - $%current_compiler
- $out_of_matrix
view: false
modules:
default:
enable: []Concretization output:
- gt243rr gcc@15.2.0+binutils~bootstrap~graphite~mold+nvptx~piclibs~strip build_system=autotools build_type=RelWithDebInfo languages:='c,c++,fortran' platform=linux os=rhel9 target=zen4 %c,cxx=gcc@11.5.0
[+] ued5ku3 ^gawk@5.3.1~nls build_system=autotools platform=linux os=rhel9 target=zen4 %c=gcc@11.5.0
[+] woc52vk ^gmp@6.3.0+cxx build_system=autotools libs:=shared,static platform=linux os=rhel9 target=zen4 %c,cxx=gcc@11.5.0
[+] f5wqmi7 ^mpc@1.3.1 build_system=autotools libs:=shared,static platform=linux os=rhel9 target=zen4 %c=gcc@11.5.0
[+] vxgnls5 ^mpfr@4.2.1 build_system=autotools libs:=shared,static patches:=3ec29a6 platform=linux os=rhel9 target=zen4 %c=gcc@11.5.0
[+] ja3p4nl ^autoconf-archive@2023.02.20 build_system=autotools platform=linux os=rhel9 target=zen4
[+] xyiihtb ^nvptx-tools@2023-09-13 build_system=autotools commit=c321f1a3573dd89a12e3291d690207685a34df6e platform=linux os=rhel9 target=zen4 %c,cxx=gcc@11.5.0
Install gcc:
$ spack install -j8 gcc > install.logError message
Error message:
==> gcc: Executing phase: 'autoreconf'
==> gcc: Executing phase: 'configure'
==> Error: ProcessError: Command exited with status 2:
'/path/to/gmake-4.4.1-blavlclxiepqui34npqmrmllpghthpmt/bin/make' '-j16'
==> Installing gcc-15.2.0-gt243rrmcenevuh2fikgawyqn6un546z [36/36]
4 errors found in build log:
5201 checking for nvptx-none-nm... /path/to/
spack-stage-gcc-15.2.0-gt243rrmcenevuh2fikgawyqn6un546z/spack-src/
spack-build-nvptx/./gcc/nm
5202 checking for nvptx-none-ranlib... /path/to/gcc-15.2.0-gt243rrmcenevu
h2fikgawyqn6un546z/nvptx-none/bin/ranlib
5203 checking for nvptx-none-strip... nvptx-none-strip
5204 checking whether ln -s works... yes
5205 checking for nvptx-none-gcc... /path/to
/spack-stage-gcc-15.2.0-gt243rrmcenevuh2fikgawyqn6un546z/spack-src
/spack-build-nvptx/./gcc/xgcc -B/path/to/spack-stage-gcc-15.2.0-gt243rrmcenevuh2fikgawyqn6un546z/spack-src/spack-build-nvptx/./gcc/ -nostdinc -B/path/to/spack-stage-gcc-15.2.0-gt243rrmcenevuh2fikgawyqn6un546z/s
pack-src/spack-build-nvptx/nvptx-none/newlib/ -isystem /path/to/spack-stage-gcc-15.2.0-gt243rrmcenevuh2fi
kgawyqn6un546z/spack-src/spack-build-nvptx/nvptx-none/newlib/targ-
include -isystem /path/to/spack-stage-g
cc-15.2.0-gt243rrmcenevuh2fikgawyqn6un546z/spack-src/newlib/libc/i
nclude -B/path/to/gcc-15.2.0-gt243rrmcenevuh2fikgawyqn6un546z/nvptx-
none/bin/ -B/path/to/gcc-15.2.0-gt243rrmcenevuh2fikgawyqn6un546z/nvp
tx-none/lib/ -isystem /path/to/gcc-15.2.0-gt243rrmcenevuh2fikgawyqn6
un546z/nvptx-none/include -isystem /path/to/gcc-15.2.0-gt243rrmcenev
uh2fikgawyqn6un546z/nvptx-none/sys-include
5206 mv -f .deps/marshall.Tpo .deps/marshall.Plo
>> 5207 checking for suffix of object files... configure: error: in `/path/to/spack-stage-gcc-15.2.0-gt243rrmcene
vuh2fikgawyqn6un546z/spack-src/spack-build-nvptx/nvptx-none/libgcc
':
>> 5208 configure: error: cannot compute suffix of object files: cannot co
mpile
5209 See `config.log' for more details
>> 5210 make[1]: *** [Makefile:13527: configure-target-libgcc] Error 1
5211 make[1]: *** Waiting for unfinished jobs....
5212 mv -f .deps/connection.Tpo .deps/connection.Plo
5213 mv -f .deps/compiler.Tpo .deps/compiler.Plo
5214 mv -f .deps/findcomp.Tpo .deps/findcomp.Plo
5215 mv -f .deps/context.Tpo .deps/context.Plo
5216 /path/to/compiler-wrapper-1.0-fscnoshwfa6j27qoly2dg3zgtkftpald/libex
ec/spack/gcc/g++ -o g++-mapper-server server.o resolver.o ../li
bcody/libcody.a ../libiberty/libiberty.a
...
5235 libtool: link: (cd ".libs" && rm -f "libcp1plugin.so.0" && ln -s "
libcp1plugin.so.0.0.0" "libcp1plugin.so.0")
5236 libtool: link: (cd ".libs" && rm -f "libcp1plugin.so" && ln -s "li
bcp1plugin.so.0.0.0" "libcp1plugin.so")
5237 libtool: link: ( cd ".libs" && rm -f "libcp1plugin.la" && ln -s ".
./libcp1plugin.la" "libcp1plugin.la" )
5238 make[3]: Leaving directory '/path/to/sp
ack-stage-gcc-15.2.0-gt243rrmcenevuh2fikgawyqn6un546z/spack-src/sp
ack-build-nvptx/libcc1'
5239 make[2]: Leaving directory '/path/to/sp
ack-stage-gcc-15.2.0-gt243rrmcenevuh2fikgawyqn6un546z/spack-src/sp
ack-build-nvptx/libcc1'
5240 make[1]: Leaving directory '/path/to/sp
ack-stage-gcc-15.2.0-gt243rrmcenevuh2fikgawyqn6un546z/spack-src/sp
ack-build-nvptx'
>> 5241 make: *** [Makefile:1059: all] Error 2
==> Error: gcc-15.2.0-gt243rrmcenevuh2fikgawyqn6un546z: ProcessError: Command exited with status 2:
'/path/to/gmake-4.4.1-blavlclxiepqui34npqmrmllpghthpmt/bin/make' '-j16'
==> Error: gcc-15.2.0-gt243rrmcenevuh2fikgawyqn6un546z: Package was not installed
==> Error: Installation request failed. Refer to reported errors for failing package(s).
Details are:
checking for gawk... gawk
checking for nvptx-none-ar... /path/to/gcc-15.2.0-gt243rrmcenevuh2fikgawyqn6un546z/nvptx-none/bin/ar
checking for nvptx-none-lipo... nvptx-none-lipo
checking for nvptx-none-nm... /path/to/spack-stage-gcc-15.2.0-gt243rrmcenevuh2fikgawyqn6un546z/spack-src/spack-build-nvptx/./gcc/nm
checking for nvptx-none-ranlib... /path/to/gcc-15.2.0-gt243rrmcenevuh2fikgawyqn6un546z/nvptx-none/bin/ranlib
checking for nvptx-none-strip... nvptx-none-strip
checking whether ln -s works... yes
checking for nvptx-none-gcc... /path/to/spack-stage-gcc-15.2.0-gt243rrmcenevuh2fikgawyqn6un546z/spack-src/spack-build-nvptx/./gcc/xgcc -B/path/to/spack-stage-gcc-15.2.0-gt243rrmcenevuh2fikgawyqn6un546z/spack-src/spack-build-nvptx/./gcc/ -nostdinc -B/path/to/spack-stage-gcc-15.2.0-gt243rrmcenevuh2fikgawyqn6un546z/spack-src/spack-build-nvptx/nvptx-none/newlib/ -isystem /path/to/spack-stage-gcc-15.2.0-gt243rrmcenevuh2fikgawyqn6un546z/spack-src/spack-build-nvptx/nvptx-none/newlib/targ-include -isystem /path/to/spack-stage-gcc-15.2.0-gt243rrmcenevuh2fikgawyqn6un546z/spack-src/newlib/libc/include -B/path/to/gcc-15.2.0-gt243rrmcenevuh2fikgawyqn6un546z/nvptx-none/bin/ -B/path/to/gcc-15.2.0-gt243rrmcenevuh2fikgawyqn6un546z/nvptx-none/lib/ -isystem /path/to/gcc-15.2.0-gt243rrmcenevuh2fikgawyqn6un546z/nvptx-none/include -isystem /path/to/gcc-15.2.0-gt243rrmcenevuh2fikgawyqn6un546z/nvptx-none/sys-include
mv -f .deps/marshall.Tpo .deps/marshall.Plo
checking for suffix of object files... configure: error: in `/path/to/spack-stage-gcc-15.2.0-gt243rrmcenevuh2fikgawyqn6un546z/spack-src/spack-build-nvptx/nvptx-none/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details
make[1]: *** [Makefile:13527: configure-target-libgcc] Error 1
make[1]: *** Waiting for unfinished jobs....
mv -f .deps/connection.Tpo .deps/connection.Plo
mv -f .deps/compiler.Tpo .deps/compiler.Plo
mv -f .deps/findcomp.Tpo .deps/findcomp.Plo
mv -f .deps/context.Tpo .deps/context.Plo
Information on your system
- Spack: 1.1.1 (spack/spack@2e2169d)
- Builtin repo: 119680a
- Python: 3.9.21
- Platform: linux-rhel9-sapphirerapids
Additional information
In config.log inside /path/to//spack-stage-gcc-15.2.0-gt243rrmcenevuh2fikgawyqn6un546z/spack-src/spack-build-nvptx/nvptx-none/libgcc/:
ptxas fatal : Value 'sm_52' is not defined for option 'gpu-name'
nvptx-as: ptxas returned 255 exit status
configure:3579: $? = 1
configure:3792: checking for suffix of object files
configure:3814: /path/to/spack-stage-gcc-15.2.0-gt243rrmcenevuh2fikgawyqn6un546z/spack-src/spack-build-nvptx/./gcc/xgcc -B/path/to/spack-stage-gcc-15.2.0-gt243rrmcenevuh2fikgawyqn6un546z/spack-src/spack-build-nvptx/./gcc/ -nostdinc -B/path/to/spack-stage-gcc-15.2.0-gt243rrmcenevuh2fikgawyqn6un546z/spack-src/spack-build-nvptx/nvptx-none/newlib/ -isystem /path/to/spack-stage-gcc-15.2.0-gt243rrmcenevuh2fikgawyqn6un546z/spack-src/spack-build-nvptx/nvptx-none/newlib/targ-include -isystem /path/to/spack-stage-gcc-15.2.0-gt243rrmcenevuh2fikgawyqn6un546z/spack-src/newlib/libc/include -B/path/to/gcc-15.2.0-gt243rrmcenevuh2fikgawyqn6un546z/nvptx-none/bin/ -B/path/to/gcc-15.2.0-gt243rrmcenevuh2fikgawyqn6un546z/nvptx-none/lib/ -isystem /path/to/gcc-15.2.0-gt243rrmcenevuh2fikgawyqn6un546z/nvptx-none/include -isystem /path/to/gcc-15.2.0-gt243rrmcenevuh2fikgawyqn6un546z/nvptx-none/sys-include -c -g -O2 conftest.c >&5
ptxas fatal : Value 'sm_52' is not defined for option 'gpu-name'
nvptx-as: ptxas returned 255 exit status
configure:3818: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3832: error: in `/path/to/spack-stage-gcc-15.2.0-gt243rrmcenevuh2fikgawyqn6un546z/spack-src/spack-build-nvptx/nvptx-none/libgcc':
configure:3834: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details
General information
- I have run
spack debug reportand 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
Reactions are currently unavailable