error in launching

Asked by Dontlearnphysics on 2021-05-19

Dear experts,
         When I launched the file which was generated, the following error appeared.
=================================================================
Error detected in "generate_events run_01"
write debug file /home/hbg/Downloads/MG5_aMC_v3.1.0/MG5_aMC_v3_1_0/bin/bbzh/run_01_tag_1_debug.log
If you need help with this issue please contact us on https://answers.launchpad.net/mg5amcnlo
str : A compilation Error occurs when trying to compile /home/hbg/Downloads/MG5_aMC_v3.1.0/MG5_aMC_v3_1_0/bin/bbzh/SubProcesses/P1_bxb_zh.
 The compilation fails with the following output message:
     gfortran -w -fPIC -O -ffixed-line-length-132 -w -c driver.f -I../../Source/
     gfortran -w -fPIC -O -ffixed-line-length-132 -w -c myamp.f -I../../Source/
     gfortran -w -fPIC -O -ffixed-line-length-132 -w -c genps.f -I../../Source/
     gfortran -w -fPIC -O -ffixed-line-length-132 -w -c unwgt.f -I../../Source/
     gfortran -w -fPIC -O -ffixed-line-length-132 -w -c setcuts.f -I../../Source/
     gfortran -w -fPIC -O -ffixed-line-length-132 -w -c get_color.f -I../../Source/
     gfortran -w -fPIC -O -ffixed-line-length-132 -w -c cuts.f -I../../Source/
     gfortran -w -fPIC -O -ffixed-line-length-132 -w -c cluster.f -I../../Source/
     gfortran -w -fPIC -O -ffixed-line-length-132 -w -c reweight.f -I../../Source/
     gfortran -w -fPIC -O -ffixed-line-length-132 -w -c initcluster.f -I../../Source/
     gfortran -w -fPIC -O -ffixed-line-length-132 -w -c addmothers.f -I../../Source/
     gfortran -w -fPIC -O -ffixed-line-length-132 -w -c setscales.f -I../../Source/
     gfortran -w -fPIC -O -ffixed-line-length-132 -w -c idenparts.f -I../../Source/
     gfortran -w -fPIC -O -ffixed-line-length-132 -w -c dummy_fct.f -I../../Source/
     gfortran -w -fPIC -O -ffixed-line-length-132 -w -c auto_dsig.f -I../../Source/
     gfortran -w -fPIC -O -ffixed-line-length-132 -w -c auto_dsig1.f -I../../Source/
     gfortran -w -fPIC -O -ffixed-line-length-132 -w -c matrix1_orig.f -I../../Source/
     gfortran -o madevent_forhel driver.o myamp.o genps.o unwgt.o setcuts.o get_color.o cuts.o cluster.o reweight.o initcluster.o addmothers.o setscales.o idenparts.o dummy_fct.o auto_dsig.o auto_dsig1.o matrix1_orig.o -L../../lib/ -ldhelas -ldsample -lmodel -lgeneric -lpdf -lcernlib -lbias -lstdc++
     /usr/bin/ld: cannot find -lstdc++
     collect2: error: ld returned 1 exit status
     make: *** [makefile:53: madevent_forhel] Error 1

 Please try to fix this compilations issue and retry.
 Help might be found at https://answers.launchpad.net/mg5amcnlo.
 If you think that this is a bug, you can report this at https://bugs.launchpad.net/mg5amcnlo
===============================================================================
Then I look through the mg5_configuration.txt, it seems that I have not installed fortran compiler and c compiler:
================================
#! Prefered Fortran Compiler
#! If None: try to find g77 or gfortran on the system
#!
# fortran_compiler = None
# f2py_compiler_py2 = None
# f2py_compiler_py3 = None

#! Prefered C++ Compiler
#! If None: try to find g++ or clang on the system
#!
# cpp_compiler = None
================================
however, I have installed gcc and g++, when I input gcc --version it display :
===================
gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
===================
so what's the problem, how should I get the result?

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

I guess you should ask your IT support or google.
on google I found this:
https://askubuntu.com/questions/1186392/cannot-find-lstdc <https://askubuntu.com/questions/1186392/cannot-find-lstdc>

Cheers,

Olivier

> On 19 May 2021, at 14:35, Dontlearnphysics <email address hidden> wrote:
>
> New question #697143 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/697143
>
> Dear experts,
> When I launched the file which was generated, the following error appeared.
> =================================================================
> Error detected in "generate_events run_01"
> write debug file /home/hbg/Downloads/MG5_aMC_v3.1.0/MG5_aMC_v3_1_0/bin/bbzh/run_01_tag_1_debug.log
> If you need help with this issue please contact us on https://answers.launchpad.net/mg5amcnlo
> str : A compilation Error occurs when trying to compile /home/hbg/Downloads/MG5_aMC_v3.1.0/MG5_aMC_v3_1_0/bin/bbzh/SubProcesses/P1_bxb_zh.
> The compilation fails with the following output message:
> gfortran -w -fPIC -O -ffixed-line-length-132 -w -c driver.f -I../../Source/
> gfortran -w -fPIC -O -ffixed-line-length-132 -w -c myamp.f -I../../Source/
> gfortran -w -fPIC -O -ffixed-line-length-132 -w -c genps.f -I../../Source/
> gfortran -w -fPIC -O -ffixed-line-length-132 -w -c unwgt.f -I../../Source/
> gfortran -w -fPIC -O -ffixed-line-length-132 -w -c setcuts.f -I../../Source/
> gfortran -w -fPIC -O -ffixed-line-length-132 -w -c get_color.f -I../../Source/
> gfortran -w -fPIC -O -ffixed-line-length-132 -w -c cuts.f -I../../Source/
> gfortran -w -fPIC -O -ffixed-line-length-132 -w -c cluster.f -I../../Source/
> gfortran -w -fPIC -O -ffixed-line-length-132 -w -c reweight.f -I../../Source/
> gfortran -w -fPIC -O -ffixed-line-length-132 -w -c initcluster.f -I../../Source/
> gfortran -w -fPIC -O -ffixed-line-length-132 -w -c addmothers.f -I../../Source/
> gfortran -w -fPIC -O -ffixed-line-length-132 -w -c setscales.f -I../../Source/
> gfortran -w -fPIC -O -ffixed-line-length-132 -w -c idenparts.f -I../../Source/
> gfortran -w -fPIC -O -ffixed-line-length-132 -w -c dummy_fct.f -I../../Source/
> gfortran -w -fPIC -O -ffixed-line-length-132 -w -c auto_dsig.f -I../../Source/
> gfortran -w -fPIC -O -ffixed-line-length-132 -w -c auto_dsig1.f -I../../Source/
> gfortran -w -fPIC -O -ffixed-line-length-132 -w -c matrix1_orig.f -I../../Source/
> gfortran -o madevent_forhel driver.o myamp.o genps.o unwgt.o setcuts.o get_color.o cuts.o cluster.o reweight.o initcluster.o addmothers.o setscales.o idenparts.o dummy_fct.o auto_dsig.o auto_dsig1.o matrix1_orig.o -L../../lib/ -ldhelas -ldsample -lmodel -lgeneric -lpdf -lcernlib -lbias -lstdc++
> /usr/bin/ld: cannot find -lstdc++
> collect2: error: ld returned 1 exit status
> make: *** [makefile:53: madevent_forhel] Error 1
>
> Please try to fix this compilations issue and retry.
> Help might be found at https://answers.launchpad.net/mg5amcnlo.
> If you think that this is a bug, you can report this at https://bugs.launchpad.net/mg5amcnlo
> ===============================================================================
> Then I look through the mg5_configuration.txt, it seems that I have not installed fortran compiler and c compiler:
> ================================
> #! Prefered Fortran Compiler
> #! If None: try to find g77 or gfortran on the system
> #!
> # fortran_compiler = None
> # f2py_compiler_py2 = None
> # f2py_compiler_py3 = None
>
>
> #! Prefered C++ Compiler
> #! If None: try to find g++ or clang on the system
> #!
> # cpp_compiler = None
> ================================
> however, I have installed gcc and g++, when I input gcc --version it display :
> ===================
> gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
> Copyright (C) 2019 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> ===================
> so what's the problem, how should I get the result?
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Can you help with this problem?

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

To post a message you must log in.