Skip to content

Failed to bootstrap pkg-config with pgi compiler #3525

@weijianwen

Description

@weijianwen

I failed to bootstrap pkg-config with [email protected]. The error says "PGC-F-0249-#error -- Your platform/compiler is missing constructor support (glib-init.c: 284)". Shall I submit a bug report to pkg-config?

$ spack purge; spack clean pkg-config; spack install pkg-config %[email protected]
==> Installing pkg-config
==> Using cached archive: /tmp/rpm/spack_source_cache/pkg-config/pkg-config-0.29.1.tar.gz
==> Already staged pkg-config-0.29.1-acbcjyz6mwiu7fnleuuatbxolunoszhl in /home/rpm/spack/var/spack/stage/pkg-config-0.29.1-acbcjyz6mwiu7fnleuuatbxolunoszhl
==> Already patched pkg-config
==> Building pkg-config [Package]
==> Executing phase : 'install'
==> Error: ProcessError: Command exited with status 2:
    'make'
/home/rpm/spack/var/spack/repos/builtin/packages/pkg-config/package.py:63, in install:
     53       def install(self, spec, prefix):
     54           args = ["--prefix={0}".format(prefix),
     55                   "--enable-shared"]
     56           if "+internal_glib" in spec:
     57               # There's a bootstrapping problem here;
     58               # glib uses pkg-config as well, so break
     59               # the cycle by using the internal glib.
     60               args.append("--with-internal-glib")
     61           configure(*args)
     62
  >> 63           make()
     64           make("install")

See build log for details:
  /tmp/rpm/spack_stage/spack-stage/spack-stage-w24BST/pkg-config-0.29.1/spack-build.out

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