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

Dictionary problem when building v1.1.0 against ROOT 5 #1

Closed
sjgardiner opened this issue Mar 22, 2019 · 0 comments
Closed

Dictionary problem when building v1.1.0 against ROOT 5 #1

sjgardiner opened this issue Mar 22, 2019 · 0 comments
Assignees

Comments

@sjgardiner
Copy link
Member

Nitali Dash from IHEP encountered the following error while building the MARLEY ROOT dictionaries. This issue appears to be limited to builds involving ROOT 5.

/home/nitali/Root/root/bin/rootcint -f marley_root_dict.cc -c -I../include marley/Particle.hh marley/Event.hh marley/marley_linkdef.hh
g++ -pthread -m64 -I/home/nitali/Root/root/include -O3 -std=c++14 -I../include -Wall -Wextra -Wpedantic -Wno-error=unused-parameter -Wcast-align -Wl,--no-as-needed -DUSE_ROOT -I/usr/local/include \
-I../include -fPIC -o marley_root_dict.o -c marley_root_dict.cc
marley_root_dict.cc: In function ‘int G__marley_root_dict_170_0_25(G__value*, const char*, G__param*, int)’:
marley_root_dict.cc:662:29: error: variable ‘const marley::JSON xobj’ has initializer but incomplete type
          const marley::JSON xobj = ((const marley::Particle*) G__getstructoffset())->to_json();
                             ^~~~
marley_root_dict.cc:662:94: error: invalid use of incomplete type ‘class marley::JSON’
 arley::JSON xobj = ((const marley::Particle*) G__getstructoffset())->to_json();
                                                                              ^
In file included from marley_root_dict.h:34:0,
                 from marley_root_dict.cc:17:
../include/marley/Particle.hh:11:9: note: forward declaration of ‘class marley::JSON’
   class JSON;
         ^~~~
marley_root_dict.cc:663:38: error: invalid use of incomplete type ‘class marley::JSON’
          pobj = new marley::JSON(xobj);
                                      ^
In file included from marley_root_dict.h:34:0,
                 from marley_root_dict.cc:17:
../include/marley/Particle.hh:11:9: note: forward declaration of ‘class marley::JSON’
   class JSON;
         ^~~~
marley_root_dict.cc: In function ‘int G__marley_root_dict_171_0_25(G__value*, const char*, G__param*, int)’:
marley_root_dict.cc:1026:29: error: variable ‘const marley::JSON xobj’ has initializer but incomplete type
          const marley::JSON xobj = ((const marley::Event*) G__getstructoffset())->to_json();
                             ^~~~
marley_root_dict.cc:1026:91: error: invalid use of incomplete type ‘class marley::JSON’
 t marley::JSON xobj = ((const marley::Event*) G__getstructoffset())->to_json();
                                                                              ^
In file included from marley_root_dict.h:34:0,
                 from marley_root_dict.cc:17:
../include/marley/Particle.hh:11:9: note: forward declaration of ‘class marley::JSON’
   class JSON;
         ^~~~
marley_root_dict.cc:1027:38: error: invalid use of incomplete type ‘class marley::JSON’
          pobj = new marley::JSON(xobj);
                                      ^
In file included from marley_root_dict.h:34:0,
                 from marley_root_dict.cc:17:
../include/marley/Particle.hh:11:9: note: forward declaration of ‘class marley::JSON’
   class JSON;
         ^~~~
Makefile:123: recipe for target 'marley_root_dict.o' failed
make: *** [marley_root_dict.o] Error 1
rm RootJSONConfig.o WeisskopfSingleParticleModel.o Reaction.o marley_utils.o BackshiftedFermiGasModel.o ExitChannel.o Logger.o Generator.o HauserFeshbachDecay.o RootConfigurationFile.o Gamma.o Level.o StandardLorentzianModel.o JSONConfig.o Particle.o coulomb_wavefunctions.o MassTable.o Integrator.o marley_root.o DecayScheme.o GammaStrengthFunctionModel.o KoningDelarocheOpticalModel.o NeutrinoSource.o ConfigurationFile.o Event.o marley_kinematics.o StructureDatabase.o NuclearReaction.o RotationMatrix.o
@sjgardiner sjgardiner self-assigned this Mar 22, 2019
sjgardiner added a commit that referenced this issue Mar 22, 2019
Event.hh and Particle.hh. These prevent dictionary generation problems when
building against ROOT 5. This commit resolves GitHub issue #1.
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

1 participant