[Subject Prev][Subject Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hts-users:02413] Re: trouble compiling hts


This usually mean that a file (i.e. lbfgs) has been compiled for 32 bits while the rest was compiled as 64bits (or the opposite)

if that is the case you'll have to force the compiler to use the same everywhere (compiler flag -m64 or -m32)

you can check that the files match by using the command :

$ file filename.o

for instance :

$ file HShell.o
HShell.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped

$ file lbfgs.o
lbfgs.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped

Alexis

Denis Fitzpatrick wrote :
Help! After a successful patch and configure, the make fails as follows on possibly a problem with lbfgs:

denis-fitzpatricks-mac-pro:htk denisfitz$ make all
(cd HTKLib && make HTKLib.a) \
|| case "" in *k*) fail=yes;; *) exit 1;; esac;
gcc -ansi -g -O2 -DNO_AUDIO -D'ARCH="darwin"' -I/usr/include/malloc -Wall -Wno-switch -g -O2 -D_HAS_FORTRAN -I. -DPHNALG -c -o HGraf.o HGraf.c gcc -ansi -g -O2 -DNO_AUDIO -D'ARCH="darwin"' -I/usr/include/malloc -Wall -Wno-switch -g -O2 -D_HAS_FORTRAN -I. -DPHNALG -c -o esig_asc.o esig_asc.c gcc -ansi -g -O2 -DNO_AUDIO -D'ARCH="darwin"' -I/usr/include/malloc -Wall -Wno-switch -g -O2 -D_HAS_FORTRAN -I. -DPHNALG -c -o esig_edr.o esig_edr.c
esig_edr.c: In function ‘EdrReadLong’:
esig_edr.c:1192: warning: suggest parentheses around && within ||
esig_edr.c:1204: warning: suggest parentheses around && within ||
esig_edr.c: In function ‘EdrReadUlong’:
esig_edr.c:1341: warning: suggest parentheses around && within ||
gcc -ansi -g -O2 -DNO_AUDIO -D'ARCH="darwin"' -I/usr/include/malloc -Wall -Wno-switch -g -O2 -D_HAS_FORTRAN -I. -DPHNALG -c -o esignal.o esignal.c gcc -ansi -g -O2 -DNO_AUDIO -D'ARCH="darwin"' -I/usr/include/malloc -Wall -Wno-switch -g -O2 -D_HAS_FORTRAN -I. -DPHNALG -c -o esig_nat.o esig_nat.c gcc -ansi -g -O2 -DNO_AUDIO -D'ARCH="darwin"' -I/usr/include/malloc -Wall -Wno-switch -g -O2 -D_HAS_FORTRAN -I. -DPHNALG -c -o HAdapt.o HAdapt.c
HAdapt.c: In function ‘UpdateBaseAccs’:
HAdapt.c:1578: warning: ignoring #pragma omp parallel
gcc -ansi -g -O2 -DNO_AUDIO -D'ARCH="darwin"' -I/usr/include/malloc -Wall -Wno-switch -g -O2 -D_HAS_FORTRAN -I. -DPHNALG -c -o HArc.o HArc.c gcc -ansi -g -O2 -DNO_AUDIO -D'ARCH="darwin"' -I/usr/include/malloc -Wall -Wno-switch -g -O2 -D_HAS_FORTRAN -I. -DPHNALG -c -o HAudio.o HAudio.c gcc -ansi -g -O2 -DNO_AUDIO -D'ARCH="darwin"' -I/usr/include/malloc -Wall -Wno-switch -g -O2 -D_HAS_FORTRAN -I. -DPHNALG -c -o HDict.o HDict.c gcc -ansi -g -O2 -DNO_AUDIO -D'ARCH="darwin"' -I/usr/include/malloc -Wall -Wno-switch -g -O2 -D_HAS_FORTRAN -I. -DPHNALG -c -o HExactMPE.o HExactMPE.c
HExactMPE.c: In function ‘DoCorrectness’:
HExactMPE.c:343: warning: value computed is not used
gcc -ansi -g -O2 -DNO_AUDIO -D'ARCH="darwin"' -I/usr/include/malloc -Wall -Wno-switch -g -O2 -D_HAS_FORTRAN -I. -DPHNALG -c -o HFB.o HFB.c gcc -ansi -g -O2 -DNO_AUDIO -D'ARCH="darwin"' -I/usr/include/malloc -Wall -Wno-switch -g -O2 -D_HAS_FORTRAN -I. -DPHNALG -c -o HFBLat.o HFBLat.c gcc -ansi -g -O2 -DNO_AUDIO -D'ARCH="darwin"' -I/usr/include/malloc -Wall -Wno-switch -g -O2 -D_HAS_FORTRAN -I. -DPHNALG -c -o HGen.o HGen.c
HGen.c: In function ‘Calc_WUM_and_WUW’:
HGen.c:1116: warning: ignoring #pragma omp parallel
gcc -ansi -g -O2 -DNO_AUDIO -D'ARCH="darwin"' -I/usr/include/malloc -Wall -Wno-switch -g -O2 -D_HAS_FORTRAN -I. -DPHNALG -c -o HLabel.o HLabel.c gcc -ansi -g -O2 -DNO_AUDIO -D'ARCH="darwin"' -I/usr/include/malloc -Wall -Wno-switch -g -O2 -D_HAS_FORTRAN -I. -DPHNALG -c -o HLat.o HLat.c gcc -ansi -g -O2 -DNO_AUDIO -D'ARCH="darwin"' -I/usr/include/malloc -Wall -Wno-switch -g -O2 -D_HAS_FORTRAN -I. -DPHNALG -c -o HLM.o HLM.c gcc -ansi -g -O2 -DNO_AUDIO -D'ARCH="darwin"' -I/usr/include/malloc -Wall -Wno-switch -g -O2 -D_HAS_FORTRAN -I. -DPHNALG -c -o HMap.o HMap.c gcc -ansi -g -O2 -DNO_AUDIO -D'ARCH="darwin"' -I/usr/include/malloc -Wall -Wno-switch -g -O2 -D_HAS_FORTRAN -I. -DPHNALG -c -o HMath.o HMath.c gcc -ansi -g -O2 -DNO_AUDIO -D'ARCH="darwin"' -I/usr/include/malloc -Wall -Wno-switch -g -O2 -D_HAS_FORTRAN -I. -DPHNALG -c -o HMem.o HMem.c gcc -ansi -g -O2 -DNO_AUDIO -D'ARCH="darwin"' -I/usr/include/malloc -Wall -Wno-switch -g -O2 -D_HAS_FORTRAN -I. -DPHNALG -c -o HModel.o HModel.c gcc -ansi -g -O2 -DNO_AUDIO -D'ARCH="darwin"' -I/usr/include/malloc -Wall -Wno-switch -g -O2 -D_HAS_FORTRAN -I. -DPHNALG -c -o HNet.o HNet.c gcc -ansi -g -O2 -DNO_AUDIO -D'ARCH="darwin"' -I/usr/include/malloc -Wall -Wno-switch -g -O2 -D_HAS_FORTRAN -I. -DPHNALG -c -o HParm.o HParm.c gcc -ansi -g -O2 -DNO_AUDIO -D'ARCH="darwin"' -I/usr/include/malloc -Wall -Wno-switch -g -O2 -D_HAS_FORTRAN -I. -DPHNALG -c -o HRec.o HRec.c gcc -ansi -g -O2 -DNO_AUDIO -D'ARCH="darwin"' -I/usr/include/malloc -Wall -Wno-switch -g -O2 -D_HAS_FORTRAN -I. -DPHNALG -c -o HShell.o HShell.c gcc -ansi -g -O2 -DNO_AUDIO -D'ARCH="darwin"' -I/usr/include/malloc -Wall -Wno-switch -g -O2 -D_HAS_FORTRAN -I. -DPHNALG -c -o HSigP.o HSigP.c gcc -ansi -g -O2 -DNO_AUDIO -D'ARCH="darwin"' -I/usr/include/malloc -Wall -Wno-switch -g -O2 -D_HAS_FORTRAN -I. -DPHNALG -c -o HTrain.o HTrain.c
HTrain.c: In function ‘LoadWtAcc’:
HTrain.c:1605: warning: implicit declaration of function ‘finite’
gcc -ansi -g -O2 -DNO_AUDIO -D'ARCH="darwin"' -I/usr/include/malloc -Wall -Wno-switch -g -O2 -D_HAS_FORTRAN -I. -DPHNALG -c -o HUtil.o HUtil.c gcc -ansi -g -O2 -DNO_AUDIO -D'ARCH="darwin"' -I/usr/include/malloc -Wall -Wno-switch -g -O2 -D_HAS_FORTRAN -I. -DPHNALG -c -o HVQ.o HVQ.c gcc -ansi -g -O2 -DNO_AUDIO -D'ARCH="darwin"' -I/usr/include/malloc -Wall -Wno-switch -g -O2 -D_HAS_FORTRAN -I. -DPHNALG -c -o HWave.o HWave.c gcc -ansi -g -O2 -DNO_AUDIO -D'ARCH="darwin"' -I/usr/include/malloc -Wall -Wno-switch -g -O2 -D_HAS_FORTRAN -I. -DPHNALG -c -o strarr.o strarr.c
gfortran -g -O2 -I. -c -o lbfgs.o lbfgs.f
if [ -f HTKLib.a ] ; then /bin/rm HTKLib.a ; fi
ar rv HTKLib.a HGraf.o esig_asc.o esig_edr.o esignal.o esig_nat.o HAdapt.o HArc.o HAudio.o HDict.o HExactMPE.o HFB.o HFBLat.o HGen.o HLabel.o HLat.o HLM.o HMap.o HMath.o HMem.o HModel.o HNet.o HParm.o HRec.o HShell.o HSigP.o HTrain.o HUtil.o HVQ.o HWave.o strarr.o lbfgs.o
ar: creating archive HTKLib.a
a - HGraf.o
a - esig_asc.o
a - esig_edr.o
a - esignal.o
a - esig_nat.o
a - HAdapt.o
a - HArc.o
a - HAudio.o
a - HDict.o
a - HExactMPE.o
a - HFB.o
a - HFBLat.o
a - HGen.o
a - HLabel.o
a - HLat.o
a - HLM.o
a - HMap.o
a - HMath.o
a - HMem.o
a - HModel.o
a - HNet.o
a - HParm.o
a - HRec.o
a - HShell.o
a - HSigP.o
a - HTrain.o
a - HUtil.o
a - HVQ.o
a - HWave.o
a - strarr.o
a - lbfgs.o
ranlib: archive member: HTKLib.a(lbfgs.o) cputype (7) does not match previous archive members cputype (16777223) (all members must match)
ranlib HTKLib.a
ranlib: archive member: HTKLib.a(lbfgs.o) cputype (7) does not match previous archive members cputype (16777223) (all members must match)
make[1]: *** [HTKLib.a] Error 1
make: *** [HTKLib/HTKLib.a] Error 1
denis-fitzpatricks-mac-pro:htk denisfitz$


.


References
[hts-users:02412] trouble compiling hts, Denis Fitzpatrick