GAMMA GAMMA HIGGS DECAY

Asked by Hilal Kucuk

I am trying to calculate gamma gamma Higgs decay using batch. I have batch file and use

./calchep_batch batch_file

I get this error

Undefined symbols for architecture x86_64:
  "_lAAhiggs", referenced from:
      _calcMainFunc in VandP-db9809.o
  "_lGGhiggs", referenced from:
      _calcMainFunc in VandP-db9809.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [VandP.so] Error 1
Compilation of VandP.so failed.

The part of batch file is

Model: SM(+hgg)
Model changed: False
Gauge: Feynman
Process: e,E->Z,h

pdf1: ISR & Beamstrahlung
pdf2: ISR & Beamstrahlung
Bunch x+y sizes (nm) : 560
Bunch length (mm) : 0.4
Number of particles : 2E+10

p1: 500
p2: 500

Parameter: Mh=125

Dist parameter: E1
Dist min: 30
Dist max: 499
Dist n bins: 100
Dist title: e,E->Z,h
Dist x-title: E1 (GeV)

Could you help,please?

Question information

Language:
English Edit question
Status:
Answered
For:
CalcHEP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Alexander Belyaev (alexander.belyaev) said :
#1

Dear Hilal,
which laptop and operating system do you have?
Regards
Alexander

On Tue, 25 Sep 2018, 13:17 Hilal Kucuk, <
<email address hidden>> wrote:

> New question #674404 on CalcHEP:
> https://answers.launchpad.net/calchep/+question/674404
>
> I am trying to calculate gamma gamma Higgs decay using batch. I have batch
> file and use
>
> ./calchep_batch batch_file
>
> I get this error
>
> Undefined symbols for architecture x86_64:
> "_lAAhiggs", referenced from:
> _calcMainFunc in VandP-db9809.o
> "_lGGhiggs", referenced from:
> _calcMainFunc in VandP-db9809.o
> ld: symbol(s) not found for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see
> invocation)
> make: *** [VandP.so] Error 1
> Compilation of VandP.so failed.
>
>
>
> The part of batch file is
>
>
> Model: SM(+hgg)
> Model changed: False
> Gauge: Feynman
> Process: e,E->Z,h
>
> pdf1: ISR & Beamstrahlung
> pdf2: ISR & Beamstrahlung
> Bunch x+y sizes (nm) : 560
> Bunch length (mm) : 0.4
> Number of particles : 2E+10
>
> p1: 500
> p2: 500
>
> Parameter: Mh=125
>
> Dist parameter: E1
> Dist min: 30
> Dist max: 499
> Dist n bins: 100
> Dist title: e,E->Z,h
> Dist x-title: E1 (GeV)
>
>
> Could you help,please?
>
> --
> You received this question notification because your team CalcHEP is an
> answer contact for CalcHEP.
>
--

___________________________
Prof. Alexander S Belyaev (<email address hidden>)
https://www.hep.phys.soton.ac.uk/content/alexander-belyaev
School of Physics & Astronomy, University of Southampton, Office: 5047
SO17 1BJ, TEL.: +44 (0)23 8059 8509

Revision history for this message
Hilal Kucuk (hilalkucuk) said :
#2

Hi Alexander,

Thanks for very quick answer.

I am using Macbook pro, (macos high sierra) 64-bit processor

Revision history for this message
Alexander Belyaev (alexander.belyaev) said :
#3

Hi Hilal,

this is Mac special problem,
please test this updated version

https://www.dropbox.com/s/mazihvow2rtzaua/calchep_3.7.2.tgz?dl=0

and let us know.

Regards
Alexander

On Tue, 25 Sep 2018, 13:32 Hilal Kucuk, <
<email address hidden>> wrote:

> Question #674404 on CalcHEP changed:
> https://answers.launchpad.net/calchep/+question/674404
>
> Hilal Kucuk posted a new comment:
> Hi Alexander,
>
> Thanks for very quick answer.
>
> I am using Macbook pro, (macos high sierra) 64-bit processor
>
> --
> You received this question notification because your team CalcHEP is an
> answer contact for CalcHEP.
>
--

___________________________
Prof. Alexander S Belyaev (<email address hidden>)
https://www.hep.phys.soton.ac.uk/content/alexander-belyaev
School of Physics & Astronomy, University of Southampton, Office: 5047
SO17 1BJ, TEL.: +44 (0)23 8059 8509

Revision history for this message
Hilal Kucuk (hilalkucuk) said :
#4

I got this calchep version and compiled .

I got this error

Could not open /Users/hilalkucuk/WorkArea/calchep_3.7.2/work/models/extlib2.mdl at /Users/hilalkucuk/WorkArea/calchep_3.7.2/bin/run_batch line 995.

I could not find extlib2.mdl anywhere. I steal it from calchep_3.7.1 and the previous error appears again.

Best wishes

Revision history for this message
Alexander Belyaev (alexander.belyaev) said :
#5

Hi Hilal,

thanks for checking, we will work on this,

i am travelling at the moment,

wil take a look within few days.

Regards,

Alexander

On 25/09/18 13:17, Hilal Kucuk wrote:
> Question #674404 on CalcHEP changed:
> https://answers.launchpad.net/calchep/+question/674404
>
> Hilal Kucuk posted a new comment:
> I got this calchep version and compiled .
>
> I got this error
>
> Could not open
> /Users/hilalkucuk/WorkArea/calchep_3.7.2/work/models/extlib2.mdl at
> /Users/hilalkucuk/WorkArea/calchep_3.7.2/bin/run_batch line 995.
>
> I could not find extlib2.mdl anywhere. I steal it from calchep_3.7.1 and
> the previous error appears again.
>
> Best wishes
>

--
______________________________________________________________________
Prof. Alexander S Belyaev (<email address hidden>)
https://www.hep.phys.soton.ac.uk/content/alexander-belyaev

School of Physics & Astronomy, University of Southampton
Office 5047, SO17 1BJ, TEL: +44 23805 98509, FAX: +44 23805 93910
.....................................................................
Particle Physics Department, Rutherford Appleton Laboratory
Didcot, OX11 0QX, TEL: +44 12354 45562, FAX: +44 12354 46733
.....................................................................
CERN, CH-1211 Geneva 23, Switzerland
Office 40/1-B20, Mailbox: E27910, TEL: +41 2276 71642
______________________________________________________________________

Revision history for this message
Alexander Pukhov (pukhov) said :
#6

OK, I see this bug on Mac.

I'll try to find  it  and improve code. Problem is caused by different
manner of operation with shared libraries in Mac and Linux.

Best

    Alexander Pukhov

On 09/25/2018 02:17 PM, Hilal Kucuk wrote:
> New question #674404 on CalcHEP:
> https://answers.launchpad.net/calchep/+question/674404
>
> I am trying to calculate gamma gamma Higgs decay using batch. I have batch file and use
>
> ./calchep_batch batch_file
>
> I get this error
>
> Undefined symbols for architecture x86_64:
> "_lAAhiggs", referenced from:
> _calcMainFunc in VandP-db9809.o
> "_lGGhiggs", referenced from:
> _calcMainFunc in VandP-db9809.o
> ld: symbol(s) not found for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see invocation)
> make: *** [VandP.so] Error 1
> Compilation of VandP.so failed.
>
>
>
> The part of batch file is
>
>
> Model: SM(+hgg)
> Model changed: False
> Gauge: Feynman
> Process: e,E->Z,h
>
> pdf1: ISR & Beamstrahlung
> pdf2: ISR & Beamstrahlung
> Bunch x+y sizes (nm) : 560
> Bunch length (mm) : 0.4
> Number of particles : 2E+10
>
> p1: 500
> p2: 500
>
> Parameter: Mh=125
>
> Dist parameter: E1
> Dist min: 30
> Dist max: 499
> Dist n bins: 100
> Dist title: e,E->Z,h
> Dist x-title: E1 (GeV)
>
>
> Could you help,please?
>

Revision history for this message
Hilal Kucuk (hilalkucuk) said :
#7

Thanks Alexander. I am looking forward to your answer. :)

Regards.

Revision history for this message
Alexander Pukhov (pukhov) said :
#8

We have to improve instruction for compilation  shared library VandP.so.

Open file CALCHEP/bin/run_batch, line 3784

\t\$(CC) \$(CFLAGS)  -shared -o VandP.so \$(soname_VandP) VandP.c
\$(CALCHEP)/include/VandPgate.c  \$(EXTLIB)
\$(CALCHEP)/lib/libSLHAplus.a \$(CALCHEP)/lib/dummy.a  -lm -lpthread

It should be extended:

\t\$(CC) \$(CFLAGS)  -shared -o VandP.so \$(soname_VandP) VandP.c
\$(CALCHEP)/include/VandPgate.c  \$(EXTLIB)
\$(CALCHEP)/lib/dynamic_me.a  \$(CALCHEP)/lib/libSLHAplus.a
\$(CALCHEP)/lib/ntools.a \$(CALCHEP)/lib/serv.a \$(CALCHEP)/lib/dummy.a
-lm -lpthread

Also you have to delete generated shared libraries.   They are

           Processes/m*/VandP.so

I hope it solves your problem. Please, let me know about results.

Thanks for your note.

        Alexander Pukhov

On 09/25/2018 02:32 PM, Hilal Kucuk wrote:
> Question #674404 on CalcHEP changed:
> https://answers.launchpad.net/calchep/+question/674404
>
> Hilal Kucuk posted a new comment:
> Hi Alexander,
>
> Thanks for very quick answer.
>
> I am using Macbook pro, (macos high sierra) 64-bit processor
>

Revision history for this message
Hilal Kucuk (hilalkucuk) said :
#9

I get same error when I replace the line 3784 with

\t\$(CC) \$(CFLAGS) -shared -o VandP.so \$(soname_VandP) VandP.c
\$(CALCHEP)/include/VandPgate.c \$(EXTLIB)
\$(CALCHEP)/lib/dynamic_me.a \$(CALCHEP)/lib/libSLHAplus.a
\$(CALCHEP)/lib/ntools.a \$(CALCHEP)/lib/serv.a \$(CALCHEP)/lib/dummy.a
-lm -lpthread

the error is

Progress information can be found in the html directory.
Simply open the following link in your browser:
file:///Users/hilalkucuk/WorkArea/calchep_3.7.2/testHiggs/html/index.html
You can also view textual progress reports in /Users/hilalkucuk/WorkArea/calchep_3.7.2/testHiggs/html/index.txt
 and the other .txt files in the html directory.
Events will be stored in the batch_results directory.

Could not open /Users/hilalkucuk/WorkArea/calchep_3.7.2/testHiggs/models/extlib2.mdl at /Users/hilalkucuk/WorkArea/calchep_3.7.2/bin/run_batch line 995

And then I import extlib2.mdl from $CALCHEP/work/models/extlib2.mdl into my_workplace/models/

again the same error exists like

Undefined symbols for architecture x86_64:
  "_lAAhiggs", referenced from:
      _calcMainFunc in VandP-414a66.o
  "_lGGhiggs", referenced from:
      _calcMainFunc in VandP-414a66.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [VandP.so] Error 1
Compilation of VandP.so failed.

Revision history for this message
Alexander Pukhov (pukhov) said :
#10

It looks like you forget to remove old files VandP.so

      rm Processes/m*/VandP.so

About  extlib2.mdl.

start GUI session.  Choose  your model and press Enter to see

"Enter processes"

Close GUI session

Now you should see extlib2.md in models/ directory.

Best

   Alexander Pukhov

On 09/26/2018 01:27 PM, Hilal Kucuk wrote:
> Question #674404 on CalcHEP changed:
> https://answers.launchpad.net/calchep/+question/674404
>
> Hilal Kucuk posted a new comment:
> I get same error when I replace the line 3784 with
>
> \t\$(CC) \$(CFLAGS) -shared -o VandP.so \$(soname_VandP) VandP.c
> \$(CALCHEP)/include/VandPgate.c \$(EXTLIB)
> \$(CALCHEP)/lib/dynamic_me.a \$(CALCHEP)/lib/libSLHAplus.a
> \$(CALCHEP)/lib/ntools.a \$(CALCHEP)/lib/serv.a \$(CALCHEP)/lib/dummy.a
> -lm -lpthread
>
>
> the error is
>
> Progress information can be found in the html directory.
> Simply open the following link in your browser:
> file:///Users/hilalkucuk/WorkArea/calchep_3.7.2/testHiggs/html/index.html
> You can also view textual progress reports in /Users/hilalkucuk/WorkArea/calchep_3.7.2/testHiggs/html/index.txt
> and the other .txt files in the html directory.
> Events will be stored in the batch_results directory.
>
> Could not open
> /Users/hilalkucuk/WorkArea/calchep_3.7.2/testHiggs/models/extlib2.mdl at
> /Users/hilalkucuk/WorkArea/calchep_3.7.2/bin/run_batch line 995
>
> And then I import extlib2.mdl from $CALCHEP/work/models/extlib2.mdl
> into my_workplace/models/
>
> again the same error exists like
>
> Undefined symbols for architecture x86_64:
> "_lAAhiggs", referenced from:
> _calcMainFunc in VandP-414a66.o
> "_lGGhiggs", referenced from:
> _calcMainFunc in VandP-414a66.o
> ld: symbol(s) not found for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see invocation)
> make: *** [VandP.so] Error 1
> Compilation of VandP.so failed.
>

Revision history for this message
Hilal Kucuk (hilalkucuk) said :
#11

Processes/m*/VandP.so have never existed because compilation of VandP.so failed.

You are right, when I started GUI session I have extlib2.md in models/

However, I made everything as you explained, unfortunately, the error does not disappear. I get the same compilation error

Cheers.

Revision history for this message
Alexander Pukhov (pukhov) said :
#12

I guess you implement corrections (or I sent)  with mistyping.

Get

     http://theory.sinp.msu.ru/~pukhov/run_batch

and put it in CALCHEP/bin.

Check that the file has permission for execution

Best

   Alexander Pukhov

On 09/26/2018 04:43 PM, Hilal Kucuk wrote:
> Question #674404 on CalcHEP changed:
> https://answers.launchpad.net/calchep/+question/674404
>
> Status: Answered => Open
>
> Hilal Kucuk is still having a problem:
> Processes/m*/VandP.so have never existed because compilation of VandP.so
> failed.
>
> You are right, when I started GUI session I have extlib2.md in models/
>
> However, I made everything as you explained, unfortunately, the error
> does not disappear. I get the same compilation error
>
> Cheers.
>

Revision history for this message
Hilal Kucuk (hilalkucuk) said :
#13

Hi Alex,

I replace CALCHEP/bin with http://theory.sinp.msu.ru/~pukhov/run_batch

I use the command below

./bin/run_batch batch_file and then

I get same error. It does not change. I also use the other command ./calchep_batch batch_file

It gives same problem.

Revision history for this message
Alexander Belyaev (alexander.belyaev) said :
#14

Hi Hilal,

Can you remove
"Processes" folder
and try again?

Thank you,
Alexander

On 27/09/18 11:52, Hilal Kucuk wrote:
> Question #674404 on CalcHEP changed:
> https://answers.launchpad.net/calchep/+question/674404
>
> Hilal Kucuk posted a new comment:
> Hi Alex,
>
> I replace CALCHEP/bin with http://theory.sinp.msu.ru/~pukhov/run_batch
>
> I use the command below
>
> ./bin/run_batch batch_file and then
>
> I get same error. It does not change. I also use the other command
> ./calchep_batch batch_file
>
> It gives same problem.
>

--
Prof. Alexander S Belyaev (<email address hidden>)
https://www.hep.phys.soton.ac.uk/content/alexander-belyaev

School of Physics & Astronomy, University of Southampton, Office: 5047
SO17 1BJ, TEL.: +44 (0)23 8059 8509; FAX.: +44 (0)23 8059 3910
.....................................................................
Particle Physics Department, Rutherford Appleton Laboratory, Didcot,
OX11 0QX, TEL.: +44 (0)1235 445562; FAX.: +44 (0)1235 446733
.....................................................................
CERN: Office: 40 1-B20 Mailbox: E27910; ccid: 532076
TEL: +41 22 76 71642
______________________________________________________________________

Revision history for this message
Alexander Pukhov (pukhov) said :
#15

Have you removed old VandP.so?

On 09/27/2018 01:52 PM, Hilal Kucuk wrote:
> Question #674404 on CalcHEP changed:
> https://answers.launchpad.net/calchep/+question/674404
>
> Hilal Kucuk posted a new comment:
> Hi Alex,
>
> I replace CALCHEP/bin with http://theory.sinp.msu.ru/~pukhov/run_batch
>
> I use the command below
>
> ./bin/run_batch batch_file and then
>
> I get same error. It does not change. I also use the other command
> ./calchep_batch batch_file
>
> It gives same problem.
>

Revision history for this message
Hilal Kucuk (hilalkucuk) said :
#16

Yes, when I remove Processes directory it works. But I see this message

Error in calculation of cross section for u,D->W+,b,B
 for run Mh120.
Please have a look at cs.o and cs.out in Processes/m2/Feynman/p1/Mh120.
Killing all jobs and quitting.

In the result file, there are

EXTLIBsh aux n_calchep.dSYM prt_1 scale.so session.dat
autoprot.h n_calchep proclib_0.a scale.c scale.so.dSYM

Actually, I do not want to see u,D->W+,b,B process.

Is everything normal? Sorry for asking everything. I am beginner for calchep.

Cheers

Revision history for this message
Alexander Pukhov (pukhov) said :
#17

It is very good that you ask.  I have Linux on  my computer and can not
see bugs which appear  on Mac.
Tell me please,
a) do you use   a model which is distributed  with calchep or some other
model.
b) The same question about batch_file.
c) include in your main the files

  Processes/m2/Feynman/p1/Mh120/cs.o
and
  Processes/m2/Feynman/p1/Mh120/cs.out
and

On 10/01/2018 02:23 PM, Hilal Kucuk wrote:
> Question #674404 on CalcHEP changed:
> https://answers.launchpad.net/calchep/+question/674404
>
> Hilal Kucuk posted a new comment:
> Yes, when I remove Processes directory it works. But I see this message
>
> Error in calculation of cross section for u,D->W+,b,B
> for run Mh120.
> Please have a look at cs.o and cs.out in Processes/m2/Feynman/p1/Mh120.
> Killing all jobs and quitting.
>
> In the result file, there are
>
> EXTLIBsh aux n_calchep.dSYM prt_1 scale.so session.dat
> autoprot.h n_calchep proclib_0.a scale.c scale.so.dSYM
>
> Actually, I do not want to see u,D->W+,b,B process.
>
> Is everything normal? Sorry for asking everything. I am beginner for
> calchep.
>
> Cheers
>

Revision history for this message
Hilal Kucuk (hilalkucuk) said :
#18

Yes, I use SM(+hgg). I do not change batch_file. I just copy it.

What do you mean?
include in your main the files

  Processes/m2/Feynman/p1/Mh120/cs.o
and
  Processes/m2/Feynman/p1/Mh120/cs.out
and

Sorry to not understand.

Revision history for this message
Alexander Pukhov (pukhov) said :
#19

batch writes that  details of  error are presented  in files

Processes/m2/Feynman/p1/Mh120/cs.o
and
Processes/m2/Feynman/p1/Mh120/cs.out

You should see them from work/ directory.
They are short text files. Just copy them to mail.

Best
   Alexander Pukhov

On 10/01/2018 05:12 PM, Hilal Kucuk wrote:
> Question #674404 on CalcHEP changed:
> https://answers.launchpad.net/calchep/+question/674404
>
> Hilal Kucuk posted a new comment:
> Yes, I use SM(+hgg). I do not change batch_file. I just copy it.
>
> What do you mean?
> include in your main the files
>
> Processes/m2/Feynman/p1/Mh120/cs.o
> and
> Processes/m2/Feynman/p1/Mh120/cs.out
> and
>
> Sorry to not understand.
>

Revision history for this message
Hilal Kucuk (hilalkucuk) said :
#20

Hello again,

Sorry for late answer my lecture work is too tough. I copied these two files.

It is writen on cs.o

Can not evaluate constrained parameter 'LAAh'

and

writen on cs.out

CH Error 122

Revision history for this message
Alexander Pukhov (pukhov) said :
#21

1) Update Calchep/bin/run_batch

   Improved version is here

          http://theory.sinp.msu.ru/~pukhov/run_batch

2)  Remove  VandP.so files
                rm   Processes/*/VandP.so
Thank you for your message. We know about this bug and will update
version tomorrow.

This bug appears only on Mac computer.

Best
   Alexander Pukhov

On 10/04/2018 04:42 PM, Hilal Kucuk wrote:
> Question #674404 on CalcHEP changed:
> https://answers.launchpad.net/calchep/+question/674404
>
> Status: Answered => Open
>
> Hilal Kucuk is still having a problem:
> Hello again,
>
> Sorry for late answer my lecture work is too tough. I copied these two
> files.
>
> It is writen on cs.o
>
> Can not evaluate constrained parameter 'LAAh'
>
> and
>
> writen on cs.out
>
> CH Error 122
>

Can you help with this problem?

Provide an answer of your own, or ask Hilal Kucuk for more information if necessary.

To post a message you must log in.