return error code 139 when i am trying to launch c-compiler for symbolic calculation on MSSM model

Asked by qingyun wang

i was following the calchep tutorials step by step to learn Calchep.
 I successfully entered the process h->2*x for Standard model and then squared it, choose symbolic calculations, and launch c-compiler. Every thing works fine.
But when I try to do the same thing and launch c-compiler in MSSM(EWSB)(which I download from http://theory.sinp.msu.ru/~pukhov/calchep.html), The GUI window is closed automatically, and i got following error massage on the terminal:

./calchep: line 50: 6960 Segmentation fault: 11 $CALCHEP/bin/s_calchep $*
CalcHEP has finished with error code 139

I tried different process and they all give me the same error massage when I am trying to launch c-compiler or make&launch n_calchep.

Please help me out,
Thanks,

Qingyun

Question information

Language:
English Edit question
Status:
Solved
For:
CalcHEP Edit question
Assignee:
No assignee Edit question
Solved by:
Alexander Pukhov
Solved:
Last query:
Last reply:
Revision history for this message
Alexander Pukhov (pukhov) said :
#1

Unfortunately I can not reproduce this bug. In my computer it works fine.

So, C-code works fine, but when you call C-compiler you get
Segmentation fault and symbolic screen is terminated.

I guess you
a) put MSSM_10.14 in CalcHEP directory
b) call make
c) use IMPORT MODEL menu option.

May be path to CalcHEP is very long on your computer?

Suppose you launch calchep in CalcHEP/work directory.
Then you can try to call it under debbuger gdb

gdb ../bin/s_calchep
r
     and after Segmentation fault call
bt
      send me what you see on the screen after 'bt' which should to
write sequence of commands which leads to crush.
      To quit debbuger call
q

Best
    Alexander Pukhov

On 10/18/2017 07:37 AM, qingyun wang wrote:
> New question #659598 on CalcHEP:
> https://answers.launchpad.net/calchep/+question/659598
>
> i was following the calchep tutorials step by step to learn Calchep.
> I successfully entered the process h->2*x for Standard model and then squared it, choose symbolic calculations, and launch c-compiler. Every thing works fine.
> But when I try to do the same thing and launch c-compiler in MSSM(EWSB)(which I download from http://theory.sinp.msu.ru/~pukhov/calchep.html), The GUI window is closed automatically, and i got following error massage on the terminal:
>
> ./calchep: line 50: 6960 Segmentation fault: 11 $CALCHEP/bin/s_calchep $*
> CalcHEP has finished with error code 139
>
> I tried different process and they all give me the same error massage when I am trying to launch c-compiler or make&launch n_calchep.
>
>
> Please help me out,
> Thanks,
>
> Qingyun
>

Revision history for this message
qingyun wang (qwang63) said :
#2

Dear Alexander,

Indeed, the old problem disappear after I make the path to Calchep shorter.
However, I got another problem when call C-compiler or make&launch n_calchep. When I call c-compiler or make&launch n_calchep in Standard model, I got a new GUI window and everything works fine. But, when I try to do this for MSSM, there is no new window coming out and I got a massage: n_calchep is not generated. And the terminal give me following massage:

bash-3.2$ ./calchep
ar: creating archive proclib_0.a
ld: warning: ignoring file /Users/qingyunwang/Desktop/research/calchep/MSSM/lib/aLib.a, file was built for archive which is not the architecture being linked (x86_64): /Users/qingyunwang/Desktop/research/calchep/MSSM/lib/aLib.a
Undefined symbols for architecture x86_64:
  "_Lambda1", referenced from:
      _calcMainFunc in proclib_0.a(VandP.o)
  "_Lambda3", referenced from:
      _calcMainFunc in proclib_0.a(VandP.o)
  "_Lambda6", referenced from:
      _calcMainFunc in proclib_0.a(VandP.o)
  "_calcLambdas", referenced from:
      _calcMainFunc in proclib_0.a(VandP.o)
  "_deltaMb", referenced from:
      _calcMainFunc in proclib_0.a(VandP.o)
  "_deltaMl", referenced from:
      _calcMainFunc in proclib_0.a(VandP.o)
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status

I installed MSSM by
a) put MSSM_10.14 in CalcHEP directory
b) call make
c) use IMPORT MODEL menu option.

However I noticed that, when I was calling make, I got following massage

bash-3.2$ make
./getFlags
MAKE= make
UNIX Darwin
C compiler detected
: shared liblary generation OK
Fortran compiler is detected
gfortran OK
FFLAGS OK
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C SuSpect
gfortran -c -o bsg.o bsg.f
bsg.f:352:10:

      & -190./8073.*eta**(-35d0/23d0)-359./3105.*eta**(-17./23.)+
          1
Warning: Extension: Unary operator following arithmetic operator (use parentheses) at (1)
ar rv suspect.a bsg.o
ar: creating archive suspect.a
a - bsg.o
gfortran -c -o suspect2.o suspect2.f
ar rv suspect.a suspect2.o
a - suspect2.o
gfortran -c -o twoloophiggs.o twoloophiggs.f
ar rv suspect.a twoloophiggs.o
a - twoloophiggs.o
ranlib -c suspect.a
rm -f bsg.o suspect2.o twoloophiggs.o
gfortran -o suspect.exe suspect2_call.f suspect.a
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C lib
make[1]: Nothing to be done for `aLib.a'.
./addPath /Users/qingyunwang/Desktop/research/calchep/MSSM

So I think the problem may came from this so called aLib.a file, although I do not know how to fix it. Could you please help me to fix this problem?

 I really very appreciate your help.

Qingyun

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

Thanks a lot for your notes. I'll improve bug related to path length.

My next mistake.
    MSSM_10.14 contains lib/aLib.a generated for Linux.
    Remove this file and call "make" in MSSM_10.14 once more.

Best
     Alexander Pukhov

On 10/18/2017 10:23 PM, qingyun wang wrote:
> Question #659598 on CalcHEP changed:
> https://answers.launchpad.net/calchep/+question/659598
>
> Status: Answered => Open
>
> qingyun wang is still having a problem:
> Dear Alexander,
>
> Indeed, the old problem disappear after I make the path to Calchep shorter.
> However, I got another problem when call C-compiler or make&launch n_calchep. When I call c-compiler or make&launch n_calchep in Standard model, I got a new GUI window and everything works fine. But, when I try to do this for MSSM, there is no new window coming out and I got a massage: n_calchep is not generated. And the terminal give me following massage:
>
> bash-3.2$ ./calchep
> ar: creating archive proclib_0.a
> ld: warning: ignoring file /Users/qingyunwang/Desktop/research/calchep/MSSM/lib/aLib.a, file was built for archive which is not the architecture being linked (x86_64): /Users/qingyunwang/Desktop/research/calchep/MSSM/lib/aLib.a
> Undefined symbols for architecture x86_64:
> "_Lambda1", referenced from:
> _calcMainFunc in proclib_0.a(VandP.o)
> "_Lambda3", referenced from:
> _calcMainFunc in proclib_0.a(VandP.o)
> "_Lambda6", referenced from:
> _calcMainFunc in proclib_0.a(VandP.o)
> "_calcLambdas", referenced from:
> _calcMainFunc in proclib_0.a(VandP.o)
> "_deltaMb", referenced from:
> _calcMainFunc in proclib_0.a(VandP.o)
> "_deltaMl", referenced from:
> _calcMainFunc in proclib_0.a(VandP.o)
> ld: symbol(s) not found for architecture x86_64
> collect2: error: ld returned 1 exit status
>
>
> I installed MSSM by
> a) put MSSM_10.14 in CalcHEP directory
> b) call make
> c) use IMPORT MODEL menu option.
>
> However I noticed that, when I was calling make, I got following massage
>
> bash-3.2$ make
> ./getFlags
> MAKE= make
> UNIX Darwin
> C compiler detected
> : shared liblary generation OK
> Fortran compiler is detected
> gfortran OK
> FFLAGS OK
> /Applications/Xcode.app/Contents/Developer/usr/bin/make -C SuSpect
> gfortran -c -o bsg.o bsg.f
> bsg.f:352:10:
>
> & -190./8073.*eta**(-35d0/23d0)-359./3105.*eta**(-17./23.)+
> 1
> Warning: Extension: Unary operator following arithmetic operator (use parentheses) at (1)
> ar rv suspect.a bsg.o
> ar: creating archive suspect.a
> a - bsg.o
> gfortran -c -o suspect2.o suspect2.f
> ar rv suspect.a suspect2.o
> a - suspect2.o
> gfortran -c -o twoloophiggs.o twoloophiggs.f
> ar rv suspect.a twoloophiggs.o
> a - twoloophiggs.o
> ranlib -c suspect.a
> rm -f bsg.o suspect2.o twoloophiggs.o
> gfortran -o suspect.exe suspect2_call.f suspect.a
> /Applications/Xcode.app/Contents/Developer/usr/bin/make -C lib
> make[1]: Nothing to be done for `aLib.a'.
> ./addPath /Users/qingyunwang/Desktop/research/calchep/MSSM
>
> So I think the problem may came from this so called aLib.a file,
> although I do not know how to fix it. Could you please help me to fix
> this problem?
>
> I really very appreciate your help.
>
> Qingyun
>

Revision history for this message
qingyun wang (qwang63) said :
#4

Dear Alexander,

Removing the aLib.a and then call "make" once more perfectly solved my problem! This looks just like a magic for me. Since the aLib.a which I just deleted appear again after I call "make" once more, but this time I am able launch c-compiler and it give me a new GUI window as expected.

I really appreciate your help.

best,
Qingyun

Revision history for this message
qingyun wang (qwang63) said :
#5

Thanks Alexander Pukhov, that solved my question.