Bug 1637255 - vxl using libs fail to compile with -std=gnu++11
Summary: vxl using libs fail to compile with -std=gnu++11
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: vxl
Version: rawhide
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Ankur Sinha (FranciscoD)
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1674578
TreeView+ depends on / blocked
 
Reported: 2018-10-09 02:17 UTC by Orion Poplawski
Modified: 2019-06-19 01:45 UTC (History)
2 users (show)

Fixed In Version: vxl-2.0.2-4.fc30
Clone Of:
Environment:
Last Closed: 2019-06-19 01:45:40 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Orion Poplawski 2018-10-09 02:17:15 UTC
Description of problem:

Trying to build InsightToolkit with VTK 8.1.1 which uses -std=gnu++11 results in:

BUILDSTDERR: /usr/include/vxl/core/vnl/vnl_numeric_traits.h:387:22: error: 'constexpr' needed for in-class initialization of static data member 'const float vnl_numeric_traits<float>::zero' of non-integral type [-fpermissive]
BUILDSTDERR:    static const float zero VCL_STATIC_CONST_INIT_FLOAT_DECL(0.0F);
BUILDSTDERR:                       ^~~~
BUILDSTDERR: /usr/include/vxl/core/vnl/vnl_numeric_traits.h:389:22: error: 'constexpr' needed for in-class initialization of static data member 'const float vnl_numeric_traits<float>::one' of non-integral type [-fpermissive]
BUILDSTDERR:    static const float one VCL_STATIC_CONST_INIT_FLOAT_DECL(1.0F);
BUILDSTDERR:                       ^~~
BUILDSTDERR: /usr/include/vxl/core/vnl/vnl_numeric_traits.h:391:22: error: 'constexpr' needed for in-class initialization of static data member 'const float vnl_numeric_traits<float>::maxval' of non-integral type [-fpermissive]
BUILDSTDERR:    static const float maxval VCL_STATIC_CONST_INIT_FLOAT_DECL(3.40282346638528860e+38F);
BUILDSTDERR:                       ^~~~~~
BUILDSTDERR: /usr/include/vxl/core/vnl/vnl_numeric_traits.h:410:23: error: 'constexpr' needed for in-class initialization of static data member 'const double vnl_numeric_traits<double>::zero' of non-integral type [-fpermissive]
BUILDSTDERR:    static const double zero VCL_STATIC_CONST_INIT_FLOAT_DECL(0.0);
BUILDSTDERR:                        ^~~~
BUILDSTDERR: /usr/include/vxl/core/vnl/vnl_numeric_traits.h:412:23: error: 'constexpr' needed for in-class initialization of static data member 'const double vnl_numeric_traits<double>::one' of non-integral type [-fpermissive]
BUILDSTDERR:    static const double one VCL_STATIC_CONST_INIT_FLOAT_DECL(1.0);
BUILDSTDERR:                        ^~~
BUILDSTDERR: /usr/include/vxl/core/vnl/vnl_numeric_traits.h:414:23: error: 'constexpr' needed for in-class initialization of static data member 'const double vnl_numeric_traits<double>::maxval' of non-integral type [-fpermissive]
BUILDSTDERR:    static const double maxval VCL_STATIC_CONST_INIT_FLOAT_DECL(1.7976931348623157E+308);
BUILDSTDERR:                        ^~~~~~
BUILDSTDERR: /usr/include/vxl/core/vnl/vnl_numeric_traits.h:433:28: error: 'constexpr' needed for in-class initialization of static data member 'const long double vnl_numeric_traits<long double>::zero' of non-integral type [-fpermissive]
BUILDSTDERR:    static const long double zero VCL_STATIC_CONST_INIT_FLOAT_DECL(0.0);
BUILDSTDERR:                             ^~~~
BUILDSTDERR: /usr/include/vxl/core/vnl/vnl_numeric_traits.h:435:28: error: 'constexpr' needed for in-class initialization of static data member 'const long double vnl_numeric_traits<long double>::one' of non-integral type [-fpermissive]
BUILDSTDERR:    static const long double one VCL_STATIC_CONST_INIT_FLOAT_DECL(1.0);
BUILDSTDERR:                             ^~~
BUILDSTDERR: /usr/include/vxl/core/vnl/vnl_numeric_traits.h:437:28: error: 'constexpr' needed for in-class initialization of static data member 'const long double vnl_numeric_traits<long double>::maxval' of non-integral type [-fpermissive]
BUILDSTDERR:    static const long double maxval VCL_STATIC_CONST_INIT_FLOAT_DECL(1.7976931348623157E+308);
BUILDSTDERR:                             ^~~~~~


Version-Release number of selected component (if applicable):
vxl-1.17.0-28

See https://copr.fedorainfracloud.org/coprs/orion/vtk8/builds/

Comment 1 Fedora Update System 2019-05-29 06:54:08 UTC
FEDORA-2019-b0a152dd3b has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-b0a152dd3b

Comment 2 Fedora Update System 2019-05-30 13:57:58 UTC
vxl-2.0.2-4.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-b0a152dd3b

Comment 3 Fedora Update System 2019-06-19 01:45:40 UTC
vxl-2.0.2-4.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, 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.