I can't install pythia8 in any version

Asked by Xiao Wang

dear author,
Hello, I met an error. Help me please.
I need pythia to simulate, but when I run 'install pythia8' I met an error:

make[1]: *** [Makefile:370: CompareGenEvent.lo] Error 1
make[1]: Leaving directory '/tmp/tmp7adlhrb_/hepmc2.06.09/src'
make: *** [Makefile:294: install-recursive] Error 1
 Finished HEPMC installation

    > Now aborting installation of tool 'pythia8'.
Command "install pythia8 " interrupted in sub-command:
"install pythia8" with error:
InvalidCmd : Installation of pythia8 failed.

I am looking for your anwser.

Question information

Language:
English Edit question
Status:
Answered
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#1

So your error seems to be the hepmc library.
Do you have the log file of the hepmc installation?

Cheers,

Olivier

Revision history for this message
Xiao Wang (wangxiao2023) said :
#2

 Set environment variables
 Unpack HEPMC
hepmc2.06.09/
hepmc2.06.09/.cvsignore
hepmc2.06.09/AUTHORS
hepmc2.06.09/CMakeLists.txt
hepmc2.06.09/COPYING
hepmc2.06.09/ChangeLog
hepmc2.06.09/HepMC/
hepmc2.06.09/HepMC/.cvsignore
hepmc2.06.09/HepMC/CMakeLists.txt
hepmc2.06.09/HepMC/CompareGenEvent.h
hepmc2.06.09/HepMC/Flow.h
hepmc2.06.09/HepMC/GenCrossSection.h
hepmc2.06.09/HepMC/GenEvent.h
hepmc2.06.09/HepMC/GenParticle.h
hepmc2.06.09/HepMC/GenRanges.h
hepmc2.06.09/HepMC/GenVertex.h
hepmc2.06.09/HepMC/HEPEVT_Wrapper.h
hepmc2.06.09/HepMC/HeavyIon.h
hepmc2.06.09/HepMC/HepMCDefs.h
hepmc2.06.09/HepMC/HerwigWrapper.h
hepmc2.06.09/HepMC/IO_AsciiParticles.h
hepmc2.06.09/HepMC/IO_BaseClass.h
hepmc2.06.09/HepMC/IO_Exception.h
hepmc2.06.09/HepMC/IO_GenEvent.h
hepmc2.06.09/HepMC/IO_HEPEVT.h
hepmc2.06.09/HepMC/IO_HERWIG.h
hepmc2.06.09/HepMC/IteratorRange.h
hepmc2.06.09/HepMC/Makefile.am
hepmc2.06.09/HepMC/PdfInfo.h
hepmc2.06.09/HepMC/Polarization.h
hepmc2.06.09/HepMC/PythiaWrapper.h
hepmc2.06.09/HepMC/PythiaWrapper6_4.h
hepmc2.06.09/HepMC/PythiaWrapper6_4_WIN32.h
hepmc2.06.09/HepMC/SearchVector.h
hepmc2.06.09/HepMC/SimpleVector.h
hepmc2.06.09/HepMC/SimpleVector.icc
hepmc2.06.09/HepMC/StreamHelpers.h
hepmc2.06.09/HepMC/StreamInfo.h
hepmc2.06.09/HepMC/TempParticleMap.h
hepmc2.06.09/HepMC/Units.h
hepmc2.06.09/HepMC/Version.h
hepmc2.06.09/HepMC/WeightContainer.h
hepmc2.06.09/HepMC/enable_if.h
hepmc2.06.09/HepMC/is_arithmetic.h
hepmc2.06.09/HepMC/defs.h.in
hepmc2.06.09/HepMC/Makefile.in
hepmc2.06.09/INSTALL
hepmc2.06.09/INSTALL.autoconf
hepmc2.06.09/INSTALL.cmake
hepmc2.06.09/Makefile.am
hepmc2.06.09/NEWS
hepmc2.06.09/README
hepmc2.06.09/ReadMe.cygwin
hepmc2.06.09/bootstrap
hepmc2.06.09/cmake/
hepmc2.06.09/cmake/Modules/
hepmc2.06.09/cmake/Modules/HepMCUseCpack.cmake
hepmc2.06.09/cmake/Modules/HepMCVariables.cmake
hepmc2.06.09/configure.ac
hepmc2.06.09/doc/
hepmc2.06.09/doc/.cvsignore
hepmc2.06.09/doc/CMakeLists.txt
hepmc2.06.09/doc/HepMC2_user_manual.tex
hepmc2.06.09/doc/HepMC_basic_properties.eps
hepmc2.06.09/doc/Makefile.am
hepmc2.06.09/doc/buildDoc.sh
hepmc2.06.09/doc/buildDoxygen.sh
hepmc2.06.09/doc/doxygen-template
hepmc2.06.09/doc/doxygen.conf
hepmc2.06.09/doc/graph_interpretation.eps
hepmc2.06.09/doc/html.sty
hepmc2.06.09/doc/physicist_visualization.eps
hepmc2.06.09/doc/Makefile.in
hepmc2.06.09/examples/
hepmc2.06.09/examples/.cvsignore
hepmc2.06.09/examples/CMakeLists.txt
hepmc2.06.09/examples/GNUmakefile.example.in
hepmc2.06.09/examples/Makefile.am
hepmc2.06.09/examples/VectorConversion.h
hepmc2.06.09/examples/example_BuildEventFromScratch.cc
hepmc2.06.09/examples/example_EventSelection.cc
hepmc2.06.09/examples/example_UsingIterators.cc
hepmc2.06.09/examples/example_UsingIterators.txt
hepmc2.06.09/examples/example_VectorConversion.cc
hepmc2.06.09/examples/fio/
hepmc2.06.09/examples/fio/CMakeLists.txt
hepmc2.06.09/examples/fio/GNUmakefile.example.in
hepmc2.06.09/examples/fio/Makefile.am
hepmc2.06.09/examples/fio/PythiaHelper.h
hepmc2.06.09/examples/fio/example_MyHerwig.cc
hepmc2.06.09/examples/fio/example_MyPythia.cc
hepmc2.06.09/examples/fio/example_MyPythiaOnlyToHepMC.cc
hepmc2.06.09/examples/fio/example_PythiaStreamIO.cc
hepmc2.06.09/examples/fio/initPythia.cc
hepmc2.06.09/examples/fio/initpydata.f
hepmc2.06.09/examples/fio/testHerwigCopies.cc
hepmc2.06.09/examples/fio/testPythiaCopies.cc
hepmc2.06.09/examples/fio/Makefile.in
hepmc2.06.09/examples/list_of_examples.cc
hepmc2.06.09/examples/pythia8/
hepmc2.06.09/examples/pythia8/CMakeLists.txt
hepmc2.06.09/examples/pythia8/GNUmakefile.example.in
hepmc2.06.09/examples/pythia8/Makefile.am
hepmc2.06.09/examples/pythia8/README
hepmc2.06.09/examples/pythia8/config.csh.in
hepmc2.06.09/examples/pythia8/config.sh.in
hepmc2.06.09/examples/pythia8/main31.cc
hepmc2.06.09/examples/pythia8/main32.cc
hepmc2.06.09/examples/pythia8/main32.cmnd
hepmc2.06.09/examples/pythia8/Makefile.in
hepmc2.06.09/examples/Makefile.in
hepmc2.06.09/fio/
hepmc2.06.09/fio/.cvsignore
hepmc2.06.09/fio/CMakeLists.txt
hepmc2.06.09/fio/HEPEVT_Wrapper.cc
hepmc2.06.09/fio/HerwigWrapper.cc
hepmc2.06.09/fio/IO_HEPEVT.cc
hepmc2.06.09/fio/IO_HERWIG.cc
hepmc2.06.09/fio/Makefile.am
hepmc2.06.09/fio/Makefile.in
hepmc2.06.09/src/
hepmc2.06.09/src/.cvsignore
hepmc2.06.09/src/CMakeLists.txt
hepmc2.06.09/src/CompareGenEvent.cc
hepmc2.06.09/src/Flow.cc
hepmc2.06.09/src/GenCrossSection.cc
hepmc2.06.09/src/GenEvent.cc
hepmc2.06.09/src/GenEventStreamIO.cc
hepmc2.06.09/src/GenParticle.cc
hepmc2.06.09/src/GenRanges.cc
hepmc2.06.09/src/GenVertex.cc
hepmc2.06.09/src/HeavyIon.cc
hepmc2.06.09/src/IO_AsciiParticles.cc
hepmc2.06.09/src/IO_GenEvent.cc
hepmc2.06.09/src/Makefile.am
hepmc2.06.09/src/PdfInfo.cc
hepmc2.06.09/src/Polarization.cc
hepmc2.06.09/src/SearchVector.cc
hepmc2.06.09/src/StreamHelpers.cc
hepmc2.06.09/src/StreamInfo.cc
hepmc2.06.09/src/Units.cc.in
hepmc2.06.09/src/WeightContainer.cc
hepmc2.06.09/src/filterEvent.cc
hepmc2.06.09/src/Makefile.in
hepmc2.06.09/test/
hepmc2.06.09/test/.cvsignore
hepmc2.06.09/test/CMakeLists.txt
hepmc2.06.09/test/IsGoodEvent.h
hepmc2.06.09/test/Makefile.am
hepmc2.06.09/test/list_of_examples.cc
hepmc2.06.09/test/testCrossSection.dat
hepmc2.06.09/test/testCrossSection.output
hepmc2.06.09/test/testFlow.cc
hepmc2.06.09/test/testFlow.output
hepmc2.06.09/test/testFlow.sh.in
hepmc2.06.09/test/testHepMC.cc.in
hepmc2.06.09/test/testHepMC.dat
hepmc2.06.09/test/testHepMC.output
hepmc2.06.09/test/testHepMC.sh.in
hepmc2.06.09/test/testHepMCIteration.cc.in
hepmc2.06.09/test/testHepMCIteration.dat
hepmc2.06.09/test/testHepMCIteration.h
hepmc2.06.09/test/testHepMCIteration.sh.in
hepmc2.06.09/test/testHepMCMethods.cc
hepmc2.06.09/test/testHepMCMethods.h
hepmc2.06.09/test/testHepMCParticle.output
hepmc2.06.09/test/testHepMCVarious.input
hepmc2.06.09/test/testHepMCVarious.output
hepmc2.06.09/test/testIOGenEvent.input
hepmc2.06.09/test/testMass.cc.in
hepmc2.06.09/test/testMass.sh.in
hepmc2.06.09/test/testMass1.dat
hepmc2.06.09/test/testMultipleCopies.cc.in
hepmc2.06.09/test/testPolarization.cc
hepmc2.06.09/test/testPolarization.sh.in
hepmc2.06.09/test/testPrintBug.cc
hepmc2.06.09/test/testUnits.cc
hepmc2.06.09/test/testPrintBug.output
hepmc2.06.09/test/testPrintBug.sh.in
hepmc2.06.09/test/testSimpleVector.cc
hepmc2.06.09/test/testStreamIO.cc.in
hepmc2.06.09/test/testStreamIO.output
hepmc2.06.09/test/testStreamIO.sh.in
hepmc2.06.09/test/testStreamIOVarious.dat
hepmc2.06.09/test/testStreamIOVarious.output
hepmc2.06.09/test/testWeights.cc
hepmc2.06.09/test/testWithWeight.dat
hepmc2.06.09/test/testWithWeight.output
hepmc2.06.09/test/Makefile.in
hepmc2.06.09/autom4te.cache/
hepmc2.06.09/autom4te.cache/requests
hepmc2.06.09/autom4te.cache/output.0
hepmc2.06.09/autom4te.cache/traces.0
hepmc2.06.09/autom4te.cache/output.1
hepmc2.06.09/autom4te.cache/traces.1
hepmc2.06.09/autom4te.cache/output.2
hepmc2.06.09/autom4te.cache/traces.2
hepmc2.06.09/aclocal.m4
hepmc2.06.09/ltmain.sh
hepmc2.06.09/configure
hepmc2.06.09/config.guess
hepmc2.06.09/config.sub
hepmc2.06.09/install-sh
hepmc2.06.09/missing
hepmc2.06.09/depcomp
hepmc2.06.09/Makefile.in
 Enter HEPMC directory
 Copying the hacked files 'WeightContainer.cc' and 'WeightContainer.h' to be capable of writing named weights in HepMC.
 The autotools configure script already present; there is no need to run autoreconf manually.
 Configure HEPMC
./configure --prefix=/share06/users/w/wangxiao/MG5_aMC_v3_5_1/HEPTools/hepmc --with-momentum=GEV --with-length=MM
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking whether make sets $(MAKE)... (cached) yes
checking for gfortran... gfortran
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran accepts -g... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) gcc3
checking how to run the C++ preprocessor... g++ -E
checking whether we are using the GNU Fortran 77 compiler... (cached) yes
checking whether gfortran accepts -g... (cached) yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gfortran option to produce PIC... -fPIC
checking if gfortran PIC flag -fPIC works... yes
checking if gfortran static flag -static works... no
checking if gfortran supports -c -o file.o... yes
checking if gfortran supports -c -o file.o... (cached) yes
checking whether the gfortran linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for stdint.h... (cached) yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for ptrdiff_t... yes
checking for ANSI C header files... (cached) yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating HepMC/Makefile
config.status: creating doc/Makefile
config.status: creating examples/Makefile
config.status: creating examples/fio/Makefile
config.status: creating examples/pythia8/Makefile
config.status: creating fio/Makefile
config.status: creating src/Makefile
config.status: creating src/Units.cc
config.status: creating test/Makefile
config.status: creating test/testHepMC.cc
config.status: creating test/testMass.cc
config.status: creating test/testHepMCIteration.cc
config.status: creating test/testMultipleCopies.cc
config.status: creating test/testStreamIO.cc
config.status: creating examples/GNUmakefile.example
config.status: creating examples/fio/GNUmakefile.example
config.status: creating examples/pythia8/config.csh
config.status: creating examples/pythia8/config.sh
config.status: creating examples/pythia8/GNUmakefile.example
config.status: creating test/testHepMC.sh
config.status: creating test/testFlow.sh
config.status: creating test/testMass.sh
config.status: creating test/testHepMCIteration.sh
config.status: creating test/testPolarization.sh
config.status: creating test/testPrintBug.sh
config.status: creating test/testStreamIO.sh
config.status: creating HepMC/defs.h
config.status: executing depfiles commands
config.status: executing libtool commands
 Compile HEPMC
Making all in HepMC
make[1]: Entering directory '/tmp/tmpgzwv8gmo/hepmc2.06.09/HepMC'
make all-am
make[2]: Entering directory '/tmp/tmpgzwv8gmo/hepmc2.06.09/HepMC'
make[2]: Leaving directory '/tmp/tmpgzwv8gmo/hepmc2.06.09/HepMC'
make[1]: Leaving directory '/tmp/tmpgzwv8gmo/hepmc2.06.09/HepMC'
Making all in src
make[1]: Entering directory '/tmp/tmpgzwv8gmo/hepmc2.06.09/src'
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../HepMC -I.. -I.. -ansi -pedantic -Wall -g -O2 -MT CompareGenEvent.lo -MD -MP -MF .deps/CompareGenEvent.Tpo -c -o CompareGenEvent.lo CompareGenEvent.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../HepMC -I.. -I.. -ansi -pedantic -Wall -g -O2 -MT CompareGenEvent.lo -MD -MP -MF .deps/CompareGenEvent.Tpo -c CompareGenEvent.cc -fPIC -DPIC -o .libs/CompareGenEvent.o
In file included from ../HepMC/GenEvent.h:127,
                 from ../HepMC/CompareGenEvent.h:15,
                 from CompareGenEvent.cc:11:
../HepMC/GenVertex.h:195:71: error: ‘ptrdiff_t’ was not declared in this scope
    public std::iterator<std::forward_iterator_tag,HepMC::GenParticle*,ptrdiff_t>{
                                                                       ^~~~~~~~~
../HepMC/GenVertex.h:195:71: note: suggested alternatives:
In file included from /usr/include/c++/8/iostream:38,
                 from CompareGenEvent.cc:9:
/usr/include/c++/8/x86_64-redhat-linux/bits/c++config.h:2183:28: note: ‘std::ptrdiff_t’
   typedef __PTRDIFF_TYPE__ ptrdiff_t;
                            ^~~~~~~~~
/usr/include/c++/8/x86_64-redhat-linux/bits/c++config.h:2183:28: note: ‘std::ptrdiff_t’
In file included from ../HepMC/GenEvent.h:127,
                 from ../HepMC/CompareGenEvent.h:15,
                 from CompareGenEvent.cc:11:
../HepMC/GenVertex.h:195:80: error: template argument 3 is invalid
    public std::iterator<std::forward_iterator_tag,HepMC::GenParticle*,ptrdiff_t>{
                                                                                ^
../HepMC/GenVertex.h:264:69: error: ‘ptrdiff_t’ was not declared in this scope
    public std::iterator<std::forward_iterator_tag,HepMC::GenVertex*,ptrdiff_t>{
                                                                     ^~~~~~~~~
../HepMC/GenVertex.h:264:69: note: suggested alternatives:
In file included from /usr/include/c++/8/iostream:38,
                 from CompareGenEvent.cc:9:
/usr/include/c++/8/x86_64-redhat-linux/bits/c++config.h:2183:28: note: ‘std::ptrdiff_t’
   typedef __PTRDIFF_TYPE__ ptrdiff_t;
                            ^~~~~~~~~
/usr/include/c++/8/x86_64-redhat-linux/bits/c++config.h:2183:28: note: ‘std::ptrdiff_t’
In file included from ../HepMC/GenEvent.h:127,
                 from ../HepMC/CompareGenEvent.h:15,
                 from CompareGenEvent.cc:11:
../HepMC/GenVertex.h:264:78: error: template argument 3 is invalid
    public std::iterator<std::forward_iterator_tag,HepMC::GenVertex*,ptrdiff_t>{
                                                                              ^
../HepMC/GenVertex.h:340:64: error: ‘ptrdiff_t’ was not declared in this scope
    public std::iterator<std::forward_iterator_tag,GenParticle*,ptrdiff_t>{
                                                                ^~~~~~~~~
../HepMC/GenVertex.h:340:64: note: suggested alternatives:
In file included from /usr/include/c++/8/iostream:38,
                 from CompareGenEvent.cc:9:
/usr/include/c++/8/x86_64-redhat-linux/bits/c++config.h:2183:28: note: ‘std::ptrdiff_t’
   typedef __PTRDIFF_TYPE__ ptrdiff_t;
                            ^~~~~~~~~
/usr/include/c++/8/x86_64-redhat-linux/bits/c++config.h:2183:28: note: ‘std::ptrdiff_t’
In file included from ../HepMC/GenEvent.h:127,
                 from ../HepMC/CompareGenEvent.h:15,
                 from CompareGenEvent.cc:11:
../HepMC/GenVertex.h:340:73: error: template argument 3 is invalid
    public std::iterator<std::forward_iterator_tag,GenParticle*,ptrdiff_t>{
                                                                         ^
In file included from ../HepMC/CompareGenEvent.h:15,
                 from CompareGenEvent.cc:11:
../HepMC/GenEvent.h:335:69: error: ‘ptrdiff_t’ was not declared in this scope
    public std::iterator<std::forward_iterator_tag,HepMC::GenVertex*,ptrdiff_t>{
                                                                     ^~~~~~~~~
../HepMC/GenEvent.h:335:69: note: suggested alternatives:
In file included from /usr/include/c++/8/iostream:38,
                 from CompareGenEvent.cc:9:
/usr/include/c++/8/x86_64-redhat-linux/bits/c++config.h:2183:28: note: ‘std::ptrdiff_t’
   typedef __PTRDIFF_TYPE__ ptrdiff_t;
                            ^~~~~~~~~
/usr/include/c++/8/x86_64-redhat-linux/bits/c++config.h:2183:28: note: ‘std::ptrdiff_t’
In file included from ../HepMC/CompareGenEvent.h:15,
                 from CompareGenEvent.cc:11:
../HepMC/GenEvent.h:335:78: error: template argument 3 is invalid
    public std::iterator<std::forward_iterator_tag,HepMC::GenVertex*,ptrdiff_t>{
                                                                              ^
../HepMC/GenEvent.h:392:69: error: ‘ptrdiff_t’ was not declared in this scope
    public std::iterator<std::forward_iterator_tag,HepMC::GenVertex*,ptrdiff_t>{
                                                                     ^~~~~~~~~
../HepMC/GenEvent.h:392:69: note: suggested alternatives:
In file included from /usr/include/c++/8/iostream:38,
                 from CompareGenEvent.cc:9:
/usr/include/c++/8/x86_64-redhat-linux/bits/c++config.h:2183:28: note: ‘std::ptrdiff_t’
   typedef __PTRDIFF_TYPE__ ptrdiff_t;
                            ^~~~~~~~~
/usr/include/c++/8/x86_64-redhat-linux/bits/c++config.h:2183:28: note: ‘std::ptrdiff_t’
In file included from ../HepMC/CompareGenEvent.h:15,
                 from CompareGenEvent.cc:11:
../HepMC/GenEvent.h:392:78: error: template argument 3 is invalid
    public std::iterator<std::forward_iterator_tag,HepMC::GenVertex*,ptrdiff_t>{
                                                                              ^
../HepMC/GenEvent.h:465:71: error: ‘ptrdiff_t’ was not declared in this scope
    public std::iterator<std::forward_iterator_tag,HepMC::GenParticle*,ptrdiff_t>{
                                                                       ^~~~~~~~~
../HepMC/GenEvent.h:465:71: note: suggested alternatives:
In file included from /usr/include/c++/8/iostream:38,
                 from CompareGenEvent.cc:9:
/usr/include/c++/8/x86_64-redhat-linux/bits/c++config.h:2183:28: note: ‘std::ptrdiff_t’
   typedef __PTRDIFF_TYPE__ ptrdiff_t;
                            ^~~~~~~~~
/usr/include/c++/8/x86_64-redhat-linux/bits/c++config.h:2183:28: note: ‘std::ptrdiff_t’
In file included from ../HepMC/CompareGenEvent.h:15,
                 from CompareGenEvent.cc:11:
../HepMC/GenEvent.h:465:80: error: template argument 3 is invalid
    public std::iterator<std::forward_iterator_tag,HepMC::GenParticle*,ptrdiff_t>{
                                                                                ^
../HepMC/GenEvent.h:521:71: error: ‘ptrdiff_t’ was not declared in this scope
    public std::iterator<std::forward_iterator_tag,HepMC::GenParticle*,ptrdiff_t>{
                                                                       ^~~~~~~~~
../HepMC/GenEvent.h:521:71: note: suggested alternatives:
In file included from /usr/include/c++/8/iostream:38,
                 from CompareGenEvent.cc:9:
/usr/include/c++/8/x86_64-redhat-linux/bits/c++config.h:2183:28: note: ‘std::ptrdiff_t’
   typedef __PTRDIFF_TYPE__ ptrdiff_t;
                            ^~~~~~~~~
/usr/include/c++/8/x86_64-redhat-linux/bits/c++config.h:2183:28: note: ‘std::ptrdiff_t’
In file included from ../HepMC/CompareGenEvent.h:15,
                 from CompareGenEvent.cc:11:
../HepMC/GenEvent.h:521:80: error: template argument 3 is invalid
    public std::iterator<std::forward_iterator_tag,HepMC::GenParticle*,ptrdiff_t>{
                                                                                ^
make[1]: *** [Makefile:370: CompareGenEvent.lo] Error 1
make[1]: Leaving directory '/tmp/tmpgzwv8gmo/hepmc2.06.09/src'
make: *** [Makefile:294: all-recursive] Error 1
 Install HEPMC
Making install in HepMC
make[1]: Entering directory '/tmp/tmpgzwv8gmo/hepmc2.06.09/HepMC'
make[2]: Entering directory '/tmp/tmpgzwv8gmo/hepmc2.06.09/HepMC'
make[2]: Nothing to be done for 'install-exec-am'.
test -z "/share06/users/w/wangxiao/MG5_aMC_v3_5_1/HEPTools/hepmc/include/HepMC" || /usr/bin/mkdir -p "/share06/users/w/wangxiao/MG5_aMC_v3_5_1/HEPTools/hepmc/include/HepMC"
 /usr/bin/install -c -m 644 CompareGenEvent.h Flow.h GenEvent.h GenParticle.h GenVertex.h GenCrossSection.h GenRanges.h HeavyIon.h HEPEVT_Wrapper.h HerwigWrapper.h IO_AsciiParticles.h IO_BaseClass.h IO_Exception.h IO_GenEvent.h IO_HEPEVT.h IO_HERWIG.h IteratorRange.h PdfInfo.h Polarization.h PythiaWrapper6_4.h PythiaWrapper6_4_WIN32.h PythiaWrapper.h WeightContainer.h SearchVector.h SimpleVector.h SimpleVector.icc StreamHelpers.h StreamInfo.h enable_if.h is_arithmetic.h TempParticleMap.h Units.h Version.h HepMCDefs.h '/share06/users/w/wangxiao/MG5_aMC_v3_5_1/HEPTools/hepmc/include/HepMC'
make[2]: Leaving directory '/tmp/tmpgzwv8gmo/hepmc2.06.09/HepMC'
make[1]: Leaving directory '/tmp/tmpgzwv8gmo/hepmc2.06.09/HepMC'
Making install in src
make[1]: Entering directory '/tmp/tmpgzwv8gmo/hepmc2.06.09/src'
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../HepMC -I.. -I.. -ansi -pedantic -Wall -g -O2 -MT CompareGenEvent.lo -MD -MP -MF .deps/CompareGenEvent.Tpo -c -o CompareGenEvent.lo CompareGenEvent.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../HepMC -I.. -I.. -ansi -pedantic -Wall -g -O2 -MT CompareGenEvent.lo -MD -MP -MF .deps/CompareGenEvent.Tpo -c CompareGenEvent.cc -fPIC -DPIC -o .libs/CompareGenEvent.o
In file included from ../HepMC/GenEvent.h:127,
                 from ../HepMC/CompareGenEvent.h:15,
                 from CompareGenEvent.cc:11:
../HepMC/GenVertex.h:195:71: error: ‘ptrdiff_t’ was not declared in this scope
    public std::iterator<std::forward_iterator_tag,HepMC::GenParticle*,ptrdiff_t>{
                                                                       ^~~~~~~~~
../HepMC/GenVertex.h:195:71: note: suggested alternatives:
In file included from /usr/include/c++/8/iostream:38,
                 from CompareGenEvent.cc:9:
/usr/include/c++/8/x86_64-redhat-linux/bits/c++config.h:2183:28: note: ‘std::ptrdiff_t’
   typedef __PTRDIFF_TYPE__ ptrdiff_t;
                            ^~~~~~~~~
/usr/include/c++/8/x86_64-redhat-linux/bits/c++config.h:2183:28: note: ‘std::ptrdiff_t’
In file included from ../HepMC/GenEvent.h:127,
                 from ../HepMC/CompareGenEvent.h:15,
                 from CompareGenEvent.cc:11:
../HepMC/GenVertex.h:195:80: error: template argument 3 is invalid
    public std::iterator<std::forward_iterator_tag,HepMC::GenParticle*,ptrdiff_t>{
                                                                                ^
../HepMC/GenVertex.h:264:69: error: ‘ptrdiff_t’ was not declared in this scope
    public std::iterator<std::forward_iterator_tag,HepMC::GenVertex*,ptrdiff_t>{
                                                                     ^~~~~~~~~
../HepMC/GenVertex.h:264:69: note: suggested alternatives:
In file included from /usr/include/c++/8/iostream:38,
                 from CompareGenEvent.cc:9:
/usr/include/c++/8/x86_64-redhat-linux/bits/c++config.h:2183:28: note: ‘std::ptrdiff_t’
   typedef __PTRDIFF_TYPE__ ptrdiff_t;
                            ^~~~~~~~~
/usr/include/c++/8/x86_64-redhat-linux/bits/c++config.h:2183:28: note: ‘std::ptrdiff_t’
In file included from ../HepMC/GenEvent.h:127,
                 from ../HepMC/CompareGenEvent.h:15,
                 from CompareGenEvent.cc:11:
../HepMC/GenVertex.h:264:78: error: template argument 3 is invalid
    public std::iterator<std::forward_iterator_tag,HepMC::GenVertex*,ptrdiff_t>{
                                                                              ^
../HepMC/GenVertex.h:340:64: error: ‘ptrdiff_t’ was not declared in this scope
    public std::iterator<std::forward_iterator_tag,GenParticle*,ptrdiff_t>{
                                                                ^~~~~~~~~
../HepMC/GenVertex.h:340:64: note: suggested alternatives:
In file included from /usr/include/c++/8/iostream:38,
                 from CompareGenEvent.cc:9:
/usr/include/c++/8/x86_64-redhat-linux/bits/c++config.h:2183:28: note: ‘std::ptrdiff_t’
   typedef __PTRDIFF_TYPE__ ptrdiff_t;
                            ^~~~~~~~~
/usr/include/c++/8/x86_64-redhat-linux/bits/c++config.h:2183:28: note: ‘std::ptrdiff_t’
In file included from ../HepMC/GenEvent.h:127,
                 from ../HepMC/CompareGenEvent.h:15,
                 from CompareGenEvent.cc:11:
../HepMC/GenVertex.h:340:73: error: template argument 3 is invalid
    public std::iterator<std::forward_iterator_tag,GenParticle*,ptrdiff_t>{
                                                                         ^
In file included from ../HepMC/CompareGenEvent.h:15,
                 from CompareGenEvent.cc:11:
../HepMC/GenEvent.h:335:69: error: ‘ptrdiff_t’ was not declared in this scope
    public std::iterator<std::forward_iterator_tag,HepMC::GenVertex*,ptrdiff_t>{
                                                                     ^~~~~~~~~
../HepMC/GenEvent.h:335:69: note: suggested alternatives:
In file included from /usr/include/c++/8/iostream:38,
                 from CompareGenEvent.cc:9:
/usr/include/c++/8/x86_64-redhat-linux/bits/c++config.h:2183:28: note: ‘std::ptrdiff_t’
   typedef __PTRDIFF_TYPE__ ptrdiff_t;
                            ^~~~~~~~~
/usr/include/c++/8/x86_64-redhat-linux/bits/c++config.h:2183:28: note: ‘std::ptrdiff_t’
In file included from ../HepMC/CompareGenEvent.h:15,
                 from CompareGenEvent.cc:11:
../HepMC/GenEvent.h:335:78: error: template argument 3 is invalid
    public std::iterator<std::forward_iterator_tag,HepMC::GenVertex*,ptrdiff_t>{
                                                                              ^
../HepMC/GenEvent.h:392:69: error: ‘ptrdiff_t’ was not declared in this scope
    public std::iterator<std::forward_iterator_tag,HepMC::GenVertex*,ptrdiff_t>{
                                                                     ^~~~~~~~~
../HepMC/GenEvent.h:392:69: note: suggested alternatives:
In file included from /usr/include/c++/8/iostream:38,
                 from CompareGenEvent.cc:9:
/usr/include/c++/8/x86_64-redhat-linux/bits/c++config.h:2183:28: note: ‘std::ptrdiff_t’
   typedef __PTRDIFF_TYPE__ ptrdiff_t;
                            ^~~~~~~~~
/usr/include/c++/8/x86_64-redhat-linux/bits/c++config.h:2183:28: note: ‘std::ptrdiff_t’
In file included from ../HepMC/CompareGenEvent.h:15,
                 from CompareGenEvent.cc:11:
../HepMC/GenEvent.h:392:78: error: template argument 3 is invalid
    public std::iterator<std::forward_iterator_tag,HepMC::GenVertex*,ptrdiff_t>{
                                                                              ^
../HepMC/GenEvent.h:465:71: error: ‘ptrdiff_t’ was not declared in this scope
    public std::iterator<std::forward_iterator_tag,HepMC::GenParticle*,ptrdiff_t>{
                                                                       ^~~~~~~~~
../HepMC/GenEvent.h:465:71: note: suggested alternatives:
In file included from /usr/include/c++/8/iostream:38,
                 from CompareGenEvent.cc:9:
/usr/include/c++/8/x86_64-redhat-linux/bits/c++config.h:2183:28: note: ‘std::ptrdiff_t’
   typedef __PTRDIFF_TYPE__ ptrdiff_t;
                            ^~~~~~~~~
/usr/include/c++/8/x86_64-redhat-linux/bits/c++config.h:2183:28: note: ‘std::ptrdiff_t’
In file included from ../HepMC/CompareGenEvent.h:15,
                 from CompareGenEvent.cc:11:
../HepMC/GenEvent.h:465:80: error: template argument 3 is invalid
    public std::iterator<std::forward_iterator_tag,HepMC::GenParticle*,ptrdiff_t>{
                                                                                ^
../HepMC/GenEvent.h:521:71: error: ‘ptrdiff_t’ was not declared in this scope
    public std::iterator<std::forward_iterator_tag,HepMC::GenParticle*,ptrdiff_t>{
                                                                       ^~~~~~~~~
../HepMC/GenEvent.h:521:71: note: suggested alternatives:
In file included from /usr/include/c++/8/iostream:38,
                 from CompareGenEvent.cc:9:
/usr/include/c++/8/x86_64-redhat-linux/bits/c++config.h:2183:28: note: ‘std::ptrdiff_t’
   typedef __PTRDIFF_TYPE__ ptrdiff_t;
                            ^~~~~~~~~
/usr/include/c++/8/x86_64-redhat-linux/bits/c++config.h:2183:28: note: ‘std::ptrdiff_t’
In file included from ../HepMC/CompareGenEvent.h:15,
                 from CompareGenEvent.cc:11:
../HepMC/GenEvent.h:521:80: error: template argument 3 is invalid
    public std::iterator<std::forward_iterator_tag,HepMC::GenParticle*,ptrdiff_t>{
                                                                                ^
make[1]: *** [Makefile:370: CompareGenEvent.lo] Error 1
make[1]: Leaving directory '/tmp/tmpgzwv8gmo/hepmc2.06.09/src'
make: *** [Makefile:294: install-recursive] Error 1
 Finished HEPMC installation
ln: failed to create symbolic link 'lib': File exists

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#3

So this sounds similar to this error found online.
https://github.com/vapoursynth/vapoursynth/issues/499

Looks like this needs to be fixed within hepmc (and I m not an author of that package)
Will see if I can find a more recent version of hepmc compatible with pythia8 and our framework that fixes that issue.
Maybe one quicker solution is to patch the code according to the above link and see if that fix your issue.

Cheers,

Olivier

Revision history for this message
Xiao Wang (wangxiao2023) said :
#4

Sorry, I don't know how to fix it yet. I hope that you can solve this bug.
Thanks for your help!

Can you help with this problem?

Provide an answer of your own, or ask Xiao Wang for more information if necessary.

To post a message you must log in.