Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 901993

Summary: dev-util/cmake-3.26.0 fails with FEATURES=test on gfortran with clang as system compiler
Product: Gentoo Linux Reporter: Andy <gebauer.andy>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: minor CC: kde
Priority: Normal    
Version: unspecified   
Hardware: ARM64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 408963    
Attachments: Emerge --info
Build.log showing the test failures

Description Andy 2023-03-18 03:27:56 UTC
When compiling Cmake-3.26.0 with FEATURES=test, two tests fail, the compilertest as well as the dependencygraph test.
Reason as shown in the build log is that the test runs gfortran which does not understand -rtlib=compiler-rt from the LLVM system profile / clang as system compiler.
Dependency graph fails out of the same issue.


Reproducible: Always

Steps to Reproduce:
1. Set profile to LLVM
2. Enable test for cmake
3. Emerge cmake
Actual Results:  
2 out of 608 test fail

Expected Results:  
All tests should pass

Potential solution is enforcing cmake compilation via gcc or switching off tests.
Better would be an enforcing of clearing of the CFLAGS before the tests are run, especially when it comes to gfortran.
Comment 1 Andy 2023-03-18 03:31:01 UTC
Created attachment 858147 [details]
Emerge --info
Comment 2 Andy 2023-03-18 03:32:08 UTC
Created attachment 858149 [details]
Build.log showing the test failures
Comment 3 Andy 2023-07-14 17:26:05 UTC
Issue is not present with dev-util/cmake-3.26.4-r1