Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install via spack fails on Kubuntu 22.04 #120

Open
fhindenlang opened this issue Dec 3, 2024 · 3 comments
Open

Install via spack fails on Kubuntu 22.04 #120

fhindenlang opened this issue Dec 3, 2024 · 3 comments

Comments

@fhindenlang
Copy link

fhindenlang commented Dec 3, 2024

I followed the steps from the readme, just now:

git clone https://github.com/spack/spack.git ~/spack
source ~/spack/share/spack/setup-env.sh
spack install hohqmesh@main

the last step has the following output throws the following errror:

==> Installing gcc-runtime-12.3.0-gp2qutdotp67dx4bsnjvz746vmu66ro5 [2/20]
==> No binary for gcc-runtime-12.3.0-gp2qutdotp67dx4bsnjvz746vmu66ro5 found: installing from source
==> No patches needed for gcc-runtime
==> gcc-runtime: Executing phase: 'install'
==> gcc-runtime: Successfully installed gcc-runtime-12.3.0-gp2qutdotp67dx4bsnjvz746vmu66ro5
  Stage: 0.00s.  Install: 0.05s.  Post-install: 0.02s.  Total: 0.12s
[+] /home/fhinde/GIT/spac/opt/spack/linux-ubuntu22.04-icelake/gcc-12.3.0/gcc-runtime-12.3.0-gp2qutdotp67dx4bsnjvz746vmu66ro5
==> Installing ca-certificates-mozilla-2023-05-30-d4vmmxf3l42yyx7pmvprgvyc4zdcakq4 [3/20]
==> No binary for ca-certificates-mozilla-2023-05-30-d4vmmxf3l42yyx7pmvprgvyc4zdcakq4 found: installing from source
==> Fetching https://mirror.spack.io/_source-cache/archive/5f/5fadcae90aa4ae041150f8e2d26c37d980522cdb49f923fc1e1b5eb8d74e71ad
==> No patches needed for ca-certificates-mozilla
==> ca-certificates-mozilla: Executing phase: 'install'
==> ca-certificates-mozilla: Successfully installed ca-certificates-mozilla-2023-05-30-d4vmmxf3l42yyx7pmvprgvyc4zdcakq4
  Stage: 0.28s.  Install: 0.00s.  Post-install: 0.00s.  Total: 0.33s
[+] /home/fhinde/GIT/spac/opt/spack/linux-ubuntu22.04-icelake/gcc-12.3.0/ca-certificates-mozilla-2023-05-30-d4vmmxf3l42yyx7pmvprgvyc4zdcakq4
==> Installing gmake-4.4.1-n4dzvfzftjml7s6dxvv7beoetciv3ssc [4/20]
==> No binary for gmake-4.4.1-n4dzvfzftjml7s6dxvv7beoetciv3ssc found: installing from source
==> Fetching https://mirror.spack.io/_source-cache/archive/dd/dd16fb1d67bfab79a72f5e8390735c49e3e8e70b4945a15ab1f81ddb78658fb3.tar.gz
==> No patches needed for gmake
==> gmake: Executing phase: 'install'
==> Error: ProcessError: Command exited with status 77:
    '/tmp/fhinde/spack-stage/spack-stage-gmake-4.4.1-n4dzvfzftjml7s6dxvv7beoetciv3ssc/spack-src/configure' '--prefix=/home/fhinde/GIT/spac/opt/spack/linux-ubuntu22.04-icelake/gcc-12.3.0/gmake-4.4.1-n4dzvfzftjml7s6dxvv7beoetciv3ssc' '--without-guile' '--disable-nls' '--disable-dependency-tracking'

2 errors found in build log:
     7     checking for mawk... mawk
     8     checking whether make sets $(MAKE)... yes
     9     checking whether make supports nested variables... yes
     10    checking whether make supports the include directive... yes (GNU style)
     11    checking for gcc... /home/fhinde/GIT/spac/lib/spack/env/c++
     12    checking whether the C compiler works... no
  >> 13    configure: error: in `/tmp/fhinde/spack-stage/spack-stage-gmake-4.4.1-n4dzvfzftjml7s6dxvv7beoetciv3ssc/spack-src/spack-build':
  >> 14    configure: error: C compiler cannot create executables
     15    See `config.log' for more details

See build log for details:
  /tmp/fhinde/spack-stage/spack-stage-gmake-4.4.1-n4dzvfzftjml7s6dxvv7beoetciv3ssc/spack-build-out.txt

==> Warning: Skipping build of diffutils-3.10-zuje2xzmffmgb2fgdefd5hbiu7pwzaj7 since gmake-4.4.1-n4dzvfzftjml7s6dxvv7beoetciv3ssc failed
==> Warning: Skipping build of nghttp2-1.64.0-rwehaffx45k7pmpzzxdk5abeqti5anya since diffutils-3.10-zuje2xzmffmgb2fgdefd5hbiu7pwzaj7 failed
==> Warning: Skipping build of curl-8.10.1-6segsmbvcxbae6eumqpvzf4xgpcvyfqm since nghttp2-1.64.0-rwehaffx45k7pmpzzxdk5abeqti5anya failed
==> Warning: Skipping build of cmake-3.31.0-ew23cvx3pdlmtjm76cngbkzwdgshijxm since curl-8.10.1-6segsmbvcxbae6eumqpvzf4xgpcvyfqm failed
==> Warning: Skipping build of ftobjectlibrary-main-3vf7fntislunkzsda2r4xrwupwg7hgoi since cmake-3.31.0-ew23cvx3pdlmtjm76cngbkzwdgshijxm failed
==> Warning: Skipping build of hohqmesh-main-xrrlop4sdb6i447ylzeggmbd4nojpfk2 since ftobjectlibrary-main-3vf7fntislunkzsda2r4xrwupwg7hgoi failed
==> Warning: Skipping build of bzip2-1.0.8-s6u35f4athe3wvder7dnblrbt463dl6n since diffutils-3.10-zuje2xzmffmgb2fgdefd5hbiu7pwzaj7 failed
==> Warning: Skipping build of perl-5.40.0-zezzwcynxufwb65wdmju4womf5qebazu since bzip2-1.0.8-s6u35f4athe3wvder7dnblrbt463dl6n failed
==> Warning: Skipping build of openssl-3.4.0-no77hiegci4rmfputrugriy4ifx72xwa since perl-5.40.0-zezzwcynxufwb65wdmju4womf5qebazu failed
==> Warning: Skipping build of zlib-ng-2.2.1-5kdmrxz6pfjla2q6qqutm44mlg3ghb7b since gmake-4.4.1-n4dzvfzftjml7s6dxvv7beoetciv3ssc failed
==> Warning: Skipping build of berkeley-db-18.1.40-6qtaex4pyydgexze3qufewamhl5jkx4b since gmake-4.4.1-n4dzvfzftjml7s6dxvv7beoetciv3ssc failed
==> Warning: Skipping build of readline-8.2-w26aet3jkpeew5xnmt6y7vwedmezt2ao since gmake-4.4.1-n4dzvfzftjml7s6dxvv7beoetciv3ssc failed
==> Warning: Skipping build of gdbm-1.23-sucmpgf53ddj4bdwtdkhfc423oaicocb since readline-8.2-w26aet3jkpeew5xnmt6y7vwedmezt2ao failed
==> Warning: Skipping build of ncurses-6.5-owv5rqikcfjqsnc26765ou5vzvqc2ubj since gmake-4.4.1-n4dzvfzftjml7s6dxvv7beoetciv3ssc failed
==> Warning: Skipping build of libiconv-1.17-sif5hjof44iwokvhzxo576xatbosyixb since gmake-4.4.1-n4dzvfzftjml7s6dxvv7beoetciv3ssc failed
==> Warning: Skipping build of pkgconf-2.2.0-rzgfiqptd4x6dteq4e7uicq5zzyagwmi since gmake-4.4.1-n4dzvfzftjml7s6dxvv7beoetciv3ssc failed
==> Error: hohqmesh-main-xrrlop4sdb6i447ylzeggmbd4nojpfk2: Package was not installed
==> Error: Installation request failed.  Refer to reported errors for failing package(s).

the normal installation with make from the downloaded release tarball works well!

@sloede
Copy link
Member

sloede commented Dec 3, 2024

Thanks for reporting. Unfortunately, I cannot reproduce. I tried on Ubuntu 20.04 (GCC 10.5) and 24.04 (GCC 13.2). It seems to me like the issue is not with installing HOHQMesh but the build step on your machine fails for gmake. Thus my assumption would be that this is actually an upstream issue for spack rather than HOHQMesh. If you think differently, it would be great if you could let me know how you think we can help to fix it.

@fluidnumerics-joe
Copy link
Collaborator

What does your compilers.yaml file look like. Usually this is under $HOME/.spack/

@sloede
Copy link
Member

sloede commented Dec 3, 2024

@fluidnumerics-joe I assume you mean @fhindenlang?

For reference, here are mine:

Ubuntu 20.04
compilers:
- compiler:
    spec: clang@=17.0.6
    paths:
      cc: /usr/bin/clang-17
      cxx: /usr/bin/clang++-17
      f77: null
      fc: null
    flags: {}
    operating_system: ubuntu20.04
    target: x86_64
    modules: []
    environment: {}
    extra_rpaths: []
- compiler:
    spec: gcc@=8.4.0
    paths:
      cc: /usr/bin/gcc-8
      cxx: /usr/bin/g++-8
      f77: /usr/bin/gfortran-8
      fc: /usr/bin/gfortran-8
    flags: {}
    operating_system: ubuntu20.04
    target: x86_64
    modules: []
    environment: {}
    extra_rpaths: []
- compiler:
    spec: gcc@=9.4.0
    paths:
      cc: /usr/bin/gcc-9
      cxx: /usr/bin/g++-9
      f77: /usr/bin/gfortran-9
      fc: /usr/bin/gfortran-9
    flags: {}
    operating_system: ubuntu20.04
    target: x86_64
    modules: []
    environment: {}
    extra_rpaths: []
- compiler:
    spec: gcc@=10.5.0
    paths:
      cc: /usr/bin/gcc
      cxx: /usr/bin/g++
      f77: /usr/bin/gfortran
      fc: /usr/bin/gfortran
    flags: {}
    operating_system: ubuntu20.04
    target: x86_64
    modules: []
    environment: {}
    extra_rpaths: []
Ubuntu 24.04
compilers:
- compiler:
    spec: gcc@=12.3.0
    paths:
      cc: /usr/bin/gcc-12
      cxx: /usr/bin/g++-12
      f77: null
      fc: null
    flags: {}
    operating_system: ubuntu24.04
    target: x86_64
    modules: []
    environment: {}
    extra_rpaths: []
- compiler:
    spec: gcc@=13.2.0
    paths:
      cc: /usr/bin/gcc
      cxx: /usr/bin/g++
      f77: /usr/bin/gfortran
      fc: /usr/bin/gfortran
    flags: {}
    operating_system: ubuntu24.04
    target: x86_64
    modules: []
    environment: {}
    extra_rpaths: []

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants