![]() | ![]() | ||||||||||||
[bug-gsl] cross-compiling bug (2008-07-19)
I am trying to install the library in cygwin for cross compiling. however after I configure it I get errors trying to make it. I configure with: ./configure CC=/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu-gcc CPP=/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu-cpp --exec-prefx=/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/ --disable-shared --build-=i686-pc-cygwin --host=arm-unknown-linux-gnu and here is the output: checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for arm-unknown-linux-gnu-strip... no checking for strip... strip configure: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org. checking whether to enable maintainer-specific portions of Makefiles... no checking whether make sets $(MAKE)... (cached) yes checking build system type... i686-pc-cygwin checking host system type... arm-unknown-linux-gnu checking for arm-unknown-linux-gnu-gcc... /opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/bin/arm-unknown-linux-gnu-gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... yes checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/bin/arm-unknown-linux-gnu-gcc accepts -g... yes checking for /opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/bin/arm-unknown-linux-gnu-gcc option to accept ISO C89... none needed checking how to run the C preprocessor... /opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/bin/arm-unknown-linux-gnu-cpp checking for a BSD-compatible install... /usr/bin/install -c checking whether ln -s works... yes checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by /opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/bin/arm-unknown-linux-gnu-gcc... /opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/arm-unknown-linux-gnu/bin/ld.exe checking if the linker (/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/arm-unknown-linux-gnu/bin/ld.exe) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... no checking for arm-unknown-linux-gnu-dumpbin... no checking for arm-unknown-linux-gnu-link... no checking for dumpbin... no checking for link... link -dump -symbols checking the name lister (link -dump -symbols) interface... BSD nm checking the maximum length of command line arguments... 8192 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking for /opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/arm-unknown-linux-gnu/bin/ld.exe option to reload object files... -r checking how to recognize dependent libraries... pass_all checking for arm-unknown-linux-gnu-ar... no checking for ar... ar checking for arm-unknown-linux-gnu-strip... strip checking for arm-unknown-linux-gnu-ranlib... no checking for ranlib... ranlib checking command to parse link -dump -symbols output from /opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/bin/arm-unknown-linux-gnu-gcc object... failed checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if /opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/bin/arm-unknown-linux-gnu-gcc supports -fno-rtti -fno-exceptions... ./configure: line 6926: diff: command not found no checking for /opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/bin/arm-unknown-linux-gnu-gcc option to produce PIC... -fPIC -DPIC checking if /opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/bin/arm-unknown-linux-gnu-gcc PIC flag -fPIC -DPIC works... yes checking if /opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/bin/arm-unknown-linux-gnu-gcc static flag -static works... yes checking if /opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/bin/arm-unknown-linux-gnu-gcc supports -c -o file.o... yes checking if /opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/bin/arm-unknown-linux-gnu-gcc supports -c -o file.o... (cached) yes checking whether the /opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/bin/arm-unknown-linux-gnu-gcc linker (/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/arm-unknown-linux-gnu/bin/ld.exe) supports shared libraries... yes checking dynamic linker characteristics... GNU/Linux ld.so 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 size_t... yes checking for working volatile... yes checking for inline... inline checking whether char is unsigned... yes checking for extern inline... yes checking ieeefp.h usability... no checking ieeefp.h presence... no checking for ieeefp.h... no checking for vprintf... no checking for memcpy... no checking for memmove... no checking for strdup... no checking for strtol... no checking for strtoul... no checking for EXIT_SUCCESS and EXIT_FAILURE... yes checking for cos in -lm... no checking whether feenableexcept is declared... yes checking whether fesettrapenable is declared... no checking whether hypot is declared... yes checking whether expm1 is declared... yes checking whether acosh is declared... yes checking whether asinh is declared... yes checking whether atanh is declared... yes checking whether ldexp is declared... yes checking whether frexp is declared... yes checking whether isinf is declared... yes checking whether isfinite is declared... no checking whether finite is declared... yes checking whether isnan is declared... yes checking whether log1p is declared... yes checking for long double stdio... no checking for extended floating point registers... unknown checking for IEEE arithmetic interface type... unknown checking for IEEE compiler flags... none checking for IEEE comparisons... yes checking for IEEE denormalized values... yes configure: creating ./config.status config.status: creating gsl-config config.status: creating gsl.pc config.status: creating gsl_version.h config.status: creating gsl.spec config.status: creating gsl/Makefile config.status: creating test/Makefile config.status: creating err/Makefile config.status: creating sys/Makefile config.status: creating utils/Makefile config.status: creating const/Makefile config.status: creating min/Makefile config.status: creating multimin/Makefile config.status: creating ieee-utils/Makefile config.status: creating fft/Makefile config.status: creating specfunc/Makefile config.status: creating dht/Makefile config.status: creating fit/Makefile config.status: creating multifit/Makefile config.status: creating bspline/Makefile config.status: creating statistics/Makefile config.status: creating sum/Makefile config.status: creating roots/Makefile config.status: creating multiroots/Makefile config.status: creating ntuple/Makefile config.status: creating poly/Makefile config.status: creating qrng/Makefile config.status: creating rng/Makefile config.status: creating randist/Makefile config.status: creating siman/Makefile config.status: creating integration/Makefile config.status: creating interpolation/Makefile config.status: creating doc/Makefile config.status: creating block/Makefile config.status: creating vector/Makefile config.status: creating matrix/Makefile config.status: creating histogram/Makefile config.status: creating monte/Makefile config.status: creating ode-initval/Makefile config.status: creating cblas/Makefile config.status: creating blas/Makefile config.status: creating linalg/Makefile config.status: creating eigen/Makefile config.status: creating permutation/Makefile config.status: creating combination/Makefile config.status: creating sort/Makefile config.status: creating complex/Makefile config.status: creating diff/Makefile config.status: creating deriv/Makefile config.status: creating cheb/Makefile config.status: creating cdf/Makefile config.status: creating wavelet/Makefile config.status: creating Makefile config.status: creating config.h config.status: executing libtool commands I then attempt to make the library by typing: make CC=/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu-gcc CPP=/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu-cpp which generates this output: make all-recursive make[1]: Entering directory `/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/gsl-1.11' Making all in gsl make[2]: Entering directory `/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/gsl-1.11/gsl' rm -f gsl*.h HEADERLIST="../gsl*.h ../*/gsl*.h"; \ for h in $HEADERLIST; do \ BASENAME=`basename $h`; \ test -r $BASENAME || ln -s $h $BASENAME; \ done make[2]: Leaving directory `/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/gsl-1.11/gsl' Making all in utils make[2]: Entering directory `/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/gsl-1.11/utils' /bin/sh ../libtool --tag=CC --mode=compile /opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/bin/arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -c -o placeholder.lo placeholder.c libtool: compile: /opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/bin/arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -c placeholder.c -o placeholder.o /opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/bin/arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -c memcpy.c /opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/bin/arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -c memmove.c /opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/bin/arm-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -c strdup.c strdup.c:34: error: parse error before "__extension__" strdup.c:34: error: `__len' undeclared here (not in a function) strdup.c:34: error: initializer element is not constant strdup.c:34: error: parse error before "if" strdup.c:34: error: conflicting types for `__retval' strdup.c:34: error: previous declaration of `__retval' strdup.c:34: warning: data definition has no type or storage class strdup.c:34: error: parse error before '}' token strdup.c:39: error: `str' undeclared here (not in a function) strdup.c:39: warning: initialization makes integer from pointer without a cast strdup.c:39: error: initializer element is not constant strdup.c:39: warning: data definition has no type or storage class strdup.c:40: error: parse error before "if" make[2]: *** [strdup.o] Error 1 make[2]: Leaving directory `/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/gsl-1.11/utils' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/gsl-1.11' make: *** [all] Error 2 Is this a bug or am I just doing this wrong? thanks TMR
| |||||||||||||
![]() | ![]() |







