Skip to content

Troubleshooting: NVHPC GPU link fails in deep build paths - #2034

Merged
sbryngelson merged 1 commit into
MFlowCode:masterfrom
sbryngelson:nvhpc-long-path
Oct 11, 2026
Merged

sbryngelson merged 1 commit into
MFlowCode:masterfrom
sbryngelson:nvhpc-long-path

Conversation

@sbryngelson

@sbryngelson sbryngelson commented Oct 11, 2026 •

Copy link
Copy Markdown
Member

Adds a troubleshooting entry for an NVHPC GPU link failure.

NVHPC names each object's device-code symbol (in .nvFatBinSegment) after its full build path, truncated. In a deep directory the truncated names of different objects collide, and the link stops with errors like:

/usr/bin/ld: CMakeFiles/simulation.dir/fypp/simulation/m_helper_basic.fpp.f90.o:(.nvFatBinSegment+0x0): multiple definition of
`_186_tmp_..._build_staging_gpu_acc_8291ef2802_fypp_simula'; CMakeFiles/simulation.dir/fypp/simulation/m_acoustic_src.fpp.f90.o:(.nvFatBinSegment+0x0): first defined here

Seen with NVHPC 25.11, --gpu acc, building simulation from a checkout at a ~110-character path. The same commit linked from a short path. The fix is to build from a shorter path.

NVHPC names each object's device-code symbol after its full build path,
truncated, so in a deep directory different objects collide and the link
stops with multiple-definition errors. Seen building at a ~110-character
path; the same tree linked at a short one.
@sbryngelson
sbryngelson marked this pull request as ready for review October 11, 2026 14:18
Copilot AI balanced review requested due to automatic review settings October 11, 2026 14:18

Copilot AI left a comment

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@sbryngelson
sbryngelson merged commit 5c91889 into MFlowCode:master Oct 11, 2026
23 of 30 checks passed
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-11T14:21:38.951380Z b448e40 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@sbryngelson sbryngelson changed the title Troubleshooting: NVHPC GPU link fails in deep build paths Troubleshooting: NVHPC GPU link fails in deep build paths; re-read rule for agents Oct 11, 2026
@sbryngelson sbryngelson changed the title Troubleshooting: NVHPC GPU link fails in deep build paths; re-read rule for agents Troubleshooting: NVHPC GPU link fails in deep build paths Oct 11, 2026
@github-actions

github-actions Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Claude Code Review

Head SHA: b448e40

Files changed:

  • 1
  • docs/documentation/troubleshooting.md

Findings:
No issues found. Checked docs/documentation/troubleshooting.md (new NVHPC "multiple definition" section matches the surrounding Cause/Fix heading format).

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants