Opened 13 months ago

Last modified 13 months ago

#72320 new defect

pythia @8.303: error: 'numeric_limits' is not a member of 'std'

Reported by: barracuda156 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.10.5
Keywords: Cc:
Port: pythia

Description

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

Change History (2)

comment:1 Changed 13 months ago by ryandesign (Ryan Carsten Schmidt)

Summary: pythia fails to build: error: 'numeric_limits' is not a member of 'std'pythia @8.303: error: 'numeric_limits' is not a member of 'std'

Please remember to include port version numbers in your ticket summaries.

We should try updating to the latest version, currently 8.313, now available from https://pythia.org/ (the port's homepage, master_sites, and livecheck need corresponding adjustment).

comment:2 Changed 13 months ago by ryandesign (Ryan Carsten Schmidt)

A quick search says this problem will occur if <limits> was not included, so this might have been fixed in 8.304 in which #include <limits> was added to include/Pythia8/PythiaStdlib.h. I couldn't find a proper repository for pythia, only a repository where releases are stored.

Note: See TracTickets for help on using tickets.