MG5 does not work with gcc v6.2.0?

Asked by Goutam Das

Dear MG5 team,
                                I was wondering whether MG5 does not compile with gcc 6.2.0.
I am having a problem while installing NINJA.

While configuring for ninja following came up:

Thread model: posix
gcc version 6.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

.....

configure:3706: error: in `/home/goutam/MADGRAPH/MG5_aMC_v2_5_1/HEPTools/ninja/Ninja':
configure:3708: error: C compiler cannot create executables

If I don't install NINJA and only Cuttools and iregi are compiled (without showing any errors) and output is saved, but at the end it fails with following on the screen which looks like StdHep compilation problem.

INFO: Compiling StdHEP. This has to be done only once.
MadGraph5Error : A compilation Error occurs when trying to compile /home/goutam/MADGRAPH/MG5_aMC_v2_5_1/vendor/StdHEP.
 The compilation fails with the following output message:
     test -d ./bin || mkdir -p ./bin
     test -d ./lib || mkdir -p ./lib
     (cd mcfio/src; make all) > log.mcfio.$$ 2>&1
     make: *** [mcfio] Error 2

Best Regards,
Goutam.

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

Hi,

Indeed it seems that ninja is not compatible with your version of gcc.
I will report this to Ninja author such that they are aware of that problem.
This program is optional and using it only improve the speed of the code.
So this is not a True problem to not have it install.

Concerning the stdhep problem. This one seems more serious.
Could you attach the file starting with
> log.mcfio.
which should be (I guess) in
> /home/goutam/MADGRAPH/MG5_aMC_v2_5_1/vendor/StdHEP/mcfio/src

Cheers,

Olivier

> On Nov 10, 2016, at 07:58, Goutam Das <email address hidden> wrote:
>
> New question #403941 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/403941
>
> Dear MG5 team,
> I was wondering whether MG5 does not compile with gcc 6.2.0.
> I am having a problem while installing NINJA.
>
> While configuring for ninja following came up:
>
>
> Thread model: posix
> gcc version 6.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
>
> .....
>
> configure:3706: error: in `/home/goutam/MADGRAPH/MG5_aMC_v2_5_1/HEPTools/ninja/Ninja':
> configure:3708: error: C compiler cannot create executables
>
>
> If I don't install NINJA and only Cuttools and iregi are compiled (without showing any errors) and output is saved, but at the end it fails with following on the screen which looks like StdHep compilation problem.
>
> INFO: Compiling StdHEP. This has to be done only once.
> MadGraph5Error : A compilation Error occurs when trying to compile /home/goutam/MADGRAPH/MG5_aMC_v2_5_1/vendor/StdHEP.
> The compilation fails with the following output message:
> test -d ./bin || mkdir -p ./bin
> test -d ./lib || mkdir -p ./lib
> (cd mcfio/src; make all) > log.mcfio.$$ 2>&1
> make: *** [mcfio] Error 2
>
>
>
> Best Regards,
> Goutam.
>
>
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Goutam Das (gkdgoutam) said :
#2

Hi Olivier,
                   I only found log file in /MG5_aMC_v2_5_1/vendor/StdHEP/ directory.

I am pasting a part of it here:

make[1]: Entering directory `/home/goutam/MADGRAPH/MG5_aMC_v2_5_1/vendor/StdHEP/mcfio/src'
Creating shared library ../../lib/libFmcfio.so ...
gcc -Wl,-soname,libFmcfio.so -shared -o ../../lib/libFmcfio.so \
                mcfio_FPrintDictionary_s.o mcf_evt_xdr_s.o mcfio_FBinding_s.o mcfio_Util1_s.o mcfio_Direct_s.o mcfio_SeqDummy_s.o mcfio_Block_s.o mcf_ntubldInit_s.o mcf_ntuBldDbinc_s.o mcf_NTuIOFiles_s.o mcf_NTuIOUtils_s.o mcfio_UserDictionary_s.o
/usr/bin/ld: crtbeginS.o: No such file: No such file or directory
collect2: error: ld returned 1 exit status
make[1]: *** [../../lib/libFmcfio.so] Error 1
make[1]: Leaving directory `/home/goutam/MADGRAPH/MG5_aMC_v2_5_1/vendor/StdHEP/mcfio/src'

I don't know how to attach file here. If you want I can send you the full log file in your Durham account?

Best Regards,
Goutam

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

Hi,

Looks like that your gcc is not able to link against a library of your system/gcc:
crtbeginS.o

Google does not seems to help that much on that one (probably because that version of gcc is quite new)
Maybe you should report this to the gcc bug tracker. This is probably not a gcc bug but they should be able to tell you
which linux library you need to install on your system.

Cheers,

Olivier

> On Nov 10, 2016, at 10:03, Goutam Das <email address hidden> wrote:
>
> Question #403941 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/403941
>
> Status: Answered => Open
>
> Goutam Das is still having a problem:
> Hi Olivier,
> I only found log file in /MG5_aMC_v2_5_1/vendor/StdHEP/ directory.
>
> I am pasting a part of it here:
>
> make[1]: Entering directory `/home/goutam/MADGRAPH/MG5_aMC_v2_5_1/vendor/StdHEP/mcfio/src'
> Creating shared library ../../lib/libFmcfio.so ...
> gcc -Wl,-soname,libFmcfio.so -shared -o ../../lib/libFmcfio.so \
> mcfio_FPrintDictionary_s.o mcf_evt_xdr_s.o mcfio_FBinding_s.o mcfio_Util1_s.o mcfio_Direct_s.o mcfio_SeqDummy_s.o mcfio_Block_s.o mcf_ntubldInit_s.o mcf_ntuBldDbinc_s.o mcf_NTuIOFiles_s.o mcf_NTuIOUtils_s.o mcfio_UserDictionary_s.o
> /usr/bin/ld: crtbeginS.o: No such file: No such file or directory
> collect2: error: ld returned 1 exit status
> make[1]: *** [../../lib/libFmcfio.so] Error 1
> make[1]: Leaving directory `/home/goutam/MADGRAPH/MG5_aMC_v2_5_1/vendor/StdHEP/mcfio/src'
>
> I don't know how to attach file here. If you want I can send you the
> full log file in your Durham account?
>
> Best Regards,
> Goutam
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Goutam Das (gkdgoutam) said :
#4

Hi,
    do you know whether it will work with gcc-v5 series like GCC 5.4(which is a rolling version)?
I know it works with GCC4.8 but its obsolete.

Thanks,
Goutam

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

Hi,

yes gcc5 works in general. But since your problem is the fact that a standard library is missing, I’m worry that you can face the same problem
in gcc5.

Cheers,

Olivier

> On Nov 11, 2016, at 06:13, Goutam Das <email address hidden> wrote:
>
> Question #403941 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/403941
>
> Goutam Das posted a new comment:
> Hi,
> do you know whether it will work with gcc-v5 series like GCC 5.4(which is a rolling version)?
> I know it works with GCC4.8 but its obsolete.
>
> Thanks,
> Goutam
>
> --
> 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 Goutam Das for more information if necessary.

To post a message you must log in.