Bug 2355055 - cmake FIND_PACKAGE(CHOLMOD) does not work without static libraries
Summary: cmake FIND_PACKAGE(CHOLMOD) does not work without static libraries
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: suitesparse
Version: 41
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Orion Poplawski
QA Contact: Fedora Extras Quality Assurance
URL: https://github.com/DrTimothyAldenDavi...
Whiteboard:
: 2365312 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-03-26 14:04 UTC by Brad Bell
Modified: 2025-08-02 04:17 UTC (History)
3 users (show)

Fixed In Version: suitesparse-7.11.0-1.fc43 suitesparse-7.11.0-1.fc42
Clone Of:
Environment:
Last Closed: 2025-07-27 05:43:16 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Brad Bell 2025-03-26 14:04:28 UTC
See the URL link 
https://github.com/DrTimothyAldenDavis/SuiteSparse/discussions/923
The solution suggest there is to add -DBUILD_STATIC_LIBS=OFF when not installing the static libraries.

Reproducible: Always

Steps to Reproduce:
Execute the following bash script:

# /usr/bin/env bash
set -e -u
mkdir temp_dir ; cd temp_dir
#
sudo dnf remove suitesparse
sudo dnf install suitesparse-devel
#
cat << EOF > CMakeLists.txt
CMAKE_MINIMUM_REQUIRED( VERSION 3.0 )
PROJECT(TEST_FIND_PACKAGE_CHOLMOD)
FIND_PACKAGE(CHOLMOD)
EOF
#
if cmake .
then
   echo 'test_find_package_cholmod: OK'
else
   echo 'test_find_package_cholmod: Error'
fi



Actual Results:  
... snip ...

-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5") found components: C
CMake Error at /usr/lib64/cmake/SuiteSparse_config/SuiteSparse_configTargets.cmake:105 (message):
  The imported target "SuiteSparse::SuiteSparseConfig_static" references the
  file

     "/usr/lib64/libsuitesparseconfig.a"

... snip ...
-- Configuring incomplete, errors occurred!
test_find_package_cholmod: Error


Expected Results:  
... snip ...

-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5") found components: C
-- SuiteSparse_config version: 7.6.0
-- SuiteSparse_config include: /usr/include/suitesparse
.
... snip ...

-- Build files have been written to: <your_original_directory>/temp_dir
test_find_package_cholmod: OK

Comment 1 Aoife Moloney 2025-04-28 15:44:19 UTC
This message is a reminder that Fedora Linux 40 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 40 on 2025-05-13.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '40'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 40 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 2 Orion Poplawski 2025-05-14 13:45:53 UTC
*** Bug 2365312 has been marked as a duplicate of this bug. ***

Comment 3 Orion Poplawski 2025-05-14 13:48:00 UTC
I've proposed a fix upstream here: https://github.com/DrTimothyAldenDavis/SuiteSparse/pull/946

Comment 4 Fedora Update System 2025-07-27 05:40:29 UTC
FEDORA-2025-a81ab2af95 (suitesparse-7.11.0-1.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-a81ab2af95

Comment 5 Fedora Update System 2025-07-27 05:43:16 UTC
FEDORA-2025-a81ab2af95 (suitesparse-7.11.0-1.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Fedora Update System 2025-07-28 03:38:15 UTC
FEDORA-2025-6958be8499 (suitesparse-7.11.0-1.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-6958be8499

Comment 7 Fedora Update System 2025-07-29 04:12:23 UTC
FEDORA-2025-6958be8499 has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-6958be8499`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-6958be8499

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2025-08-01 01:13:45 UTC
FEDORA-2025-6958be8499 (suitesparse-7.11.0-1.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Fedora Update System 2025-08-02 04:17:52 UTC
FEDORA-2025-6958be8499 (suitesparse-7.11.0-1.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.