Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile Error - anonymous types in headers #1

Closed
fbfree opened this issue Feb 2, 2017 · 3 comments
Closed

Compile Error - anonymous types in headers #1

fbfree opened this issue Feb 2, 2017 · 3 comments

Comments

@fbfree
Copy link

fbfree commented Feb 2, 2017

While attempting a fresh install of NJOY21, compile errors during make, shown below occurred while processing main.cpp.o.

Compilation was attempted on a Debian stretch distribution with gcc 6.2.1, gfortran 6.2.1, cmake 3.7.1, python 3.5.2+, and git 2.11.0.

Scanning dependencies of target njoy21_executable
[ 25%] Building CXX object CMakeFiles/njoy21_executable.dir/src/main.cpp.o
In file included from /home/fbfree/programs/NJOY21/src/njoy21/input.hpp:10:0,
  from /home/fbfree/programs/NJOY21/src/njoy21.hpp:28,
  from /home/fbfree/programs/NJOY21/src/main.cpp:1:
/home/fbfree/programs/NJOY21/src/njoy21/input/argument.hpp: In instantiation of ‘struct njoy::njoy21::input::argument::Type<njoy::njoy21::input::RECONR::Card4::Tempr, true, true>’:
/home/fbfree/programs/NJOY21/src/njoy21/input/RECONR/Card4.hpp:9:21:   required from here
/home/fbfree/programs/NJOY21/src/njoy21/input/argument.hpp:17:8: error: ‘njoy::njoy21::input::argument::Type<njoy::njoy21::input::RECONR::Card4::Tempr, true, true>’ has a field ‘njoy::njoy21::input::argument::Type<njoy::njoy21::input::RECONR::Card4::Tempr, true, true>::value’ whose type uses the anonymous namespace -Werror=subobject-linkage]
 struct Type : public defaultField< defaults > {
        ^~~~
/home/fbfree/programs/NJOY21/src/njoy21/input/argument.hpp: In instantiation of ‘struct njoy::njoy21::input::argument::Type<njoy::njoy21::input::RECONR::Card4::Errint, true, true>’:
/home/fbfree/programs/NJOY21/src/njoy21/input/RECONR/Card4.hpp:11:22:   required from here
/home/fbfree/programs/NJOY21/src/njoy21/input/argument.hpp:17:8: error: ‘njoy::njoy21::input::argument::Type<njoy::njoy21::input::RECONR::Card4::Errint, true, true>’ has a field ‘njoy::njoy21::input::argument::Type<njoy::njoy21::input::RECONR::Card4::Errint, true, true>::value’ whose type uses the anonymous namespace [-Werror=subobject-linkage]
/home/fbfree/programs/NJOY21/src/njoy21/input/argument.hpp: In instantiation of ‘struct njoy::njoy21::input::argument::Type<njoy::njoy21::input::RECONR::Card6::Enode, false, true>’:
/home/fbfree/programs/NJOY21/src/njoy21/input/RECONR/Card6.hpp:5:21:   required from here
/home/fbfree/programs/NJOY21/src/njoy21/input/argument.hpp:17:8: error: ‘njoy::njoy21::input::argument::Type<njoy::njoy21::input::RECONR::Card6::Enode, false, true>’ has a field ‘njoy::njoy21::input::argument::Type<njoy::njoy21::input::RECONR::Card6::Enode, false, true>::value’ whose type uses the anonymous namespace [-Werror=subobject-linkage]
/home/fbfree/programs/NJOY21/src/njoy21/input/argument.hpp: In instantiation of ‘struct njoy::njoy21::input::argument::Type<njoy::njoy21::input::BROADR::Card2::Temp1, true, true>’:
/home/fbfree/programs/NJOY21/src/njoy21/input/BROADR/Card2.hpp:13:21:   required from here
/home/fbfree/programs/NJOY21/src/njoy21/input/argument.hpp:17:8: error: ‘njoy::njoy21::input::argument::Type<njoy::njoy21::input::BROADR::Card2::Temp1, true, true>’ has a field ‘njoy::njoy21::input::argument::Type<njoy::njoy21::input::BROADR::Card2::Temp1, true, true>::value’ whose type uses the anonymous namespace -Werror=subobject-linkage]
/home/fbfree/programs/NJOY21/src/njoy21/input/argument.hpp: In instantiation of ‘struct njoy::njoy21::input::argument::Type<njoy::njoy21::input::BROADR::Card3::Thnmax, true, false>’:
/home/fbfree/programs/NJOY21/src/njoy21/input/BROADR/Card3.hpp:9:22:   required from here
/home/fbfree/programs/NJOY21/src/njoy21/input/argument.hpp:17:8: error: ‘njoy::njoy21::input::argument::Type<njoy::njoy21::input::BROADR::Card3::Thnmax, true, false>’ has a field ‘njoy::njoy21::input::argument::Type<njoy::njoy21::input::BROADR::Card3::Thnmax, true, false>::value’ whose type uses the anonymous namespace [-Werror=subobject-linkage]
/home/fbfree/programs/NJOY21/src/njoy21/input/argument.hpp: In instantiation of ‘struct njoy::njoy21::input::argument::Type<njoy::njoy21::input::BROADR::Card3::Errint, true, true>’:
/home/fbfree/programs/NJOY21/src/njoy21/input/BROADR/Card3.hpp:11:22:   required from here
/home/fbfree/programs/NJOY21/src/njoy21/input/argument.hpp:17:8: error: ‘njoy::njoy21::input::argument::Type<njoy::njoy21::input::BROADR::Card3::Errint, true, true>’ has a field ‘njoy::njoy21::input::argument::Type<njoy::njoy21::input::BROADR::Card3::Errint, true, true>::value’ whose type uses the anonymous namespace [-Werror=subobject-linkage]
/home/fbfree/programs/NJOY21/src/njoy21/input/argument.hpp: In instantiation of ‘struct njoy::njoy21::input::argument::Type<njoy::njoy21::input::BROADR::Card4::Temp2, false, true>’:
/home/fbfree/programs/NJOY21/src/njoy21/input/BROADR/Card4.hpp:5:21:   required from here
/home/fbfree/programs/NJOY21/src/njoy21/input/argument.hpp:17:8: error: ‘njoy::njoy21::input::argument::Type<njoy::njoy21::input::BROADR::Card4::Temp2, false, true>’ has a field ‘njoy::njoy21::input::argument::Type<njoy::njoy21::input::BROADR::Card4::Temp2, false, true>::value’ whose type uses the anonymous namespace [-Werror=subobject-linkage]
/home/fbfree/programs/NJOY21/src/njoy21/input/argument.hpp: In instantiation of ‘struct njoy::njoy21::input::argument::Type<njoy::njoy21::input::PURR::Card3::Temp, false, true>’:
/home/fbfree/programs/NJOY21/src/njoy21/input/PURR/Card3.hpp:6:20:   required from here
/home/fbfree/programs/NJOY21/src/njoy21/input/argument.hpp:17:8: error: ‘njoy::njoy21::input::argument::Type<njoy::njoy21::input::PURR::Card3::Temp, false, true>’ has a field ‘njoy::njoy21::input::argument::Type<njoy::njoy21::input::PURR::Card3::Temp, false, true>::value’ whose type uses the anonymous namespace [-Werror=subobject-linkage]
/home/fbfree/programs/NJOY21/src/njoy21/input/argument.hpp: In instantiation of ‘struct njoy::njoy21::input::argument::Type<njoy::njoy21::input::PURR::Card4::Sigz, false, true>’:
/home/fbfree/programs/NJOY21/src/njoy21/input/PURR/Card4.hpp:6:20:   required from here
/home/fbfree/programs/NJOY21/src/njoy21/input/argument.hpp:17:8: error: ‘njoy::njoy21::input::argument::Type<njoy::njoy21::input::PURR::Card4::Sigz, false, true>’ has a field ‘njoy::njoy21::input::argument::Type<njoy::njoy21::input::PURR::Card4::Sigz, false, true>::value’ whose type uses the anonymous namespace [-Werror=subobject-linkage]
cc1plus: all warnings being treated as errors
CMakeFiles/njoy21_executable.dir/build.make:62: recipe for target 'CMakeFiles/njoy21_executable.dir/src/main.cpp.o' failed
make[2]: *** [CMakeFiles/njoy21_executable.dir/src/main.cpp.o] Error 1
CMakeFiles/Makefile2:69: recipe for target 'CMakeFiles/njoy21_executable.dir/all' failed
make[1]: *** [CMakeFiles/njoy21_executable.dir/all] Error 2
Makefile:94: recipe for target 'all' failed
make: *** [all] Error 2
@jlconlin
Copy link
Member

jlconlin commented Feb 2, 2017

Thanks for trying this out. Unfortunately, NJOY21 is not quite ready for public consumption. I understand my build instructions defaulted to pointing to NJOY21 instead of NJOY2016. I am working on getting that updated.

@jlconlin jlconlin closed this as completed Feb 2, 2017
@apmccartney
Copy link
Member

@fbfree I believe this issue has been resolved. Feel free to comment if you feel this issue requires further action.

@fbfree
Copy link
Author

fbfree commented Feb 16, 2017 via email

jlconlin pushed a commit that referenced this issue Apr 5, 2017
@ameliajo ameliajo mentioned this issue Jul 11, 2017
nicholas-sly pushed a commit that referenced this issue Nov 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants