dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
14.96k stars 4.65k forks source link

CMake error on ios+NativeAOT running smoke tests #90312

Closed steveharter closed 1 year ago

steveharter commented 1 year ago

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: https://github.com/dotnet/runtime/pull/90119

Error Message

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

Known issue validation

Build: :mag_right: https://dev.azure.com/dnceng-public/public/_build/results?buildId=368974 Error message validated: No SOURCES given to target: nativeaot Result validation: :white_check_mark: 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 dotnet/runtime#90304
369870 dotnet/runtime Build Tests Log dotnet/runtime#89712
369604 dotnet/runtime Build Tests Log dotnet/runtime#90150
369496 dotnet/runtime Build Tests Log
369482 dotnet/runtime Build Tests Log dotnet/runtime#90298
369471 dotnet/runtime Build Tests Log dotnet/runtime#90280
369160 dotnet/runtime Build Tests Log dotnet/runtime#90199
368974 dotnet/runtime Build Tests Log dotnet/runtime#90119
368875 dotnet/runtime Build Tests Log
368554 dotnet/runtime Build Tests Log dotnet/runtime#90181
368230 dotnet/runtime Build Tests Log dotnet/runtime#90184
368237 dotnet/runtime Build Tests Log dotnet/runtime#90234
368204 dotnet/runtime Build Tests Log dotnet/runtime#90225
367894 dotnet/runtime Build Tests Log dotnet/runtime#90150

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
8 14 14
ghost commented 1 year ago

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: https://github.com/dotnet/runtime/pull/90119 ## Error Message ```json { "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 commented 1 year ago

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: https://github.com/dotnet/runtime/pull/90119 ## Error Message ```json { "ErrorMessage": "No SOURCES given to target: nativeaot", "BuildRetry": false } ``` ### Known issue validation **Build: :mag_right:** https://dev.azure.com/dnceng-public/public/_build/results?buildId=368974 **Error message validated:** `No SOURCES given to target: nativeaot` **Result validation: :white_check_mark:** 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: -