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

System.Diagnostics.StackTrace build emits several "Could not resolve reference" messages #113083

Closed
vcsjones opened this issue Mar 3, 2025 · 4 comments

Comments

@vcsjones
Copy link
Member

vcsjones commented Mar 3, 2025

When I build the runtime, this gets emitted to the build log:

Could not resolve reference 'System.Private.Uri.dll' directly or transitively referenced by '/home/vcsjones/Projects/runtime/artifacts/bin/System.Diagnostics.StackTrace/ref/Debug/net10.0/System.Diagnostics.StackTrace.dll' in any of the provided search directories.
Could not resolve reference 'System.Private.Uri.dll' directly or transitively referenced by '/home/vcsjones/Projects/runtime/artifacts/obj/System.Diagnostics.StackTrace/Debug/net10.0/System.Diagnostics.StackTrace.dll' in any of the provided search directories.
Could not resolve reference 'System.Runtime.InteropServices.dll' directly or transitively referenced by '/home/vcsjones/Projects/runtime/artifacts/obj/System.Diagnostics.StackTrace/Debug/net10.0/System.Diagnostics.StackTrace.dll' in any of the provided search directories.
Could not resolve reference 'System.Memory.dll' directly or transitively referenced by '/home/vcsjones/Projects/runtime/artifacts/obj/System.Diagnostics.StackTrace/Debug/net10.0/System.Diagnostics.StackTrace.dll' in any of the provided search directories.
Could not resolve reference 'System.Runtime.InteropServices.dll' directly or transitively referenced by '/home/vcsjones/Projects/runtime/artifacts/obj/System.Diagnostics.StackTrace/Debug/net10.0/System.Diagnostics.StackTrace.dll' in any of the provided search directories.
Could not resolve reference 'System.Linq.dll' directly or transitively referenced by '/home/vcsjones/Projects/runtime/artifacts/obj/System.Diagnostics.StackTrace/Debug/net10.0/System.Diagnostics.StackTrace.dll' in any of the provided search directories.
Could not resolve reference 'System.Collections.dll' directly or transitively referenced by '/home/vcsjones/Projects/runtime/artifacts/obj/System.Diagnostics.StackTrace/Debug/net10.0/System.Diagnostics.StackTrace.dll' in any of the provided search directories.
Could not resolve reference 'System.Memory.dll' directly or transitively referenced by '/home/vcsjones/Projects/runtime/artifacts/obj/System.Diagnostics.StackTrace/Debug/net10.0/System.Diagnostics.StackTrace.dll' in any of the provided search directories.
Could not resolve reference 'System.Threading.dll' directly or transitively referenced by '/home/vcsjones/Projects/runtime/artifacts/obj/System.Diagnostics.StackTrace/Debug/net10.0/System.Diagnostics.StackTrace.dll' in any of the provided search directories.
Could not resolve reference 'System.Collections.dll' directly or transitively referenced by '/home/vcsjones/Projects/runtime/artifacts/obj/System.Diagnostics.StackTrace/Debug/net10.0/System.Diagnostics.StackTrace.dll' in any of the provided search directories.
Could not resolve reference 'System.IO.Compression.dll' directly or transitively referenced by '/home/vcsjones/Projects/runtime/artifacts/obj/System.Diagnostics.StackTrace/Debug/net10.0/System.Diagnostics.StackTrace.dll' in any of the provided search directories.
Could not resolve reference 'System.Threading.dll' directly or transitively referenced by '/home/vcsjones/Projects/runtime/artifacts/obj/System.Diagnostics.StackTrace/Debug/net10.0/System.Diagnostics.StackTrace.dll' in any of the provided search directories.
Could not resolve reference 'System.IO.MemoryMappedFiles.dll' directly or transitively referenced by '/home/vcsjones/Projects/runtime/artifacts/obj/System.Diagnostics.StackTrace/Debug/net10.0/System.Diagnostics.StackTrace.dll' in any of the provided search directories.
Could not resolve reference 'System.Text.Encoding.Extensions.dll' directly or transitively referenced by '/home/vcsjones/Projects/runtime/artifacts/obj/System.Diagnostics.StackTrace/Debug/net10.0/System.Diagnostics.StackTrace.dll' in any of the provided search directories.
System.Diagnostics.StackTrace -> /home/vcsjones/Projects/runtime/artifacts/bin/System.Diagnostics.StackTrace/Debug/net10.0/System.Diagnostics.StackTrace.dll

I can reproduce this using ./build.sh -rc release -s clr+libs as of c40c261. It can also be reproduced using ./dotnet.sh build src/libraries/System.Diagnostics.StackTrace

This was on aarch64 on Ubuntu 24.10.

@vcsjones
Copy link
Member Author

vcsjones commented Mar 3, 2025

To add: the build still succeeds, so nothing is blocked, but it does add some noise to the logs, and I am not sure if that is indicating a potential problem that just hasn't surfaced yet.

@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Mar 3, 2025
Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-infrastructure-libraries
See info in area-owners.md if you want to be subscribed.

@ViktorHofer
Copy link
Member

Yes this is expected at this point and will be changed to the previous behavior when I get a chance to work on dotnet/sdk#46236.

@vcsjones
Copy link
Member Author

vcsjones commented Mar 3, 2025

@ViktorHofer Okay, since there is another issue tracking this I think this can just be closed out.

@vcsjones vcsjones closed this as not planned Won't fix, can't repro, duplicate, stale Mar 3, 2025
@dotnet-policy-service dotnet-policy-service bot removed the untriaged New issue has not been triaged by the area owner label Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants