GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Event Generators » Error in make in EvtGen
Error in make in EvtGen [message #10426] Thu, 18 March 2010 13:54 Go to next message
manoj.jadhav is currently offline  manoj.jadhav
Messages: 41
Registered: February 2010
Location: Mumbai, India
continuous participant
From: *162.23.19.static-mumbai.vsnl.net.in
hello all,

I have installed pandaroot & set the environment in pandaroot/buildPanda by command . ./config.sh and tried to test EvtGen package

pandaroot/pgenerators/EvtGen
by . configure

when I do make, I am facing following error:
...................
For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
/bin/sh: Syntax error: Bad fd number
make: *** [ar] Error 2
..........................
so please help me out.


Manoj Jadhav
I.I.T.Bombay
Mumbai
Re: Error in make in EvtGen [message #10427 is a reply to message #10426] Thu, 18 March 2010 15:38 Go to previous messageGo to next message
Johan Messchendorp is currently offline  Johan Messchendorp
Messages: 693
Registered: April 2007
Location: University of Groningen
first-grade participant

From: *xs4all.nl
Dear Manoj,

EvtGen is a headache since the success of its compilation and building depends strongly on the system and compilers you are using. In particular, it is often found complicated to build it on newer systems using gfortran. There are however some tricks and installation tips, which you can find and read on

http://panda-wiki.gsi.de/cgi-bin/view/Computing/WebHome?topic=EvtGen

I would suggest to follow the steps indicated on this Wiki.

Greetings,

Johan.
Re: Error in make in EvtGen [message #10449 is a reply to message #10427] Mon, 22 March 2010 10:47 Go to previous messageGo to next message
manoj.jadhav is currently offline  manoj.jadhav
Messages: 41
Registered: February 2010
Location: Mumbai, India
continuous participant
From: 203.78.217*
hi,

I have compile with your given site but not successful
Here I am not able to understand this error massage

......................

/bin/sh: Syntax error: Bad fd number
make: *** [ar] Error 2

...................

As far as I understand this /bin/sh is an executable file & we can't read it, so I am not able to understand from where this error is coming?


Manoj Jadhav
I.I.T.Bombay
Mumbai
Re: Error in make in EvtGen [message #10450 is a reply to message #10449] Mon, 22 March 2010 11:01 Go to previous messageGo to next message
Johan Messchendorp is currently offline  Johan Messchendorp
Messages: 693
Registered: April 2007
Location: University of Groningen
first-grade participant

From: *KVI.nl
try to use /bin/bash instead... maybe that resolves it.

Johan.
Re: Error in make in EvtGen [message #10451 is a reply to message #10450] Mon, 22 March 2010 11:20 Go to previous messageGo to next message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *to.infn.it
The problem is due to Ubuntu that is using dash as sh.
The solution should be to remove the /bin/sh file, or better to rename it, and to link the bash to sh.

ln -s /bin/bash /bin/sh


This should fix the problem, we had already this problem two years ago and we have fixed it in this way (even if I was not able to find the old thread in the forum)
Re: Error in make in EvtGen [message #10457 is a reply to message #10451] Tue, 23 March 2010 10:36 Go to previous messageGo to next message
manoj.jadhav is currently offline  manoj.jadhav
Messages: 41
Registered: February 2010
Location: Mumbai, India
continuous participant
From: 203.78.217*
hi all,


After make bin I am facing the error which is attached bellow as nohup.out file,

I think there is some linking problem but not able to troubleshoot it.










with regards,
  • Attachment: nohup.out
    (Size: 365.45KB, Downloaded 314 times)


Manoj Jadhav
I.I.T.Bombay
Mumbai
Error in "make bin" in EvtGen [message #10511 is a reply to message #10457] Tue, 06 April 2010 14:11 Go to previous messageGo to next message
Aleksandra Biegun is currently offline  Aleksandra Biegun
Messages: 64
Registered: May 2007
Location: Groningen
continuous participant
From: *KVI.nl
Dear All,

has anyone compiled the EvtGen with the new fairsoft?
I would be interested in getting the compiled version
for 64-bit machine and with gcc version 4.3.2.

I am trying compile EvtGen following the instructions
on the wiki and my problem starts when I do "make bin":


~/fair/trunk/pgenerators/EvtGen> make bin
gcc -L. -L/home/biegun/fair/cernlib_ab2005/lib/ -L/opt/exp_soft/panda/fairroot/fairsoft/cern/clhep/lib -L/opt/exp_soft/panda/fairroot/fairsoft/tools/root/lib -lRIO -lSQL -lNet -o testEvtGen testEvtGen.o -lEvtGen -lEvtGenModels -lEvtGenBase -lCLHEP -lpythia6205 -lpdflib804 -lpacklib -lmathlib -lphotos202 -lCore -lCint -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -ldl -lg2c -lnsl -lm -lMathCore -lThread
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/l d: cannot find -lSQL
collect2: ld returned 1 exit status
make: *** [bin] Error 1


I remember that some time ago we could set this flag -lSQL
when we did ". configure", but now this is not the case any more.

I see that all 3 flags: deflinkopt="-lRIO -lSQL -lNet"
are inside the "configure" script, but "-lSQL" not seen in my case.

Could anyone help me with that, please.

Regards,
Ola.



Aleksandra Biegun
University of Groningen/KVI
Zernikelaan 25, 9747 AA Groningen
tel. +31 50 363 3630
fax. +31 50 363 4003
Re: Error in "make bin" in EvtGen [message #10512 is a reply to message #10511] Tue, 06 April 2010 14:18 Go to previous messageGo to next message
Olaf Hartmann is currently offline  Olaf Hartmann
Messages: 105
Registered: December 2003
Location: Wien-Alsergrund
continuous participant
From: *smi.oeaw.ac.at
Hi Ola,

as a workaround I edited configure by hand. Then config.mk does not contain -lSQL any more.

Cheers
Olaf.


Re: Error in "make bin" in EvtGen [message #10513 is a reply to message #10511] Tue, 06 April 2010 14:19 Go to previous messageGo to next message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *0-87-r.retail.telecomitalia.it
Hi,
in the comfig.mk remove -lSQL, then redo "make" and "make bin" (maybe, before make you have to do a "make clean")
Re: Error in "make bin" in EvtGen [message #10514 is a reply to message #10513] Tue, 06 April 2010 14:33 Go to previous messageGo to next message
Aleksandra Biegun is currently offline  Aleksandra Biegun
Messages: 64
Registered: May 2007
Location: Groningen
continuous participant
From: *KVI.nl
Hi guys,

thanks for your reply.

I did like Stefano suggested, and now I have a problem with pythia6205, i.e.

~/fair/trunk/pgenerators/EvtGen> make bin
gcc -L. -L/home/biegun/fair/cernlib_ab2005/lib/ -L/opt/exp_soft/panda/fairroot/fairsoft/cern/clhep/lib -L/opt/exp_soft/panda/fairroot/fairsoft/tools/root/lib -lRIO -lNet -o testEvtGen testEvtGen.o -lEvtGen -lEvtGenModels -lEvtGenBase -lCLHEP -lpythia6205 -lpdflib804 -lpacklib -lmathlib -lphotos202 -lCore -lCint -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -ldl -lg2c -lnsl -lm -lMathCore -lThread
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/l d: skipping incompatible /home/biegun/fair/cernlib_ab2005/lib//libpythia6205.a when searching for -lpythia6205
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/l d: cannot find -lpythia6205
collect2: ld returned 1 exit status
make: *** [bin] Error 1



Apparently I do not have that library where it should be:

which: no lpythia6205 in (/opt/exp_soft/panda/fairroot/fairsoft/tools/root/bin:/opt/exp_soft/pand a/fairroot/fairsoft/basics/cmake/bin:/home/biegun/bin:/usr/local/bin:/us r/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/kde3/bin:/usr/lib /mit/bin:/usr/lib/mit/sbin:/opt/gnome/bin:/opt/exp_soft/bin/svn)


Hmmm...
?


Aleksandra Biegun
University of Groningen/KVI
Zernikelaan 25, 9747 AA Groningen
tel. +31 50 363 3630
fax. +31 50 363 4003
Re: Error in "make bin" in EvtGen [message #10515 is a reply to message #10514] Tue, 06 April 2010 14:55 Go to previous messageGo to next message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *0-87-r.retail.telecomitalia.it
Which cern libs have you downloaded? Is it possible that you have downloaded 32bit version, while you need 64bit?

/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/l d: skipping incompatible /home/biegun/fair/cernlib_ab2005/lib//libpythia6205.a when searching for -lpythia6205
Re: Error in "make bin" in EvtGen [message #10516 is a reply to message #10515] Tue, 06 April 2010 17:38 Go to previous messageGo to next message
Aleksandra Biegun is currently offline  Aleksandra Biegun
Messages: 64
Registered: May 2007
Location: Groningen
continuous participant
From: *KVI.nl
Hi Stefano,

indeed, I had wrong libraries.
But also have done the configure with double "gfortran" aguments
insted of "gcc" and "g77".
Anyway, now it works!

Thanks!!

Greetings,
Ola.


Aleksandra Biegun
University of Groningen/KVI
Zernikelaan 25, 9747 AA Groningen
tel. +31 50 363 3630
fax. +31 50 363 4003
Re: Error in make in EvtGen [message #10517 is a reply to message #10426] Tue, 06 April 2010 19:41 Go to previous messageGo to next message
Johan Messchendorp is currently offline  Johan Messchendorp
Messages: 693
Registered: April 2007
Location: University of Groningen
first-grade participant

From: *xs4all.nl
Dear all,

I made a few small modification in the configuration/Makefile of EvtGen:

1) removed the -lSQL flag in the "configure" file (I expect most of us are using the new fairsoft anyway).
2) when running "configure", I added an additional question, asking for the linker program to use for making the bins. This to avoid the "make gfortran the gcc compiler trick".
3) the EvtGen page on the panda wiki has been adapted accordingly.

Greets,

Johan.
Re: Error in make in EvtGen [message #10518 is a reply to message #10517] Fri, 09 April 2010 13:03 Go to previous messageGo to next message
manoj.jadhav is currently offline  manoj.jadhav
Messages: 41
Registered: February 2010
Location: Mumbai, India
continuous participant
From: 203.78.217*
hello all,

In EvtGen, after make bin it shows error

..........................................
usr/bin/ld: cannot find -l-l
collect2: ld returned 1 exit status
..........................................


I am not able to understand why this error is coming. So please help me in this regards.


Manoj Jadhav
I.I.T.Bombay
Mumbai
Re: Error in make in EvtGen [message #10519 is a reply to message #10518] Fri, 09 April 2010 13:25 Go to previous messageGo to next message
manoj.jadhav is currently offline  manoj.jadhav
Messages: 41
Registered: February 2010
Location: Mumbai, India
continuous participant
From: *162.23.19.static-mumbai.vsnl.net.in
hello all,


Now problem has been solved by setting path CERN_ROOT in .bashrc .


With Regards,


Manoj Jadhav
I.I.T.Bombay
Mumbai
Re: Error in make in EvtGen [message #12138 is a reply to message #10519] Mon, 27 June 2011 10:09 Go to previous messageGo to next message
M.Babai is currently offline  M.Babai
Messages: 46
Registered: January 2008
Location: Netherlands
continuous participant
From: *KVI.nl
Dear all,

Making EvtGen using gcc-4.6.x fails with the error:
EvtStreamInputIterator.hh:26:11: error: 'ptrdiff_t' does not name a type

It is can be solved by adding the line

#include <cstddef>

to the file:

pandaroot/pgenerators/EvtGen/EvtGenBase/EvtStreamInputIterator.hh

Unfortunately I do not have write access in that file, in order to update the repos.
Can someone please do this?

Kind wishes,
m.
Re: Error in make in EvtGen [message #12140 is a reply to message #12138] Mon, 27 June 2011 10:46 Go to previous message
Johan Messchendorp is currently offline  Johan Messchendorp
Messages: 693
Registered: April 2007
Location: University of Groningen
first-grade participant

From: *KVI.nl
done.

j.
Previous Topic: PndDpmDirect changed
Next Topic: PYTHIA in PANDAROOT
Goto Forum:
  


Current Time: Mon Nov 11 08:36:38 CET 2024

Total time taken to generate the page: 0.00991 seconds