|
本人需要用mysql的修复工具myisamchk,所以要交叉编译mysql...
之前在PC上编译一切正常,但arm编译,在configure时候就报错了,换了不同的arm-gcc版本,但问题一样..
因为前段时间交叉编译freetds时,也出现了configure错的问题,后来是在官方的maillist提问,项目负责人给我发来新的acinclude.m4脚本后解决的...
google的时候,也发现有人问同样的问题,估计是个通病...
想问问,有没有成功交叉编译过myslq的?是什么版本的??
PC环境: redhat9
[root@liang mysql-4.0.24]# ./configure --host=armv4l-unknown-linux \
> --prefix=/home/lpos/temp/mysql-arm --enable-shared=no -enable-static=yes --without-debug \
> --with-embedded-server --without-innodb --with-charset=gb2312 --with-pthread
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 build system type... i686-pc-linux-gnu
checking host system type... armv4l-unknown-linux-gnu
checking target system type... armv4l-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for armv4l-unknown-linux-strip... armv4l-unknown-linux-strip
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... (cached) yes
checking for gawk... (cached) gawk
checking for armv4l-unknown-linux-gcc... armv4l-unknown-linux-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 armv4l-unknown-linux-gcc accepts -g... yes
checking for armv4l-unknown-linux-gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of armv4l-unknown-linux-gcc... gcc
checking for armv4l-unknown-linux-g++... armv4l-unknown-linux-g++
checking whether we are using the GNU C++ compiler... yes
checking whether armv4l-unknown-linux-g++ accepts -g... yes
checking dependency style of armv4l-unknown-linux-g++... gcc
checking how to run the C preprocessor... armv4l-unknown-linux-gcc -E
checking "C Compiler version"... "armv4l-unknown-linux-gcc 2.95.2"
checking "C++ compiler version"... "armv4l-unknown-linux-g++ 2.95.2"
checking for armv4l-unknown-linux-ranlib... armv4l-unknown-linux-ranlib
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by armv4l-unknown-linux-gcc... /opt/host/armv4l/armv4l-unknown-linux/bin/ld
checking if the linker (/opt/host/armv4l/armv4l-unknown-linux/bin/ld) is GNU ld... yes
checking for /opt/host/armv4l/armv4l-unknown-linux/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /opt/host/armv4l/bin/armv4l-unknown-linux-nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... armv4l-unknown-linux-g++ -E
checking for armv4l-unknown-linux-g77... no
checking for armv4l-unknown-linux-f77... no
checking for armv4l-unknown-linux-xlf... no
checking for armv4l-unknown-linux-frt... no
checking for armv4l-unknown-linux-pgf77... no
checking for armv4l-unknown-linux-fort77... no
checking for armv4l-unknown-linux-fl32... no
checking for armv4l-unknown-linux-af77... no
checking for armv4l-unknown-linux-f90... no
checking for armv4l-unknown-linux-xlf90... no
checking for armv4l-unknown-linux-pgf90... no
checking for armv4l-unknown-linux-epcf90... no
checking for armv4l-unknown-linux-f95... no
checking for armv4l-unknown-linux-fort... no
checking for armv4l-unknown-linux-xlf95... no
checking for armv4l-unknown-linux-ifc... no
checking for armv4l-unknown-linux-efc... no
checking for armv4l-unknown-linux-pgf95... no
checking for armv4l-unknown-linux-lf95... no
checking for armv4l-unknown-linux-gfortran... no
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /opt/host/armv4l/bin/armv4l-unknown-linux-nm -B output from armv4l-unknown-linux-gcc
object... ok
checking for objdir... .libs
checking for armv4l-unknown-linux-ar... armv4l-unknown-linux-ar
checking for armv4l-unknown-linux-ranlib... (cached) armv4l-unknown-linux-ranlib
checking for armv4l-unknown-linux-strip... (cached) armv4l-unknown-linux-strip
checking if armv4l-unknown-linux-gcc static flag works... yes
checking if armv4l-unknown-linux-gcc supports -fno-rtti -fno-exceptions... yes
checking for armv4l-unknown-linux-gcc option to produce PIC... -fPIC
checking if armv4l-unknown-linux-gcc PIC flag -fPIC works... yes
checking if armv4l-unknown-linux-gcc supports -c -o file.o... yes
checking whether the armv4l-unknown-linux-gcc linker (/opt/host/armv4l/armv4l-unknown-linux/bin/ld) 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
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by armv4l-unknown-linux-g++... /opt/host/armv4l/armv4l-unknown-linux/bin/ld
checking if the linker (/opt/host/armv4l/armv4l-unknown-linux/bin/ld) is GNU ld... yes
checking whether the armv4l-unknown-linux-g++ linker (/opt/host/armv4l/armv4l-unknown-linux/bin/ld) supports shared libraries... yes
checking for armv4l-unknown-linux-g++ option to produce PIC... -fPIC
checking if armv4l-unknown-linux-g++ PIC flag -fPIC works... yes
checking if armv4l-unknown-linux-g++ supports -c -o file.o... yes
checking whether the armv4l-unknown-linux-g++ linker (/opt/host/armv4l/armv4l-unknown-linux/bin/ld) 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
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for g77 option to produce PIC... -fPIC
checking if g77 PIC flag -fPIC works... yes
checking if g77 supports -c -o file.o... yes
checking whether the g77 linker (/opt/host/armv4l/armv4l-unknown-linux/bin/ld) supports shared libraries... yeschecking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for bison... bison -y
checking for pdftex... no
checking for tex... no
checking "return type of sprintf"... configure: error: cannot run test program while cross compiling
See `config.log' for more details.
[root@liang mysql-4.0.24]# ./configure --build=i686-linux --host=armv4l-unknown-linux --target=arm-linux --prefix=/home/lpos/temp/mysql-arm --enable-shared=no -enable-static=yes --without-debug --with-embedded-server --without-innodb --with-charset=gb2312 --with-pthread
checking build system type... i686-pc-linux-gnu
checking host system type... armv4l-unknown-linux-gnu
checking target system type... arm-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for armv4l-unknown-linux-strip... armv4l-unknown-linux-strip
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... (cached) yes
checking for gawk... (cached) gawk
checking for armv4l-unknown-linux-gcc... armv4l-unknown-linux-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 armv4l-unknown-linux-gcc accepts -g... yes
checking for armv4l-unknown-linux-gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of armv4l-unknown-linux-gcc... gcc
checking for armv4l-unknown-linux-g++... armv4l-unknown-linux-g++
checking whether we are using the GNU C++ compiler... yes
checking whether armv4l-unknown-linux-g++ accepts -g... yes
checking dependency style of armv4l-unknown-linux-g++... gcc
checking how to run the C preprocessor... armv4l-unknown-linux-gcc -E
checking "C Compiler version"... "armv4l-unknown-linux-gcc 2.95.2"
checking "C++ compiler version"... "armv4l-unknown-linux-g++ 2.95.2"
checking for armv4l-unknown-linux-ranlib... armv4l-unknown-linux-ranlib
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by armv4l-unknown-linux-gcc... /opt/host/armv4l/armv4l-unknown-linux/bin/ld
checking if the linker (/opt/host/armv4l/armv4l-unknown-linux/bin/ld) is GNU ld... yes
checking for /opt/host/armv4l/armv4l-unknown-linux/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /opt/host/armv4l/bin/armv4l-unknown-linux-nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... armv4l-unknown-linux-g++ -E
checking for armv4l-unknown-linux-g77... no
checking for armv4l-unknown-linux-f77... no
checking for armv4l-unknown-linux-xlf... no
checking for armv4l-unknown-linux-frt... no
checking for armv4l-unknown-linux-pgf77... no
checking for armv4l-unknown-linux-fort77... no
checking for armv4l-unknown-linux-fl32... no
checking for armv4l-unknown-linux-af77... no
checking for armv4l-unknown-linux-f90... no
checking for armv4l-unknown-linux-xlf90... no
checking for armv4l-unknown-linux-pgf90... no
checking for armv4l-unknown-linux-epcf90... no
checking for armv4l-unknown-linux-f95... no
checking for armv4l-unknown-linux-fort... no
checking for armv4l-unknown-linux-xlf95... no
checking for armv4l-unknown-linux-ifc... no
checking for armv4l-unknown-linux-efc... no
checking for armv4l-unknown-linux-pgf95... no
checking for armv4l-unknown-linux-lf95... no
checking for armv4l-unknown-linux-gfortran... no
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /opt/host/armv4l/bin/armv4l-unknown-linux-nm -B output from armv4l-unknown-linux-gcc
object... ok
checking for objdir... .libs
checking for armv4l-unknown-linux-ar... armv4l-unknown-linux-ar
checking for armv4l-unknown-linux-ranlib... (cached) armv4l-unknown-linux-ranlib
checking for armv4l-unknown-linux-strip... (cached) armv4l-unknown-linux-strip
checking if armv4l-unknown-linux-gcc static flag works... yes
checking if armv4l-unknown-linux-gcc supports -fno-rtti -fno-exceptions... yes
checking for armv4l-unknown-linux-gcc option to produce PIC... -fPIC
checking if armv4l-unknown-linux-gcc PIC flag -fPIC works... yes
checking if armv4l-unknown-linux-gcc supports -c -o file.o... yes
checking whether the armv4l-unknown-linux-gcc linker (/opt/host/armv4l/armv4l-unknown-linux/bin/ld) 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
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by armv4l-unknown-linux-g++... /opt/host/armv4l/armv4l-unknown-linux/bin/ld
checking if the linker (/opt/host/armv4l/armv4l-unknown-linux/bin/ld) is GNU ld... yes
checking whether the armv4l-unknown-linux-g++ linker (/opt/host/armv4l/armv4l-unknown-linux/bin/ld) supports shared libraries... yes
checking for armv4l-unknown-linux-g++ option to produce PIC... -fPIC
checking if armv4l-unknown-linux-g++ PIC flag -fPIC works... yes
checking if armv4l-unknown-linux-g++ supports -c -o file.o... yes
checking whether the armv4l-unknown-linux-g++ linker (/opt/host/armv4l/armv4l-unknown-linux/bin/ld) 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
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for g77 option to produce PIC... -fPIC
checking if g77 PIC flag -fPIC works... yes
checking if g77 supports -c -o file.o... yes
checking whether the g77 linker (/opt/host/armv4l/armv4l-unknown-linux/bin/ld) supports shared libraries... yeschecking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for bison... bison -y
checking for pdftex... no
checking for tex... no
checking "return type of sprintf"... configure: error: cannot run test program while cross compiling
See `config.log' for more details. |
|