pythia-pgs fails compilation

Asked by Valerio Dao

Hello,

I have problems in compiling the 'pythia-pgs' on my linux cluster.
When running "install pythia-pgs" I get:

----- Now compiling examples/olympics -----

gfortran -fno-automatic -o examples/olympics examples/pgs_olympics.f \
            -L./lib -lpgslib -ltauola \
            -lstdhep -lexthep -lFmcfio -L../../libraries/pylib/lib -lpythiaext; chmod +x examples/olympics
/usr/bin/ld: cannot find -lpythiaext
collect2: ld returned 1 exit status
chmod: cannot access `examples/olympics': No such file or directory

the same command works fine on my Mac.

Any suggestions?

thanks,

Valerio

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

Did you look at this link?

https://answers.launchpad.net/madgraph5/+question/227090
It contains some help for compilation trouble of pythia-pgs

Cheers,

Olivier
On Jul 20, 2013, at 10:51 AM, Valerio Dao <email address hidden> wrote:

> New question #232781 on MadGraph5:
> https://answers.launchpad.net/madgraph5/+question/232781
>
> Hello,
>
> I have problems in compiling the 'pythia-pgs' on my linux cluster.
> When running "install pythia-pgs" I get:
>
>
> ----- Now compiling examples/olympics -----
>
> gfortran -fno-automatic -o examples/olympics examples/pgs_olympics.f \
> -L./lib -lpgslib -ltauola \
> -lstdhep -lexthep -lFmcfio -L../../libraries/pylib/lib -lpythiaext; chmod +x examples/olympics
> /usr/bin/ld: cannot find -lpythiaext
> collect2: ld returned 1 exit status
> chmod: cannot access `examples/olympics': No such file or directory
>
> the same command works fine on my Mac.
>
> Any suggestions?
>
> thanks,
>
> Valerio
>
>
> --
> You received this question notification because you are a member of
> MadTeam, which is an answer contact for MadGraph5.

Revision history for this message
Valerio Dao (valerio-dao) said :
#2

Thanks for the answer.

Yes, I saw that tread but did not solve my problem.

At the end I solved it by simply making by hand the directory: pylib/lib

before compilation.

Cheers,

Valerio

Revision history for this message
Jamie Tattersall (32-jamie-7j) said :
#3

Hi,

Sorry for the hijack but I'm also getting the same error.

All of the four combinations of makefile options suggested in the other thread also don't solve the issue.

If I try making 'pylib/lib' by hnad, I get the error:

ar: ../lib/libpythiaext.a: No such file or directory
make[1]: *** [../lib/libpythiaext.a] Error 1

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

Hi Jamie,

Looks like my answer (made a couple days ago) didn't reach the launchpad server... So I put it back.

Such bug should definitively be fixed in the next version of MG5 (1.5.12)
In the mean time, the solution to manually compile is the following
cd pythia-pgs
make clean
cd libraries/pylib
mkdir
make clean
make
cd ../../
make

Cheers,

Olivier

Can you help with this problem?

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

To post a message you must log in.