-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
NativeAOT on Alpine with StaticICULinking #79498
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas Issue DetailsI did try to use StaticICULinking on Alpine to make Docker from scratch more interesting Add following changes <PropertyGroup>
<InvariantGlobalization>false</InvariantGlobalization>
<StaticICULinking>true</StaticICULinking>
</PropertyGroup>
<ItemGroup>
<LinkerArg Include="-static" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.DotNet.ILCompiler" Version="8.0.0-alpha.1.22609.9" />
</ItemGroup> And build fails with following LOOONG error message which I trim in preview, but attach as file
Any ideas what am I missing?
|
We ended up supporting it via property: <PropertyGroup>
<InvariantGlobalization>false</InvariantGlobalization>
<StaticICULinking>true</StaticICULinking>
+ <StaticExecutable>true</StaticExecutable>
</PropertyGroup>
- <ItemGroup>
- <LinkerArg Include="-static" />
- </ItemGroup> |
I suppose I want also System.Security.Cryptography.Native and System.IO.Compression.Native Is this something that would be welcomed? |
Do you still see this warning? It sounds like the auto-detection for |
Yes! |
IIRC, libnuma (iff available, it's used by GC) is also an optional soft dependency which is loaded with dlopen. |
I did try to use StaticICULinking on Alpine to make Docker from scratch more interesting
I add
clang libexecinfo binutils musl-dev build-base zlib-static cmake icu-static icu-dev
dependencies. Basically just addcmake icu-static icu-dev
as additional packages.Add following changes
And build fails with following LOOONG error message which I trim in preview, but attach as file
Any ideas what am I missing?
report.txt
The text was updated successfully, but these errors were encountered: