cannot output on OS X 10.7

Asked by Roberto Franceschini

Hello
  After upgrading to OS X 10.7 Lion both MG5 1.3 and 1.4 are not working here ...
In both cases an error arises when I issue output

1.4 complains as follows

mg5>output madevent pp2gg
INFO: directory /Users/roberto/MadGraph5_v1_4_2/pp2gg already exists.
If you continue this directory will be cleaned
Do you want to continue? [y, n]
y
INFO: remove old information in pp2gg
INFO: Organizing processes into subprocess groups
INFO: Generating Helas calls for process: g g > g g WEIGHTED=2
INFO: Processing color information for process: g g > g g WEIGHTED=2
INFO: Generating Helas calls for process: u u~ > g g WEIGHTED=2
INFO: Processing color information for process: u u~ > g g WEIGHTED=2
INFO: Generating Helas calls for process: c c~ > g g WEIGHTED=2
INFO: Combining process with u u~ > g g WEIGHTED=2
INFO: Generating Helas calls for process: d d~ > g g WEIGHTED=2
INFO: Combining process with u u~ > g g WEIGHTED=2
INFO: Generating Helas calls for process: s s~ > g g WEIGHTED=2
INFO: Combining process with u u~ > g g WEIGHTED=2
INFO: Creating files in directory P0_gg_gg
INFO: Generating Feynman diagrams for Process: g g > g g WEIGHTED=2
INFO: Finding symmetric diagrams for subprocess group gg_gg
INFO: Creating files in directory P0_qq_gg
INFO: Generating Feynman diagrams for Process: u u~ > g g WEIGHTED=2
INFO: Finding symmetric diagrams for subprocess group qq_gg
History written to /Users/roberto/MadGraph5_v1_4_2/pp2gg/Cards/proc_card_mg5.dat
Generated helas calls for 2 subprocesses (7 diagrams) in 0.131 s
Wrote files for 23 helas calls in 0.382 s
Export UFO model to MG4 format
ALOHA: aloha creates VVVV1 routines
ALOHA: aloha creates VVV1 routines
ALOHA: aloha creates FFV1 routines
ALOHA: aloha creates VVVV3 routines
ALOHA: aloha creates VVVV4 routines
INFO: Use Fortran compiler gfortran
INFO: Generate jpeg diagrams
INFO: Generate web pages
Error detected in "output madevent pp2gg"
write debug file MG5_debug
If you need help with this issue please contact us on https://answers.launchpad.net/madgraph5
MadGraph5Error : Impossible to compile None directory
 Trying to launch make command returns:
     [Errno 2] No such file or directory
 In general this means that your computer is not able to compile.Note that MacOSX doesn't have gmake/gfortan install by default.
 Xcode3 contains those require program

I actually just installed the latest XCode 4.3 to see if this was the issue. Did not fix it :(

gfotran is in place
gfortran -v
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-apple-darwin10.7.0/4.6.0/lto-wrapper
Target: x86_64-apple-darwin10.7.0
Configured with: ../gcc-4.6.0/configure --enable-languages=fortran
Thread model: posix
gcc version 4.6.0 (GCC)

This is the MG_debug file

#************************************************************
#* MadGraph 5 *
#* *
#* * * *
#* * * * * *
#* * * * * 5 * * * * *
#* * * * * *
#* * * *
#* *
#* *
#* VERSION 1.4.2 2012-02-16 *
#* *
#* The MadGraph Development Team - Please visit us at *
#* https://server06.fynu.ucl.ac.be/projects/madgraph *
#* *
#************************************************************
#* *
#* Command File for MadGraph 5 *
#* *
#* run as ./bin/mg5 filename *
#* *
#************************************************************
import model sm
generate p p > g g
output madevent pp2gg
Traceback (most recent call last):
  File "/Users/roberto/MadGraph5_v1_4_2/madgraph/interface/extended_cmd.py", line 405, in onecmd
    return cmd.Cmd.onecmd(self, line)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/cmd.py", line 219, in onecmd
  File "/Users/roberto/MadGraph5_v1_4_2/madgraph/interface/cmd_interface.py", line 3182, in do_output
    self.finalize(nojpeg)
  File "/Users/roberto/MadGraph5_v1_4_2/madgraph/interface/cmd_interface.py", line 3437, in finalize
    self.configuration['fortran_compiler'])
  File "/Users/roberto/MadGraph5_v1_4_2/madgraph/iolibs/export_v4.py", line 1419, in finalize_v4_directory
    misc.compile(mode='None')
  File "/Users/roberto/MadGraph5_v1_4_2/madgraph/iolibs/misc.py", line 164, in compile
    raise MadGraph5Error, error_text
MadGraph5Error: Impossible to compile None directory
Trying to launch make command returns:
    [Errno 2] No such file or directory
In general this means that your computer is not able to compile.Note that MacOSX doesn't have gmake/gfortan install by default.
Xcode3 contains those require program
Value of current Options:
              web_browser : None
              text_editor : None
          pythia-pgs_path : ./pythia-pgs
                  td_path : ./td
            cluster_queue : madgraph
             cluster_type : condor
         madanalysis_path : ./MadAnalysis
             delphes_path : ./Delphes
         fortran_compiler : None
                  nb_core : None
      exrootanalysis_path : ./ExRootAnalysis
               eps_viewer : None
   automatic_html_opening : True
             pythia8_path : None
                 run_mode : 0
       group_subprocesses : Auto
ignore_six_quark_processes : False

I am wandering what is wrong ... any idea?

Thanks for helping
Roberto

Question information

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

I have two suggestions/questions

1) what happen if you create a new output directory (instead of using a old one)?
2) what happen if you go the created directory and type make?

Cheers,

Olivier

Revision history for this message
Johan Alwall (johan-alwall) said :
#2

Clarification:

> 2) what happen if you go the created directory and type make?

Olivier meant

> 2) what happen if you go the created directory PROC_.../Source and type make (in the Source directory)?

All the best,
Johan

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

Hi Johan,

If you looked at the failing make, it's the one creating the
madevent.tag.gz file
which is indeed the makefile in the main directory.
So my first worry is about the one in the main.
(which will probably show that gmake is not install)

Then off course, trying to compile the one in Source gives also that
information (and even more)

Cheers,

Olivier

On 23-févr.-12, at 23:30, Johan Alwall wrote:

> Question #188704 on MadGraph5 changed:
> https://answers.launchpad.net/madgraph5/+question/188704
>
> Johan Alwall requested more information:
> Clarification:
>
>> 2) what happen if you go the created directory and type make?
>
> Olivier meant
>
>> 2) what happen if you go the created directory PROC_.../Source and
> type make (in the Source directory)?
>
> All the best,
> Johan
>
> --
> You received this question notification because you are the assignee
> for
> this question.

Revision history for this message
Roberto Franceschini (franceschini-roberto) said :
#4

Hello, thanks a lot to both for your quick reaction.
Indeed it was a crazy but stupid thing ...
make was out of the PATH, while gcc, gfotran were ok due to the presence of a non-apple version.

So I could move on from that error by setting the directory of make into my path. Sorry for the dumb thing ...

However I see that the upgrade to Lion made some things that I really do not have under control ...

Now output is fine, but launch fails, apparently due to a missing library

mg5>launch
************************************************************
* *
* W E L C O M E to M A D G R A P H 5 *
* M A D E V E N T *
* *
* * * *
* * * * * *
* * * * * 5 * * * * *
* * * * * *
* * * *
* *
* VERSION 1.4.2 2012-02-16 *
* *
* The MadGraph Development Team - Please visit us at *
* https://server06.fynu.ucl.ac.be/projects/madgraph *
* *
* Type 'help' for in-line help. *
* *
************************************************************
load configuration from pp2gg3/Cards/me5_configuration.txt
Using default text editor "vi". Set another one in ./input/mg5_configuration.txt
generate_events run_01
Will run in mode parton
Do you want to edit one cards (press enter to bypass editing)?
  1 / param : param_card.dat (be carefull about parameter consistency, especially widths)
  2 / run : run_card.dat
  Path to a valid card.
 [0, done, 1, param, 2, run, enter path][30s to answer]
0
Generating 10000 events with run name run_01
survey run_01
compile directory
ld: library not found for -lcrt1.10.6.o
collect2: ld returned 1 exit status
make: *** [../bin/internal/sum_html] Error 1
Error make ../bin/internal/sum_html in Source not successful
Command "generate_events run_01" interrupted with error:
MadEventError : Impossible to compile
Please report this bug on https://bugs.launchpad.net/madgraph5
More information is found in '/Users/roberto/MadGraph5_v1_4_2/pp2gg3/run_01_tag_1_debug.log'.
Please attach this file to your report.

Indeed there is not such file as libcrt1.10.5.o in my system. I only found

/Developer/SDKs/MacOSX10.5.sdk/usr/lib/crt1.10.6.o
/Developer/SDKs/MacOSX10.6.sdk/usr/lib/crt1.10.6.o

I tried to put these folders in my LD_LIBRARY_PATH but did not help.

I am wandering if I have some mismatch of compiler and libraries
though I have only one version of gfortran ...

Anyways I do not think it is a MG issue ... I think that Lion upgrade scrambled all my gcc stuff as no other code, not even my stuff, is now compiling ... :(

Thanks for your help guys!
Roberto

Revision history for this message
Johan Alwall (johan-alwall) said :
#5

Hello Roberto,

This problem is due to compiling different files with different compilers. Since you changed your compiler, please make sure to remove all old .o files in the directory using either make clean or rm `find . -name "*.o"` `find . -name "*.a"`

Cheers,
Johan

Revision history for this message
Roberto Franceschini (franceschini-roberto) said :
#6

A fresh reinstall of all XCode 4.3 and the command line utilities fixed the issue. Something weird happened at the first installation ...
Thanks again for giving your suggestions.
Cheers
Roberto