Skip to content

[email protected] %oneapi, %clang@13, %clang@14: test/ninja_test_util.c:34: multiple definition of `a' #32112

@eugeneswalker

Description

@eugeneswalker

Steps to reproduce the issue

Reproduced here using:

  • spack@develop (08e75f7a3e02ef from Fri Aug 12 00:20:47 2022 -0700)
  • ecpe4s/ubuntu20.04-runner-x86_64-oneapi:2022-07-01
  • %[email protected]

Also an issue with:

Concrete spec: pruners-ninja.spec.json.txt

Concretization:

==> Concretized pruners-ninja
 -   wylz3ag  [email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  tuc6vdd      ^[email protected]%[email protected] patches=35c4492,7793209,a49dd5b arch=linux-ubuntu20.04-x86_64
[+]  agucw5d          ^[email protected]%[email protected]+sigsegv patches=9dc5fbd,bfdffa7 arch=linux-ubuntu20.04-x86_64
[+]  uli7ace              ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  sohfg2f                  ^[email protected]%[email protected] libs=shared,static arch=linux-ubuntu20.04-x86_64
[+]  q56bku4              ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  g75tej4          ^[email protected]%[email protected]+cpanm+shared+threads arch=linux-ubuntu20.04-x86_64
[+]  ahtnphg              ^[email protected]%[email protected]+cxx~docs+stl patches=b231fcc arch=linux-ubuntu20.04-x86_64
[+]  44yzgyw              ^[email protected]%[email protected]~debug~pic+shared arch=linux-ubuntu20.04-x86_64
[+]  mnowgf4              ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  cd2lgld                  ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  gvjgisz                      ^[email protected]%[email protected]~symlinks+termlib abi=none arch=linux-ubuntu20.04-x86_64
[+]  euvcz47                          ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  5jz7ihy              ^[email protected]%[email protected]+optimize+pic+shared patches=0d38234 arch=linux-ubuntu20.04-x86_64
[+]  zl3oyek      ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  5n46ly5      ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  cflgwhp      ^[email protected]%[email protected]~argobots~cuda+fortran+hwloc+hydra+libxml2+pci~rocm+romio~slurm~two_level_namespace~vci~verbs~wrapperrpath datatype-engine=auto device=ch4 netmod=ofi patches=b4c706e pmi=pmi arch=linux-ubuntu20.04-x86_64
[+]  rltl5ed          ^[email protected]%[email protected] patches=440b954 arch=linux-ubuntu20.04-x86_64
[+]  7drxrmz          ^[email protected]%[email protected]~cairo~cuda~gl~libudev+libxml2~netloc~nvml~oneapi-level-zero~opencl+pci~rocm+shared arch=linux-ubuntu20.04-x86_64
[+]  ky5qiaz              ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  iwdrk44                  ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  go3fobe              ^[email protected]%[email protected]~python arch=linux-ubuntu20.04-x86_64
[+]  ppl5hwa                  ^[email protected]%[email protected]+pic libs=shared,static arch=linux-ubuntu20.04-x86_64
[+]  mpntixm          ^[email protected]%[email protected]~debug~kdreg fabrics=rxm,sockets,tcp,udp arch=linux-ubuntu20.04-x86_64
[+]  dcm6vaw          ^[email protected]%[email protected]~cuda~rocm arch=linux-ubuntu20.04-x86_64
[+]  cg23twc              ^[email protected]%[email protected]+bz2+ctypes+dbm~debug+ensurepip+libxml2+lzma~nis~optimizations+pic+pyexpat+pythoncmd+readline+shared+sqlite3+ssl~tix~tkinter~ucs4+uuid+zlib patches=0d98e93,4c24573,f2fd060 arch=linux-ubuntu20.04-x86_64
[+]  ijry5ro                  ^[email protected]%[email protected]+libbsd arch=linux-ubuntu20.04-x86_64
[+]  flwxuwx                      ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  uxmtkav                          ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  sf4jy5o                  ^[email protected]%[email protected]+bzip2+curses+git~libunistring+libxml2+tar+xz arch=linux-ubuntu20.04-x86_64
[+]  tjngmek                      ^[email protected]%[email protected] zip=pigz arch=linux-ubuntu20.04-x86_64
[+]  fisjzhz                          ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  rg3ig4l                          ^[email protected]%[email protected]+programs compression=none libs=shared,static arch=linux-ubuntu20.04-x86_64
[+]  maq3kzw                  ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  4455rwb                  ^[email protected]%[email protected]~docs~shared certs=mozilla patches=3fdcf2d arch=linux-ubuntu20.04-x86_64
[+]  tlqunsr                      ^ca-certificates-mozilla@2022-07-19%[email protected] arch=linux-ubuntu20.04-x86_64
[+]  7edvlef                  ^[email protected]%[email protected]+column_metadata+dynamic_extensions+fts~functions+rtree arch=linux-ubuntu20.04-x86_64
[+]  k3c4qk3                  ^[email protected]%[email protected] arch=linux-ubuntu20.04-x86_64

Install error:

==> Installing pruners-ninja-1.0.1-wylz3agaymjpkcqqqek5pqszdd6ut7xf
==> No binary for pruners-ninja-1.0.1-wylz3agaymjpkcqqqek5pqszdd6ut7xf found: installing from source
==> Fetching https://mirror.spack.io/_source-cache/archive/53/53df5c019054b60c68e63d3e249127f1d5f267a70539c8809fb42a8ddbfcb29b.tar.gz
==> No patches needed for pruners-ninja
==> pruners-ninja: Executing phase: 'autoreconf'
==> pruners-ninja: Executing phase: 'configure'
==> pruners-ninja: Executing phase: 'build'
==> Error: ProcessError: Command exited with status 2:
    'make' '-j16' 'V=1'

6 errors found in build log:
     214    /bin/bash ../libtool  --tag=CC   --mode=link /spack/opt/spack/linux-ubuntu20.04-x86_64/oneapi-2022.1.0/mpich-4.0.2-cflgwhpy55pyz2ii3ayp54rxbst3pxwj/bin/
            mpicc  -g -O2   -o ninja_test_matching_race ninja_test_matching_race.o ninja_test_util.o  -lmpi
     215    libtool: link: /spack/opt/spack/linux-ubuntu20.04-x86_64/oneapi-2022.1.0/mpich-4.0.2-cflgwhpy55pyz2ii3ayp54rxbst3pxwj/bin/mpicc -g -O2 -o ninja_test_pin
            gpong ninja_test_pingpong.o ninja_test_util.o  -lmpi
     216    mv -f .deps/ninja_test_units.Tpo .deps/ninja_test_units.Po
     217    /bin/bash ../libtool  --tag=CC   --mode=link /spack/opt/spack/linux-ubuntu20.04-x86_64/oneapi-2022.1.0/mpich-4.0.2-cflgwhpy55pyz2ii3ayp54rxbst3pxwj/bin/
            mpicc  -g -O2   -o ninja_test_units ninja_test_units.o ninja_test_util.o  -lmpi
     218    libtool: link: /spack/opt/spack/linux-ubuntu20.04-x86_64/oneapi-2022.1.0/mpich-4.0.2-cflgwhpy55pyz2ii3ayp54rxbst3pxwj/bin/mpicc -g -O2 -o ninja_test_hyp
            re_parasails ninja_test_hypre_parasails.o ninja_test_util.o  -lmpi
     219    libtool: link: /spack/opt/spack/linux-ubuntu20.04-x86_64/oneapi-2022.1.0/mpich-4.0.2-cflgwhpy55pyz2ii3ayp54rxbst3pxwj/bin/mpicc -g -O2 -o ninja_test_mat
            ching_race ninja_test_matching_race.o ninja_test_util.o  -lmpi
  >> 220    /usr/bin/ld: ninja_test_util.o:/tmp/root/spack-stage/spack-stage-pruners-ninja-1.0.1-wylz3agaymjpkcqqqek5pqszdd6ut7xf/spack-src/test/ninja_test_util.c:3
            4: multiple definition of `a'; ninja_test_hypre_parasails.o:/tmp/root/spack-stage/spack-stage-pruners-ninja-1.0.1-wylz3agaymjpkcqqqek5pqszdd6ut7xf/spack
            -src/test/ninja_test_hypre_parasails.c:309: first defined here
     221    libtool: link: /spack/opt/spack/linux-ubuntu20.04-x86_64/oneapi-2022.1.0/mpich-4.0.2-cflgwhpy55pyz2ii3ayp54rxbst3pxwj/bin/mpicc -g -O2 -o ninja_test_uni
            ts ninja_test_units.o ninja_test_util.o  -lmpi
  >> 222    clang: error: linker command failed with exit code 1 (use -v to see invocation)
  >> 223    make[3]: *** [Makefile:425: ninja_test_hypre_parasails] Error 1
     224    make[3]: *** Waiting for unfinished jobs....
     225    make[3]: Leaving directory '/tmp/root/spack-stage/spack-stage-pruners-ninja-1.0.1-wylz3agaymjpkcqqqek5pqszdd6ut7xf/spack-src/test'
  >> 226    make[2]: *** [Makefile:485: all-recursive] Error 1
     227    make[2]: Leaving directory '/tmp/root/spack-stage/spack-stage-pruners-ninja-1.0.1-wylz3agaymjpkcqqqek5pqszdd6ut7xf/spack-src/test'
  >> 228    make[1]: *** [Makefile:422: all-recursive] Error 1
     229    make[1]: Leaving directory '/tmp/root/spack-stage/spack-stage-pruners-ninja-1.0.1-wylz3agaymjpkcqqqek5pqszdd6ut7xf/spack-src'
  >> 230    make: *** [Makefile:354: all] Error 2

Error message

Error message
... see above

Information on your system

  • Spack: 0.19.0.dev0 (d735c49b3217598e3a4432f6a6337916f57f730d)
  • Python: 3.8.10
  • Platform: linux-ubuntu20.04-cascadelake
  • Concretizer: clingo

Additional information

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

@hainest @lee218llnl @wspear

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

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions