Skip to content

netgen 5.3.1 fails due to missing zlib.h #8470

@cpraveen

Description

@cpraveen

I am installing deal.II

spack install -j6 --only dependencies dealii@develop

and netgen 5.3.1 fails due to missing zlib.h

zlib is already installed by spack. But netgen does not seem to depend on zlib.

I am on ubuntu18.04 with gcc 7.3.0

==> Staging archive: /home/praveen/Applications/spack/var/spack/stage/netgen-5.3.1-icj6pivfmdttb4a63skq7mkqbxnvx6v4/netgen-5.3.1.tar.gz
==> Created stage in /home/praveen/Applications/spack/var/spack/stage/netgen-5.3.1-icj6pivfmdttb4a63skq7mkqbxnvx6v4
==> No patches needed for netgen
==> Building netgen [AutotoolsPackage]
==> Executing phase: 'autoreconf'
==> Executing phase: 'configure'
==> Executing phase: 'build'
==> Error: ProcessError: Command exited with status 2:
    'make' '-j6'

15 errors found in build log:
     155    libtool: compile:  /home/praveen/Applications/spack/opt/spack/linux-ubuntu18.04-x86_64/gcc-7.3.0/mpich-3.2.1-yf2xknkwvuopv
            7bslicv4x66fd4ntpbc/bin/mpic++ -DHAVE_CONFIG_H -I. -I/home/praveen/Applications/spack/var/spack/stage/netgen-5.3.1-icj6piv
            fmdttb4a63skq7mkqbxnvx6v4/netgen-5.3.1/libsrc/general -I../.. -I/home/praveen/Applications/spack/var/spack/stage/netgen-5.
            3.1-icj6pivfmdttb4a63skq7mkqbxnvx6v4/netgen-5.3.1/libsrc/include -g -O2 -fopenmp -MT dynamicmem.lo -MD -MP -MF .deps/dynam
            icmem.Tpo -c dynamicmem.cpp  -fPIC -DPIC -o .libs/dynamicmem.o
     156    libtool: compile:  /home/praveen/Applications/spack/opt/spack/linux-ubuntu18.04-x86_64/gcc-7.3.0/mpich-3.2.1-yf2xknkwvuopv
            7bslicv4x66fd4ntpbc/bin/mpic++ -DHAVE_CONFIG_H -I. -I/home/praveen/Applications/spack/var/spack/stage/netgen-5.3.1-icj6piv
            fmdttb4a63skq7mkqbxnvx6v4/netgen-5.3.1/libsrc/general -I../.. -I/home/praveen/Applications/spack/var/spack/stage/netgen-5.
            3.1-icj6pivfmdttb4a63skq7mkqbxnvx6v4/netgen-5.3.1/libsrc/include -g -O2 -fopenmp -MT bitarray.lo -MD -MP -MF .deps/bitarra
            y.Tpo -c bitarray.cpp  -fPIC -DPIC -o .libs/bitarray.o
     157    libtool: compile:  /home/praveen/Applications/spack/opt/spack/linux-ubuntu18.04-x86_64/gcc-7.3.0/mpich-3.2.1-yf2xknkwvuopv
            7bslicv4x66fd4ntpbc/bin/mpic++ -DHAVE_CONFIG_H -I. -I/home/praveen/Applications/spack/var/spack/stage/netgen-5.3.1-icj6piv
            fmdttb4a63skq7mkqbxnvx6v4/netgen-5.3.1/libsrc/general -I../.. -I/home/praveen/Applications/spack/var/spack/stage/netgen-5.
            3.1-icj6pivfmdttb4a63skq7mkqbxnvx6v4/netgen-5.3.1/libsrc/include -g -O2 -fopenmp -MT mystring.lo -MD -MP -MF .deps/mystrin
            g.Tpo -c mystring.cpp  -fPIC -DPIC -o .libs/mystring.o
     158    libtool: compile:  /home/praveen/Applications/spack/opt/spack/linux-ubuntu18.04-x86_64/gcc-7.3.0/mpich-3.2.1-yf2xknkwvuopv
            7bslicv4x66fd4ntpbc/bin/mpic++ -DHAVE_CONFIG_H -I. -I/home/praveen/Applications/spack/var/spack/stage/netgen-5.3.1-icj6piv
            fmdttb4a63skq7mkqbxnvx6v4/netgen-5.3.1/libsrc/general -I../.. -I/home/praveen/Applications/spack/var/spack/stage/netgen-5.
            3.1-icj6pivfmdttb4a63skq7mkqbxnvx6v4/netgen-5.3.1/libsrc/include -g -O2 -fopenmp -MT flags.lo -MD -MP -MF .deps/flags.Tpo 
            -c flags.cpp  -fPIC -DPIC -o .libs/flags.o
     159    In file included from ./myadt.hpp:46:0,
     160                     from bitarray.cpp:12:
  >> 161    ./gzstream.h:35:10: fatal error: zlib.h: No such file or directory
     162     #include <zlib.h>
     163              ^~~~~~~~
     164    compilation terminated.
     165    Makefile:370: recipe for target 'bitarray.lo' failed
  >> 166    make[3]: *** [bitarray.lo] Error 1
     167    make[3]: *** Waiting for unfinished jobs....
     168    In file included from ./myadt.hpp:46:0,
     169                     from mystring.cpp:19:
  >> 170    ./gzstream.h:35:10: fatal error: zlib.h: No such file or directory
     171     #include <zlib.h>
     172              ^~~~~~~~
     173    compilation terminated.
     174    Makefile:370: recipe for target 'mystring.lo' failed
  >> 175    make[3]: *** [mystring.lo] Error 1
     176    In file included from ./myadt.hpp:46:0,
     177                     from hashtabl.cpp:13:
  >> 178    ./gzstream.h:35:10: fatal error: zlib.h: No such file or directory
     179     #include <zlib.h>
     180              ^~~~~~~~
     181    compilation terminated.
     182    In file included from ./myadt.hpp:46:0,
     183                     from array.cpp:16:
  >> 184    ./gzstream.h:35:10: fatal error: zlib.h: No such file or directory
     185     #include <zlib.h>
     186              ^~~~~~~~
     187    compilation terminated.
     188    In file included from ./myadt.hpp:46:0,
     189                     from dynamicmem.cpp:1:
  >> 190    ./gzstream.h:35:10: fatal error: zlib.h: No such file or directory
     191     #include <zlib.h>
     192              ^~~~~~~~
     193    compilation terminated.
     194    Makefile:370: recipe for target 'hashtabl.lo' failed
  >> 195    make[3]: *** [hashtabl.lo] Error 1
     196    Makefile:370: recipe for target 'array.lo' failed
  >> 197    make[3]: *** [array.lo] Error 1
     198    Makefile:370: recipe for target 'dynamicmem.lo' failed
  >> 199    make[3]: *** [dynamicmem.lo] Error 1
     200    In file included from ./myadt.hpp:46:0,
     201                     from flags.cpp:12:
  >> 202    ./gzstream.h:35:10: fatal error: zlib.h: No such file or directory
     203     #include <zlib.h>
     204              ^~~~~~~~
     205    compilation terminated.
     206    Makefile:370: recipe for target 'flags.lo' failed
  >> 207    make[3]: *** [flags.lo] Error 1
     208    make[3]: Leaving directory '/tmp/praveen/spack-stage/spack-stage-C9lOLU/netgen-5.3.1/libsrc/general'
     209    Makefile:311: recipe for target 'all-recursive' failed
  >> 210    make[2]: *** [all-recursive] Error 1
     211    make[2]: Leaving directory '/tmp/praveen/spack-stage/spack-stage-C9lOLU/netgen-5.3.1/libsrc'
     212    Makefile:354: recipe for target 'all-recursive' failed
  >> 213    make[1]: *** [all-recursive] Error 1
     214    make[1]: Leaving directory '/tmp/praveen/spack-stage/spack-stage-C9lOLU/netgen-5.3.1'
     215    Makefile:285: recipe for target 'all' failed
  >> 216    make: *** [all] Error 2

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