Skip to content

Installation issue: pytorch 1.13 (hunks failed error) #34227

@jpbrodsky

Description

@jpbrodsky

Steps to reproduce the issue

==> Concretized py-torch%[email protected]+caffe2+cuda cuda_arch=70
 -   v6yjyzu  [email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument" +caffe2+cuda+cudnn~debug+distributed+fbgemm+gloo+kineto~magma~metal~mkldnn+mpi~nccl+nnpack+numa+numpy+onnx_ml+openmp+qnnpack~rocm+tensorpipe~test+valgrind+xnnpack build_system=python_pip cuda_arch=70 patches=2fac519 arch=linux-rhel7-power9le
[+]  zqhjhif      ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument" ~doc+ncurses+ownlibs~qt build_system=generic build_type=Release arch=linux-rhel7-power9le
[+]  ohy62xg      ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument" ~allow-unsupported-compilers~dev build_system=generic arch=linux-rhel7-power9le
[+]  n6q5a4b      ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument"  build_system=generic arch=linux-rhel7-power9le
[+]  ivnpmy6      ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument" ~ipo build_system=cmake build_type=RelWithDebInfo arch=linux-rhel7-power9le
[+]  cgt57bn      ^fxdiv@2020-04-17%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument" ~ipo build_system=cmake build_type=RelWithDebInfo arch=linux-rhel7-power9le
[+]  4kbctbv      ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument"  build_system=generic arch=linux-rhel7-power9le
[+]  mvrcpzr      ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument"  build_system=autotools patches=4e1d78c,62fc8a8,ff37630 arch=linux-rhel7-power9le
[+]  g3waqkd          ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument"  build_system=autotools patches=7793209 arch=linux-rhel7-power9le
[+]  4ctomtb          ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument"  build_system=autotools arch=linux-rhel7-power9le
[+]  fyjwelv          ^gnuconfig@2021-08-14%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument"  build_system=generic arch=linux-rhel7-power9le
[+]  i2mob5z          ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument"  build_system=autotools arch=linux-rhel7-power9le
[+]  yrjn2hu          ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument" +sigsegv build_system=autotools arch=linux-rhel7-power9le
[+]  uiglknb      ^[email protected]%[email protected]~bignuma~consistent_fpcsr+fortran~ilp64+locking+pic+shared build_system=makefile patches=d3d9b15 symbol_suffix=none threads=none arch=linux-rhel7-power9le
[+]  q3bkmui          ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument" +cpanm+shared+threads build_system=generic patches=0eac10e,3bbd7d6 arch=linux-rhel7-power9le
[+]  aihael3      ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument" ~ipo+shared build_system=cmake build_type=Release arch=linux-rhel7-power9le
[+]  wn4qh4f          ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument" +optimize+pic+shared build_system=makefile arch=linux-rhel7-power9le
[+]  p4pkx3m      ^psimd@2020-05-17%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument" ~ipo build_system=cmake build_type=RelWithDebInfo arch=linux-rhel7-power9le
[+]  v5eemzh      ^pthreadpool@2021-04-13%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument" ~ipo build_system=cmake build_type=RelWithDebInfo arch=linux-rhel7-power9le
[+]  a5ymndy      ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument"  build_system=python_pip arch=linux-rhel7-power9le
[+]  fu32txi      ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument"  build_system=python_pip arch=linux-rhel7-power9le
[+]  l45qtjx          ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument"  build_system=autotools arch=linux-rhel7-power9le
[+]  i3uzcn3          ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument"  build_system=autotools arch=linux-rhel7-power9le
[+]  lav5umi          ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument"  build_system=python_pip arch=linux-rhel7-power9le
[+]  vmi7ju7      ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument"  build_system=python_pip arch=linux-rhel7-power9le
[+]  crk3dp7      ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument --gcc-toolchain=/usr/tce/packages/gcc/gcc-8.3.1" cxxflags="-Wno-unused-command-line-argument --gcc-toolchain=/usr/tce/packages/gcc/gcc-8.3.1" +blas+lapack build_system=python_pip patches=802970a,873745d arch=linux-rhel7-power9le
[+]  taue7mv          ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument"  build_system=python_pip arch=linux-rhel7-power9le
[+]  pdjnndt      ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument"  build_system=generic arch=linux-rhel7-power9le
[+]  6qgkuhm      ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument" ~cpp build_system=python_pip arch=linux-rhel7-power9le
[+]  mj47ep4      ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument" ~ipo build_system=cmake build_type=RelWithDebInfo arch=linux-rhel7-power9le
[+]  ydw7zqo      ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument" +libyaml build_system=python_pip arch=linux-rhel7-power9le
[+]  fi6ql4f          ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument"  build_system=autotools arch=linux-rhel7-power9le
[+]  lybx2uy      ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument" ~socks build_system=python_pip arch=linux-rhel7-power9le
[+]  rmjruhf          ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument"  build_system=python_pip arch=linux-rhel7-power9le
[+]  sxguwvh          ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument"  build_system=python_pip arch=linux-rhel7-power9le
[+]  3xbq5xw          ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument"  build_system=python_pip arch=linux-rhel7-power9le
[+]  xnn3ler          ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument" ~brotli~secure~socks build_system=python_pip arch=linux-rhel7-power9le
[+]  h3uzvg3      ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument"  build_system=generic arch=linux-rhel7-power9le
[+]  kxxndql      ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument"  build_system=python_pip arch=linux-rhel7-power9le
[+]  tqktodp      ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument" ~notebook~telegram build_system=python_pip arch=linux-rhel7-power9le
[+]  hno7nix          ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument" +toml build_system=python_pip arch=linux-rhel7-power9le
[+]  dsslu4d              ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument"  build_system=python_pip arch=linux-rhel7-power9le
[+]  yn4kx5g                  ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument"  build_system=python_pip arch=linux-rhel7-power9le
[+]  gvhvum6              ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument"  build_system=python_pip arch=linux-rhel7-power9le
[+]  rxezh7h      ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument"  build_system=python_pip arch=linux-rhel7-power9le
[+]  36najof          ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument"  build_system=python_pip arch=linux-rhel7-power9le
[+]  5t543th      ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument"  build_system=generic arch=linux-rhel7-power9le
[+]  xcx3agw      ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument" +bz2+ctypes+dbm~debug+libxml2+lzma~nis~optimizations+pic+pyexpat+pythoncmd+readline+shared+sqlite3+ssl~tix~tkinter~ucs4+uuid+zlib build_system=generic patches=0d98e93,4c24573,f2fd060 arch=linux-rhel7-power9le
[+]  hz7n24t          ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument" ~debug~pic+shared build_system=generic arch=linux-rhel7-power9le
[+]  hyoxtgt          ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument" +libbsd build_system=autotools arch=linux-rhel7-power9le
[+]  3hps6sb              ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument"  build_system=autotools arch=linux-rhel7-power9le
[+]  t2h4qdp                  ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument"  build_system=autotools arch=linux-rhel7-power9le
[+]  2jmqqz3          ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument"  build_system=autotools arch=linux-rhel7-power9le
[+]  tymkwyw          ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument" +bzip2+curses+git~libunistring+libxml2+tar+xz build_system=autotools arch=linux-rhel7-power9le
[+]  kbumwpb              ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument"  build_system=autotools libs=shared,static arch=linux-rhel7-power9le
[+]  ykm3sxt              ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument" ~python build_system=autotools arch=linux-rhel7-power9le
[+]  qruqdlh              ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument"  build_system=autotools patches=08921fc,5c314db,d428578 zip=pigz arch=linux-rhel7-power9le
[+]  h62wgc2          ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument" ~symlinks+termlib abi=5 build_system=autotools patches=f84b270 arch=linux-rhel7-power9le
[+]  obnnh3v          ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument" ~docs~shared build_system=generic certs=mozilla arch=linux-rhel7-power9le
[+]  sni5oyj          ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument"  build_system=autotools arch=linux-rhel7-power9le
[+]  hckomnf          ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument" +column_metadata~dynamic_extensions+fts+rtree build_system=autotools arch=linux-rhel7-power9le
[+]  7zokxvd          ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument"  build_system=autotools arch=linux-rhel7-power9le
[+]  zjoybpz          ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument" ~pic build_system=autotools libs=shared,static arch=linux-rhel7-power9le
[+]  yuc6fvx      ^spectrum-mpi@rolling-release%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument"  build_system=bundle arch=linux-rhel7-ppc64le
[+]  yjzlzaz      ^[email protected]%[email protected] cflags="-Wno-unused-command-line-argument" cxxflags="-Wno-unused-command-line-argument" +boost+mpi+only64bit~ubsan build_system=autotools libs=shared,static arch=linux-rhel7-power9le

Error message

Error message
==> Installing py-torch-1.13.0-v6yjyzuckwwfmarvivcbcfnm6wzznaps
==> No binary for py-torch-1.13.0-v6yjyzuckwwfmarvivcbcfnm6wzznaps found: installing from source
==> Using cached archive: /p/gpfs1/brodsky3/nexo/spack/var/spack/cache/_source-cache/git//pytorch/pytorch.git/v1.13.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!
==> Using cached archive: /p/gpfs1/brodsky3/nexo/spack/var/spack/cache/_source-cache/archive/2f/2fac519cca8997f074c263505657ff867e7ba2d6637fc8bda99c70a99be0442a
1 out of 6 hunks FAILED -- saving rejects to file torch/utils/cpp_extension.py.rej
==> Patch https://github.com/open-ce/pytorch-feedstock/raw/0a145060ca8523314ec3893af935c3b140e2d0b0/pytorch-1.12/recipe/0302-cpp-extension.patch failed.
==> Error: ProcessError: Command exited with status 1:
    '/usr/bin/patch' '-s' '-p' '1' '-i' '/var/tmp/brodsky3/spack-stage/spack-stage-_yswbp0s/0302-cpp-extension.patch' '-d' '.
(same error reproduces if the source cache is removed and the source is downloaded fresh)

Information on your system

  • Spack: 0.19.0 (a869112)
  • Python: 3.8.2
  • Platform: linux-rhel7-power9le
  • Concretizer: clingo

Additional information

@adamjstewart

build log and env files are not generated, looks like spack stops before that happens.

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

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions