{"action":"created","issue":{"url":"https://api.github.com/repos/BRAINSia/BRAINSTools/issues/195","labels_url":"https://api.github.com/repos/BRAINSia/BRAINSTools/issues/195/labels{/name}","comments_url":"https://api.github.com/repos/BRAINSia/BRAINSTools/issues/195/comments","events_url":"https://api.github.com/repos/BRAINSia/BRAINSTools/issues/195/events","html_url":"https://github.com/BRAINSia/BRAINSTools/issues/195","id":92929189,"number":195,"title":"unrecognized command line option \"-Wno-long-double\"","user":{"login":"gblokland","id":8396549,"avatar_url":"https://avatars.githubusercontent.com/u/8396549?v=3","gravatar_id":"","url":"https://api.github.com/users/gblokland","html_url":"https://github.com/gblokland","followers_url":"https://api.github.com/users/gblokland/followers","following_url":"https://api.github.com/users/gblokland/following{/other_user}","gists_url":"https://api.github.com/users/gblokland/gists{/gist_id}","starred_url":"https://api.github.com/users/gblokland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gblokland/subscriptions","organizations_url":"https://api.github.com/users/gblokland/orgs","repos_url":"https://api.github.com/users/gblokland/repos","events_url":"https://api.github.com/users/gblokland/events{/privacy}","received_events_url":"https://api.github.com/users/gblokland/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-03T19:59:48Z","updated_at":"2015-07-06T16:51:34Z","closed_at":null,"body":"Hi,\r\n\r\nWe're trying to install BRAINSTools on Scientific Linux release 6.6 (Carbon), with:\r\ngcc (and g++) version: gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-11).\r\n\r\nCode run:\r\n\r\ngit clone https://github.com/BRAINSia/BRAINSTools.git\r\nmkdir BRAINSTools-build && cd BRAINSTools-build\r\nCC=/usr/bin/gcc \\\r\nCXX=/usr/bin/g++ \\\r\nccmake ../BRAINSTools \\\r\n\t-DUSE_BRAINSFit:BOOL=ON \\\r\n\t-DUSE_BRAINSConstellationDetector:BOOL=ON \\\r\n\t-DUSE_BRAINSABC:BOOL=ON \\\r\n        -DUSE_ConvertBetweenFileFormats:BOOL=ON \\\r\n        -DUSE_BRAINSSurfaceTools:BOOL=OFF \\\r\n\t-DPYTHON_EXECUTABLE:PATH=/usr/pubsw/packages/python/epd/bin/python2.7 \\\r\n\t-DPYTHON_LIBRARY:PATH=/usr/pubsw/packages/python/epd/lib \\\r\n\t-DPYTHON_INCLUDE_DIR:PATH=/usr/pubsw/packages/python/epd/include\r\n\tmake -j 1 -k\r\n\tmake\r\n\r\nWe are getting the following error:\r\n\r\n[ 98%] Building CXX object Modules/IO/TransformBase/src/CMakeFiles/ITKIOTransformBase.dir/itkTransformFileWriterSpecializations.cxx.o\r\n/opt/BRAINSTools-build/ITKv4/Modules/IO/TransformBase/src/itkTransformFileWriterSpecializations.cxx:176: error: using ‘typename’ outside of template\r\n/opt/BRAINSTools-build/ITKv4/Modules/IO/TransformBase/src/itkTransformFileWriterSpecializations.cxx:177: error: using ‘typename’ outside of template\r\n/opt/BRAINSTools-build/ITKv4/Modules/IO/TransformBase/src/itkTransformFileWriterSpecializations.cxx:184: error: using ‘typename’ outside of template\r\n/opt/BRAINSTools-build/ITKv4/Modules/IO/TransformBase/src/itkTransformFileWriterSpecializations.cxx:185: error: using ‘typename’ outside of template\r\ncc1plus: warning: unrecognized command line option \"-Wno-long-double\"\r\nmake[5]: *** [Modules/IO/TransformBase/src/CMakeFiles/ITKIOTransformBase.dir/itkTransformFileWriterSpecializations.cxx.o] Error 1\r\nmake[4]: *** [Modules/IO/TransformBase/src/CMakeFiles/ITKIOTransformBase.dir/all] Error 2\r\nmake[3]: *** [all] Error 2\r\nmake[2]: *** [ITKv4-prefix/src/ITKv4-stamp/ITKv4-build] Error 2\r\nmake[1]: *** [CMakeFiles/ITKv4.dir/all] Error 2\r\nmake: *** [all] Error 2\r\n\r\nAfter some searching online, I came across some references saying that the -Wno-long-double argument is no longer needed in most cases. I found a source saying that the autoconf scripts should be running a test to determine whether or not gcc accepts the -Wno-long-double argument, so we tried adding these two lines to the file CMakeCache.txt in the BRAINSTools-build directory (not at all sure if these settings make sense):\r\n\r\n//Test C_HAS_WARNING-Wno-long-double\r\nC_HAS_WARNING-Wno-long-double:INTERNAL=1\r\n\r\nfollowed by running just ‘make’ from that directory, but got the same error.\r\n\r\nAnother source was saying it might be the gcc version, and that some (older) versions of the compiler gcc don’t accept this argument (current version is 4.8.X), but the gcc version is exactly the same as on another system we successfully installed BRAINSTools on, so I don't think that is it.\r\n\r\nDo you have ideas as to how we might be able to fix this issue?\r\n\r\nThanks very much in advance.\r\n\r\nGabriëlla"},"comment":{"url":"https://api.github.com/repos/BRAINSia/BRAINSTools/issues/comments/118923141","html_url":"https://github.com/BRAINSia/BRAINSTools/issues/195#issuecomment-118923141","issue_url":"https://api.github.com/repos/BRAINSia/BRAINSTools/issues/195","id":118923141,"user":{"login":"hjmjohnson","id":313970,"avatar_url":"https://avatars.githubusercontent.com/u/313970?v=3","gravatar_id":"","url":"https://api.github.com/users/hjmjohnson","html_url":"https://github.com/hjmjohnson","followers_url":"https://api.github.com/users/hjmjohnson/followers","following_url":"https://api.github.com/users/hjmjohnson/following{/other_user}","gists_url":"https://api.github.com/users/hjmjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/hjmjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hjmjohnson/subscriptions","organizations_url":"https://api.github.com/users/hjmjohnson/orgs","repos_url":"https://api.github.com/users/hjmjohnson/repos","events_url":"https://api.github.com/users/hjmjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/hjmjohnson/received_events","type":"User","site_admin":false},"created_at":"2015-07-06T16:51:34Z","updated_at":"2015-07-06T16:51:34Z","body":"Gabriella,\n\nYou have the wrong message regarding why your builds are failing.  The correct error message is:\n\n/opt/BRAINSTools-build/ITKv4/Modules/IO/TransformBase/src/itkTransformFileWriterSpecializations.cxx:176: error: using ‘typename’ outside of template\n\nWe fixed this last week, and the newest release of BRAINSTools should now work.\n\nHans\n=========================================\nHans J. Johnson\nhans.j.johnson@gmail.com\n\n\n\n> On Jul 3, 2015, at 2:59 PM, gblokland <notifications@github.com> wrote:\n> \n> Hi,\n> \n> We're trying to install BRAINSTools on Scientific Linux release 6.6 (Carbon), with:\n> gcc (and g++) version: gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-11).\n> \n> Code run:\n> \n> git clone https://github.com/BRAINSia/BRAINSTools.git <https://github.com/BRAINSia/BRAINSTools.git>\n> mkdir BRAINSTools-build && cd BRAINSTools-build\n> CC=/usr/bin/gcc \\\n> CXX=/usr/bin/g++ \\\n> ccmake ../BRAINSTools \\\n> -DUSE_BRAINSFit:BOOL=ON \\\n> -DUSE_BRAINSConstellationDetector:BOOL=ON \\\n> -DUSE_BRAINSABC:BOOL=ON \\\n> -DUSE_ConvertBetweenFileFormats:BOOL=ON \\\n> -DUSE_BRAINSSurfaceTools:BOOL=OFF \\\n> -DPYTHON_EXECUTABLE:PATH=/usr/pubsw/packages/python/epd/bin/python2.7 \\\n> -DPYTHON_LIBRARY:PATH=/usr/pubsw/packages/python/epd/lib \\\n> -DPYTHON_INCLUDE_DIR:PATH=/usr/pubsw/packages/python/epd/include\n> make -j 1 -k\n> make\n> \n> We are getting the following error:\n> \n> [ 98%] Building CXX object Modules/IO/TransformBase/src/CMakeFiles/ITKIOTransformBase.dir/itkTransformFileWriterSpecializations.cxx.o\n> /opt/BRAINSTools-build/ITKv4/Modules/IO/TransformBase/src/itkTransformFileWriterSpecializations.cxx:176: error: using ‘typename’ outside of template\n> /opt/BRAINSTools-build/ITKv4/Modules/IO/TransformBase/src/itkTransformFileWriterSpecializations.cxx:177: error: using ‘typename’ outside of template\n> /opt/BRAINSTools-build/ITKv4/Modules/IO/TransformBase/src/itkTransformFileWriterSpecializations.cxx:184: error: using ‘typename’ outside of template\n> /opt/BRAINSTools-build/ITKv4/Modules/IO/TransformBase/src/itkTransformFileWriterSpecializations.cxx:185: error: using ‘typename’ outside of template\n> cc1plus: warning: unrecognized command line option \"-Wno-long-double\"\n> make[5]: *** [Modules/IO/TransformBase/src/CMakeFiles/ITKIOTransformBase.dir/itkTransformFileWriterSpecializations.cxx.o] Error 1\n> make[4]: *** [Modules/IO/TransformBase/src/CMakeFiles/ITKIOTransformBase.dir/all] Error 2\n> make[3]: *** [all] Error 2\n> make[2]: *** [ITKv4-prefix/src/ITKv4-stamp/ITKv4-build] Error 2\n> make[1]: *** [CMakeFiles/ITKv4.dir/all] Error 2\n> make: *** [all] Error 2\n> \n> After some searching online, I came across some references saying that the -Wno-long-double argument is no longer needed in most cases. I found a source saying that the autoconf scripts should be running a test to determine whether or not gcc accepts the -Wno-long-double argument, so we tried adding these two lines to the file CMakeCache.txt in the BRAINSTools-build directory (not at all sure if these settings make sense):\n> \n> //Test C_HAS_WARNING-Wno-long-double\n> C_HAS_WARNING-Wno-long-double:INTERNAL=1\n> \n> followed by running just ‘make’ from that directory, but got the same error.\n> \n> Another source was saying it might be the gcc version, and that some (older) versions of the compiler gcc don’t accept this argument (current version is 4.8.X), but the gcc version is exactly the same as on another system we successfully installed BRAINSTools on, so I don't think that is it.\n> \n> Do you have ideas as to how we might be able to fix this issue?\n> \n> Thanks very much in advance.\n> \n> Gabriëlla\n> \n> —\n> Reply to this email directly or view it on GitHub <https://github.com/BRAINSia/BRAINSTools/issues/195>.\n> \n\n"}}