Giter Club home page Giter Club logo

Comments (9)

stnava avatar stnava commented on July 26, 2024

Thank you for this note. I will see if this can be avoided.

from antsr.

bkandel avatar bkandel commented on July 26, 2024

Is this still an issue?

from antsr.

zarquon42b avatar zarquon42b commented on July 26, 2024

As it happens, I rebuilt ANTsR yesterday and it worked without setting

   CPPFLAGS=-fpermissive

Best
Stefan

from antsr.

zarquon42b avatar zarquon42b commented on July 26, 2024

Sorry, my answer was premature. I just realized, that the build process had failed, and I had to set -fpermissive again. So the issue remains.

Best
Stefan

from antsr.

zarquon42b avatar zarquon42b commented on July 26, 2024

The issue occurs with antsImage. Here is the complete log regarding the compilation of antsImage:

g++ -std=c++11 -I/usr/share/R/include -DNDEBUG -I../inst/include -I/home/schlager/GIT/DEV/test/ANTsR/src -I/home/schlager/GIT/DEV/test/ANTsR/src/itkb/itkinst/include/ITK-4.8/ -I/home/schlager/GIT/DEV/test/ANTsR/src/ants//Examples/include/  -I"/home/schlager/R/x86_64-pc-linux-gnu-library/3.1/Rcpp/include"   -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c antsImage.cpp -o antsImage.o
In file included from /home/schlager/GIT/DEV/test/ANTsR/src/itkb/itkinst/include/ITK-4.8/vcl_compiler.h:243:0,
                 from /home/schlager/GIT/DEV/test/ANTsR/src/itkb/itkinst/include/ITK-4.8/vcl_limits.h:5,
                 from /home/schlager/GIT/DEV/test/ANTsR/src/itkb/itkinst/include/ITK-4.8/itkNumericTraits.h:45,
                 from /home/schlager/GIT/DEV/test/ANTsR/src/itkb/itkinst/include/ITK-4.8/itkPoint.h:22,
                 from /home/schlager/GIT/DEV/test/ANTsR/src/itkb/itkinst/include/ITK-4.8/itkContinuousIndex.h:21,
                 from /home/schlager/GIT/DEV/test/ANTsR/src/itkb/itkinst/include/ITK-4.8/itkImageRegion.h:34,
                 from /home/schlager/GIT/DEV/test/ANTsR/src/itkb/itkinst/include/ITK-4.8/itkImage.h:21,
                 from antsImage.cpp:6:
/home/schlager/GIT/DEV/test/ANTsR/src/itkb/itkinst/include/ITK-4.8/vnl/vnl_numeric_traits.h:387:60: error: ‘constexpr’ needed for in-class initialization of static data member ‘const float vnl_numeric_traits<float>::zero’ of non-integral type [-fpermissive]
   static const float zero VCL_STATIC_CONST_INIT_FLOAT_DECL(0.0F);
                                                            ^
/home/schlager/GIT/DEV/test/ANTsR/src/itkb/itkinst/include/ITK-4.8/vcl_config_compiler.h:152:48: note: in definition of macro ‘VCL_STATIC_CONST_INIT_FLOAT_DECL’
 # define VCL_STATIC_CONST_INIT_FLOAT_DECL(x) = x
                                                ^
/home/schlager/GIT/DEV/test/ANTsR/src/itkb/itkinst/include/ITK-4.8/vnl/vnl_numeric_traits.h:389:59: error: ‘constexpr’ needed for in-class initialization of static data member ‘const float vnl_numeric_traits<float>::one’ of non-integral type [-fpermissive]
   static const float one VCL_STATIC_CONST_INIT_FLOAT_DECL(1.0F);
                                                           ^
/home/schlager/GIT/DEV/test/ANTsR/src/itkb/itkinst/include/ITK-4.8/vcl_config_compiler.h:152:48: note: in definition of macro ‘VCL_STATIC_CONST_INIT_FLOAT_DECL’
 # define VCL_STATIC_CONST_INIT_FLOAT_DECL(x) = x
                                                ^
/home/schlager/GIT/DEV/test/ANTsR/src/itkb/itkinst/include/ITK-4.8/vnl/vnl_numeric_traits.h:391:62: error: ‘constexpr’ needed for in-class initialization of static data member ‘const float vnl_numeric_traits<float>::maxval’ of non-integral type [-fpermissive]
   static const float maxval VCL_STATIC_CONST_INIT_FLOAT_DECL(3.40282346638528860e+38F);
                                                              ^
/home/schlager/GIT/DEV/test/ANTsR/src/itkb/itkinst/include/ITK-4.8/vcl_config_compiler.h:152:48: note: in definition of macro ‘VCL_STATIC_CONST_INIT_FLOAT_DECL’
 # define VCL_STATIC_CONST_INIT_FLOAT_DECL(x) = x
                                                ^
/home/schlager/GIT/DEV/test/ANTsR/src/itkb/itkinst/include/ITK-4.8/vnl/vnl_numeric_traits.h:410:61: error: ‘constexpr’ needed for in-class initialization of static data member ‘const double vnl_numeric_traits<double>::zero’ of non-integral type [-fpermissive]
   static const double zero VCL_STATIC_CONST_INIT_FLOAT_DECL(0.0);
                                                             ^
/home/schlager/GIT/DEV/test/ANTsR/src/itkb/itkinst/include/ITK-4.8/vcl_config_compiler.h:152:48: note: in definition of macro ‘VCL_STATIC_CONST_INIT_FLOAT_DECL’
 # define VCL_STATIC_CONST_INIT_FLOAT_DECL(x) = x
                                                ^
/home/schlager/GIT/DEV/test/ANTsR/src/itkb/itkinst/include/ITK-4.8/vnl/vnl_numeric_traits.h:412:60: error: ‘constexpr’ needed for in-class initialization of static data member ‘const double vnl_numeric_traits<double>::one’ of non-integral type [-fpermissive]
   static const double one VCL_STATIC_CONST_INIT_FLOAT_DECL(1.0);
                                                            ^
/home/schlager/GIT/DEV/test/ANTsR/src/itkb/itkinst/include/ITK-4.8/vcl_config_compiler.h:152:48: note: in definition of macro ‘VCL_STATIC_CONST_INIT_FLOAT_DECL’
 # define VCL_STATIC_CONST_INIT_FLOAT_DECL(x) = x
                                                ^
/home/schlager/GIT/DEV/test/ANTsR/src/itkb/itkinst/include/ITK-4.8/vnl/vnl_numeric_traits.h:414:63: error: ‘constexpr’ needed for in-class initialization of static data member ‘const double vnl_numeric_traits<double>::maxval’ of non-integral type [-fpermissive]
   static const double maxval VCL_STATIC_CONST_INIT_FLOAT_DECL(1.7976931348623157E+308);
                                                               ^
/home/schlager/GIT/DEV/test/ANTsR/src/itkb/itkinst/include/ITK-4.8/vcl_config_compiler.h:152:48: note: in definition of macro ‘VCL_STATIC_CONST_INIT_FLOAT_DECL’
 # define VCL_STATIC_CONST_INIT_FLOAT_DECL(x) = x
                                                ^
/home/schlager/GIT/DEV/test/ANTsR/src/itkb/itkinst/include/ITK-4.8/vnl/vnl_numeric_traits.h:433:66: 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]
   static const long double zero VCL_STATIC_CONST_INIT_FLOAT_DECL(0.0);
                                                                  ^
/home/schlager/GIT/DEV/test/ANTsR/src/itkb/itkinst/include/ITK-4.8/vcl_config_compiler.h:152:48: note: in definition of macro ‘VCL_STATIC_CONST_INIT_FLOAT_DECL’
 # define VCL_STATIC_CONST_INIT_FLOAT_DECL(x) = x
                                                ^
/home/schlager/GIT/DEV/test/ANTsR/src/itkb/itkinst/include/ITK-4.8/vnl/vnl_numeric_traits.h:435:65: 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]
   static const long double one VCL_STATIC_CONST_INIT_FLOAT_DECL(1.0);
                                                                 ^
/home/schlager/GIT/DEV/test/ANTsR/src/itkb/itkinst/include/ITK-4.8/vcl_config_compiler.h:152:48: note: in definition of macro ‘VCL_STATIC_CONST_INIT_FLOAT_DECL’
 # define VCL_STATIC_CONST_INIT_FLOAT_DECL(x) = x
                                                ^
/home/schlager/GIT/DEV/test/ANTsR/src/itkb/itkinst/include/ITK-4.8/vnl/vnl_numeric_traits.h:437:68: 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]
   static const long double maxval VCL_STATIC_CONST_INIT_FLOAT_DECL(1.7976931348623157E+308);
                                                                    ^
/home/schlager/GIT/DEV/test/ANTsR/src/itkb/itkinst/include/ITK-4.8/vcl_config_compiler.h:152:48: note: in definition of macro ‘VCL_STATIC_CONST_INIT_FLOAT_DECL’
 # define VCL_STATIC_CONST_INIT_FLOAT_DECL(x) = x
                                                ^
make: *** [antsImage.o] Error 1
ERROR: compilation failed for package ‘ANTsR’
* removing ‘/home/schlager/R/x86_64-pc-linux-gnu-library/3.1/ANTsR’
* restoring previous ‘/home/schlager/R/x86_64-pc-linux-gnu-library/3.1/ANTsR’

from antsr.

jefferis avatar jefferis commented on July 26, 2024

Good detective work. So this is presumably a problem specifically with gcc in C++11 mode like this:

https://bugs.launchpad.net/ubuntu/+source/insighttoolkit4/+bug/1270148

not sure if it got fixed upstream yet.

from antsr.

stnava avatar stnava commented on July 26, 2024

http://www.itk.org/pipermail/insight-users/2014-July/050734.html

discussion here - looks like there is a fairly clear path toward resolution

brian

On Thu, Mar 12, 2015 at 8:21 AM, Gregory Jefferis [email protected]
wrote:

Good detective work. So this is presumably a problem specifically with gcc
in C++11 mode like this:

https://bugs.launchpad.net/ubuntu/+source/insighttoolkit4/+bug/1270148

not sure if it got fixed upstream yet.


Reply to this email directly or view it on GitHub
#4 (comment).

from antsr.

stnava avatar stnava commented on July 26, 2024

basically - might need a -DVCL_CAN_STATIC_CONST_INIT_FLOAT=0 put into
MAKEVARS somewhere .... e.g.

68dd060

@zarquon42b ... do you mind testing?

brian

On Thu, Mar 12, 2015 at 8:22 AM, brian avants [email protected] wrote:

http://www.itk.org/pipermail/insight-users/2014-July/050734.html

discussion here - looks like there is a fairly clear path toward resolution

brian

On Thu, Mar 12, 2015 at 8:21 AM, Gregory Jefferis <
[email protected]> wrote:

Good detective work. So this is presumably a problem specifically with
gcc in C++11 mode like this:

https://bugs.launchpad.net/ubuntu/+source/insighttoolkit4/+bug/1270148

not sure if it got fixed upstream yet.


Reply to this email directly or view it on GitHub
#4 (comment).

from antsr.

zarquon42b avatar zarquon42b commented on July 26, 2024

Fixed. Thanks a lot.

Stefan

from antsr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.