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

ILC fails to initialize native object writer with path containing '../' #87961

Closed
kotlarmilos opened this issue Jun 23, 2023 · 3 comments
Closed

Comments

@kotlarmilos
Copy link
Member

Description

The ILC compiler encounters a failure when attempting to initialize the Native Object Writer with a path that contains ../. When the path does not include a parent directory reference, the compiler initializes the writer correctly.

error : Unable to create file for /tmp/helix/working/ABCA092E/w/C3E60A32/e/apple_build/../publish/native/Program.o: No such file or directory [/private/tmp/helix/working/ABCA092E/w/C3E60A32/e/publish/ProxyProjectForAOTOnHelix.proj]
error : Fail to initialize Native Object Writer [/private/tmp/helix/working/ABCA092E/w/C3E60A32/e/publish/ProxyProjectForAOTOnHelix.proj]
  System.IO.IOException: Fail to initialize Native Object Writer
     at ILCompiler.DependencyAnalysis.ObjectWriter..ctor(String objectFilePath, NodeFactory factory, ObjectWritingOptions options) in /Users/miloskotlar/dotnet/runtime-ios/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/ObjectWriter.cs:line 856
     at ILCompiler.DependencyAnalysis.ObjectWriter.EmitObject(String objectFilePath, IReadOnlyCollection`1 nodes, NodeFactory factory, ObjectWritingOptions options, IObjectDumper dumper, Logger logger) in /Users/miloskotlar/dotnet/runtime-ios/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/ObjectWriter.cs:line 947
     at ILCompiler.Compilation.ILCompiler.ICompilation.Compile(String outputFile, ObjectDumper dumper) in /Users/miloskotlar/dotnet/runtime-ios/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/Compilation.cs:line 523
     at ILCompiler.Program.Run() in /Users/miloskotlar/dotnet/runtime-ios/src/coreclr/tools/aot/ILCompiler/Program.cs:line 545
     at ILCompiler.ILCompilerRootCommand.<>c__DisplayClass215_0.<.ctor>b__0(InvocationContext context) in /Users/miloskotlar/dotnet/runtime-ios/src/coreclr/tools/aot/ILCompiler/ILCo
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Jun 23, 2023
@ghost
Copy link

ghost commented Jun 23, 2023

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

Issue Details

Description

The ILC compiler encounters a failure when attempting to initialize the Native Object Writer with a path that contains ../. When the path does not include a parent directory reference, the compiler initializes the writer correctly.

error : Unable to create file for /tmp/helix/working/ABCA092E/w/C3E60A32/e/apple_build/../publish/native/Program.o: No such file or directory [/private/tmp/helix/working/ABCA092E/w/C3E60A32/e/publish/ProxyProjectForAOTOnHelix.proj]
error : Fail to initialize Native Object Writer [/private/tmp/helix/working/ABCA092E/w/C3E60A32/e/publish/ProxyProjectForAOTOnHelix.proj]
  System.IO.IOException: Fail to initialize Native Object Writer
     at ILCompiler.DependencyAnalysis.ObjectWriter..ctor(String objectFilePath, NodeFactory factory, ObjectWritingOptions options) in /Users/miloskotlar/dotnet/runtime-ios/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/ObjectWriter.cs:line 856
     at ILCompiler.DependencyAnalysis.ObjectWriter.EmitObject(String objectFilePath, IReadOnlyCollection`1 nodes, NodeFactory factory, ObjectWritingOptions options, IObjectDumper dumper, Logger logger) in /Users/miloskotlar/dotnet/runtime-ios/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/DependencyAnalysis/ObjectWriter.cs:line 947
     at ILCompiler.Compilation.ILCompiler.ICompilation.Compile(String outputFile, ObjectDumper dumper) in /Users/miloskotlar/dotnet/runtime-ios/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/Compilation.cs:line 523
     at ILCompiler.Program.Run() in /Users/miloskotlar/dotnet/runtime-ios/src/coreclr/tools/aot/ILCompiler/Program.cs:line 545
     at ILCompiler.ILCompilerRootCommand.<>c__DisplayClass215_0.<.ctor>b__0(InvocationContext context) in /Users/miloskotlar/dotnet/runtime-ios/src/coreclr/tools/aot/ILCompiler/ILCo
Author: kotlarmilos
Assignees: -
Labels:

area-NativeAOT-coreclr

Milestone: -

@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Jun 23, 2023
@MichalStrehovsky MichalStrehovsky added this to the 9.0.0 milestone Jul 11, 2023
@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Jul 11, 2023
@jkotas jkotas added the needs-author-action An issue or pull request that requires more info or actions from the author. label Jul 11, 2023
@ghost
Copy link

ghost commented Jul 11, 2023

This issue has been marked needs-author-action and may be missing some important information.

@jkotas jkotas removed the needs-author-action An issue or pull request that requires more info or actions from the author. label Jul 11, 2023
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Jul 11, 2023
@kotlarmilos
Copy link
Member Author

#87962 (comment)

@ghost ghost locked as resolved and limited conversation to collaborators Aug 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants