Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug build errors out #102618

Closed
fanyang-mono opened this issue May 23, 2024 · 3 comments · Fixed by #102631
Closed

Debug build errors out #102618

fanyang-mono opened this issue May 23, 2024 · 3 comments · Fixed by #102631
Assignees
Labels
area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI Priority:2 Work that is important, but not critical for the release
Milestone

Comments

@fanyang-mono
Copy link
Member

I hit an error when building the CoreCLR in debug mode.

The command that I use to build is

./build.sh clr+libs -c debug

The error message was

  Undefined symbols for architecture arm64:
    "RegSet::rsAllCalleeSavedMask", referenced from:
        RegSet::rsGetModifiedCalleeSavedRegsMask() const in codegencommon.cpp.o
    "RegSet::rsIntCalleeSavedMask", referenced from:
        RegSet::rsGetModifiedOsrIntCalleeSavedRegsMask() const in codegenxarch.cpp.o
        RegSet::rsGetModifiedIntCalleeSavedRegsMask() const in codegenxarch.cpp.o
  ld: symbol(s) not found for architecture arm64
  clang: error: linker command failed with exit code 1 (use -v to see invocation)

This seems to be related to definition of SWIFT_SUPPORT

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label May 23, 2024
@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label May 23, 2024
Copy link
Contributor

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.

@fanyang-mono fanyang-mono removed the untriaged New issue has not been triaged by the area owner label May 23, 2024
@fanyang-mono fanyang-mono added this to the 9.0.0 milestone May 23, 2024
@kunalspathak kunalspathak added the Priority:2 Work that is important, but not critical for the release label May 23, 2024
@amanasifkhalid
Copy link
Member

amanasifkhalid commented May 23, 2024

@fanyang-mono just to check, are you on macOS? And what version of clang are you using?

Edit: Looks like Kunal determined this affects Debug builds only, and has a fix.

@fanyang-mono
Copy link
Member Author

@amanasifkhalid Yes, I was using macOS. This is the clang version on my machine

Apple clang version 15.0.0 (clang-1500.3.9.4)
Target: arm64-apple-darwin23.5.0

@github-actions github-actions bot locked and limited conversation to collaborators Jun 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI Priority:2 Work that is important, but not critical for the release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants