Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[8.0] CMake build failure in linux armel tizen - ld.lld: error: cannot open crtbeginS.o: No such file or directory #111279

Open
carlossanlop opened this issue Jan 10, 2025 · 2 comments
Labels
arch-arm32 area-Infrastructure-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-linux Linux OS (any supported distro) os-tizen untriaged New issue has not been triaged by the area owner

Comments

@carlossanlop
Copy link
Member

carlossanlop commented Jan 10, 2025

Note: This was caught in the release/8.0 branch inside the branding PR. We have not flowed changes from release/8.0-staging down to base in a few weeks so if the issue is already fixed in staging, please mention it. If it hasn't been fixed, please send the PR with the fix to staging. @dotnet/runtime-infrastructure


Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=909336&view=logs&j=2eda3965-9146-55d1-4226-c3d3f8432d8f
Build error leg or test failing: Build / linux-armel checked CoreCLR_NonPortable / Build product
Pull request: https://github.com/dotnet/runtime.git/pull/111171

Error Message

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

{
  "ErrorMessage": "ld.lld: error: cannot open crtbeginS.o: No such file or directory",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Output:

...
  Executing "/__w/1/s/src/coreclr/build-runtime.sh" -armel -checked -ci -cross -portablebuild=false -os linux -outputrid tizen.10.0.0-armel
  Commencing CoreCLR Repo build
  __OutputRid: tizen.10.0.0-armel
  Setting up directories for build
  Checking prerequisites...
  Commencing build of "install" target in "CoreCLR component" for linux.armel.Checked in /__w/1/s/artifacts/obj/coreclr/linux.armel.Checked
  Invoking "/__w/1/s/eng/native/gen-buildsys.sh" "/__w/1/s/src/coreclr" "/__w/1/s/artifacts/obj/coreclr/linux.armel.Checked" armel linux clang Checked ""  -DCLR_CMAKE_PGO_INSTRUMENT=0 -DCLR_CMAKE_OPTDATA_PATH= -DCLR_CMAKE_PGO_OPTIMIZE=0 -DCLI_CMAKE_FALLBACK_OS="tizen.10.0.0" -DFEATURE_DISTRO_AGNOSTIC_SSL=0 
  /__w/1/s/artifacts/obj/coreclr/linux.armel.Checked /__w/1/s/src/coreclr
  Not searching for unused variables given on the command line.
  loading initial cache file /__w/1/s/eng/native/tryrun.cmake
  -- The C compiler identification is Clang 18.1.8
  -- The CXX compiler identification is Clang 18.1.8
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - failed
  -- Check for working C compiler: /usr/bin/clang-18
  -- Check for working C compiler: /usr/bin/clang-18 - broken
  CMake Error at /usr/share/cmake-3.31/Modules/CMakeTestCCompiler.cmake:67 (message):
      The C compiler
  
      "/usr/bin/clang-18"
  
    is not able to compile a simple test program.
  
    It fails with the following output:
  
      Change Dir: '/__w/1/s/artifacts/obj/coreclr/linux.armel.Checked/CMakeFiles/CMakeScratch/TryCompile-k64mfq'
      
      Run Build Command(s): /usr/bin/cmake -E env VERBOSE=1 /usr/bin/gmake -f Makefile cmTC_30188/fast
      /usr/bin/gmake  -f CMakeFiles/cmTC_30188.dir/build.make CMakeFiles/cmTC_30188.dir/build
      gmake[1]: Entering directory '/__w/1/s/artifacts/obj/coreclr/linux.armel.Checked/CMakeFiles/CMakeScratch/TryCompile-k64mfq'
      Building C object CMakeFiles/cmTC_30188.dir/testCCompiler.c.o
      /usr/bin/clang-18 --target=arm-linux-gnueabi --gcc-toolchain=/crossrootfs/armel/usr --sysroot=/crossrootfs/armel -DCLR_ARM_FPU_CAPABILITY=0x7 -isystem /crossrootfs/armel/usr/lib/gcc/armv7l-tizen-linux-gnueabi/9.2.0/include/c++ -isystem /crossrootfs/armel/usr/lib/gcc/armv7l-tizen-linux-gnueabi/9.2.0/include/c++/armv7l-tizen-linux-gnueabi -mthumb -mfpu=vfpv3 -mfloat-abi=softfp -Wno-deprecated-declarations -D__extern_always_inline=inline -MD -MT CMakeFiles/cmTC_30188.dir/testCCompiler.c.o -MF CMakeFiles/cmTC_30188.dir/testCCompiler.c.o.d -o CMakeFiles/cmTC_30188.dir/testCCompiler.c.o -c /__w/1/s/artifacts/obj/coreclr/linux.armel.Checked/CMakeFiles/CMakeScratch/TryCompile-k64mfq/testCCompiler.c
      Linking C executable cmTC_30188
      /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_30188.dir/link.txt --verbose=1
      ld.lld: error: cannot open crtbeginS.o: No such file or directory
      ld.lld: error: unable to find library -lgcc
      ld.lld: error: unable to find library -lgcc
      ld.lld: error: cannot open crtendS.o: No such file or directory
      clang-18: error: linker command failed with exit code 1 (use -v to see invocation)
      /usr/bin/clang-18 --target=arm-linux-gnueabi --gcc-toolchain=/crossrootfs/armel/usr --sysroot=/crossrootfs/armel -Wl,--rpath-link=/crossrootfs/armel/lib/arm-linux-gnueabi -Wl,--rpath-link=/crossrootfs/armel/usr/lib/arm-linux-gnueabi -B/crossrootfs/armel/usr/lib/gcc/armv7l-tizen-linux-gnueabi/9.2.0 -L/crossrootfs/armel/lib -L/crossrootfs/armel/usr/lib -L/crossrootfs/armel/usr/lib/gcc/armv7l-tizen-linux-gnueabi/9.2.0 -Wl,--rpath-link=/crossrootfs/armel/lib/arm-linux-gnueabi -Wl,--rpath-link=/crossrootfs/armel/usr/lib/arm-linux-gnueabi -B/crossrootfs/armel/usr/lib/gcc/armv7l-tizen-linux-gnueabi/9.2.0 -L/crossrootfs/armel/lib -L/crossrootfs/armel/usr/lib -L/crossrootfs/armel/usr/lib/gcc/armv7l-tizen-linux-gnueabi/9.2.0 -fuse-ld=lld  CMakeFiles/cmTC_30188.dir/testCCompiler.c.o -o cmTC_30188
      gmake[1]: *** [CMakeFiles/cmTC_30188.dir/build.make:103: cmTC_30188] Error 1
      gmake[1]: Leaving directory '/__w/1/s/artifacts/obj/coreclr/linux.armel.Checked/CMakeFiles/CMakeScratch/TryCompile-k64mfq'
      gmake: *** [Makefile:133: cmTC_30188/fast] Error 2
      
    CMake will not be able to correctly generate this project.
  Call Stack (most recent call first):
    CMakeLists.txt:9 (project)
  
  -- Configuring incomplete, errors occurred!
  /__w/1/s/src/coreclr
  /__w/1/s/artifacts/obj/coreclr/linux.armel.Checked /__w/1/s/src/coreclr
  Executing make install -j 4
  make: *** No rule to make target 'install'.  Stop.

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=909336
Error message validated: [ld.lld: error: cannot open crtbeginS.o: No such file or directory]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 1/10/2025 6:03:18 PM UTC

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0
@carlossanlop carlossanlop added arch-arm32 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-linux Linux OS (any supported distro) os-tizen labels Jan 10, 2025
@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Jan 10, 2025
Copy link
Contributor

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

@sbomer
Copy link
Member

sbomer commented Jan 10, 2025

Looks like it was fixed in staging: 771cecf.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
arch-arm32 area-Infrastructure-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-linux Linux OS (any supported distro) os-tizen untriaged New issue has not been triaged by the area owner
Projects
Status: No status
Development

No branches or pull requests

2 participants