Skip to content

[CPULLVM] Fix test infrastructure for libc++ testing#340

Merged
Ana Pazos (apazos) merged 4 commits into
qualcomm:qualcomm-softwarefrom
pawan-nirpal-031:qualcomm-software
May 27, 2026
Merged

[CPULLVM] Fix test infrastructure for libc++ testing#340
Ana Pazos (apazos) merged 4 commits into
qualcomm:qualcomm-softwarefrom
pawan-nirpal-031:qualcomm-software

Conversation

@pawan-nirpal-031

@pawan-nirpal-031 Pawan Nirpal (pawan-nirpal-031) commented May 8, 2026

Copy link
Copy Markdown
Contributor

These are some pre-requisites for enabling compile-rt/libcxx/libcxx-abi tests.

  • use eld, when building libc++
  • Fix a typo --output-args.
  • Use linker flag --start-group to avoid circular dependency for symbol resolution.

Signed-off-by: Pawan Nirpal pnirpal@qti.qualcomm.com

@pawan-nirpal-031

Pawan Nirpal (pawan-nirpal-031) commented May 8, 2026

Copy link
Copy Markdown
Contributor Author

Ana Pazos (@apazos) Garvit Gupta (@quic-garvgupt) Shreeyash Pandey (@bojle) Could you please review.

The tests enablement PR #323 is getting intertwined with some of the pre-reqs and the same changes are also required for Shreeyash Pandey (@bojle) and I suspect Garvit Gupta (@quic-garvgupt) should also find these changes useful. So It's best we get these in first.

@bojle

Copy link
Copy Markdown
Contributor

Hi Pawan Nirpal (@pawan-nirpal-031), thanks for putting this up. I see that I need to enable 'ENABLE_CXX_TESTS' in all the variant json files (which your other PR does too), would that be a candidate for this PR aswell?

@pawan-nirpal-031

Pawan Nirpal (pawan-nirpal-031) commented May 8, 2026

Copy link
Copy Markdown
Contributor Author

Hi Pawan Nirpal (@pawan-nirpal-031), thanks for putting this up. I see that I need to enable 'ENABLE_CXX_TESTS' in all the variant json files (which your other PR does too), would that be a candidate for this PR aswell?

I think not, that will be part of the tests enablement themselves, which I believe we should plan to address in their respective PRs, the idea here is some pre-reqs that are required for us to even start enabling rt-tests should be addressed. take this with a grain of salt, I maybe wrong here. Ana Pazos (@apazos) Jonathon Penix (@jonathonpenix) does this make sense?

@quic-garvgupt

Garvit Gupta (quic-garvgupt) commented May 12, 2026

Copy link
Copy Markdown
Contributor

Ana Pazos (@apazos) Garvit Gupta (@quic-garvgupt) Shreeyash Pandey (@bojle) Could you please review.

The tests enablement PR #323 is getting intertwined with some of the pre-reqs and the same changes are also required for Shreeyash Pandey (@bojle) and I suspect Garvit Gupta (@quic-garvgupt) should also find these changes useful. So It's best we get these in first.

If these set of changes are needed for libcxx, libcxxabi and libunwind tests, then pls update the commit header to reflect that. rtlibs mostly imply only compiler-rt tests.

Also, it will be worth to add in the commit message a brief desciption of the issues that were encountered and how they are fixed through these changes.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pawan Nirpal (@pawan-nirpal-031), I believe Navaneeth resolved the issue with missing ROM files like efi-virtio.rom for QEMU runs, so this change is no longer needed. Please check with Navaneeth and Garvit.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure Ana Pazos (@apazos) I will drop this.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Garvit Gupta (@quic-garvgupt), can you please check if this is an issue in the builders or in your local buid.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do these actually need to be in the group? Doesn't seem like it should be needed, but might not matter much in the end.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pawan Nirpal (@pawan-nirpal-031), just add ' -Wl,--start-group', no further change needed.

@pawan-nirpal-031 Pawan Nirpal (pawan-nirpal-031) changed the title [CPULLVM] - Enable testing infra changes for rtlibs testing [CPULLVM] Fix test infrastructure for libc++/libc++abi/libunwind testing May 20, 2026
@pawan-nirpal-031

Copy link
Copy Markdown
Contributor Author

The failures seem unrelated to the changes. I've asked eld lead to take a look at the eld failure. The other failure seems to be some CI failure.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Garvit Gupta (@quic-garvgupt), can you please check if this is an issue in the builders or in your local buid.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pawan Nirpal (@pawan-nirpal-031) please remove this change, we do not need it.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pawan Nirpal (@pawan-nirpal-031) Move the qemu-related changes to its on PR.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pawan Nirpal (@pawan-nirpal-031) Remove this change, it is handled in a separate PR by Jonathon.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pawan Nirpal (@pawan-nirpal-031), just add ' -Wl,--start-group', no further change needed.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pawan Nirpal (@pawan-nirpal-031), QEMU stuff in separate patch.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pawan Nirpal (@pawan-nirpal-031), remove this change, it is addressed in a separate patch by Jonathon.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pawan Nirpal (@pawan-nirpal-031), please remove this change, not needed.

Comment thread qualcomm-software/CMakeLists.txt Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pawan Nirpal (@pawan-nirpal-031) Please remove this change.

Comment thread qualcomm-software/CMakeLists.txt Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pawan Nirpal (@pawan-nirpal-031) Please remove this change.

@apazos

Copy link
Copy Markdown
Contributor

Also please Pawan Nirpal (@pawan-nirpal-031) update the commit message for fixing libc++ tests only, though some changes apply beyond it.

@pawan-nirpal-031 Pawan Nirpal (pawan-nirpal-031) changed the title [CPULLVM] Fix test infrastructure for libc++/libc++abi/libunwind testing [CPULLVM] Fix test infrastructure for libc++ testing May 21, 2026
Signed-off-by: Pawan Nirpal <pnirpal@qti.qualcomm.com>
Signed-off-by: Pawan Nirpal <pnirpal@qti.qualcomm.com>
Signed-off-by: Pawan Nirpal <pnirpal@qti.qualcomm.com>
Signed-off-by: Pawan Nirpal <pnirpal@qti.qualcomm.com>
@pawan-nirpal-031

Copy link
Copy Markdown
Contributor Author

Ana Pazos (@apazos) we should be good for merge now?

@apazos Ana Pazos (apazos) merged commit 2d66e26 into qualcomm:qualcomm-software May 27, 2026
9 checks passed
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.

5 participants