This bugzilla service is closed. All entries have been migrated to https://gitlab.com/libeigen/eigen

Bug 1392

Summary: Compiling Eigen/Sparse with EIGEN_MPL2_ONLY includes SparseCholesky:#error
Product: Eigen Reporter: totto <injx032>
Component: SparseAssignee: Nobody <eigen.nobody>
Status: RESOLVED FIXED    
Severity: Compilation Problem CC: chtz, gael.guennebaud
Priority: Normal    
Version: 3.3 (current stable)   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Eigen-3.3.2-SparseCholesky-MPL2_ONLY.patch none

Description totto 2017-02-10 19:29:10 UTC
Created attachment 774 [details]
Eigen-3.3.2-SparseCholesky-MPL2_ONLY.patch

When including Eigen/Sparse and compiling with EIGEN_MPL2_ONLY an #error directive is triggered:

Eigen/SparseCholesky:34:2: error: The SparseCholesky module has nothing to offer in MPL2 only mode
#error The SparseCholesky module has nothing to offer in MPL2 only mode

This can be fixed by checking for the MPL2 define in Eigen/Sparse and skipping Eigen/SparseCholesky if it is set, see attached patch.
Comment 1 Gael Guennebaud 2017-02-11 09:36:59 UTC
Thank you for the fix. Applied:

https://bitbucket.org/eigen/eigen/commits/4ce22c540fc5/  (default)
https://bitbucket.org/eigen/eigen/commits/332d580117b7/  (3.3)
Comment 2 Nobody 2019-12-04 16:49:06 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to gitlab.com's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.com/libeigen/eigen/issues/1392.