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

[hts-users:04228] Re: Problem installing HTS2.3-beta



Hello,

the ARCH constant is defined into the CFLAGS part of the Makefile during the configure stage. I think it's more a configuration stage problem than an HTK/HTS problem itself. I suggest look to your HTKLib/Makefile in order to see what the CFLAGS look like and supervise what is going on during the configure stage.

Kind regards,
Sébastien

Praneeth Kurpad writes:

> Hi,
>
> I am unable to patch and build HTS2.3 beta on my 64 bit machine. I am using
> Ubuntu 14.04. There is no problem in building HTS 2.2 for the same system.
>
> This is a brief description of the problem. When I run ./configure, it
> configures fine, with warning such as
>
> ***********************************************************
> config.status: creating HTKLib/Makefile
> config.status: WARNING: 'HTKLib/Makefile.in' seems to ignore the --datarootdir
> setting
>
> ************************************************************
> but when i try to build using sudo make all/make all, the following error
> occurs
>
> ************************************************************
>
> (cd HTKLib && make HTKLib.a) \
>   || case "" in *k*) fail=yes;; *) exit 1;; esac;
> make[1]: Entering directory `/home/spectrumlab/Desktop/newinst/htk/HTKLib'
> gcc -Wall -Wno-switch -g -O2 -I. -DPHNALG -c -o HGraf.o HGraf.c
> HGraf.c: In function ‘DecodeKeyPress’:
> HGraf.c:230:8: warning: variable ‘n’ set but not used
> [-Wunused-but-set-variable]
>  int n;
>  ^
> HGraf.c: In function ‘HGetEvent’:
> HGraf.c:272:18: warning: variable ‘dummy’ set but not used
> [-Wunused-but-set-variable]
>  Boolean found,dummy;
>  ^
> gcc -Wall -Wno-switch -g -O2 -I. -DPHNALG -c -o esig_asc.o esig_asc.c
> esig_asc.c: In function ‘ReadAsciiEscape’:
> esig_asc.c:2025:16: warning: ignoring return value of ‘fscanf’, declared with
> attribute warn_unused_result [-Wunused-result]
>  fscanf(file, "%3lo", val);
>  ^
> gcc -Wall -Wno-switch -g -O2 -I. -DPHNALG -c -o esig_edr.o esig_edr.c
> esig_edr.c: In function ‘EdrReadLong’:
> esig_edr.c:1192:60: warning: suggest parentheses around ‘&&’ within ‘||’
> [-Wparentheses]
>  if (hi > lmaxhi || hi == lmaxhi && lo > lmaxlo)
>  ^
> esig_edr.c:1204:60: warning: suggest parentheses around ‘&&’ within ‘||’
> [-Wparentheses]
>  if (hi < lminhi || hi == lminhi && lo < lminlo)
>  ^
> esig_edr.c: In function ‘EdrReadUlong’:
> esig_edr.c:1341:56: warning: suggest parentheses around ‘&&’ within ‘||’
> [-Wparentheses]
>  if (hi > ulmaxhi || hi == ulmaxhi && lo > ulmaxlo)
>  ^
> esig_edr.c: In function ‘ReadEdrRecord’:
> esig_edr.c:338:25: warning: ‘flags’ may be used uninitialized in this function
> [-Wmaybe-uninitialized]
>  flags <<= 1;
>  ^
> gcc -Wall -Wno-switch -g -O2 -I. -DPHNALG -c -o esignal.o esignal.c
> In file included from /usr/include/string.h:635:0,
>  from esignal.h:34,
>  from esignal.c:29:
> esignal.c: In function ‘ReadHeader’:
> esignal.c:974:29: error: ‘ARCH’ undeclared (first use in this function)
>  if (strcmp(architecture, ARCH) == 0) /* native architecture */
>  ^
> esignal.c:974:29: note: each undeclared identifier is reported only once for
> each function it appears in
> esignal.c: In function ‘WriteHeader’:
> esignal.c:1184:25: error: ‘ARCH’ undeclared (first use in this function)
>  architecture = ARCH;
>  ^
> esignal.c: In function ‘GetLine’:
> esignal.c:1760:9: warning: ignoring return value of ‘fgets’, declared with
> attribute warn_unused_result [-Wunused-result]
>  fgets(buf, len+1, file);
>  ^
> esignal.c: In function ‘GetLong’:
> esignal.c:1808:9: warning: ignoring return value of ‘fgets’, declared with
> attribute warn_unused_result [-Wunused-result]
>  fgets(buf, len+1, file);
>  ^
> make[1]: *** [esignal.o] Error 1
> make[1]: Leaving directory `/home/spectrumlab/Desktop/newinst/htk/HTKLib'
> make: *** [HTKLib/HTKLib.a] Error 1
>
> *****************************************************
>
> Kindly help me
>
> Regards,

-- 
Dr. Sébastien Le Maguer
Postdoctorate researcher

Saarland University
Campus C7.4 - room 2.03
D-66123 Saarbrücken
Germany

phone : +49-681-302-70030
Mail: slemaguer@coli.uni-saarland.de
website :  http://www.coli.uni-saarland.de/~slemaguer/