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

Compiler errors with gcc8 centos7, macos 11 clang 12 #1000

Closed
andresailer opened this issue Oct 30, 2022 · 0 comments
Closed

Compiler errors with gcc8 centos7, macos 11 clang 12 #1000

andresailer opened this issue Oct 30, 2022 · 0 comments
Labels

Comments

@andresailer
Copy link
Member

With clang12 on macos11 are these errors
http://cdash.cern.ch/upload/28e9243e849245051b65c6f78ea1329073ed941f/DD4hep-master-build.log

In file included from /Users/sftnight/build/workspace/lcg_nightly_pipeline/build/frameworks/DD4hep-master/src/DD4hep/master/DDDigi/src/DigiAction.cpp:15:
In file included from /Users/sftnight/build/workspace/lcg_nightly_pipeline/build/frameworks/DD4hep-master/src/DD4hep/master/DDCore/include/DD4hep/Printout.h:21:
In file included from /Users/sftnight/build/workspace/lcg_nightly_pipeline/build/frameworks/DD4hep-master/src/DD4hep/master/DDCore/include/Parsers/Printout.h:23:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/map:481:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__tree:14:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/iterator:419:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__functional_base:14:
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/type_traits:3060:14: error: base class has incomplete type
    : public is_constructible<_Tp,
      ~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/any:206:9: note: in instantiation of template class 'std::__1::is_copy_constructible<dd4hep::digi::Particle>' requested here
        is_copy_constructible<_Tp>::value>
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/any:515:6: note: in instantiation of default argument for 'any<const dd4hep::digi::Particle &, dd4hep::digi::Particle>' required here
any::any(_ValueType && __v) : __h(nullptr)
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/type_traits:3005:62: note: while substituting deduced template arguments into function template 'any' [with _ValueType = const dd4hep::digi::Particle &, _Tp = (no value), $2 = (no value)]
    : public integral_constant<bool, __is_constructible(_Tp, _Args...)>
                                                             ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/utility:353:18: note: in instantiation of template class 'std::__1::is_constructible<dd4hep::digi::Particle, const dd4hep::digi::Particle &>' requested here
              && is_constructible<second_type, _U2>::value
                 ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/utility:450:34: note: in instantiation of function template specialization 'std::__1::pair<const dd4hep::digi::Key, dd4hep::digi::Particle>::_CheckArgs::__enable_explicit<const dd4hep::digi::Key &, const dd4hep::digi::Particle &>' requested here
            _CheckArgs::template __enable_explicit<_U1 const&, _U2 const&>()
                                 ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/utility:453:14: note: (skipping 2 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all)
    explicit pair(pair<_U1, _U2> const& __p)
             ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__tree:757:23: note: in instantiation of template class 'std::__1::__value_type<dd4hep::digi::Key, dd4hep::digi::Particle>' requested here
    __node_value_type __value_;
                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__tree:1833:49: note: in instantiation of template class 'std::__1::__tree_node<std::__1::__value_type<dd4hep::digi::Key, dd4hep::digi::Particle>, void *>' requested here
        destroy(static_cast<__node_pointer>(__nd->__left_));
                                                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/__tree:1824:3: note: in instantiation of member function 'std::__1::__tree<std::__1::__value_type<dd4hep::digi::Key, dd4hep::digi::Particle>, std::__1::__map_value_compare<dd4hep::digi::Key, std::__1::__value_type<dd4hep::digi::Key, dd4hep::digi::Particle>, std::__1::less<dd4hep::digi::Key>, true>, std::__1::allocator<std::__1::__value_type<dd4hep::digi::Key, dd4hep::digi::Particle>>>::destroy' requested here
  destroy(__root());
  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/map:962:5: note: in instantiation of member function 'std::__1::__tree<std::__1::__value_type<dd4hep::digi::Key, dd4hep::digi::Particle>, std::__1::__map_value_compare<dd4hep::digi::Key, std::__1::__value_type<dd4hep::digi::Key, dd4hep::digi::Particle>, std::__1::less<dd4hep::digi::Key>, true>, std::__1::allocator<std::__1::__value_type<dd4hep::digi::Key, dd4hep::digi::Particle>>>::~__tree' requested here
    map()
    ^
/Users/sftnight/build/workspace/lcg_nightly_pipeline/build/frameworks/DD4hep-master/src/DD4hep/master/DDDigi/include/DDDigi/DigiData.h:333:29: note: in instantiation of member function 'std::__1::map<dd4hep::digi::Key, dd4hep::digi::Particle, std::__1::less<dd4hep::digi::Key>, std::__1::allocator<std::__1::pair<const dd4hep::digi::Key, dd4hep::digi::Particle>>>::map' requested here
    inline ParticleMapping::ParticleMapping(const std::string& nam, Key::mask_type msk)
                            ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/type_traits:3004:29: note: definition of 'std::__1::is_constructible<dd4hep::digi::Particle, const dd4hep::digi::Particle &>' is not complete until the closing '}'
struct _LIBCPP_TEMPLATE_VIS is_constructible
                            ^
[ 40%] Building CXX object DDCAD/CMakeFiles/DDCAD.dir/src/CADImport.cpp.o
[ 40%] Building CXX object DDCAD/CMakeFiles/DDCAD.dir/src/InputReader.cpp.o
1 error generated.
make[5]: *** [DDDigi/CMakeFiles/DDDigi.dir/src/DigiAction.cpp.o] Error 1

(less important because we maybe disable this build...)
With gcc8 there is this error
http://cdash.cern.ch/upload/0902a905b9dc871349020202e3bf93821162448b/DD4hep-master-build.log

[ 77%] Building CXX object DDDetectors/CMakeFiles/DDDetectors.dir/src/DiskTracker_geo.cpp.o
[ 77%] Building CXX object DDDigi/CMakeFiles/DDDigiPlugins.dir/plugins/Components.cpp.o
[ 77%] Building CXX object DDG4/CMakeFiles/DDG4.dir/src/Geant4PrimaryHandler.cpp.o
[ 77%] Building CXX object DDCond/CMakeFiles/DDCondPlugins.dir/src/plugins/ConditionsSnapshotRootLoader.cpp.o
In file included from /cvmfs/sft.cern.ch/lcg/releases/gcc/8.3.0-cebb0/x86_64-centos7/include/c++/8.3.0/bits/locale_conv.h:41,
                 from /cvmfs/sft.cern.ch/lcg/releases/gcc/8.3.0-cebb0/x86_64-centos7/include/c++/8.3.0/locale:43,
                 from /cvmfs/sft.cern.ch/lcg/releases/gcc/8.3.0-cebb0/x86_64-centos7/include/c++/8.3.0/iomanip:43,
                 from /build/jenkins/workspace/lcg_nightly_pipeline/install/dev3/ROOT/HEAD/x86_64-centos7-gcc8-opt/include/Math/GenVector/BitReproducible.h:24,
                 from /build/jenkins/workspace/lcg_nightly_pipeline/install/dev3/ROOT/HEAD/x86_64-centos7-gcc8-opt/include/Math/GenVector/DisplacementVector3D.h:29,
                 from /build/jenkins/workspace/lcg_nightly_pipeline/install/dev3/ROOT/HEAD/x86_64-centos7-gcc8-opt/include/Math/Vector3D.h:17,
                 from /build/jenkins/workspace/lcg_nightly_pipeline/build/frameworks/DD4hep-master/src/DD4hep/master/DDCore/include/DD4hep/Objects.h:36,
                 from /build/jenkins/workspace/lcg_nightly_pipeline/build/frameworks/DD4hep-master/src/DD4hep/master/DDCore/include/DD4hep/DetElement.h:19,
                 from /build/jenkins/workspace/lcg_nightly_pipeline/build/frameworks/DD4hep-master/src/DD4hep/master/DDCore/include/DD4hep/Factories.h:18,
                 from /build/jenkins/workspace/lcg_nightly_pipeline/build/frameworks/DD4hep-master/src/DD4hep/master/DDDigi/plugins/Components.cpp:16:
/cvmfs/sft.cern.ch/lcg/releases/gcc/8.3.0-cebb0/x86_64-centos7/include/c++/8.3.0/bits/unique_ptr.h: In instantiation of ‘void std::default_delete<_Tp>::operator()(_Tp*) const [with _Tp = dd4hep::digi::DigiROOTInput::internals_t]’:
/cvmfs/sft.cern.ch/lcg/releases/gcc/8.3.0-cebb0/x86_64-centos7/include/c++/8.3.0/bits/unique_ptr.h:274:17:   required from ‘std::unique_ptr<_Tp, _Dp>::~unique_ptr() [with _Tp = dd4hep::digi::DigiROOTInput::internals_t; _Dp = std::default_delete<dd4hep::digi::DigiROOTInput::internals_t>]’
/build/jenkins/workspace/lcg_nightly_pipeline/build/frameworks/DD4hep-master/src/DD4hep/master/DDDigi/include/DDDigi/DigiROOTInput.h:53:54:   required from here
/cvmfs/sft.cern.ch/lcg/releases/gcc/8.3.0-cebb0/x86_64-centos7/include/c++/8.3.0/bits/unique_ptr.h:79:16: error: invalid application of ‘sizeof’ to incomplete type ‘dd4hep::digi::DigiROOTInput::internals_t’
  static_assert(sizeof(_Tp)>0,
                ^~~~~~~~~~~
/cvmfs/sft.cern.ch/lcg/releases/gcc/8.3.0-cebb0/x86_64-centos7/include/c++/8.3.0/bits/unique_ptr.h: In instantiation of ‘void std::default_delete<_Tp>::operator()(_Tp*) const [with _Tp = dd4hep::digi::DigiROOTOutput::internals_t]’:
/cvmfs/sft.cern.ch/lcg/releases/gcc/8.3.0-cebb0/x86_64-centos7/include/c++/8.3.0/bits/unique_ptr.h:274:17:   required from ‘std::unique_ptr<_Tp, _Dp>::~unique_ptr() [with _Tp = dd4hep::digi::DigiROOTOutput::internals_t; _Dp = std::default_delete<dd4hep::digi::DigiROOTOutput::internals_t>]’
/build/jenkins/workspace/lcg_nightly_pipeline/build/frameworks/DD4hep-master/src/DD4hep/master/DDDigi/include/DDDigi/DigiROOTOutput.h:63:46:   required from here
/cvmfs/sft.cern.ch/lcg/releases/gcc/8.3.0-cebb0/x86_64-centos7/include/c++/8.3.0/bits/unique_ptr.h:79:16: error: invalid application of ‘sizeof’ to incomplete type ‘dd4hep::digi::DigiROOTOutput::internals_t’
[ 77%] Building CXX object DDDetectors/CMakeFiles/DDDetectors.dir/src/EcalBarrel_geo.cpp.o
make[5]: *** [DDDigi/CMakeFiles/DDDigiPlugins.dir/plugins/Components.cpp.o] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants