[MacPorts] #72320: pythia fails to build: error: 'numeric_limits' is not a member of 'std'

MacPorts noreply at macports.org
Thu Apr 10 19:37:54 UTC 2025


#72320: pythia fails to build: error: 'numeric_limits' is not a member of 'std'
--------------------------+--------------------
 Reporter:  barracuda156  |      Owner:  (none)
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.10.5
 Keywords:                |       Port:  pythia
--------------------------+--------------------
 {{{
 src/Merging.cc: In member function 'int
 Pythia8::Merging::mergeProcessCKKWL(Pythia8::Event&)':
 src/Merging.cc:292:29: error: 'numeric_limits' is not a member of 'std'
   292 |                        std::numeric_limits<double>::infinity());
       |                             ^~~~~~~~~~~~~~
 src/Merging.cc:292:44: error: expected primary-expression before 'double'
   292 |                        std::numeric_limits<double>::infinity());
       |                                            ^~~~~~
 src/Merging.cc: In member function 'int
 Pythia8::Merging::mergeProcessUMEPS(Pythia8::Event&)':
 src/Merging.cc:458:29: error: 'numeric_limits' is not a member of 'std'
   458 |                        std::numeric_limits<double>::infinity());
       |                             ^~~~~~~~~~~~~~
 src/Merging.cc:458:44: error: expected primary-expression before 'double'
   458 |                        std::numeric_limits<double>::infinity());
       |                                            ^~~~~~
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_pythia/pythia/work/compwrap/cxx/opt/local/bin/g++-mp-14
 src/NucleonExcitations.cc -o tmp/NucleonExcitations.o -c -MD -Iinclude -O2
 -std=c++11 -pedantic -W -Wall -Wshadow -fPIC
 In file included from include/Pythia8/SusyCouplings.h:16,
                  from include/Pythia8/SLHAinterface.h:18,
                  from include/Pythia8/SigmaProcess.h:41,
                  from include/Pythia8/MultipartonInteractions.h:23,
                  from src/MultipartonInteractions.cc:9:
 include/Pythia8/SusyLesHouches.h:31:15: warning: template-id not allowed
 for constructor in C++20 [-Wtemplate-id-cdtor]
    31 |     LHblock<T>() : idnow(0), qDRbar(), i(), val() {} ;
       |               ^
 include/Pythia8/SusyLesHouches.h:31:15: note: remove the '< >'
 include/Pythia8/SusyLesHouches.h:136:24: warning: template-id not allowed
 for constructor in C++20 [-Wtemplate-id-cdtor]
   136 |     LHmatrixBlock<size>() : entry(), qDRbar(), val() {
       |                        ^
 include/Pythia8/SusyLesHouches.h:136:24: note: remove the '< >'
 include/Pythia8/SusyLesHouches.h:215:25: warning: template-id not allowed
 for constructor in C++20 [-Wtemplate-id-cdtor]
   215 |     LHtensor3Block<size>() : entry(), qDRbar(), val() {
       |                         ^
 include/Pythia8/SusyLesHouches.h:215:25: note: remove the '< >'
 make: *** [tmp/Merging.o] Error 1
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/72320>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list