Skip to content

libcxx fails to build with __cxx03/__algorithm/adjacent_find.h: Header cxx03 is not a valid header #110808

Closed
@sylvestre

Description

@sylvestre
Collaborator

On Ubuntu jammy:

FAILED: /build/source/build-llvm/include/c++/v1/libcxx.imp
cd /build/source/build-llvm/runtimes/runtimes-bins/libcxx/include && /usr/bin/python3.10 /build/source/libcxx/utils/generate_iwyu_mapping.py -o /build/source/build-llvm/include/c++/v1/libcxx.imp
Traceback (most recent call last):
  File "/build/source/libcxx/utils/generate_iwyu_mapping.py", line 92, in <module>
    main(sys.argv[1:])
  File "/build/source/libcxx/utils/generate_iwyu_mapping.py", line 82, in main
    raise RuntimeError(f"{header}: Header {public} is not a valid header")
RuntimeError: __cxx03/__algorithm/adjacent_find.h: Header cxx03 is not a valid header

Log: https://llvm-jenkins.debian.net/job/llvm-toolchain-jammy-binaries/architecture=amd64,distribution=jammy,label=amd64/1696/

Activity

added
libc++libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.
on Oct 2, 2024
sylvestre

sylvestre commented on Oct 2, 2024

@sylvestre
CollaboratorAuthor

seems to be caused by 67432f2 cc @philnik777

Michael137

Michael137 commented on Oct 2, 2024

@Michael137
Member

Seeing this also on the macOS buildbots: https://green.lab.llvm.org/job/llvm.org/view/LLDB/job/as-lldb-cmake/12720/execution/node/45/log/

[9/1232] Generate the mapping file for include-what-you-use
FAILED: /Users/ec2-user/jenkins/workspace/llvm.org/as-lldb-cmake/lldb-build/include/c++/v1/libcxx.imp 
cd /Users/ec2-user/jenkins/workspace/llvm.org/as-lldb-cmake/lldb-build/runtimes/runtimes-bins/libcxx/include && /Users/ec2-user/jenkins/workspace/llvm.org/as-lldb-cmake/venv/bin/python3.9 /Users/ec2-user/jenkins/workspace/llvm.org/as-lldb-cmake/llvm-project/libcxx/utils/generate_iwyu_mapping.py -o /Users/ec2-user/jenkins/workspace/llvm.org/as-lldb-cmake/lldb-build/include/c++/v1/libcxx.imp
Traceback (most recent call last):
  File "/Users/ec2-user/jenkins/workspace/llvm.org/as-lldb-cmake/llvm-project/libcxx/utils/generate_iwyu_mapping.py", line 92, in <module>
    main(sys.argv[1:])
  File "/Users/ec2-user/jenkins/workspace/llvm.org/as-lldb-cmake/llvm-project/libcxx/utils/generate_iwyu_mapping.py", line 82, in main
    raise RuntimeError(f"{header}: Header {public} is not a valid header")
sylvestre

sylvestre commented on Oct 2, 2024

@sylvestre
CollaboratorAuthor

ok, thanks for the confirmation. I reverted the change in 68c04b0

ldionne

ldionne commented on Oct 2, 2024

@ldionne
Member

This patch was indeed checked in with a CI failure on our side too. Thanks for reverting!

sylvestre

sylvestre commented on Oct 2, 2024

@sylvestre
CollaboratorAuthor

Happy to help :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    build-problemlibc++libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @ldionne@sylvestre@Michael137

        Issue actions

          libcxx fails to build with `__cxx03/__algorithm/adjacent_find.h: Header cxx03 is not a valid header` · Issue #110808 · llvm/llvm-project