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

SystemUInt32PrivateImplementationDetailsComputeStringHashSystemString redefined #122

Closed
valentinbreiz opened this issue Oct 21, 2021 · 1 comment · Fixed by #149
Closed

Comments

@valentinbreiz
Copy link
Member

SystemUInt32PrivateImplementationDetailsComputeStringHashSystemString redefined when nasm compiles. I try to compile Aura_OS from this branch: https://github.com/aura-systems/Aura-Operating-System/tree/impl-net5

After more investigation, it appears to be related to the FTP Server.

Actual Behaviour - What unexpectedly happens?

1>IL2CPU task took 00:02:26.0802791
1>bin\Debug\net5.0\Aura_OS.asm:988207: error: symbol `SystemUInt32PrivateImplementationDetailsComputeStringHashSystemString' redefined
1>bin\Debug\net5.0\Aura_OS.asm:988217: error: symbol `SystemUInt32PrivateImplementationDetailsComputeStringHashSystemString.IL_0000' redefined
1>bin\Debug\net5.0\Aura_OS.asm:988225: error: symbol `SystemUInt32PrivateImplementationDetailsComputeStringHashSystemString.IL_0001' redefined
1>bin\Debug\net5.0\Aura_OS.asm:988234: error: symbol `SystemUInt32PrivateImplementationDetailsComputeStringHashSystemString.IL_0001.End' redefined
1>bin\Debug\net5.0\Aura_OS.asm:988236: error: symbol `SystemUInt32PrivateImplementationDetailsComputeStringHashSystemString.IL_0003' redefined
1>bin\Debug\net5.0\Aura_OS.asm:988240: error: symbol `SystemUInt32PrivateImplementationDetailsComputeStringHashSystemString.IL_0008' redefined
1>bin\Debug\net5.0\Aura_OS.asm:988248: error: symbol `SystemUInt32PrivateImplementationDetailsComputeStringHashSystemString.IL_0009' redefined
1>bin\Debug\net5.0\Aura_OS.asm:988252: error: symbol `SystemUInt32PrivateImplementationDetailsComputeStringHashSystemString.IL_000A' redefined
1>bin\Debug\net5.0\Aura_OS.asm:988260: error: symbol `SystemUInt32PrivateImplementationDetailsComputeStringHashSystemString.IL_000B' redefined
1>bin\Debug\net5.0\Aura_OS.asm:988264: error: symbol `SystemUInt32PrivateImplementationDetailsComputeStringHashSystemString.IL_000D' redefined
1>bin\Debug\net5.0\Aura_OS.asm:988272: error: symbol `SystemUInt32PrivateImplementationDetailsComputeStringHashSystemString.IL_000E' redefined
1>bin\Debug\net5.0\Aura_OS.asm:988279: error: symbol `SystemUInt32PrivateImplementationDetailsComputeStringHashSystemString.IL_000F' redefined
1>bin\Debug\net5.0\Aura_OS.asm:988294: error: symbol `SystemUInt32PrivateImplementationDetailsComputeStringHashSystemString.IL_000F.NoExceptionAfterCall' redefined
1>bin\Debug\net5.0\Aura_OS.asm:988296: error: symbol `SystemUInt32PrivateImplementationDetailsComputeStringHashSystemString.IL_0014' redefined
1>bin\Debug\net5.0\Aura_OS.asm:988303: error: symbol `SystemUInt32PrivateImplementationDetailsComputeStringHashSystemString.IL_0015' redefined
1>bin\Debug\net5.0\Aura_OS.asm:988308: error: symbol `SystemUInt32PrivateImplementationDetailsComputeStringHashSystemString.IL_0016' redefined
1>bin\Debug\net5.0\Aura_OS.asm:988312: error: symbol `SystemUInt32PrivateImplementationDetailsComputeStringHashSystemString.IL_001B' redefined
1>bin\Debug\net5.0\Aura_OS.asm:988319: error: symbol `SystemUInt32PrivateImplementationDetailsComputeStringHashSystemString.IL_001C' redefined
1>bin\Debug\net5.0\Aura_OS.asm:988327: error: symbol `SystemUInt32PrivateImplementationDetailsComputeStringHashSystemString.IL_001D' redefined
1>bin\Debug\net5.0\Aura_OS.asm:988334: error: symbol `SystemUInt32PrivateImplementationDetailsComputeStringHashSystemString.IL_001E' redefined
1>bin\Debug\net5.0\Aura_OS.asm:988338: error: symbol `SystemUInt32PrivateImplementationDetailsComputeStringHashSystemString.IL_001F' redefined
1>bin\Debug\net5.0\Aura_OS.asm:988343: error: symbol `SystemUInt32PrivateImplementationDetailsComputeStringHashSystemString.IL_0020' redefined
1>bin\Debug\net5.0\Aura_OS.asm:988351: error: symbol `SystemUInt32PrivateImplementationDetailsComputeStringHashSystemString.IL_0021' redefined
1>bin\Debug\net5.0\Aura_OS.asm:988358: error: symbol `SystemUInt32PrivateImplementationDetailsComputeStringHashSystemString.IL_0022' redefined
1>bin\Debug\net5.0\Aura_OS.asm:988366: error: symbol `SystemUInt32PrivateImplementationDetailsComputeStringHashSystemString.IL_0023' redefined
1>bin\Debug\net5.0\Aura_OS.asm:988383: error: symbol `SystemUInt32PrivateImplementationDetailsComputeStringHashSystemString.IL_0023.NoExceptionAfterCall' redefined
1>bin\Debug\net5.0\Aura_OS.asm:988385: error: symbol `SystemUInt32PrivateImplementationDetailsComputeStringHashSystemString.IL_0028' redefined
1>bin\Debug\net5.0\Aura_OS.asm:988392: error: symbol `SystemUInt32PrivateImplementationDetailsComputeStringHashSystemString.IL_002A' redefined
1>bin\Debug\net5.0\Aura_OS.asm:988396: error: symbol `SystemUInt32PrivateImplementationDetailsComputeStringHashSystemString.IL_002C' redefined
1>bin\Debug\net5.0\Aura_OS.asm:988403: error: symbol `SystemUInt32PrivateImplementationDetailsComputeStringHashSystemString.IL_002D' redefined
1>bin\Debug\net5.0\Aura_OS.asm:988408: error: symbol `SystemUInt32PrivateImplementationDetailsComputeStringHashSystemString.END__OF__METHOD_NORMAL' redefined
1>bin\Debug\net5.0\Aura_OS.asm:988415: error: symbol `SystemUInt32PrivateImplementationDetailsComputeStringHashSystemString.END__OF__METHOD_EXCEPTION' redefined
1>bin\Debug\net5.0\Aura_OS.asm:988418: error: symbol `SystemUInt32PrivateImplementationDetailsComputeStringHashSystemString.END__OF__METHOD_EXCEPTION__2' redefined
1>C:\Users\valentinbreiz\.nuget\packages\cosmos.build\0.1.0-localbuild20211021045217\build\Cosmos.Build.targets(206,9): error MSB6006: "nasm.exe" exited with code 1.
1>Nasm task took 00:00:07.6073003
1>Done building project "Aura_OS.csproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Reproduction - How did you get this error to appear?

Clone Aura_OS, try to compile using .net 5.

Version - Were you using the User Kit or Dev Kit? And what User Kit version or Dev Kit commit (Cosmos, IL2CPU, X#)?

Devkit

@valentinbreiz valentinbreiz changed the title SystemUInt32PrivateImplementationDetailsComputeStringHashSystemString redefined FTP Server Nasm error Oct 21, 2021
@quajak quajak transferred this issue from CosmosOS/Cosmos Oct 22, 2021
@quajak
Copy link
Member

quajak commented Oct 22, 2021

This is a problem with methods with exactly the same name being defined in multiple assemblies. We currently dont have a good way to fix this issue, so we have to add every case here

if(aType.Name == "SR" || aType.Name == "PathInternal") //TODO: we need to deal with this more generally

@valentinbreiz valentinbreiz changed the title FTP Server Nasm error SystemUInt32PrivateImplementationDetailsComputeStringHashSystemString redefined Feb 23, 2022
@valentinbreiz valentinbreiz linked a pull request Feb 23, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants