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

Build break in Mono Android extra-platforms #88344

Closed
jkotas opened this issue Jul 3, 2023 · 3 comments · Fixed by #88345
Closed

Build break in Mono Android extra-platforms #88344

jkotas opened this issue Jul 3, 2023 · 3 comments · Fixed by #88345
Assignees
Labels
area-Build-mono Known Build Error Use this to report build issues in the .NET Helix tab
Milestone

Comments

@jkotas
Copy link
Member

jkotas commented Jul 3, 2023

PR: #88342

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=328385

Log: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_apis/build/builds/328385/logs/223

2023-07-03T16:59:17.6848371Z   CMake Error at /usr/share/cmake-3.21/Modules/CMakeTestCXXCompiler.cmake:62 (message):
2023-07-03T16:59:17.6856690Z     The C++ compiler
2023-07-03T16:59:17.6856932Z   
2023-07-03T16:59:17.6857259Z       "/usr/bin/c++"
2023-07-03T16:59:17.6857646Z   
2023-07-03T16:59:17.6857894Z     is not able to compile a simple test program.
2023-07-03T16:59:17.6858043Z   
2023-07-03T16:59:17.6858208Z     It fails with the following output:
2023-07-03T16:59:17.6858340Z   
2023-07-03T16:59:17.6858549Z       Change Dir: /__w/1/s/artifacts/obj/mono/android.arm64.Release/cross/CMakeFiles/CMakeTmp
2023-07-03T16:59:17.6858948Z       
2023-07-03T16:59:17.6859436Z       Run Build Command(s):/usr/bin/make -f Makefile cmTC_e98b0/fast && /usr/bin/make  -f CMakeFiles/cmTC_e98b0.dir/build.make CMakeFiles/cmTC_e98b0.dir/build
2023-07-03T16:59:17.6859987Z       make[1]: Entering directory '/__w/1/s/artifacts/obj/mono/android.arm64.Release/cross/CMakeFiles/CMakeTmp'
2023-07-03T16:59:17.6860286Z       Building CXX object CMakeFiles/cmTC_e98b0.dir/testCXXCompiler.cxx.o
2023-07-03T16:59:17.6861105Z       /usr/bin/c++   -I/__w/1/s/artifacts/obj/mono/android.arm64.Release/llvm//x64/include/c++/v1 -L/__w/1/s/artifacts/obj/mono/android.arm64.Release/llvm//x64/lib -stdlib=libc++  -o CMakeFiles/cmTC_e98b0.dir/testCXXCompiler.cxx.o -c /__w/1/s/artifacts/obj/mono/android.arm64.Release/cross/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
2023-07-03T16:59:17.6862084Z       c++: error: unrecognized command-line option ‘-stdlib=libc++’
2023-07-03T16:59:17.6862397Z       make[1]: *** [CMakeFiles/cmTC_e98b0.dir/build.make:78: CMakeFiles/cmTC_e98b0.dir/testCXXCompiler.cxx.o] Error 1
2023-07-03T16:59:17.6862993Z       make[1]: Leaving directory '/__w/1/s/artifacts/obj/mono/android.arm64.Release/cross/CMakeFiles/CMakeTmp'
2023-07-03T16:59:17.6863231Z       make: *** [Makefile:127: cmTC_e98b0/fast] Error 2

Known Issue Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "is not able to compile a simple test program",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=328385
Error message validated: is not able to compile a simple test program
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 7/5/2023 8:25:13 PM UTC

Report

Build Definition Step Name Console log Pull Request
333900 dotnet/runtime Build product Log #88539
333418 dotnet/runtime Build product Log
333413 dotnet/runtime Build product Log
2217531 dotnet-runtime Build product Log
2217469 dotnet-runtime Build product Log
333175 dotnet/runtime Build product Log
333176 dotnet/runtime Build product Log
2217350 dotnet-runtime Build product Log
333001 dotnet/runtime Build product Log
332997 dotnet/runtime Build product Log
332951 dotnet/runtime Build product Log #88548
2217160 dotnet-runtime Build product Log
332861 dotnet/runtime Build product Log
332859 dotnet/runtime Build product Log
2217069 dotnet-runtime Build product Log
2216979 dotnet-runtime Build product Log
332633 dotnet/runtime Build product Log
332635 dotnet/runtime Build product Log
2216940 dotnet-runtime Build product Log
2216878 dotnet-runtime Build product Log
332434 dotnet/runtime Build product Log
332431 dotnet/runtime Build product Log
2216705 dotnet-runtime Build product Log
332212 dotnet/runtime Build product Log #88530
332206 dotnet/runtime Build product Log #88529
2216413 dotnet-runtime Build product Log
331700 dotnet/runtime Build product Log
331699 dotnet/runtime Build product Log
2216266 dotnet-runtime Build product Log
2216141 dotnet-runtime Build product Log
331212 dotnet/runtime Build product Log
331211 dotnet/runtime Build product Log
2215927 dotnet-runtime Build product Log
330527 dotnet/runtime Build product Log
330525 dotnet/runtime Build product Log
2215460 dotnet-runtime Build product Log
2215301 dotnet-runtime Build product Log
2214924 dotnet-runtime Build product Log
329962 dotnet/runtime Build product Log
329959 dotnet/runtime Build product Log
329893 dotnet/runtime Build product Log #88436
2214747 dotnet-runtime Build product Log
2214660 dotnet-runtime Build product Log
329472 dotnet/runtime Build product Log
329470 dotnet/runtime Build product Log
2214570 dotnet-runtime Build product Log
2214469 dotnet-runtime Build product Log
329210 dotnet/runtime Build product Log
329209 dotnet/runtime Build product Log
2214383 dotnet-runtime Build product Log
2214311 dotnet-runtime Build product Log
2214184 dotnet-runtime Build product Log
328828 dotnet/runtime Build product Log #88322
328823 dotnet/runtime Build product Log
328822 dotnet/runtime Build product Log
2214097 dotnet-runtime Build product Log
328688 dotnet/runtime Build product Log #88360
2214014 dotnet-runtime Build product Log
328529 dotnet/runtime Build product Log
328528 dotnet/runtime Build product Log
328443 dotnet/runtime Build product Log #88322
2213884 dotnet-runtime Build product Log
328385 dotnet/runtime Build product Log #88342

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
7 59 63
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Jul 3, 2023
@ghost
Copy link

ghost commented Jul 3, 2023

Tagging subscribers to this area: @hoyosjs
See info in area-owners.md if you want to be subscribed.

Issue Details

PR: #88342

Log: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_apis/build/builds/328385/logs/223

2023-07-03T16:59:17.6848371Z   CMake Error at /usr/share/cmake-3.21/Modules/CMakeTestCXXCompiler.cmake:62 (message):
2023-07-03T16:59:17.6856690Z     The C++ compiler
2023-07-03T16:59:17.6856932Z   
2023-07-03T16:59:17.6857259Z       "/usr/bin/c++"
2023-07-03T16:59:17.6857646Z   
2023-07-03T16:59:17.6857894Z     is not able to compile a simple test program.
2023-07-03T16:59:17.6858043Z   
2023-07-03T16:59:17.6858208Z     It fails with the following output:
2023-07-03T16:59:17.6858340Z   
2023-07-03T16:59:17.6858549Z       Change Dir: /__w/1/s/artifacts/obj/mono/android.arm64.Release/cross/CMakeFiles/CMakeTmp
2023-07-03T16:59:17.6858948Z       
2023-07-03T16:59:17.6859436Z       Run Build Command(s):/usr/bin/make -f Makefile cmTC_e98b0/fast && /usr/bin/make  -f CMakeFiles/cmTC_e98b0.dir/build.make CMakeFiles/cmTC_e98b0.dir/build
2023-07-03T16:59:17.6859987Z       make[1]: Entering directory '/__w/1/s/artifacts/obj/mono/android.arm64.Release/cross/CMakeFiles/CMakeTmp'
2023-07-03T16:59:17.6860286Z       Building CXX object CMakeFiles/cmTC_e98b0.dir/testCXXCompiler.cxx.o
2023-07-03T16:59:17.6861105Z       /usr/bin/c++   -I/__w/1/s/artifacts/obj/mono/android.arm64.Release/llvm//x64/include/c++/v1 -L/__w/1/s/artifacts/obj/mono/android.arm64.Release/llvm//x64/lib -stdlib=libc++  -o CMakeFiles/cmTC_e98b0.dir/testCXXCompiler.cxx.o -c /__w/1/s/artifacts/obj/mono/android.arm64.Release/cross/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
2023-07-03T16:59:17.6862084Z       c++: error: unrecognized command-line option ‘-stdlib=libc++’
2023-07-03T16:59:17.6862397Z       make[1]: *** [CMakeFiles/cmTC_e98b0.dir/build.make:78: CMakeFiles/cmTC_e98b0.dir/testCXXCompiler.cxx.o] Error 1
2023-07-03T16:59:17.6862993Z       make[1]: Leaving directory '/__w/1/s/artifacts/obj/mono/android.arm64.Release/cross/CMakeFiles/CMakeTmp'
2023-07-03T16:59:17.6863231Z       make: *** [Makefile:127: cmTC_e98b0/fast] Error 2
Author: jkotas
Assignees: -
Labels:

area-Infrastructure-coreclr

Milestone: -

@jkotas jkotas added area-Build-mono and removed area-Infrastructure-coreclr untriaged New issue has not been triaged by the area owner labels Jul 3, 2023
@jkotas
Copy link
Member Author

jkotas commented Jul 3, 2023

Introduced by #87190

cc @directhex

@jkotas jkotas added the Known Build Error Use this to report build issues in the .NET Helix tab label Jul 3, 2023
@directhex
Copy link
Contributor

Gonna copy-paste my explainer on this issue from Discord:

  1. Mariner has a model of "base OS is a minimal host for clang, all actual compilation is cross compiled against a base OS in a folder in /crossrootfs.
  2. All non-desktop targets have a model of "build target runtime, and build a cross-compiler for the current running host, and use that cross-compiler to build the BCL and friends for the runtime pack... throw away the cross-compiler at the end (and build those in a separate job for distribution to users)
  3. Our Android builds currently only work by accident, because they build the android runtime using android sdk then a non-cross-compiled cross-compiler against the host OS (using gcc and /usr/lib instead of clang and /crossrootfs/x64). There is no crossrootfs in the android image. The entire BuildMonoCross target is doing everything exactly wrong.

This should be easily fixed by adding /p:BuildMonoAOTCrossCompiler=false to the job, it helped with the same failure on runtime-official.

@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Jul 3, 2023
@steveisok steveisok added this to the 8.0.0 milestone Jul 10, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Aug 13, 2023
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Oct 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Build-mono Known Build Error Use this to report build issues in the .NET Helix tab
Projects
None yet
3 participants