This bugzilla service is closed. All entries have been migrated to https://gitlab.com/libeigen/eigen
Bug 1485 - Compilation error with PaStiX module
Summary: Compilation error with PaStiX module
Status: RESOLVED FIXED
Alias: None
Product: Eigen
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: All Linux
: Normal Compilation Problem
Assignee: Nobody
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-12 14:19 UTC by Darcy
Modified: 2019-12-04 17:16 UTC (History)
4 users (show)



Attachments
Add inline specifier to wrapper functions (2.58 KB, patch)
2017-11-13 13:06 UTC, Darcy
no flags Details | Diff

Description Darcy 2017-11-12 14:19:31 UTC
When using the PaStiX module (#include <Eigen/PaStiXSupport>
), there is a ODR violation when including the header across multiple translation units.  The culprit appears to be the void eigen_pastix(...) function that require an inline specifier to avoid the compilation error.

To reproduce, simply have this header included in two compilation units and try to link.  Error occurs with g++ version 7.2.1.
Comment 1 Darcy 2017-11-13 13:06:15 UTC
Created attachment 802 [details]
Add inline specifier to wrapper functions
Comment 2 Gael Guennebaud 2017-11-15 20:35:49 UTC
Thank you for the report.

https://bitbucket.org/eigen/eigen/commits/024cb6ca4513/ (devel)
https://bitbucket.org/eigen/eigen/commits/ae28c2aaeeda/ (3.3)
Comment 3 Nobody 2019-12-04 17:16:43 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/1485.

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