Comments (9)
Thank you for this note. I will see if this can be avoided.
from antsr.
Is this still an issue?
from antsr.
As it happens, I rebuilt ANTsR yesterday and it worked without setting
CPPFLAGS=-fpermissive
Best
Stefan
from antsr.
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.
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.
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.
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.
basically - might need a -DVCL_CAN_STATIC_CONST_INIT_FLOAT=0 put into
MAKEVARS somewhere .... e.g.
@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.
Fixed. Thanks a lot.
Stefan
from antsr.
Related Issues (20)
- Installation fails on Ubuntu 22.04LTS with R4.2.0 HOT 3
- ERROR: Parsing error: The keyword 'const' is reserved
- Errors in buliding ANTsR vigniettes HOT 1
- AAL template extends beyond MNI cortical surface HOT 7
- installation problem antsLibs() Makevars:6: *** missing separator. Stop. HOT 5
- Error
- antsMotionCalculation Error HOT 1
- colorbar key for antsrSurf HOT 6
- Installation fail with devtools HOT 5
- details about mnib HOT 1
- Failing on ITK when running LINDA HOT 6
- Proper similarity metric for Affine registration HOT 3
- MVPA using ANTsR?
- ITK bug in createJacobianDeterminantImage after upgrade HOT 14
- aslPerfusion HOT 11
- Installation error on Mac OS 12.6.3 with devtools HOT 11
- R version issues HOT 3
- ITK_GLOBAL_NUMBER_OF_THREADS is ignored HOT 2
- How to pass command line arguments to antsRegistration? HOT 4
- Guidance on Extracting Numeric Values of Gaussian Curvature from Image Class HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from antsr.