Skip to content

libcxx: internal <version> include is found in build directory #155458

@veprbl

Description

@veprbl

The libcxx internally includes "version":

sed -ne '37p' /nix/store/bb0bgspj580fghgzv9d9zvk5k9nn98d3-libcxx-11.1.0-dev/include/c++/v1/cstddef
#include <version>

This leads to a build failure when software distribution contains a file named "version" that ends up being included because an -I flag takes precedence over -isystem.

Examples:

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: darwinRunning or building packages on Darwin6.topic: llvm/clangIssues related to llvmPackages, clangStdenv and related
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions