spack / spack

A flexible package manager that supports multiple versions, configurations, platforms, and compilers.
https://spack.io
Other
4.21k stars 2.25k forks source link

Installation issue: wget #41099

Open srinathv opened 10 months ago

srinathv commented 10 months ago

Steps to reproduce the issue

$ spack spec -I <spec>
Input spec
--------------------------------
 -   wget

Concretized
--------------------------------
 -   cm75nwq  wget@1.21.3%apple-clang@14.0.3~libpsl~pcre~python+zlib build_system=autotools patches=8f50e8a ssl=openssl arch=darwin-ventura-m1
[+]  hfqwrpy      ^gettext@0.21.1%apple-clang@14.0.3+bzip2+curses+git~libunistring+libxml2+tar+xz build_system=autotools arch=darwin-ventura-m1
[+]  un2ix7r          ^bzip2@1.0.8%apple-clang@14.0.3~debug~pic+shared build_system=generic arch=darwin-ventura-m1
[+]  wsr3uv3              ^diffutils@3.9%apple-clang@14.0.3 build_system=autotools arch=darwin-ventura-m1
[+]  dsmucra          ^libxml2@2.10.3%apple-clang@14.0.3+pic~python+shared build_system=autotools arch=darwin-ventura-m1
[+]  eixs23r          ^ncurses@6.4%apple-clang@14.0.3~symlinks+termlib abi=none build_system=autotools arch=darwin-ventura-m1
[+]  5l6j7vk          ^tar@1.34%apple-clang@14.0.3 build_system=autotools zip=pigz arch=darwin-ventura-m1
[+]  at7tupj              ^pigz@2.7%apple-clang@14.0.3 build_system=makefile arch=darwin-ventura-m1
[+]  4rc5mbx              ^zstd@1.5.5%apple-clang@14.0.3+programs build_system=makefile compression=none libs=shared,static arch=darwin-ventura-m1
[+]  2gya4qu          ^xz@5.4.1%apple-clang@14.0.3~pic build_system=autotools libs=shared,static arch=darwin-ventura-m1
[e]  gnkia2o      ^gmake@3.81%apple-clang@14.0.3~guile build_system=autotools patches=ca60bd9 arch=darwin-ventura-m1
[+]  bmsack4      ^gnuconfig@2022-09-17%apple-clang@14.0.3 build_system=generic arch=darwin-ventura-m1
[+]  zfnlavd      ^libiconv@1.17%apple-clang@14.0.3 build_system=autotools libs=shared,static arch=darwin-ventura-m1
[+]  ndbbznr      ^openssl@3.1.2%apple-clang@14.0.3~docs+shared build_system=generic certs=mozilla arch=darwin-ventura-m1
[-]  jp6h6e4          ^ca-certificates-mozilla@2023-05-30%apple-clang@14.0.3 build_system=generic arch=darwin-ventura-m1
[-]  w4xdfu3          ^perl@5.38.0%apple-clang@14.0.3+cpanm+opcode+open+shared+threads build_system=generic patches=714e4d1 arch=darwin-ventura-m1
[-]  vq3xak6              ^berkeley-db@18.1.40%apple-clang@14.0.3+cxx~docs+stl build_system=autotools patches=26090f4,b231fcc arch=darwin-ventura-m1
[+]  fymuh4a              ^bzip2@1.0.8%apple-clang@14.0.3~debug~pic+shared build_system=generic arch=darwin-ventura-m1
[+]  dvq4abp                  ^diffutils@3.9%apple-clang@14.0.3 build_system=autotools arch=darwin-ventura-m1
[+]  njaeiaj                      ^libiconv@1.17%apple-clang@14.0.3 build_system=autotools libs=shared,static arch=darwin-ventura-m1
[+]  me2iznt              ^gdbm@1.23%apple-clang@14.0.3 build_system=autotools arch=darwin-ventura-m1
[+]  kdegqyh                  ^readline@8.2%apple-clang@14.0.3 build_system=autotools patches=bbf97f1 arch=darwin-ventura-m1
[e]  okb43ho      ^perl@5.34.0%apple-clang@14.0.3~cpanm+opcode+open+shared+threads build_system=generic arch=darwin-ventura-m1
[+]  5z42itc      ^pkgconf@1.9.5%apple-clang@14.0.3 build_system=autotools arch=darwin-ventura-m1
[+]  bkwbf5v      ^zlib-ng@2.1.3%apple-clang@14.0.3+compat+opt build_system=autotools patches=299b958,86c3f5b,ae9077a,b692621 arch=darwin-ventura-m1

Error message

Error message
==> [2023-11-15-18:33:28.278371] Error: ProcessError: Command exited with status 2:
    'make' '-j1' 'V=1'

...

5 errors found in build log:
     2565                                         char **out, idx_t *outlen);
     2566                                                            ^
     2567    1 warning generated.
     2568    depbase=`echo utils.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
     2569       /Users/srinath22/REPOS/Github/spack/lib/spack/env/clang/clang -DHAVE_CONFIG_H -DSYSTEM_WGETRC=\"/Users/srinath22/REPOS/Github/spack/opt/spack/darwin-vent
             ura-m1/apple-clang-14.0.3/wget-1.21.3-olsreqwljirji5zlkb66tg3gihxs7evz/etc/wgetrc\" -DLOCALEDIR=\"/Users/srinath22/REPOS/Github/spack/opt/spack/darwin-ven
             tura-m1/apple-clang-14.0.3/wget-1.21.3-olsreqwljirji5zlkb66tg3gihxs7evz/share/locale\" -I. -I/var/folders/r3/9_jygg7x3zb0ptyd1h8yrz300000gp/T/srinath22/sp
             ack-stage/spack-stage-wget-1.21.3-olsreqwljirji5zlkb66tg3gihxs7evz/spack-src/src  -I../lib -I/var/folders/r3/9_jygg7x3zb0ptyd1h8yrz300000gp/T/srinath22/sp
             ack-stage/spack-stage-wget-1.21.3-olsreqwljirji5zlkb66tg3gihxs7evz/spack-src/lib      -I/usr/local/include -I/Users/srinath22/REPOS/Github/spack/opt/spack
             /darwin-ventura-m1/apple-clang-14.0.3/openssl-3.1.2-ndbbznr4kuso5nmgd6dkajffmvft2azq/include -DHAVE_LIBSSL -I/Users/srinath22/REPOS/Github/spack/opt/spack
             /darwin-ventura-m1/apple-clang-14.0.3/zlib-ng-2.1.3-bkwbf5vyjkjtmv7cnknyb4wnqsqujz4d/include -DNDEBUG -g -O2 -MT utils.o -MD -MP -MF $depbase.Tpo -c -o ut
             ils.o /var/folders/r3/9_jygg7x3zb0ptyd1h8yrz300000gp/T/srinath22/spack-stage/spack-stage-wget-1.21.3-olsreqwljirji5zlkb66tg3gihxs7evz/spack-src/src/utils.
             c &&\
     2570       mv -f $depbase.Tpo $depbase.Po
  >> 2571    /var/folders/r3/9_jygg7x3zb0ptyd1h8yrz300000gp/T/srinath22/spack-stage/spack-stage-wget-1.21.3-olsreqwljirji5zlkb66tg3gihxs7evz/spack-src/src/utils.c:67:1
             1: fatal error: 'pcre2.h' file not found
     2572    # include 
     2573              ^~~~~~~~~
     2574    1 error generated.
  >> 2575    make[3]: *** [utils.o] Error 1
  >> 2576    make[2]: *** [all] Error 2
  >> 2577    make[1]: *** [all-recursive] Error 1
  >> 2578    make: *** [all] Error 2

Information on your system

Additional information

spack-build-out.txt spack-build-env.txt

General information

srinathv commented 9 months ago

My workaround: $spack add wget~pcre