在不使用 luajit 和 ck 的情况下,在 x86_64 上为目标 ARMv7 (32 位) 进行交叉编译失败
--- step1
git clone https://GitHub.com/akopytov/sysbench
Cloning into 'sysbench'...
remote: Enumerating objects: 10609, done.
remote: Counting objects: 100% (3798/3798), done.
remote: Compressing objects: 100% (734/734), done.
remote: Total 10609 (delta 3205), reused 3064 (delta 3064), pack-reused 6811 (from 1)
Receiving objects: 100% (10609/10609), 5.09 MiB | 11.18 MiB/s, done.
Resolving deltas: 100% (7474/7474), done.
Updating files: 100% (930/930), done.
--- step2
arm-linux-gnueabihf-gcc --version
arm-linux-gnueabihf-gcc (Ubuntu 13.3.0-6ubuntu224.04) 13.3.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--- step3
make distclean
make: *** No rule to make target 'distclean'. Stop.
--- step4
./AutoGen.sh
autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I m4
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'config'.
libtoolize: copying file 'config/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/ltobsolete.m4'
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: aclocal -I m4
autoreconf: running: /usr/bin/autoconf
autoreconf: running: /usr/bin/autoheader
autoreconf: running: automake --add-missing --copy --no-force
configure.ac:57: installing 'config/ar-lib'
configure.ac:39: installing 'config/compile'
configure.ac:26: installing 'config/config.guess'
configure.ac:26: installing 'config/config.sub'
configure.ac:31: installing 'config/install-sh'
configure.ac:31: installing 'config/missing'
src/Makefile.am: installing 'config/depcomp'
parallel-tests: installing 'config/test-driver'
autoreconf: Leaving directory '.'
./configure --host=arm-linux-gnueabihf CC=arm-linux-gnueabihf-gcc --without-MySQL --without-pgsql --without-luajit --without-ck --enable-static --disable-shared CFLAGS="-march=armv7-a -mfloat-abi=hard"
configure: WARNING: unrecognized options: --without-luajit, --without-ck
checking build system type... x86_64-pc-linux-gnu
checking host system type... arm-unknown-linux-gnueabihf
checking target system type... arm-unknown-linux-gnueabihf
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-linux-gnueabihf-strip... arm-linux-gnueabihf-strip
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make
…
内容来源: akopytov/sysbench