Skip to content

Conversation

uyoyo0
Copy link

@uyoyo0 uyoyo0 commented Sep 29, 2025

This PR resolves a linking failure when building C++ code on AIX. For example, when working with a downstream crate like cxx, cargo test fails during the linking stage with the following error:

ld: 0711-317 ERROR: Undefined symbol: __xlcxx_personality_v1

The current implementation links against libc++ but we additionally need it to link against libc++abi which is what this patch does.

@NobodyXu
Copy link
Collaborator

Hmm does enabling Build::cpp not working?

@uyoyo0
Copy link
Author

uyoyo0 commented Sep 29, 2025

Hmm does enabling Build::cpp not working?

It correctly identifies libc++ but the issue is that it fails to identify and link libc++abi which contains symbols for things such as exception handling.

@NobodyXu
Copy link
Collaborator

It correctly identifies libc++ but the issue is that it fails to identify and link libc++abi which contains symbols for things such as exception handling.

That's strange, based on my experience of using c++ with gcc/clang, using the c++ compiler automatically link in stdc++ and other stuff required, including exception handling.

cc @madsmtm wdyt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants