compiling error on v1.35

127 views
Skip to first unread message

Carlos

unread,
Sep 24, 2008, 5:31:32 AM9/24/08
to SuperBayeS Users
Hi,
just tried to compile the new v1.35 in a RedHat Desktop (release 4)
with ifort version 10.1.018
and gcc 4.1.2. I obtained the following error when 'make all':

gcc -fsigned-char -Iinclude -I../chep_crt/include -I../service2/
include -I../polynom/include -I../getmem/include -I../../include -
DNUM_LONG_LONG -c -o c_out.o out/c_out.c
out/c_out.c:1022: error: conflicting types for 'c_prog'
include/c_out.h:5: error: previous declaration of 'c_prog' was here
out/c_out.c:1022: error: conflicting types for 'c_prog'
include/c_out.h:5: error: previous declaration of 'c_prog' was here
make[3]: *** [c_out.o] Error 1
rm drawdiag.o read_mdl.o screen.o draw_ampl.o physics.o rfactor.o
process.o cweight.o s_files.o constr.o prepdiag.o ghosts.o lbl.o
pvars.o colorf.o diaprins.o r_code.o m_utils.o pre_read.o reader0.o
denominators.o chess.o syst2.o squar.o saveres.o symbolic.o showgrph.o
model.o sos.odiagrams.o
make[3]: Leaving directory `/home/cph/software/SuperBayes-v1.35/
micromegas/CalcHEP/c_source/symb'
make[2]: *** [COMPILE] Error 2
make[2]: Leaving directory `/home/cph/software/SuperBayes-v1.35/
micromegas/CalcHEP'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/cph/software/SuperBayes-v1.35/
micromegas'
make: *** [micromegaslib] Error 2

roberto ruiz

unread,
Sep 24, 2008, 8:27:11 AM9/24/08
to SuperBayeS Users

Hi Carlos,

For some reason the C intel compiler is not exported
for the micromegas compilation ( ie it should try
to compile the code with icc instead with gcc).
Do you have the C and C++ intel compilers installed ?
If it is so, pls edit "micromegas/CalcHEP/getFlags".
You will see something like:


defaultFlags()
{

HXll=
LX11=-lX11
SNUM=
FLOCK=
SO=so
echo UNIX `uname`
case `uname` in

Linux) CC=$CC
CFLAGS=$CFLAGS
lDL="-rdynamic -ldl" CFLAGSD=
SHARED=-shared
SONAME=
FC=ifort
FFLAGS="-fno-automatic" lFort=-lg2c
CXX=$CPPC
RANLIB=ranlib
;;
esac
if(test -x "`which gmake`") then
MAKE=gmake
else
echo OK
MAKE=make
fi

}

Well, do replace "CC = $CC" by "CC = icc"
and "CXX=$CPPC" by "CXX=icpc"
It should work.
Otherwise you have to get the C compilers.



Regards
Roberto.

Carlos

unread,
Sep 24, 2008, 11:21:56 AM9/24/08
to SuperBayeS Users
Hi,
Thanks for your prompt answer. I installed icc and icpc (version
10.1.018)
and explicitly call them in getFlags. Now I get:

settings.o(.text+0x61): In function `settings_mp_diagonalize_':
: undefined reference to `ssyev_'
settings.o(.text+0x274): In function `settings_mp_matrix_inverse_':
: undefined reference to `ssyev_'
../bdecay/lib/libBDecay.a(gen.o)(.text+0x134d3): In function
`mixmat_.':
: undefined reference to `zheev_'
../bdecay/lib/libBDecay.a(gen.o)(.text+0x143fb): In function
`svdmat_':
: undefined reference to `zgesvd_'
../multinest/libnest3.a(nested.o)(.text+0x8c4): In function
`nested_mp_ellintersect_':
: undefined reference to `dgeev_'

and a few hundred lines with undefine reference messages
from ../multinest/libnest3.a

cheers,
Carlos.

Roberto Trotta

unread,
Sep 24, 2008, 5:08:46 PM9/24/08
to SuperBayeS Users
Hi Carlos

it seems to me that this has to do with the LAPACK library not being
linked correctly. Have you changed the path to Lapack to the one in
your system?

Roberto
Reply all
Reply to author
Forward
0 new messages