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

CMake error on ios+NativeAOT running smoke tests #90312

Closed
steveharter opened this issue Aug 10, 2023 · 2 comments · Fixed by #90327
Closed

CMake error on ios+NativeAOT running smoke tests #90312

steveharter opened this issue Aug 10, 2023 · 2 comments · Fixed by #90327
Labels
area-NativeAOT-coreclr blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab os-ios Apple iOS runtime-mono specific to the Mono runtime

Comments

@steveharter
Copy link
Member

steveharter commented Aug 10, 2023

Several errors like:

src/mono/msbuild/apple/build/AppleBuild.targets(289,5): error MSB4018: The "AppleAppBuilderTask" task failed unexpectedly.
System.Exception: Error: Process returned non-zero exit code: -- The C compiler identification is AppleClang 14.0.0.14000029
-- The CXX compiler identification is AppleClang 14.0.0.14000029
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode_14.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode_14.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The OBJC compiler identification is AppleClang 14.0.0.14000029
-- The ASM compiler identification is AppleClang
-- Found assembler: /Applications/Xcode_14.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-- Detecting OBJC compiler ABI info
-- Detecting OBJC compiler ABI info - done
-- Check for working OBJC compiler: /Applications/Xcode_14.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang - skipped
-- Configuring done (29.5s)
CMake Error at CMakeLists.txt:12 (add_executable):
  Cannot find source file:
    libnativeaot_SmokeTests_DynamicGenerics.dylib
  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm
  .ccm .cxxm .c++m .h .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90
  .f95 .f03 .hip .ispc
CMake Error at CMakeLists.txt:12 (add_executable):
  No SOURCES given to target: nativeaot_SmokeTests_DynamicGenerics
CMake Generate step failed.  Build files cannot be regenerated correctly.
   at Utils.RunProcess(TaskLoggingHelper logger, String path, String args, IDictionary`2 envVars, String workingDir, Boolean ignoreErrors, Boolean silent, MessageImportance debugMessageImportance) in /_/src/tasks/Common/Utils.cs:line 123
   at Xcode.CreateXcodeProject(String projectName, String cmakeDirectoryPath) in /_/src/tasks/AppleAppBuilder/Xcode.cs:line 231
   at Xcode.GenerateXCode(String projectName, String entryPointLib, IEnumerable`1 asmFiles, IEnumerable`1 asmDataFiles, IEnumerable`1 asmLinkFiles, IEnumerable`1 extraLinkerArgs, IEnumerable`1 excludes, String workspace, String binDir, String monoInclude, Boolean preferDylibs, Boolean useConsoleUiTemplate, Boolean forceAOT, Boolean forceInterpreter, Boolean invariantGlobalization, Boolean hybridGlobalization, Boolean optimized, Boolean enableRuntimeLogging, Boolean enableAppSandbox, String diagnosticPorts, String runtimeComponents, String nativeMainSource, Boolean useNativeAOTRuntime, Boolean isLibraryMode) in /_/src/tasks/AppleAppBuilder/Xcode.cs:line 197
   at AppleAppBuilderTask.Execute() in /_/src/tasks/AppleAppBuilder/AppleAppBuilder.cs:line 335
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask)

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=368974
Build error leg or test failing:
Pull request: #90119

Error Message

{
  "ErrorMessage": "No SOURCES given to target: nativeaot",
  "BuildRetry": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=368974
Error message validated: No SOURCES given to target: nativeaot
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 8/10/2023 1:58:09 PM UTC

Report

Build Definition Step Name Console log Pull Request
369565 dotnet/runtime Build Tests Log #90304
369870 dotnet/runtime Build Tests Log #89712
369604 dotnet/runtime Build Tests Log #90150
369496 dotnet/runtime Build Tests Log
369482 dotnet/runtime Build Tests Log #90298
369471 dotnet/runtime Build Tests Log #90280
369160 dotnet/runtime Build Tests Log #90199
368974 dotnet/runtime Build Tests Log #90119
368875 dotnet/runtime Build Tests Log
368554 dotnet/runtime Build Tests Log #90181
368230 dotnet/runtime Build Tests Log #90184
368237 dotnet/runtime Build Tests Log #90234
368204 dotnet/runtime Build Tests Log #90225
367894 dotnet/runtime Build Tests Log #90150

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
8 14 14
@steveharter steveharter added blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' runtime-mono specific to the Mono runtime os-ios Apple iOS area-NativeAOT-coreclr Known Build Error Use this to report build issues in the .NET Helix tab labels Aug 10, 2023
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Aug 10, 2023
@ghost
Copy link

ghost commented Aug 10, 2023

Tagging subscribers to 'os-ios': @steveisok, @akoeplinger, @kotlarmilos
See info in area-owners.md if you want to be subscribed.

Issue Details

Several errors like:

src/mono/msbuild/apple/build/AppleBuild.targets(289,5): error MSB4018: The "AppleAppBuilderTask" task failed unexpectedly.
System.Exception: Error: Process returned non-zero exit code: -- The C compiler identification is AppleClang 14.0.0.14000029
-- The CXX compiler identification is AppleClang 14.0.0.14000029
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode_14.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode_14.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The OBJC compiler identification is AppleClang 14.0.0.14000029
-- The ASM compiler identification is AppleClang
-- Found assembler: /Applications/Xcode_14.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-- Detecting OBJC compiler ABI info
-- Detecting OBJC compiler ABI info - done
-- Check for working OBJC compiler: /Applications/Xcode_14.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang - skipped
-- Configuring done (29.5s)
CMake Error at CMakeLists.txt:12 (add_executable):
  Cannot find source file:
    libnativeaot_SmokeTests_DynamicGenerics.dylib
  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm
  .ccm .cxxm .c++m .h .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90
  .f95 .f03 .hip .ispc
CMake Error at CMakeLists.txt:12 (add_executable):
  No SOURCES given to target: nativeaot_SmokeTests_DynamicGenerics
CMake Generate step failed.  Build files cannot be regenerated correctly.
   at Utils.RunProcess(TaskLoggingHelper logger, String path, String args, IDictionary`2 envVars, String workingDir, Boolean ignoreErrors, Boolean silent, MessageImportance debugMessageImportance) in /_/src/tasks/Common/Utils.cs:line 123
   at Xcode.CreateXcodeProject(String projectName, String cmakeDirectoryPath) in /_/src/tasks/AppleAppBuilder/Xcode.cs:line 231
   at Xcode.GenerateXCode(String projectName, String entryPointLib, IEnumerable`1 asmFiles, IEnumerable`1 asmDataFiles, IEnumerable`1 asmLinkFiles, IEnumerable`1 extraLinkerArgs, IEnumerable`1 excludes, String workspace, String binDir, String monoInclude, Boolean preferDylibs, Boolean useConsoleUiTemplate, Boolean forceAOT, Boolean forceInterpreter, Boolean invariantGlobalization, Boolean hybridGlobalization, Boolean optimized, Boolean enableRuntimeLogging, Boolean enableAppSandbox, String diagnosticPorts, String runtimeComponents, String nativeMainSource, Boolean useNativeAOTRuntime, Boolean isLibraryMode) in /_/src/tasks/AppleAppBuilder/Xcode.cs:line 197
   at AppleAppBuilderTask.Execute() in /_/src/tasks/AppleAppBuilder/AppleAppBuilder.cs:line 335
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask)

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=368974
Build error leg or test failing:
Pull request: #90119

Error Message

{
  "ErrorMessage": "No SOURCES given to target: nativeaot",
  "BuildRetry": false
}
Author: steveharter
Assignees: -
Labels:

blocking-clean-ci, runtime-mono, os-ios, area-NativeAOT-coreclr, Known Build Error

Milestone: -

@ghost
Copy link

ghost commented Aug 10, 2023

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

Issue Details

Several errors like:

src/mono/msbuild/apple/build/AppleBuild.targets(289,5): error MSB4018: The "AppleAppBuilderTask" task failed unexpectedly.
System.Exception: Error: Process returned non-zero exit code: -- The C compiler identification is AppleClang 14.0.0.14000029
-- The CXX compiler identification is AppleClang 14.0.0.14000029
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode_14.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode_14.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The OBJC compiler identification is AppleClang 14.0.0.14000029
-- The ASM compiler identification is AppleClang
-- Found assembler: /Applications/Xcode_14.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-- Detecting OBJC compiler ABI info
-- Detecting OBJC compiler ABI info - done
-- Check for working OBJC compiler: /Applications/Xcode_14.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang - skipped
-- Configuring done (29.5s)
CMake Error at CMakeLists.txt:12 (add_executable):
  Cannot find source file:
    libnativeaot_SmokeTests_DynamicGenerics.dylib
  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm
  .ccm .cxxm .c++m .h .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90
  .f95 .f03 .hip .ispc
CMake Error at CMakeLists.txt:12 (add_executable):
  No SOURCES given to target: nativeaot_SmokeTests_DynamicGenerics
CMake Generate step failed.  Build files cannot be regenerated correctly.
   at Utils.RunProcess(TaskLoggingHelper logger, String path, String args, IDictionary`2 envVars, String workingDir, Boolean ignoreErrors, Boolean silent, MessageImportance debugMessageImportance) in /_/src/tasks/Common/Utils.cs:line 123
   at Xcode.CreateXcodeProject(String projectName, String cmakeDirectoryPath) in /_/src/tasks/AppleAppBuilder/Xcode.cs:line 231
   at Xcode.GenerateXCode(String projectName, String entryPointLib, IEnumerable`1 asmFiles, IEnumerable`1 asmDataFiles, IEnumerable`1 asmLinkFiles, IEnumerable`1 extraLinkerArgs, IEnumerable`1 excludes, String workspace, String binDir, String monoInclude, Boolean preferDylibs, Boolean useConsoleUiTemplate, Boolean forceAOT, Boolean forceInterpreter, Boolean invariantGlobalization, Boolean hybridGlobalization, Boolean optimized, Boolean enableRuntimeLogging, Boolean enableAppSandbox, String diagnosticPorts, String runtimeComponents, String nativeMainSource, Boolean useNativeAOTRuntime, Boolean isLibraryMode) in /_/src/tasks/AppleAppBuilder/Xcode.cs:line 197
   at AppleAppBuilderTask.Execute() in /_/src/tasks/AppleAppBuilder/AppleAppBuilder.cs:line 335
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask)

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=368974
Build error leg or test failing:
Pull request: #90119

Error Message

{
  "ErrorMessage": "No SOURCES given to target: nativeaot",
  "BuildRetry": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=368974
Error message validated: No SOURCES given to target: nativeaot
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 8/10/2023 1:58:09 PM UTC

Author: steveharter
Assignees: -
Labels:

blocking-clean-ci, area-Infrastructure, untriaged, runtime-mono, os-ios, area-NativeAOT-coreclr, Known Build Error

Milestone: -

steveisok pushed a commit to steveisok/runtime that referenced this issue Aug 10, 2023
In dotnet#89869, the call to the AppleAppBuilderTask passed an item for `NativeDependencies` as opposed to a property. The change wasn't reflected in the runtime test build.proj, so the built test app wasn't being sent in.

Fixes dotnet#90312

Fixes dotnet#90218
@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Aug 10, 2023
steveisok added a commit that referenced this issue Aug 11, 2023
In #89869, the call to the AppleAppBuilderTask passed an item for `NativeDependencies` as opposed to a property. The change wasn't reflected in the runtime test build.proj, so the built test app wasn't being sent in.

Fixes #90312

Fixes #90218
@ghost ghost removed in-pr There is an active PR which will close this issue when it is merged untriaged New issue has not been triaged by the area owner labels Aug 11, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Sep 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-NativeAOT-coreclr blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab os-ios Apple iOS runtime-mono specific to the Mono runtime
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant