Skip to content

The newly generated libstdcxx.modulemap clashes with the libc++ modulemap on Android #58500

Closed
@finagolfin

Description

@finagolfin

Describe the bug
#41953 added a new C++ module map, but it is not needed for Android and causes errors like these on the Android CI:

/home/ubuntu/jenkins/workspace/oss-swift-RA-linux-ubuntu-16.04-android-arm64/buildbot_linux/swift-linux-x86_64/lib/swift/android/aarch64/libstdcxx.modulemap:19:8: error: redefinition of module 'std'                                                
module std {                        
/home/ubuntu/android-ndk-r19c/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/module.modulemap:8:8: note: previously defined here

To Reproduce

  1. Run one of the failing CI tests or the equivalent.

Expected behavior
Be able to import C++ without this error.

Environment:

  • OS: Android

Additional context
I've submitted a fix in #58497.

Metadata

Metadata

Assignees

No one assigned

    Labels

    AndroidPlatform: AndroidbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions