This bugzilla service is closed. All entries have been migrated to

Bug 1392

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

Description totto 2017-02-10 19:29:10 UTC
Created attachment 774 [details]

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:  (default)  (3.3)
Comment 2 Nobody 2019-12-04 16:49:06 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to'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: