Skip to content

IFUNC symbol wcslen creates circular dependency  #1326

Open
@Martin-Lndbl

Description

@Martin-Lndbl

After getting the build process on NixOs working for the most part, I get following error when building with glibc.static present:

Building into build/release.x64
  GEN gen/include/osv/version.h
fatal: No names found, cannot describe anything.
  GEN gen/include/osv/drivers_config.h
  GEN build/release.x64/gen/include/bits/alltypes.h
  AS arch/x64/boot.S
  CXX loader.cc
  HOST_CXX build/release.x64/gen-ctype-data
  GEN build/release.x64/gen/include/ctype-data.h
build/release.x64/gen-ctype-data: IFUNC symbol 'wcslen' referenced in '/nix/store/bn7pnigb0f8874m6riiw6dngsmdyic1g-gcc-13.3.0-lib/lib/libstdc++.so.6' is defined in the executable and creates an unsatisfiable circular dependency.
make: *** [Makefile:2298: build/release.x64/gen/include/ctype-data.h] Error 127
make: *** Deleting file 'build/release.x64/gen/include/ctype-data.h'
make failed. Exiting from build script

If I try to build without glibc.static present, the build runs though, until the end, where the linker (obviously) cannot find the c library.
My glibc version is 2.39-52 and I tried with gcc 11, 13 and 14

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions