Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 901993 - dev-util/cmake-3.26.0 fails with FEATURES=test on gfortran with clang as system compiler
Summary: dev-util/cmake-3.26.0 fails with FEATURES=test on gfortran with clang as syst...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM64 Linux
: Normal minor (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: systemwide-clang
  Show dependency tree
 
Reported: 2023-03-18 03:27 UTC by Andy
Modified: 2023-07-14 17:26 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Emerge --info (emerge.info,6.04 KB, text/plain)
2023-03-18 03:31 UTC, Andy
Details
Build.log showing the test failures (build.log,717.02 KB, text/plain)
2023-03-18 03:32 UTC, Andy
Details

Note You need to log in before you can comment on or make changes to this bug.
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