gfortran

Asked by Han Yuan

Hi,
    I had a problem when I launched. The error message is below

Error detected in "generate_events run_01"
write debug file /Users/yh/MG5_aMC_v2_5_4/bin/pptt/run_01_tag_1_debug.log
If you need help with this issue please contact us on https://answers.launchpad.net/mg5amcnlo
MadGraph5Error : A compilation Error occurs when trying to compile /Users/yh/MG5_aMC_v2_5_4/bin/pptt/Source.
 The compilation fails with the following output message:
     gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o combine_events.o combine_events.f
     gfortran -lc++ -mmacosx-version-min=10.7 -o ../bin/internal/combine_events combine_events.o rw_events.o ranmar.o kin_functions.o open_file.o rw_routines.o alfas_functions.o setrun.o -L../lib/ -lmodel -lpdf -lc++ -mmacosx-version-min=10.7 -lbias
     ld: library not found for -lcrt1.o
     collect2: ld returned 1 exit status
     make: *** [../bin/internal/combine_events] 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

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
Han Yuan (yuanhan1129) said :
#1

I used xcode-select --install to solve this problem. But there is another problem, I generate the process p p > t t~. When I launch it the error message is
INFO: Update the dependent parameter of the param_card.dat
Generating 10000 events with run name run_01
survey run_01
INFO: compile directory
compile Source Directory
Using random number seed offset = 21
INFO: Running Survey
Creating Jobs
Working on SubProcesses
INFO: P1_gg_ttx
INFO: P1_qq_ttx
Fortran runtime error: Array reference out of bounds for array 'amp2', upper bound of dimension 1 exceeded (in file 'matrix1.f', at line 121)
ERROR DETECTED
Fortran runtime error: Array reference out of bounds for array 'amp2', upper bound of dimension 1 exceeded (in file 'matrix1.f', at line 121)
ERROR DETECTED
INFO: Idle: 1, Running: 0, Completed: 1 [ current time: 18h58 ]
INFO: Idle: 0, Running: 1, Completed: 1 [ current time: 18h58 ]
INFO: Idle: 0, Running: 0, Completed: 2 [ 0.61s ]
INFO: End survey
refine 10000
Creating Jobs
INFO: Refine results to 10000
INFO: Generating 10000.0 unweigthed events.
Error when reading /Users/yh/MG5_aMC_v2_5_4/bin/pptt/SubProcesses/P1_gg_ttx/G1/results.dat
Command "generate_events run_01" interrupted with error:
ValueError : need more than 5 values to unpack
Please report this bug on https://bugs.launchpad.net/mg5amcnlo
More information is found in '/Users/yh/MG5_aMC_v2_5_4/bin/pptt/run_01_tag_1_debug.log'.
Please attach this file to your report.
INFO:

INFO:

quit
INFO:

INFO:

But if I generate p p > w+ w- , there is no error.

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

Hi,

you can run on your machine the following command:

xcode-select —install

And it should solve your problem.

Cheers,

Olivier

On 4 Apr 2017, at 12:47, Han Yuan <<email address hidden><mailto:<email address hidden>>> wrote:

ld: library not found for -lcrt1.o

Revision history for this message
Han Yuan (yuanhan1129) said :
#4

Hi

I met another problem. I generate the process p p > t t~. When I launch it the error message is
INFO: Update the dependent parameter of the param_card.dat
Generating 10000 events with run name run_01
survey run_01
INFO: compile directory
compile Source Directory
Using random number seed offset = 21
INFO: Running Survey
Creating Jobs
Working on SubProcesses
INFO: P1_gg_ttx
INFO: P1_qq_ttx
Fortran runtime error: Array reference out of bounds for array 'amp2', upper bound of dimension 1 exceeded (in file 'matrix1.f', at line 121)
ERROR DETECTED
Fortran runtime error: Array reference out of bounds for array 'amp2', upper bound of dimension 1 exceeded (in file 'matrix1.f', at line 121)
ERROR DETECTED
INFO: Idle: 1, Running: 0, Completed: 1 [ current time: 18h58 ]
INFO: Idle: 0, Running: 1, Completed: 1 [ current time: 18h58 ]
INFO: Idle: 0, Running: 0, Completed: 2 [ 0.61s ]
INFO: End survey
refine 10000
Creating Jobs
INFO: Refine results to 10000
INFO: Generating 10000.0 unweigthed events.
Error when reading /Users/yh/MG5_aMC_v2_5_4/bin/pptt/SubProcesses/P1_gg_ttx/G1/results.dat
Command "generate_events run_01" interrupted with error:
ValueError : need more than 5 values to unpack
Please report this bug on https://bugs.launchpad.net/mg5amcnlo
More information is found in '/Users/yh/MG5_aMC_v2_5_4/bin/pptt/run_01_tag_1_debug.log'.
Please attach this file to your report.
INFO:

INFO:

quit
INFO:

INFO:

But if I generate p p > w+ w- , there is no error.

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

hi,

Just quit madgraph, remove that directory andd regenerate it from scratch, this should fix the problem.

Cheers,

Olivier

Revision history for this message
Han Yuan (yuanhan1129) said :
#6

Hi

I regenerate it again, but the error is still there

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

Hi,

The problem is that the file
/Users/yh/MG5_aMC_v2_5_4/bin/pptt/SubProcesses/P1_gg_ttx/maxamps.inc
defines maxamps to a wrong value (it should be at least 3)
(3 being the variable associated to NDIAGS in /Users/yh/MG5_aMC_v2_5_4/bin/pptt/SubProcesses/P1_gg_ttx/matrix1.f)
This is somthing that does not happen on my machine and since the writting of those files are done via python this is extremelly unlikely that this is related to a machine specific environment/

Can you send me exactly everything that you did, such that I can try to reproduce it locally?

Cheers,

Olivier

Revision history for this message
Han Yuan (yuanhan1129) said :
#8

Attachment available until May 4, 2017
Hi

The command I used is “generate p p > t t~ “ “output pptt” “launch pptt”

I will send you the folder pptt.Click to Download
 <https://www.icloud.com/attachment/?u=https%3A%2F%2Fcvws.icloud-content.com%2FB%2FAZ5xyemw6fZGEO4yuqklYVqW_DO3AdNlBM3OgptoAibibcpjUr3DpbLK%2F%24%7Bf%7D%3Fo%3DAufSBJYQQ6L5bRtmHm6OBq9LTiaqyweGfgmufPVfIkAq%26v%3D1%26x%3D3%26a%3DBblilDsCU2NqA93lOgEA_wHIAP8YRAKo%26e%3D1493899929%26k%3D%24%7Buk%7D%26fl%3D%26r%3D7C7A5BA1-5770-4868-8FD3-C0B667F35984-1%26ckc%3Dcom.apple.largeattachment%26ckz%3DD8AB5D9B-ADB3-4EC7-94A0-16B8F0BECB80%26p%3D40%26s%3DkgEUR0VWseRVEBmIu8RUfqUDUpY&uk=uXtFFg5xr8QnRQt96ermTA&f=pptt.zip&sz=7553703>pptt.zip
29 MB

> On Apr 4, 2017, at 8:03 PM, Olivier Mattelaer <email address hidden> wrote:
>
> Your question #608580 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/608580
>
> Status: Open => Answered
>
> Olivier Mattelaer proposed the following answer:
> Hi,
>
> The problem is that the file
> /Users/yh/MG5_aMC_v2_5_4/bin/pptt/SubProcesses/P1_gg_ttx/maxamps.inc
> defines maxamps to a wrong value (it should be at least 3)
> (3 being the variable associated to NDIAGS in /Users/yh/MG5_aMC_v2_5_4/bin/pptt/SubProcesses/P1_gg_ttx/matrix1.f)
> This is somthing that does not happen on my machine and since the writting of those files are done via python this is extremelly unlikely that this is related to a machine specific environment/
>
> Can you send me exactly everything that you did, such that I can try to
> reproduce it locally?
>
> Cheers,
>
> Olivier
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/mg5amcnlo/+question/608580/+confirm?answer_id=6
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/mg5amcnlo/+question/608580
>
> You received this question notification because you asked the question.

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

Hi,

Actually the code generated seems perfectly normal, I have successfully re-compiled it on my machine and it works perfectly fine on my machine.

So this should be a compilation issue on your side. My first guess would be that your compiler does not handle correctly include file, but this is disfavour by the fact that it works nicely for p p > w+ w-. So I have no idea.

Cheers,

Olivier

> On 4 Apr 2017, at 14:16, Han Yuan <email address hidden> wrote:
>
> Question #608580 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/608580
>
> Status: Answered => Open
>
> Han Yuan is still having a problem:
> Attachment available until May 4, 2017
> Hi
>
> The command I used is “generate p p > t t~ “ “output pptt” “launch pptt”
>
> I will send you the folder pptt.Click to Download
> <https://www.icloud.com/attachment/?u=https%3A%2F%2Fcvws.icloud-content.com%2FB%2FAZ5xyemw6fZGEO4yuqklYVqW_DO3AdNlBM3OgptoAibibcpjUr3DpbLK%2F%24%7Bf%7D%3Fo%3DAufSBJYQQ6L5bRtmHm6OBq9LTiaqyweGfgmufPVfIkAq%26v%3D1%26x%3D3%26a%3DBblilDsCU2NqA93lOgEA_wHIAP8YRAKo%26e%3D1493899929%26k%3D%24%7Buk%7D%26fl%3D%26r%3D7C7A5BA1-5770-4868-8FD3-C0B667F35984-1%26ckc%3Dcom.apple.largeattachment%26ckz%3DD8AB5D9B-ADB3-4EC7-94A0-16B8F0BECB80%26p%3D40%26s%3DkgEUR0VWseRVEBmIu8RUfqUDUpY&uk=uXtFFg5xr8QnRQt96ermTA&f=pptt.zip&sz=7553703>pptt.zip
> 29 MB
>
>> On Apr 4, 2017, at 8:03 PM, Olivier Mattelaer <email address hidden> wrote:
>>
>> Your question #608580 on MadGraph5_aMC@NLO changed:
>> https://answers.launchpad.net/mg5amcnlo/+question/608580
>>
>> Status: Open => Answered
>>
>> Olivier Mattelaer proposed the following answer:
>> Hi,
>>
>> The problem is that the file
>> /Users/yh/MG5_aMC_v2_5_4/bin/pptt/SubProcesses/P1_gg_ttx/maxamps.inc
>> defines maxamps to a wrong value (it should be at least 3)
>> (3 being the variable associated to NDIAGS in /Users/yh/MG5_aMC_v2_5_4/bin/pptt/SubProcesses/P1_gg_ttx/matrix1.f)
>> This is somthing that does not happen on my machine and since the writting of those files are done via python this is extremelly unlikely that this is related to a machine specific environment/
>>
>> Can you send me exactly everything that you did, such that I can try to
>> reproduce it locally?
>>
>> Cheers,
>>
>> Olivier
>>
>> --
>> If this answers your question, please go to the following page to let us
>> know that it is solved:
>> https://answers.launchpad.net/mg5amcnlo/+question/608580/+confirm?answer_id=6
>>
>> If you still need help, you can reply to this email or go to the
>> following page to enter your feedback:
>> https://answers.launchpad.net/mg5amcnlo/+question/608580
>>
>> You received this question notification because you asked the question.
>
> --
> 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 Han Yuan for more information if necessary.

To post a message you must log in.