Installation problem in MacOS

Asked by Saki Khan

Hi,
I am trying to install CalcHEP in my MacOS. But getting the same error again and again.

./getFlags
MAKE= make
UNAME=Darwin ???
numerical type Ok
C compiler detected
: shared liblary generation OK
X11 OK
-DNUM_LONG_LONG option is refused
the type double will present whole numbers in symbolic calculations
Fortran compiler is detected
gfortran OK
FFLAGS OK
Problem with C-FORTRAN linking. Not fatal.
Find the name and disposition of Fortran libraries and fill
    lFort=" -L <disposition> -l<name> "
in FlagsForSh
./sbin/setPath /Users/saki.khan/Dropbox/HEP_TOOLS/calchep_3.8.6
chmod 755 mkWORKdir
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C c_source
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C getmem
clang -g -fsigned-char -std=gnu99 -fPIC -Iinclude -I../chep_crt/include -c -o getmem.o getmem.c
ar rv ../../lib/serv.a getmem.o
ar: creating archive ../../lib/serv.a
a - getmem.o
ranlib -c ../../lib/serv.a
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C chep_crt
clang -g -fsigned-char -std=gnu99 -fPIC -Iinclude -I../getmem/include -c -o crt.o crt.c
ar rv ../../lib/serv.a crt.o
a - crt.o
clang -g -fsigned-char -std=gnu99 -fPIC -Iinclude -I../getmem/include -c -o crt_util.o crt_util.c
ar rv ../../lib/serv.a crt_util.o
a - crt_util.o
clang -g -fsigned-char -std=gnu99 -fPIC -Iinclude -I../getmem/include -c -o edittab.o edittab.c
ar rv ../../lib/serv.a edittab.o
a - edittab.o
clang -g -fsigned-char -std=gnu99 -fPIC -Iinclude -I../getmem/include -c -o file_scr.o file_scr.c
ar rv ../../lib/serv.a file_scr.o
a - file_scr.o
clang -g -fsigned-char -std=gnu99 -fPIC -Iinclude -I../getmem/include -c -o help.o help.c
ar rv ../../lib/serv.a help.o
a - help.o
clang -g -fsigned-char -std=gnu99 -fPIC -Iinclude -I../getmem/include -c -o pictures.o pictures.c
ar rv ../../lib/serv.a pictures.o
a - pictures.o
clang -g -fsigned-char -std=gnu99 -fPIC -Iinclude -I../getmem/include -c -o syst.o syst.c
ar rv ../../lib/serv.a syst.o
a - syst.o
clang -g -fsigned-char -std=gnu99 -fPIC -Iinclude -I../getmem/include -c -o tex_util.o tex_util.c
ar rv ../../lib/serv.a tex_util.o
a - tex_util.o
clang -g -fsigned-char -std=gnu99 -fPIC -Iinclude -I../getmem/include -c -o viewdir.o viewdir.c
ar rv ../../lib/serv.a viewdir.o
a - viewdir.o
clang -g -fsigned-char -std=gnu99 -fPIC -Iinclude -I../getmem/include -c -o X11_crt0.o xwin/X11_crt0.c
xwin/X11_crt0.c:178:30: warning: using integer absolute value function 'abs'
      when argument is of floating point type [-Wabsolute-value]
        diff=2*abs(w-wBest)+ abs( h -1.7*w)+ (w- w_)/2 ;
                             ^
xwin/X11_crt0.c:178:30: note: use function 'fabs' instead
        diff=2*abs(w-wBest)+ abs( h -1.7*w)+ (w- w_)/2 ;
                             ^~~
                             fabs
1 warning generated.
ar rv ../../lib/serv.a X11_crt0.o
a - X11_crt0.o
ranlib -c ../../lib/serv.a
cp ../../lib/serv.a ../../lib/servNoX11.a
clang -c -g -fsigned-char -std=gnu99 -fPIC -Iinclude -I../getmem/include -o noxwin/X11_crt0.o noxwin/X11_crt0.c
ar d ../../lib/servNoX11.a X11_crt0.o
ar r ../../lib/servNoX11.a noxwin/X11_crt0.o
ranlib -c ../../lib/servNoX11.a
rm noxwin/X11_crt0.o
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C service2
clang -g -fsigned-char -std=gnu99 -fPIC -Iinclude -I../../include -I../chep_crt/include -I../getmem/include -c -o calc.o calc.c
ar rv ../../lib/serv.a calc.o
a - calc.o
clang -g -fsigned-char -std=gnu99 -fPIC -Iinclude -I../../include -I../chep_crt/include -I../getmem/include -c -o fcompare.o fcompare.c
ar rv ../../lib/serv.a fcompare.o
a - fcompare.o
clang -g -fsigned-char -std=gnu99 -fPIC -Iinclude -I../../include -I../chep_crt/include -I../getmem/include -c -o files.o files.c
ar rv ../../lib/serv.a files.o
a - files.o
clang -g -fsigned-char -std=gnu99 -fPIC -Iinclude -I../../include -I../chep_crt/include -I../getmem/include -c -o paragraphs.o paragraphs.c
ar rv ../../lib/serv.a paragraphs.o
a - paragraphs.o
clang -g -fsigned-char -std=gnu99 -fPIC -Iinclude -I../../include -I../chep_crt/include -I../getmem/include -c -o parser.o parser.c
ar rv ../../lib/serv.a parser.o
a - parser.o
clang -g -fsigned-char -std=gnu99 -fPIC -Iinclude -I../../include -I../chep_crt/include -I../getmem/include -c -o read_func.o read_func.c
ar rv ../../lib/serv.a read_func.o
a - read_func.o
clang -g -fsigned-char -std=gnu99 -fPIC -Iinclude -I../../include -I../chep_crt/include -I../getmem/include -c -o sets.o sets.c
ar rv ../../lib/serv.a sets.o
a - sets.o
clang -g -fsigned-char -std=gnu99 -fPIC -Iinclude -I../../include -I../chep_crt/include -I../getmem/include -c -o writeF.o writeF.c
ar rv ../../lib/serv.a writeF.o
a - writeF.o
clang -g -fsigned-char -std=gnu99 -fPIC -Iinclude -I../../include -I../chep_crt/include -I../getmem/include -Wl,--warn-common -o ../../bin/calc main_calc.c ../../lib/serv.a -lm
ld: unknown option: --warn-common
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [../../bin/calc] Error 1
rm calc.o writeF.o fcompare.o files.o sets.o read_func.o parser.o paragraphs.o
make[1]: *** [all] Error 2
make: *** [COMPILE] Error 2

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
Best Alexander Pukhov (pukhov) said :
#1

Thank you for your message.

I see, the linker option  --warn-common  is not supported by your computer.

This option needs only to write a warning if some global parameter is
defined twice. Some compilers  allow twice defined global parameters,
some not.

Usually  linux  compilers allow it, but recently it appears that new Mac
compiler does not allow multiple definition. So, we improved the code
and include  warning  in compiler options.

Mow we see that there are compiler that do  not support warning ...

OK. Warning is removed.  Please downloads new version 3.8.7.

Best

    Alexander Pukhov

On 15.10.2020 9:11, Saki Khan wrote:
> New question #693471 on CalcHEP:
> https://answers.launchpad.net/calchep/+question/693471
>
> Hi,
> I am trying to install CalcHEP in my MacOS. But getting the same error again and again.
>
> ./getFlags
> MAKE= make
> UNAME=Darwin ???
> numerical type Ok
> C compiler detected
> : shared liblary generation OK
> X11 OK
> -DNUM_LONG_LONG option is refused
> the type double will present whole numbers in symbolic calculations
> Fortran compiler is detected
> gfortran OK
> FFLAGS OK
> Problem with C-FORTRAN linking. Not fatal.
> Find the name and disposition of Fortran libraries and fill
> lFort=" -L <disposition> -l<name> "
> in FlagsForSh
> ./sbin/setPath /Users/saki.khan/Dropbox/HEP_TOOLS/calchep_3.8.6
> chmod 755 mkWORKdir
> /Applications/Xcode.app/Contents/Developer/usr/bin/make -C c_source
> /Applications/Xcode.app/Contents/Developer/usr/bin/make -C getmem
> clang -g -fsigned-char -std=gnu99 -fPIC -Iinclude -I../chep_crt/include -c -o getmem.o getmem.c
> ar rv ../../lib/serv.a getmem.o
> ar: creating archive ../../lib/serv.a
> a - getmem.o
> ranlib -c ../../lib/serv.a
> /Applications/Xcode.app/Contents/Developer/usr/bin/make -C chep_crt
> clang -g -fsigned-char -std=gnu99 -fPIC -Iinclude -I../getmem/include -c -o crt.o crt.c
> ar rv ../../lib/serv.a crt.o
> a - crt.o
> clang -g -fsigned-char -std=gnu99 -fPIC -Iinclude -I../getmem/include -c -o crt_util.o crt_util.c
> ar rv ../../lib/serv.a crt_util.o
> a - crt_util.o
> clang -g -fsigned-char -std=gnu99 -fPIC -Iinclude -I../getmem/include -c -o edittab.o edittab.c
> ar rv ../../lib/serv.a edittab.o
> a - edittab.o
> clang -g -fsigned-char -std=gnu99 -fPIC -Iinclude -I../getmem/include -c -o file_scr.o file_scr.c
> ar rv ../../lib/serv.a file_scr.o
> a - file_scr.o
> clang -g -fsigned-char -std=gnu99 -fPIC -Iinclude -I../getmem/include -c -o help.o help.c
> ar rv ../../lib/serv.a help.o
> a - help.o
> clang -g -fsigned-char -std=gnu99 -fPIC -Iinclude -I../getmem/include -c -o pictures.o pictures.c
> ar rv ../../lib/serv.a pictures.o
> a - pictures.o
> clang -g -fsigned-char -std=gnu99 -fPIC -Iinclude -I../getmem/include -c -o syst.o syst.c
> ar rv ../../lib/serv.a syst.o
> a - syst.o
> clang -g -fsigned-char -std=gnu99 -fPIC -Iinclude -I../getmem/include -c -o tex_util.o tex_util.c
> ar rv ../../lib/serv.a tex_util.o
> a - tex_util.o
> clang -g -fsigned-char -std=gnu99 -fPIC -Iinclude -I../getmem/include -c -o viewdir.o viewdir.c
> ar rv ../../lib/serv.a viewdir.o
> a - viewdir.o
> clang -g -fsigned-char -std=gnu99 -fPIC -Iinclude -I../getmem/include -c -o X11_crt0.o xwin/X11_crt0.c
> xwin/X11_crt0.c:178:30: warning: using integer absolute value function 'abs'
> when argument is of floating point type [-Wabsolute-value]
> diff=2*abs(w-wBest)+ abs( h -1.7*w)+ (w- w_)/2 ;
> ^
> xwin/X11_crt0.c:178:30: note: use function 'fabs' instead
> diff=2*abs(w-wBest)+ abs( h -1.7*w)+ (w- w_)/2 ;
> ^~~
> fabs
> 1 warning generated.
> ar rv ../../lib/serv.a X11_crt0.o
> a - X11_crt0.o
> ranlib -c ../../lib/serv.a
> cp ../../lib/serv.a ../../lib/servNoX11.a
> clang -c -g -fsigned-char -std=gnu99 -fPIC -Iinclude -I../getmem/include -o noxwin/X11_crt0.o noxwin/X11_crt0.c
> ar d ../../lib/servNoX11.a X11_crt0.o
> ar r ../../lib/servNoX11.a noxwin/X11_crt0.o
> ranlib -c ../../lib/servNoX11.a
> rm noxwin/X11_crt0.o
> /Applications/Xcode.app/Contents/Developer/usr/bin/make -C service2
> clang -g -fsigned-char -std=gnu99 -fPIC -Iinclude -I../../include -I../chep_crt/include -I../getmem/include -c -o calc.o calc.c
> ar rv ../../lib/serv.a calc.o
> a - calc.o
> clang -g -fsigned-char -std=gnu99 -fPIC -Iinclude -I../../include -I../chep_crt/include -I../getmem/include -c -o fcompare.o fcompare.c
> ar rv ../../lib/serv.a fcompare.o
> a - fcompare.o
> clang -g -fsigned-char -std=gnu99 -fPIC -Iinclude -I../../include -I../chep_crt/include -I../getmem/include -c -o files.o files.c
> ar rv ../../lib/serv.a files.o
> a - files.o
> clang -g -fsigned-char -std=gnu99 -fPIC -Iinclude -I../../include -I../chep_crt/include -I../getmem/include -c -o paragraphs.o paragraphs.c
> ar rv ../../lib/serv.a paragraphs.o
> a - paragraphs.o
> clang -g -fsigned-char -std=gnu99 -fPIC -Iinclude -I../../include -I../chep_crt/include -I../getmem/include -c -o parser.o parser.c
> ar rv ../../lib/serv.a parser.o
> a - parser.o
> clang -g -fsigned-char -std=gnu99 -fPIC -Iinclude -I../../include -I../chep_crt/include -I../getmem/include -c -o read_func.o read_func.c
> ar rv ../../lib/serv.a read_func.o
> a - read_func.o
> clang -g -fsigned-char -std=gnu99 -fPIC -Iinclude -I../../include -I../chep_crt/include -I../getmem/include -c -o sets.o sets.c
> ar rv ../../lib/serv.a sets.o
> a - sets.o
> clang -g -fsigned-char -std=gnu99 -fPIC -Iinclude -I../../include -I../chep_crt/include -I../getmem/include -c -o writeF.o writeF.c
> ar rv ../../lib/serv.a writeF.o
> a - writeF.o
> clang -g -fsigned-char -std=gnu99 -fPIC -Iinclude -I../../include -I../chep_crt/include -I../getmem/include -Wl,--warn-common -o ../../bin/calc main_calc.c ../../lib/serv.a -lm
> ld: unknown option: --warn-common
> clang: error: linker command failed with exit code 1 (use -v to see invocation)
> make[2]: *** [../../bin/calc] Error 1
> rm calc.o writeF.o fcompare.o files.o sets.o read_func.o parser.o paragraphs.o
> make[1]: *** [all] Error 2
> make: *** [COMPILE] Error 2
>

Revision history for this message
Saki Khan (saki-khan) said :
#2

Thanks Alexander Pukhov, that solved my question.