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 issues with GCC 11 / spack 0.17.0 #61

Open
matz-e opened this issue Dec 2, 2021 · 0 comments · May be fixed by #62
Open

Compile issues with GCC 11 / spack 0.17.0 #61

matz-e opened this issue Dec 2, 2021 · 0 comments · May be fixed by #62

Comments

@matz-e
Copy link

matz-e commented Dec 2, 2021

Hi,

When compiling

launchmon@master%[email protected]

with Spack 0.17.0, I get a lot of errors along the lines of

     329    In file included from ../../sdbg_rm_map.hxx:60,                                                                                                                                                                                  
     330                     from lmon_be_sync_mpi.cxx:47:                                                                                                                                                                                   
  >> 331    ../../sdbg_base_symtab.hxx:197:34: error: ISO C++17 does not allow dynamic exception specifications                                                                                                                              
     332      197 |   symtab_error_e compute_reloc() throw(symtab_exception_t);                                                                                                                                                              
     333          |                                  ^~~~~                                                                                                                                                                                   
  >> 334    ../../sdbg_base_symtab.hxx:203:47: error: ISO C++17 does not allow dynamic exception specifications                                                                                          
     335      203 |   symtab_error_e init(const std::string &lib) throw(symtab_exception_t);                                                                                                                                                 
     336          |                                               ^~~~~                                                                                                                                                                      
  >> 337    ../../sdbg_base_symtab.hxx:204:33: error: ISO C++17 does not allow dynamic exception specifications                                                                                                                              
     338      204 |   virtual symtab_error_e init() throw(symtab_exception_t) = 0;                                                                                                                                                           
     339          |                                 ^~~~~                                                                                                                                                                                    
  >> 340    ../../sdbg_base_symtab.hxx:205:49: error: ISO C++17 does not allow dynamic exception specifications                                                                                                                              
     341      205 |   virtual symtab_error_e read_linkage_symbols() throw(symtab_exception_t) = 0;                                                                                                                                           
     342          |                                                 ^~~~~                                                                                                                                                                    
  >> 343    ../../sdbg_base_symtab.hxx:207:49: error: ISO C++17 does not allow dynamic exception specifications                                                                                                                              
     344      207 |                                         bool &) throw(symtab_exception_t) = 0;                                                                                                                                           
     345          |                                                 ^~~~~                                                                                                                                                                    

Adding env.set('CXXFLAGS', '--std=c++14') to Spack's build environment leads to successful building, but ideally this flag should either be added to the autotools config, or the deprecated throw(…) be handled differently?

@hainest hainest linked a pull request May 4, 2022 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant