-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[RISC-V] Optimizing assemblies for size failed #96978
Comments
git bisect blames #92677
/cc @jkoritzinsky |
@ashaurtaev, seems like it applied during the build. Which option disables crossgen2? |
@dkurt I tried to build runtime with your options(
|
@ashaurtaev, The latest good commit is 571df3e, so the problem is not related to #95188, sorry for misleading. |
Unfortunately, issue still reproduced |
@jbevain Hi, IMO, the issue is related to that Error message what I saw is (@dkurt Could you check the error message is different of yours?)
|
@clamp03, the error message and related file are the same:
|
@dkurt This is a workaround what I think until cecil supports RiscV64. It just disables trim for RiscV64.
Thank you. |
@clamp03, this workaround seems working for me, thanks. |
Pushed cecil PR jbevain/cecil#940 |
@jkotas I made a PR on https://github.com/jbevain/cecil. I found forked repo in |
@dotnet/illink How would you prefer this change to be handled? |
@dotnet/illink Could you please give any comment? Thank you! |
@clamp03, yes, please also make a PR in the https://github.com/dotnet/cecil fork. We can take changes there, but also want to make sure they get upstreamed (so please keep jbevain/cecil#940 open). |
@sbomer Thank you. I made a PR. dotnet/cecil#171 |
Description
On 8.0 release runtime can be built with the following command without any issues:
However there is an error on the upcoming 9.x:
@ashaurtaev, I'm not totally sure that this is related to #95188 but I were able to pass building process by using Mono by default. Sorry, not an expect of Dotnet and I don't know the relationship between Mono and Crossgen2, but this might be a kind of regression.
Reproduction Steps
Expected behavior
successful build process
Actual behavior
error NETSDK1144
Regression?
No response
Known Workarounds
workaround by patching eng/Subsets.props, but that doesn’t seem correct.
Configuration
Docker image:
mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04-cross-riscv64
export ROOTFS_DIR=/crossrootfs/riscv64
Other information
No response
The text was updated successfully, but these errors were encountered: