Ninja fails to install on Catalina for MG2.8.1

Asked by Baptiste Ravina on 2020-10-08

Hi,

As the title suggests, I'm trying to run MG v2.8.1 on MacOS Catalina 10.15.7, with python 2.7.16 and gcc/gfortran 9.2.0. The recommended install of ninja fails, and the MG5_debug file is pasted below.

Thanks,
Baptiste

************************************************************
#* MadGraph5_aMC@NLO *
#* *
#* * * *
#* * * * * *
#* * * * * 5 * * * * *
#* * * * * *
#* * * *
#* *
#* *
#* VERSION 2.8.1 2020-09-28 *
#* *
#* The MadGraph5_aMC@NLO Development Team - Find us at *
#* https://server06.fynu.ucl.ac.be/projects/madgraph *
#* *
#************************************************************
#* *
#* Command File for MadGraph5_aMC@NLO *
#* *
#* run as ./bin/mg5_aMC filename *
#* *
#************************************************************
set group_subprocesses Auto
set ignore_six_quark_processes False
set max_t_for_channel 99
set loop_optimized_output True
set low_mem_multicore_nlo_generation False
set default_unset_couplings 99
set zerowidth_tchannel True
set loop_color_flows False
set gauge unitary
set complex_mass_scheme False
set max_npoint_for_channel 0
import model sm
define p = g u c d s u~ c~ d~ s~
define j = g u c d s u~ c~ d~ s~
define l+ = e+ mu+
define l- = e- mu-
define vl = ve vm vt
define vl~ = ve~ vm~ vt~
import model loop_sm
generate p p > t t~ QCD=2 QED=0 [QCD]
output ttbar
Traceback (most recent call last):
  File "/Users/bravina/Documents/LocalMadGraph/MG5_aMC_v2_8_1/madgraph/interface/extended_cmd.py", line 1541, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/Users/bravina/Documents/LocalMadGraph/MG5_aMC_v2_8_1/madgraph/interface/extended_cmd.py", line 1490, in onecmd_orig
    return func(arg, **opt)
  File "/Users/bravina/Documents/LocalMadGraph/MG5_aMC_v2_8_1/madgraph/interface/master_interface.py", line 299, in do_output
    self.cmd.do_output(self, line, *args, **opts)
  File "/Users/bravina/Documents/LocalMadGraph/MG5_aMC_v2_8_1/madgraph/interface/amcatnlo_interface.py", line 530, in do_output
    output_type='amcatnlo',group_subprocesses=group_processes)
  File "/Users/bravina/Documents/LocalMadGraph/MG5_aMC_v2_8_1/madgraph/iolibs/export_v4.py", line 7006, in ExportV4Factory
    cmd.install_reduction_library()
  File "/Users/bravina/Documents/LocalMadGraph/MG5_aMC_v2_8_1/madgraph/interface/loop_interface.py", line 584, in install_reduction_library
    self.exec_cmd('install %s' % key)
  File "/Users/bravina/Documents/LocalMadGraph/MG5_aMC_v2_8_1/madgraph/interface/extended_cmd.py", line 1570, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/Users/bravina/Documents/LocalMadGraph/MG5_aMC_v2_8_1/madgraph/interface/extended_cmd.py", line 1490, in onecmd_orig
    return func(arg, **opt)
  File "/Users/bravina/Documents/LocalMadGraph/MG5_aMC_v2_8_1/madgraph/interface/master_interface.py", line 485, in do_install
    self.cmd.do_install(self, *args, **opts)
  File "/Users/bravina/Documents/LocalMadGraph/MG5_aMC_v2_8_1/madgraph/interface/madgraph_interface.py", line 6266, in do_install
    additional_options = add_options)
  File "/Users/bravina/Documents/LocalMadGraph/MG5_aMC_v2_8_1/madgraph/interface/madgraph_interface.py", line 6001, in advanced_install
    raise self.InvalidCmd("Installation of %s failed."%tool_to_install)
InvalidCmd: Installation of ninja failed.
                          MadGraph5_aMC@NLO Options
                          ----------------
        complex_mass_scheme : False
    default_unset_couplings : 99
                      gauge : unitary
         group_subprocesses : Auto
  ignore_six_quark_processes : False
           loop_color_flows : False
      loop_optimized_output : True
  low_mem_multicore_nlo_generation : False
     max_npoint_for_channel : 0
          max_t_for_channel : 99
               stdout_level : 10 (user set)
         zerowidth_tchannel : True

                        MadEvent Options
                          ----------------
     automatic_html_opening : True
                    nb_core : None
        notification_center : True
                   run_mode : 2

                      Configuration Options
                      ---------------------
                        OLP : MadLoop
                    amcfast : amcfast-config
                   applgrid : applgrid-config
                auto_update : 7
         cluster_local_path : None
           cluster_nb_retry : 1
              cluster_queue : None (user set)
         cluster_retry_wait : 300
               cluster_size : 100
      cluster_status_update : (600, 30)
          cluster_temp_path : None
               cluster_type : condor
                    collier : ./HEPTools/lib
               cpp_compiler : None
             crash_on_error : False
               delphes_path : ./Delphes
                 eps_viewer : None
        exrootanalysis_path : ./ExRootAnalysis
              f2py_compiler : /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/bin/f2py (user set)
          f2py_compiler_py2 : /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/bin/f2py (user set)
          f2py_compiler_py3 : None
                    fastjet : None (user set)
           fortran_compiler : None
                      golem : None (user set)
                 hepmc_path : None (user set)
                  hwpp_path : None (user set)
                     lhapdf : lhapdf-config
                 lhapdf_py2 : None
                 lhapdf_py3 : None
          madanalysis5_path : None (user set)
           madanalysis_path : ./MadAnalysis
  mg5amc_py8_interface_path : None (user set)
                      ninja : ./HEPTools/lib
        output_dependencies : external
            pythia-pgs_path : ./pythia-pgs
               pythia8_path : None (user set)
                    samurai : None
               syscalc_path : ./SysCalc
                    td_path : ./td
                text_editor : None
                thepeg_path : None (user set)
                    timeout : 60
                web_browser : None

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Solved by:
Baptiste Ravina
Solved:
2020-10-08
Last query:
2020-10-08
Last reply:
2020-10-08

Do you have the log of the ninja installation?

Cheers,

Olivier

Baptiste Ravina (bravina) said : #2

Hi Olivier, here it is:

Decompressing Ninja
x aclocal.m4
x AUTHORS
x ChangeLog
x compile
x config.guess
x config.h.in
x config.sub
x configure
x configure.ac
x COPYING
x depcomp
x examples/
x INSTALL
x install-sh
x ltmain.sh
x m4/
x Makefile.am
x Makefile.in
x missing
x NEWS
x PACKAGE_DESCRIPTION
x README.md
x src/
x utils/
x VERSION
x utils/ninjanumgen/
x utils/setup.py
x utils/ninjanumgen/__init__.py
x utils/ninjanumgen/ninjanumgen
x utils/ninjanumgen/ninjanumgen.py
x utils/ninjanumgen/templates/
x utils/ninjanumgen/templates/ninja_laurent.frm
x utils/ninjanumgen/templates/ninja_opt.frm
x utils/ninjanumgen/templates/ninjanumgen_template.cc
x utils/ninjanumgen/templates/ninjanumgen_template.hh
x src/avholo_decls.hh
x src/avholo_interface.cc
x src/avholo_wrapper.F90
x src/basis.cc
x src/basis.hh
x src/coefficient_level_subs.cc
x src/coefficient_level_subs.hh
x src/cuts.cc
x src/cuts.hh
x src/cuts_utils-inl.hh
x src/cuts_utils.cc
x src/cuts_utils.hh
x src/cuts_vector.hh
x src/gosam_interface.cc
x src/gosam_interface.hh
x src/integermath.hh
x src/integral_cache.hh
x src/integral_library.cc
x src/integral_library_wrapper.hh
x src/looptools_interface.cc
x src/Makefile.am
x src/Makefile.in
x src/mninja.F90
x src/ninja/
x src/ninja.cc
x src/ninja_config.cc
x src/ninja_hash_table.hh
x src/ninja_implem.cxx
x src/ninja_scoped_array.hh
x src/ninja_wraps.cc
x src/ninjago.F90
x src/ninjavholo.F90
x src/ninjavholo_wraps.cc
x src/polys_implem.cxx
x src/quadninja/
x src/quadsources/
x src/rambo.cc
x src/s_mat_wrapper.hh
x src/spinors.cc
x src/tensor_ninja.cc
x src/tmp_utils.hh
x src/Xcuts.cc
x src/Xcuts.hh
x src/Xninja.cc
x src/quadsources/genquadsources.sed
x src/quadninja/Makefile.am
x src/quadninja/Makefile.in
x src/ninja/avholo.hh
x src/ninja/integral_library.hh
x src/ninja/looptools.hh
x src/ninja/Makefile.am
x src/ninja/Makefile.in
x src/ninja/momentum.hh
x src/ninja/ninja.hh
x src/ninja/ninja_config.h.in
x src/ninja/ninja_in.hh
x src/ninja/ninjanumgen.hh
x src/ninja/num_defs.hh
x src/ninja/quadruple.hh
x src/ninja/rambo.hh
x src/ninja/s_mat.hh
x src/ninja/spinors.hh
x src/ninja/static_arrays.hh
x src/ninja/tensor_ninja.hh
x src/ninja/thread_safe_integral_library.hh
x src/ninja/types.hh
x src/ninja/zero_float.hh
x m4/libtool.m4
x m4/ltoptions.m4
x m4/ltsugar.m4
x m4/ltversion.m4
x m4/lt~obsolete.m4
x m4/m4_ax_cxx_compile_stdcxx_11.m4
x m4/m4_ax_cxx_quadmath.m4
x m4/m4_ax_cxx_tryandadd_flag.m4
x m4/m4_ax_pthread.m4
x examples/4photons.cc
x examples/4photons.frm
x examples/4photons.py
x examples/4photons.sh
x examples/4photons_init.cc
x examples/4photons_num.cc
x examples/4photons_num.hh
x examples/6photons.cc
x examples/6photons.frm
x examples/6photons.py
x examples/6photons.sh
x examples/6photons_init.cc
x examples/6photons_num.cc
x examples/6photons_num.hh
x examples/Makefile.am
x examples/Makefile.in
x examples/mynum.cc
x examples/mynum.frm
x examples/mynum.hh
x examples/mynumhr.cc
x examples/mynumhr.frm
x examples/mynumhr.hh
x examples/quadmynum.cc
x examples/quadmynum.hh
x examples/quadninja_test.cc
x examples/simple_higher_rank_test.cc
x examples/simple_higher_rank_test.py
x examples/simple_higher_rank_test.sh
x examples/simple_test.cc
x examples/simple_test.py
x examples/simple_test.sh
x examples/tensor_higher_rank_test.cc
x examples/tensor_test.cc
x examples/thread_4photons.cc
x examples/thread_6photons.cc
x examples/ttbarh.cc
x examples/ttbarh.frm
x examples/ttbarh.py
x examples/ttbarh.sh
x examples/ttbarh_init.cc
x examples/ttbarh_num.cc
x examples/ttbarh_num.hh
Entering Ninja directory and installing Ninja
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... x86_64-apple-darwin19.6.0
checking host system type... x86_64-apple-darwin19.6.0
checking how to print strings... printf
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/Users/bravina/Documents/LocalMadGraph/MG5_aMC_v2_8_1/HEPTools/ninja/Ninja':
configure: error: C compiler cannot create executables
See `config.log' for more details
== Content of config.log ==
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by Ninja configure 1.1.0, which was
generated by GNU Autoconf 2.69. Invocation command line was

  $ ./configure --prefix=/Users/bravina/Documents/LocalMadGraph/MG5_aMC_v2_8_1/HEPTools/ninja/ --enable-higher_rank --with-avholo=-L/Users/bravina/Documents/LocalMadGraph/MG5_aMC_v2_8_1/HEPTools/oneloop -lavh_olo FCINCLUDE=-I/Users/bravina/Documents/LocalMadGraph/MG5_aMC_v2_8_1/HEPTools/oneloop CXX=g++ CXXFLAGS=-O2 CPPFLAGS=-DNINJA_NO_EXCEPTIONS -fPIC --enable-quadninja LIBS=-lstdc++

## --------- ##
## Platform. ##
## --------- ##

hostname = MacBook-Pro.local
uname -m = x86_64
uname -r = 19.6.0
uname -s = Darwin
uname -v = Darwin Kernel Version 19.6.0: Mon Aug 31 22:12:52 PDT 2020; root:xnu-6153.141.2~1/RELEASE_X86_64

/usr/bin/uname -p = i386
/bin/uname -X = unknown

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = Mach kernel version:
  Darwin Kernel Version 19.6.0: Mon Aug 31 22:12:52 PDT 2020; root:xnu-6153.141.2~1/RELEASE_X86_64
Kernel configured for up to 8 processors.
4 processors are physically available.
8 processors are logically available.
Processor type: x86_64h (Intel x86-64h Haswell)
Processors active: 0 1 2 3 4 5 6 7
Primary memory available: 32.00 gigabytes
Default processor set: 442 tasks, 2221 threads, 8 processors
Load average: 5.43, Mach factor: 3.52
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /Users/bravina/Documents/LocalMadGraph/MG5_aMC_v2_8_1/HEPTools/bin
PATH: /Users/bravina/Documents/LocalMadGraph/venv/bin
PATH: /usr/local/opt/ruby/bin
PATH: /usr/local/opt/coreutils/libexec/gnubin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /Users/bravina/.rvm/bin
PATH: /Users/bravina/.rvm/bin

## ----------- ##
## Core tests. ##
## ----------- ##

configure:2502: checking for a BSD-compatible install
configure:2570: result: /usr/bin/install -c
configure:2581: checking whether build environment is sane
configure:2636: result: yes
configure:2787: checking for a thread-safe mkdir -p
configure:2826: result: ./install-sh -c -d
configure:2833: checking for gawk
configure:2863: result: no
configure:2833: checking for mawk
configure:2863: result: no
configure:2833: checking for nawk
configure:2863: result: no
configure:2833: checking for awk
configure:2849: found /usr/bin/awk
configure:2860: result: awk
configure:2871: checking whether make sets $(MAKE)
configure:2893: result: yes
configure:2922: checking whether make supports nested variables
configure:2939: result: yes
configure:3094: checking build system type
configure:3108: result: x86_64-apple-darwin19.6.0
configure:3128: checking host system type
configure:3141: result: x86_64-apple-darwin19.6.0
configure:3182: checking how to print strings
configure:3209: result: printf
configure:3242: checking for style of include used by make
configure:3270: result: GNU
configure:3341: checking for gcc
configure:3357: found /usr/local/bin/gcc
configure:3368: result: gcc
configure:3597: checking for C compiler version
configure:3606: gcc --version >&5
gcc (GCC) 9.2.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.

configure:3617: $? = 0
configure:3606: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-apple-darwin19/9.2.0/lto-wrapper
Target: x86_64-apple-darwin19
Configured with: ../gcc-9.2.0/configure --build=x86_64-apple-darwin19 --disable-nls --enable-checking=release --with-system-zlib --disable-multilib --with-sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk --enable-languages=c,c++,fortran --with-gmp=/usr/local --with-mpc=/usr/local --with-mpfr=/usr/local
Thread model: posix
gcc version 9.2.0 (GCC)
configure:3617: $? = 0
configure:3606: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:3617: $? = 1
configure:3606: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'; did you mean '--version'?
gcc: fatal error: no input files
compilation terminated.
configure:3617: $? = 1
configure:3637: checking whether the C compiler works
configure:3659: gcc -DNINJA_NO_EXCEPTIONS -fPIC conftest.c -lstdc++ >&5
ld: library not found for -lSystem
collect2: error: ld returned 1 exit status
configure:3663: $? = 1
configure:3701: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Ninja"
| #define PACKAGE_TARNAME "ninja"
| #define PACKAGE_VERSION "1.1.0"
| #define PACKAGE_STRING "Ninja 1.1.0"
| #define PACKAGE_BUGREPORT "<email address hidden>"
| #define PACKAGE_URL ""
| #define PACKAGE "ninja"
| #define VERSION "1.1.0"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3706: error: in `/Users/bravina/Documents/LocalMadGraph/MG5_aMC_v2_8_1/HEPTools/ninja/Ninja':
configure:3708: error: C compiler cannot create executables
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-apple-darwin19.6.0
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value='-DNINJA_NO_EXCEPTIONS -fPIC'
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value=-O2
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value=g++
ac_cv_env_FCFLAGS_set=
ac_cv_env_FCFLAGS_value=
ac_cv_env_FCINCLUDE_set=set
ac_cv_env_FCINCLUDE_value=-I/Users/bravina/Documents/LocalMadGraph/MG5_aMC_v2_8_1/HEPTools/oneloop
ac_cv_env_FC_set=set
ac_cv_env_FC_value=gfortran
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=set
ac_cv_env_LIBS_value=-lstdc++
ac_cv_env_LT_SYS_LIBRARY_PATH_set=
ac_cv_env_LT_SYS_LIBRARY_PATH_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=x86_64-apple-darwin19.6.0
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=awk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes
am_cv_make_support_nested_variables=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /Users/bravina/Documents/LocalMadGraph/MG5_aMC_v2_8_1/HEPTools/ninja/Ninja/missing aclocal-1.15'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_V='$(V)'
AR=''
AUTOCONF='${SHELL} /Users/bravina/Documents/LocalMadGraph/MG5_aMC_v2_8_1/HEPTools/ninja/Ninja/missing autoconf'
AUTOHEADER='${SHELL} /Users/bravina/Documents/LocalMadGraph/MG5_aMC_v2_8_1/HEPTools/ninja/Ninja/missing autoheader'
AUTOMAKE='${SHELL} /Users/bravina/Documents/LocalMadGraph/MG5_aMC_v2_8_1/HEPTools/ninja/Ninja/missing automake-1.15'
AVHFLAGS=''
AVHOLO_FALSE=''
AVHOLO_TRUE=''
AWK='awk'
CC='gcc'
CCDEPMODE=''
CFLAGS=''
CPP=''
CPPFLAGS='-DNINJA_NO_EXCEPTIONS -fPIC'
CXX='g++'
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS='-O2'
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
DLLTOOL=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP=''
EXEEXT=''
EXNINJASTATIC_FALSE=''
EXNINJASTATIC_TRUE=''
F90MODULE_FALSE=''
F90MODULE_TRUE=''
FC='gfortran'
FCFLAGS=''
FCINCLUDE='-I/Users/bravina/Documents/LocalMadGraph/MG5_aMC_v2_8_1/HEPTools/oneloop'
FGREP=''
GOSAM_FALSE=''
GOSAM_TRUE=''
GREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD=''
LDFLAGS=''
LIBOBJS=''
LIBS='-lstdc++'
LIBTOOL=''
LIPO=''
LN_S=''
LOOPTOOLS_FALSE=''
LOOPTOOLS_TRUE=''
LTFLAGS=''
LTLIBOBJS=''
LT_SYS_LIBRARY_PATH=''
MAKEINFO='${SHELL} /Users/bravina/Documents/LocalMadGraph/MG5_aMC_v2_8_1/HEPTools/ninja/Ninja/missing makeinfo'
MANIFEST_TOOL=''
MKDIR_P='./install-sh -c -d'
NINJAGOSAMCONTRIB_FALSE=''
NINJAGOSAMCONTRIB_TRUE=''
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE='ninja'
<email address hidden>'
PACKAGE_NAME='Ninja'
PACKAGE_STRING='Ninja 1.1.0'
PACKAGE_TARNAME='ninja'
PACKAGE_URL=''
PACKAGE_VERSION='1.1.0'
PATH_SEPARATOR=':'
PTHREAD_CC=''
PTHREAD_CFLAGS=''
PTHREAD_LIBS=''
QUADNINJA_FALSE=''
QUADNINJA_TRUE=''
QUADRUPLEFLAGS=''
QUADRUPLE_FALSE=''
QUADRUPLE_TRUE=''
RANLIB=''
SED=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
VERSION='1.1.0'
ac_ct_AR=''
ac_ct_CC='gcc'
ac_ct_CXX=''
ac_ct_DUMPBIN=''
ac_ct_FC=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__nodep='_no'
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
ax_pthread_config=''
bindir='${exec_prefix}/bin'
build='x86_64-apple-darwin19.6.0'
build_alias=''
build_cpu='x86_64'
build_os='darwin19.6.0'
build_vendor='apple'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='x86_64-apple-darwin19.6.0'
host_alias=''
host_cpu='x86_64'
host_os='darwin19.6.0'
host_vendor='apple'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /Users/bravina/Documents/LocalMadGraph/MG5_aMC_v2_8_1/HEPTools/ninja/Ninja/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/Users/bravina/Documents/LocalMadGraph/MG5_aMC_v2_8_1/HEPTools/ninja'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "Ninja"
#define PACKAGE_TARNAME "ninja"
#define PACKAGE_VERSION "1.1.0"
#define PACKAGE_STRING "Ninja 1.1.0"
#define PACKAGE_BUGREPORT "<email address hidden>"
#define PACKAGE_URL ""
#define PACKAGE "ninja"
#define VERSION "1.1.0"

configure: exit 77
== End of content of config.log ==
make: *** No targets specified and no makefile found. Stop.
make: Nothing to be done for `install'.
Finished installing Ninja

Ok you face the following issue:

> ld: library not found for -lSystem

Which indicates issue with your installation of C
If you use the native clang compiler you should not face that issue. (we advise to use clang + gfortran from http://hpc.sourceforge.net/)
if you use macport of brew to install your version of gcc please google the the above error and link on the link corresponding to your software manager.

Cheers,

Olivier

Baptiste Ravina (bravina) said : #4

Hi Olivier,

Indeed I installed gcc 9.2.0 from that link. It seems I can't even compile a simple program in C:

$ gcc helloworld.c -o hello
ld: library not found for -lSystem
collect2: error: ld returned 1 exit status

but if, according to the comment about Catalina on http://hpc.sourceforge.net/, I run

$ gcc helloworld.c -o hello -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib

it compiles fine. Therefore I added these two paths to my ~/.bashrc, and now the ninja install progresses further, before crashing again on

make[3]: Nothing to be done for `install-exec-am'.
 ../.././install-sh -c -d '/Users/bravina/Documents/LocalMadGraph/MG5_aMC_v2_8_1/HEPTools/ninja/include/ninja'
 /usr/bin/install -c -m 644 ninja.hh ninja_in.hh tensor_ninja.hh zero_float.hh types.hh s_mat.hh momentum.hh num_defs.hh spinors.hh static_arrays.hh integral_library.hh thread_safe_integral_library.hh rambo.hh ninjanumgen.hh avholo.hh '/Users/bravina/Documents/LocalMadGraph/MG5_aMC_v2_8_1/HEPTools/ninja/include/ninja'
 ../.././install-sh -c -d '/Users/bravina/Documents/LocalMadGraph/MG5_aMC_v2_8_1/HEPTools/ninja/include/ninja'
 /usr/bin/install -c -m 644 ninja_config.h '/Users/bravina/Documents/LocalMadGraph/MG5_aMC_v2_8_1/HEPTools/ninja/include/ninja'
Making install in quadninja
make[3]: Nothing to be done for `install-exec-am'.
 ../.././install-sh -c -d '/Users/bravina/Documents/LocalMadGraph/MG5_aMC_v2_8_1/HEPTools/ninja/include/quadninja'
 /usr/bin/install -c -m 644 ninja.hh ninja_in.hh tensor_ninja.hh zero_float.hh types.hh s_mat.hh momentum.hh num_defs.hh spinors.hh static_arrays.hh integral_library.hh thread_safe_integral_library.hh rambo.hh ninjanumgen.hh avholo.hh quadruple.hh ninja_config.h '/Users/bravina/Documents/LocalMadGraph/MG5_aMC_v2_8_1/HEPTools/ninja/include/quadninja'
depbase=`echo basis.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
 /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I../src/ninja -DNINJA_NO_EXCEPTIONS -fPIC -O2 -fcx-fortran-rules -MT basis.lo -MD -MP -MF $depbase.Tpo -c -o basis.lo basis.cc &&\
 mv -f $depbase.Tpo $depbase.Plo
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../src/ninja -DNINJA_NO_EXCEPTIONS -fPIC -O2 -fcx-fortran-rules -MT basis.lo -MD -MP -MF .deps/basis.Tpo -c basis.cc -fno-common -DPIC -o .libs/basis.o
In file included from /usr/local/include/c++/9.2.0/ext/string_conversions.h:41,
                 from /usr/local/include/c++/9.2.0/bits/basic_string.h:6493,
                 from /usr/local/include/c++/9.2.0/string:55,
                 from /usr/local/include/c++/9.2.0/bits/locale_classes.h:40,
                 from /usr/local/include/c++/9.2.0/bits/ios_base.h:41,
                 from /usr/local/include/c++/9.2.0/ios:42,
                 from /usr/local/include/c++/9.2.0/ostream:38,
                 from /usr/local/include/c++/9.2.0/iostream:39,
                 from ./ninja/momentum.hh:8,
                 from basis.cc:8:
/usr/local/include/c++/9.2.0/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
   75 | #include_next <stdlib.h>
      | ^~~~~~~~~~

so it looks like something is going very wrong with my gcc setup...

I do not recommend to install gcc on a mac since it typically clash with clang compiler (the default compiler on mac). My recomendation is to only install gfortran (which has compitibility issue with clang).

( This has the benefit that you can then use pre-compiled version of code like Root since if you use a full gcc you are force to compile it yourself).

I have no experience with the installation of the full gcc on a modern mac (I stopped to do that 10 years ago)

Cheers,

olivier

> On 8 Oct 2020, at 13:31, Baptiste Ravina <email address hidden> wrote:
>
> Question #693348 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/693348
>
> Status: Answered => Open
>
> Baptiste Ravina is still having a problem:
> Hi Olivier,
>
> Indeed I installed gcc 9.2.0 from that link. It seems I can't even
> compile a simple program in C:
>
> $ gcc helloworld.c -o hello
> ld: library not found for -lSystem
> collect2: error: ld returned 1 exit status
>
> but if, according to the comment about Catalina on
> http://hpc.sourceforge.net/, I run
>
> $ gcc helloworld.c -o hello
> -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
> -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib
>
> it compiles fine. Therefore I added these two paths to my ~/.bashrc, and
> now the ninja install progresses further, before crashing again on
>
> make[3]: Nothing to be done for `install-exec-am'.
> ../.././install-sh -c -d '/Users/bravina/Documents/LocalMadGraph/MG5_aMC_v2_8_1/HEPTools/ninja/include/ninja'
> /usr/bin/install -c -m 644 ninja.hh ninja_in.hh tensor_ninja.hh zero_float.hh types.hh s_mat.hh momentum.hh num_defs.hh spinors.hh static_arrays.hh integral_library.hh thread_safe_integral_library.hh rambo.hh ninjanumgen.hh avholo.hh '/Users/bravina/Documents/LocalMadGraph/MG5_aMC_v2_8_1/HEPTools/ninja/include/ninja'
> ../.././install-sh -c -d '/Users/bravina/Documents/LocalMadGraph/MG5_aMC_v2_8_1/HEPTools/ninja/include/ninja'
> /usr/bin/install -c -m 644 ninja_config.h '/Users/bravina/Documents/LocalMadGraph/MG5_aMC_v2_8_1/HEPTools/ninja/include/ninja'
> Making install in quadninja
> make[3]: Nothing to be done for `install-exec-am'.
> ../.././install-sh -c -d '/Users/bravina/Documents/LocalMadGraph/MG5_aMC_v2_8_1/HEPTools/ninja/include/quadninja'
> /usr/bin/install -c -m 644 ninja.hh ninja_in.hh tensor_ninja.hh zero_float.hh types.hh s_mat.hh momentum.hh num_defs.hh spinors.hh static_arrays.hh integral_library.hh thread_safe_integral_library.hh rambo.hh ninjanumgen.hh avholo.hh quadruple.hh ninja_config.h '/Users/bravina/Documents/LocalMadGraph/MG5_aMC_v2_8_1/HEPTools/ninja/include/quadninja'
> depbase=`echo basis.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
> /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I../src/ninja -DNINJA_NO_EXCEPTIONS -fPIC -O2 -fcx-fortran-rules -MT basis.lo -MD -MP -MF $depbase.Tpo -c -o basis.lo basis.cc &&\
> mv -f $depbase.Tpo $depbase.Plo
> libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../src/ninja -DNINJA_NO_EXCEPTIONS -fPIC -O2 -fcx-fortran-rules -MT basis.lo -MD -MP -MF .deps/basis.Tpo -c basis.cc -fno-common -DPIC -o .libs/basis.o
> In file included from /usr/local/include/c++/9.2.0/ext/string_conversions.h:41,
> from /usr/local/include/c++/9.2.0/bits/basic_string.h:6493,
> from /usr/local/include/c++/9.2.0/string:55,
> from /usr/local/include/c++/9.2.0/bits/locale_classes.h:40,
> from /usr/local/include/c++/9.2.0/bits/ios_base.h:41,
> from /usr/local/include/c++/9.2.0/ios:42,
> from /usr/local/include/c++/9.2.0/ostream:38,
> from /usr/local/include/c++/9.2.0/iostream:39,
> from ./ninja/momentum.hh:8,
> from basis.cc:8:
> /usr/local/include/c++/9.2.0/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
> 75 | #include_next <stdlib.h>
> | ^~~~~~~~~~
>
> so it looks like something is going very wrong with my gcc setup...
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Baptiste Ravina (bravina) said : #6

After putting in the MG config file the exact paths to /usr/bin/gcc (native) and /usr/bin/local/gfortran (the 9.2.0 version from hpc), and running

$ sudo xcode-select -s /Library/Developer/CommandLineTools

I *think* I have finally successfully installed ninja...