特地从GitHub下载了aodzip的buildroot-tiny200源代码,也下载了dl包,
在树梅派上进行编译,过程如下:
1) make widora_tiny200_defconfig
2) make -j4
出现以下错误:
>>> host-gmp 6.1.2 Building
PATH="/home/pi/buildroot-tiny200/output/host/bin:/home/pi/buildroot-tiny200/output/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games" PKG_CONFIG="/home/pi/buildroot-tiny200/output/host/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR="/home/pi/buildroot-tiny200/output/host/lib/pkgconfig:/home/pi/buildroot-tiny200/output/host/share/pkgconfig" /usr/bin/make -C /home/pi/buildroot-tiny200/output/build/host-gmp-6.1.2/
make[1]: 进入目录“/home/pi/buildroot-tiny200/output/build/host-gmp-6.1.2”
/usr/bin/make all-recursive
make[2]: 进入目录“/home/pi/buildroot-tiny200/output/build/host-gmp-6.1.2”
Making all in tests
make[3]: 进入目录“/home/pi/buildroot-tiny200/output/build/host-gmp-6.1.2/tests”
Making all in .
make[4]: 进入目录“/home/pi/buildroot-tiny200/output/build/host-gmp-6.1.2/tests”
make[4]: 对“all-am”无需做任何事。
make[4]: 离开目录“/home/pi/buildroot-tiny200/output/build/host-gmp-6.1.2/tests”
Making all in devel
make[4]: 进入目录“/home/pi/buildroot-tiny200/output/build/host-gmp-6.1.2/tests/devel”
make[4]: 对“all”无需做任何事。
make[4]: 离开目录“/home/pi/buildroot-tiny200/output/build/host-gmp-6.1.2/tests/devel”
Making all in mpn
make[4]: 进入目录“/home/pi/buildroot-tiny200/output/build/host-gmp-6.1.2/tests/mpn”
make[4]: 对“all”无需做任何事。
make[4]: 离开目录“/home/pi/buildroot-tiny200/output/build/host-gmp-6.1.2/tests/mpn”
Making all in mpz
make[4]: 进入目录“/home/pi/buildroot-tiny200/output/build/host-gmp-6.1.2/tests/mpz”
make[4]: 对“all”无需做任何事。
make[4]: 离开目录“/home/pi/buildroot-tiny200/output/build/host-gmp-6.1.2/tests/mpz”
Making all in mpq
make[4]: 进入目录“/home/pi/buildroot-tiny200/output/build/host-gmp-6.1.2/tests/mpq”
make[4]: 对“all”无需做任何事。
make[4]: 离开目录“/home/pi/buildroot-tiny200/output/build/host-gmp-6.1.2/tests/mpq”
Making all in mpf
make[4]: 进入目录“/home/pi/buildroot-tiny200/output/build/host-gmp-6.1.2/tests/mpf”
make[4]: 对“all”无需做任何事。
make[4]: 离开目录“/home/pi/buildroot-tiny200/output/build/host-gmp-6.1.2/tests/mpf”
Making all in rand
make[4]: 进入目录“/home/pi/buildroot-tiny200/output/build/host-gmp-6.1.2/tests/rand”
make[4]: 对“all”无需做任何事。
make[4]: 离开目录“/home/pi/buildroot-tiny200/output/build/host-gmp-6.1.2/tests/rand”
Making all in misc
make[4]: 进入目录“/home/pi/buildroot-tiny200/output/build/host-gmp-6.1.2/tests/misc”
make[4]: 对“all”无需做任何事。
make[4]: 离开目录“/home/pi/buildroot-tiny200/output/build/host-gmp-6.1.2/tests/misc”
Making all in cxx
make[4]: 进入目录“/home/pi/buildroot-tiny200/output/build/host-gmp-6.1.2/tests/cxx”
make[4]: 对“all”无需做任何事。
make[4]: 离开目录“/home/pi/buildroot-tiny200/output/build/host-gmp-6.1.2/tests/cxx”
make[3]: 离开目录“/home/pi/buildroot-tiny200/output/build/host-gmp-6.1.2/tests”
Making all in mpn
make[3]: 进入目录“/home/pi/buildroot-tiny200/output/build/host-gmp-6.1.2/mpn”
/bin/bash ../libtool --mode=compile --tag=CC ../mpn/m4-ccas --m4="m4" /usr/bin/gcc -c -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_`echo divrem_1 | sed 's/_$//'` -I/home/pi/buildroot-tiny200/output/host/include -O2 -I/home/pi/buildroot-tiny200/output/host/include -Wa,--noexecstack `test -f 'divrem_1.asm' || echo './'`divrem_1.asm
/bin/bash ../libtool --mode=compile --tag=CC ../mpn/m4-ccas --m4="m4" /usr/bin/gcc -c -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_`echo mod_34lsub1 | sed 's/_$//'` -I/home/pi/buildroot-tiny200/output/host/include -O2 -I/home/pi/buildroot-tiny200/output/host/include -Wa,--noexecstack `test -f 'mod_34lsub1.asm' || echo './'`mod_34lsub1.asm
/bin/bash ../libtool --mode=compile --tag=CC ../mpn/m4-ccas --m4="m4" /usr/bin/gcc -c -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_`echo mode1o | sed 's/_$//'` -I/home/pi/buildroot-tiny200/output/host/include -O2 -I/home/pi/buildroot-tiny200/output/host/include -Wa,--noexecstack `test -f 'mode1o.asm' || echo './'`mode1o.asm
/bin/bash ../libtool --tag=CC --mode=compile /usr/bin/gcc -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_`echo pre_mod_1 | sed 's/_$//'` -I/home/pi/buildroot-tiny200/output/host/include -O2 -I/home/pi/buildroot-tiny200/output/host/include -c -o pre_mod_1.lo pre_mod_1.c
libtool: compile: /usr/bin/gcc -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_pre_mod_1 -I/home/pi/buildroot-tiny200/output/host/include -O2 -I/home/pi/buildroot-tiny200/output/host/include -c pre_mod_1.c -fPIC -DPIC -o .libs/pre_mod_1.o
libtool: compile: ../mpn/m4-ccas --m4=m4 /usr/bin/gcc -c -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_mod_34lsub1 -I/home/pi/buildroot-tiny200/output/host/include -O2 -I/home/pi/buildroot-tiny200/output/host/include -Wa,--noexecstack mod_34lsub1.asm -fPIC -DPIC -o .libs/mod_34lsub1.o
libtool: compile: ../mpn/m4-ccas --m4=m4 /usr/bin/gcc -c -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_divrem_1 -I/home/pi/buildroot-tiny200/output/host/include -O2 -I/home/pi/buildroot-tiny200/output/host/include -Wa,--noexecstack divrem_1.asm -fPIC -DPIC -o .libs/divrem_1.o
m4 -DHAVE_CONFIG_H -D__GMP_WITHIN_GMP -DOPERATION_mod_34lsub1 -DPIC mod_34lsub1.asm >tmp-mod_34lsub1.s
libtool: compile: ../mpn/m4-ccas --m4=m4 /usr/bin/gcc -c -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_mode1o -I/home/pi/buildroot-tiny200/output/host/include -O2 -I/home/pi/buildroot-tiny200/output/host/include -Wa,--noexecstack mode1o.asm -fPIC -DPIC -o .libs/mode1o.o
m4 -DHAVE_CONFIG_H -D__GMP_WITHIN_GMP -DOPERATION_divrem_1 -DPIC divrem_1.asm >tmp-divrem_1.s
m4 -DHAVE_CONFIG_H -D__GMP_WITHIN_GMP -DOPERATION_mode1o -DPIC mode1o.asm >tmp-mode1o.s
/usr/bin/gcc -c -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_mod_34lsub1 -I/home/pi/buildroot-tiny200/output/host/include -O2 -I/home/pi/buildroot-tiny200/output/host/include -Wa,--noexecstack tmp-mod_34lsub1.s -fPIC -DPIC -o .libs/mod_34lsub1.o
/usr/bin/gcc -c -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_mode1o -I/home/pi/buildroot-tiny200/output/host/include -O2 -I/home/pi/buildroot-tiny200/output/host/include -Wa,--noexecstack tmp-mode1o.s -fPIC -DPIC -o .libs/mode1o.o
/usr/bin/gcc -c -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_divrem_1 -I/home/pi/buildroot-tiny200/output/host/include -O2 -I/home/pi/buildroot-tiny200/output/host/include -Wa,--noexecstack tmp-divrem_1.s -fPIC -DPIC -o .libs/divrem_1.o
tmp-divrem_1.s: Assembler messages:
tmp-divrem_1.s:129: 错误:selected processor does not support `mls r1,r4,r8,r11' in ARM mode
tmp-divrem_1.s:145: 错误:selected processor does not support `mls r1,r4,r8,r11' in ARM mode
tmp-divrem_1.s:158: 错误:selected processor does not support `mls r1,r4,r8,r11' in ARM mode
tmp-divrem_1.s:175: 错误:selected processor does not support `mls r1,r4,r3,r8' in ARM mode
tmp-divrem_1.s:209: 错误:selected processor does not support `mls r11,r4,r12,r3' in ARM mode
make[3]: *** [Makefile:768:divrem_1.lo] 错误 1
make[3]: *** 正在等待未完成的任务....
make[3]: 离开目录“/home/pi/buildroot-tiny200/output/build/host-gmp-6.1.2/mpn”
make[2]: *** [Makefile:956:all-recursive] 错误 1
make[2]: 离开目录“/home/pi/buildroot-tiny200/output/build/host-gmp-6.1.2”
make[1]: *** [Makefile:775:all] 错误 2
make[1]: 离开目录“/home/pi/buildroot-tiny200/output/build/host-gmp-6.1.2”
make: *** [package/pkg-generic.mk:269:/home/pi/buildroot-tiny200/output/build/host-gmp-6.1.2/.stamp_built] 错误 2
pi@raspberrypi:~/buildroot-tiny200 $
请指教。。
平台: 树梅派
交叉编译器:树梅派自带的gcc-arm-gnueabihf
最近编辑记录 WangLY_Snot (2021-02-23 01:51:40)
离线
请问各位大佬,这是怎么回事?
谢谢!!!!!!!!!!!!!!
离线
我估计buildroot默认是在x86平台跑的,那些host工具默认使用x86汇编指令,如果你要整个buildroot都能在树莓派跑,可能要大改才行。
离线
我估计buildroot默认是在x86平台跑的,那些host工具默认使用x86汇编指令,如果你要整个buildroot都能在树莓派跑,可能要大改才行。
有道理,生产力工具不建议用树莓派了,否则你玩着玩着就忘记初心了。
离线
raspberryman 说:我估计buildroot默认是在x86平台跑的,那些host工具默认使用x86汇编指令,如果你要整个buildroot都能在树莓派跑,可能要大改才行。
有道理,生产力工具不建议用树莓派了,否则你玩着玩着就忘记初心了。
我也经常这样,搞着搞着就迷失最初想干嘛了,还是找份工作有老板盯着比较好。
离线
既然是用树莓派整,我99.9999%相信楼主是在玩(aka学习),那就不要“急急!!!!!!!!!!!!!!!!!!!!!!!1 ”
建议用树莓派跑个x86环境试试,
https://www.raspberrypi.org/forums/viewtopic.php?t=246886
离线