Hi i have a problem building sphinxbase for iphone. Basically what I have done
is the following
1. autogen.sh
2. build_for_iphone.sh simulator
and the output error is the following:
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for i386-apple-darwin-strip... no
checking for strip... strip
checking build system type... i386-apple-darwin10.3.0
checking host system type... i386-apple-darwin
checking for style of include used by make... GNU
checking for i386-apple-darwin-gcc...
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2
checking for C compiler default output file name... rm: a.out.dSYM: is a
directory
a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2
accepts -g... yes
checking for
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 option
to accept ISO C89... unsupported
checking dependency style of
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2...
gcc3
checking for library containing strerror... none required
checking for i386-apple-darwin-gcc... (cached)
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2
checking whether we are using the GNU C compiler... (cached) yes
checking whether
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2
accepts -g... (cached) yes
checking for
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 option
to accept ISO C89... (cached) unsupported
checking dependency style of
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2...
(cached) gcc3
checking for i386-apple-darwin-gcc... (cached)
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2
checking whether we are using the GNU C compiler... (cached) yes
checking whether
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2
accepts -g... (cached) yes
checking for
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 option
to accept ISO C89... (cached) unsupported
checking dependency style of
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2...
(cached) gcc3
checking for bison... bison -y
checking how to run the C preprocessor... /Developer/usr/bin/cpp-4.2
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... no
checking for sys/types.h... no
checking for sys/stat.h... no
checking for stdlib.h... no
checking for string.h... no
checking for memory.h... no
checking for strings.h... no
checking for inttypes.h... no
checking for stdint.h... no
checking for unistd.h... no
checking whether byte ordering is bigendian... yes
checking return type of signal handlers... void
checking for long long... no
checking for long long... (cached) no
checking size of long long... 0
checking for long... no
checking size of long... 0
checking for popen... no
checking for perror... no
checking for snprintf... no
checking errno.h usability... no
checking errno.h presence... yes
configure: WARNING: errno.h: present but cannot be compiled
configure: WARNING: errno.h: check for missing prerequisite headers?
configure: WARNING: errno.h: see the Autoconf documentation
configure: WARNING: errno.h: section "Present But Cannot Be Compiled"
configure: WARNING: errno.h: proceeding with the preprocessor's result
configure: WARNING: errno.h: in the future, the compiler will take precedence
checking for errno.h... yes
checking for ld used by GCC... /Developer/usr/libexec/gcc/i686-apple-
darwin10/4.2.1/ld
checking if the linker (/Developer/usr/libexec/gcc/i686-apple-
darwin10/4.2.1/ld) is GNU ld... no
checking for shared library run path origin... done
checking for iconv... no, consider installing GNU libiconv
checking for sgesv_ in -llapack... no
checking for log in -lm... yes
checking pthread.h usability... no
checking pthread.h presence... yes
configure: WARNING: pthread.h: present but cannot be compiled
configure: WARNING: pthread.h: check for missing prerequisite headers?
configure: WARNING: pthread.h: see the Autoconf documentation
configure: WARNING: pthread.h: section "Present But Cannot Be Compiled"
configure: WARNING: pthread.h: proceeding with the preprocessor's result
configure: WARNING: pthread.h: in the future, the compiler will take
precedence
checking for pthread.h... yes
checking for pthread_create in -lpthread... yes
No audio interface for host type i386-apple-darwin.
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2...
/Developer/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld
checking if the linker (/Developer/usr/libexec/gcc/i686-apple-
darwin10/4.2.1/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... no
checking for i386-apple-darwin-dumpbin... no
checking for i386-apple-darwin-link... no
checking for dumpbin... no
checking for link... link -dump -symbols
checking the name lister (link -dump -symbols) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /Developer/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld option to
reload object files... -r
checking how to recognize dependent libraries... pass_all
checking for i386-apple-darwin-ar... no
checking for ar... ar
checking for i386-apple-darwin-strip... strip
checking for i386-apple-darwin-ranlib... no
checking for ranlib... ranlib
checking command to parse link -dump -symbols output from
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2
object... failed
checking for i386-apple-darwin-dsymutil... no
checking for dsymutil... dsymutil
checking for i386-apple-darwin-nmedit... no
checking for nmedit... nmedit
checking for i386-apple-darwin-lipo... no
checking for lipo... lipo
checking for i386-apple-darwin-otool... no
checking for otool... otool
checking for i386-apple-darwin-otool64... no
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for dlfcn.h... no
checking for objdir... .libs
checking if
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2
supports -fno-rtti -fno-exceptions... no
checking for
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 option
to produce PIC... -fno-common -DPIC
checking if
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 PIC
flag -fno-common -DPIC works... yes
checking if
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 static
flag -static works... no
checking if
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2
supports -c -o file.o... yes
checking if
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2
supports -c -o file.o... (cached) yes
checking whether the
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 linker
(/Developer/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld) supports shared
libraries... yes
checking dynamic linker characteristics... darwin dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for doxygen... no
checking for python... /usr/bin/python
checking for python-config... /usr/bin/python-config
checking Python.h usability... no
checking Python.h presence... yes
configure: WARNING: Python.h: present but cannot be compiled
configure: WARNING: Python.h: check for missing prerequisite headers?
configure: WARNING: Python.h: see the Autoconf documentation
configure: WARNING: Python.h: section "Present But Cannot Be Compiled"
configure: WARNING: Python.h: proceeding with the preprocessor's result
configure: WARNING: Python.h: in the future, the compiler will take precedence
checking for Python.h... yes
checking for cython... no
configure: creating ./config.status
config.status: creating sphinxbase.pc
config.status: creating Makefile
config.status: creating include/Makefile
config.status: creating python/Makefile
config.status: creating python/setup.py
config.status: creating src/Makefile
config.status: creating src/libsphinxad/Makefile
config.status: creating src/libsphinxbase/Makefile
config.status: creating src/libsphinxbase/util/Makefile
config.status: creating src/libsphinxbase/feat/Makefile
config.status: creating src/libsphinxbase/fe/Makefile
config.status: creating src/libsphinxbase/lm/Makefile
config.status: creating src/sphinx_fe/Makefile
config.status: creating src/sphinx_cepview/Makefile
config.status: creating src/sphinx_jsgf2fsg/Makefile
config.status: creating src/sphinx_adtools/Makefile
config.status: creating src/sphinx_lmtools/Makefile
config.status: creating doc/Makefile
config.status: creating doc/doxyfile
config.status: creating test/Makefile
config.status: creating test/unit/testfuncs.sh
config.status: creating test/unit/Makefile
config.status: creating test/unit/test_ad/Makefile
config.status: creating test/unit/test_alloc/Makefile
config.status: creating test/unit/test_bitvec/Makefile
config.status: creating test/unit/test_case/Makefile
config.status: creating test/unit/test_string/Makefile
config.status: creating test/unit/test_cmdln/Makefile
config.status: creating test/unit/test_hash/Makefile
config.status: creating test/unit/test_matrix/Makefile
config.status: creating test/unit/test_feat/Makefile
config.status: creating test/unit/test_fe/Makefile
config.status: creating test/unit/test_logmath/Makefile
config.status: creating test/unit/test_ngram/Makefile
config.status: creating test/unit/test_fsg/Makefile
config.status: creating test/unit/test_thread/Makefile
config.status: creating test/unit/test_util/Makefile
config.status: creating test/regression/testfuncs.sh
config.status: creating test/regression/Makefile
config.status: creating include/config.h
config.status: include/config.h is unchanged
config.status: creating include/sphinx_config.h
config.status: include/sphinx_config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
Making install in src
Making install in libsphinxbase
Making install in util
/bin/sh ../../../libtool --tag=CC --mode=compile
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2
-DHAVE_CONFIG_H -I. -I../../../include -I../../../include -I../../../include
-I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6
-I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6
-arch i386 -pipe -Os -gdwarf-2 -isysroot /Developer/Platforms/iPhoneSimulator.
platform/Developer/SDKs/iPhoneSimulator3.1.3.sdk
-D__IPHONE_OS_VERSION_MIN_REQUIRED=30000 -MT bitvec.lo -MD -MP -MF
.deps/bitvec.Tpo -c -o bitvec.lo bitvec.c
libtool: compile:
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2
-DHAVE_CONFIG_H -I. -I../../../include -I../../../include -I../../../include
-I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6
-I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6
-arch i386 -pipe -Os -gdwarf-2 -isysroot /Developer/Platforms/iPhoneSimulator.
platform/Developer/SDKs/iPhoneSimulator3.1.3.sdk
-D__IPHONE_OS_VERSION_MIN_REQUIRED=30000 -MT bitvec.lo -MD -MP -MF
.deps/bitvec.Tpo -c bitvec.c -o bitvec.o
In file included from bitvec.c:61:
../../../include/bitvec.h:41:20: error: string.h: No such file or directory
In file included from ../../../include/bitvec.h:48,
from bitvec.c:61:
../../../include/ckd_alloc.h:89:20: error: stdlib.h: No such file or directory
../../../include/ckd_alloc.h:90:20: error: setjmp.h: No such file or directory
In file included from ../../../include/bitvec.h:48,
from bitvec.c:61:
../../../include/ckd_alloc.h:127: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘attribute’ before ‘*’ token
../../../include/ckd_alloc.h:143: error: expected ‘)’ before ‘n_elem’
../../../include/ckd_alloc.h:147: error: expected ‘)’ before ‘size’
../../../include/ckd_alloc.h:151: error: expected declaration specifiers or
‘...’ before ‘size_t’
../../../include/ckd_alloc.h:167: error: expected ‘)’ before ‘d1’
../../../include/ckd_alloc.h:176: error: expected ‘)’ before ‘d1’
../../../include/ckd_alloc.h:184: error: expected ‘)’ before ‘d1’
../../../include/ckd_alloc.h:196: error: expected ‘)’ before ‘d1’
In file included from bitvec.c:61:
../../../include/bitvec.h:147: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘attribute’ before ‘bitvec_count_set’
bitvec.c:64: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before
‘bitvec_count_set’
make: *** Error 1
make: *** Error 1
make: *** Error 1
make: *** Error 1
My guess is that it cant find the ANSI C Header files as said in this line
checking for ANSI C header files... no
I have not been able to find any solution. If anyone know the solution please
tell me as well.
Thanks and Cheers
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi i have a problem building sphinxbase for iphone. Basically what I have done
is the following
1. autogen.sh
2. build_for_iphone.sh simulator
and the output error is the following:
My guess is that it cant find the ANSI C Header files as said in this line
checking for ANSI C header files... no
I have not been able to find any solution. If anyone know the solution please
tell me as well.
Thanks and Cheers
Apparently it was the iPhone OS version problem... so it has been solved alrdy