Skip to content

CMake error on ios+NativeAOT running smoke tests #90312

Closed
@steveharter

Description

@steveharter

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Known Build ErrorUse this to report build issues in the .NET Helix tabarea-NativeAOT-coreclrblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'os-iosApple iOSruntime-monospecific to the Mono runtime

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions