'Buildroot not compiling
every time I run make
it starts compiling but then stops and tells me this:
tmp-divrem_1.s:130: Error: selected processor does not support `mls r1,r4,r8,r11' in ARM mode
tmp-divrem_1.s:146: Error: selected processor does not support `mls r1,r4,r8,r11' in ARM mode
tmp-divrem_1.s:159: Error: selected processor does not support `mls r1,r4,r8,r11' in ARM mode
tmp-divrem_1.s:176: Error: selected processor does not support `mls r1,r4,r3,r8' in ARM mode
tmp-divrem_1.s:210: Error: selected processor does not support `mls r11,r4,r12,r3' in ARM mode
make[3]: *** [Makefile:768: divrem_1.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
libtool: compile: /usr/bin/gcc -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_fib2_ui -I/home/pi/buildroot/output/host/include -O2 -I/home/pi/buildroot/output/host/include -c fib2_ui.c -fPIC -DPIC -o .libs/fib2_ui.o
make[3]: Leaving directory '/home/pi/buildroot/output/build/host-gmp-6.2.1/mpn'
make[2]: *** [Makefile:997: all-recursive] Error 1
make[2]: Leaving directory '/home/pi/buildroot/output/build/host-gmp-6.2.1'
make[1]: *** [Makefile:787: all] Error 2
make[1]: Leaving directory '/home/pi/buildroot/output/build/host-gmp-6.2.1'
make: *** [package/pkg-generic.mk:250: /home/pi/buildroot/output/build/host-gmp-6.2.1/.stamp_built] Error 2```
Solution 1:[1]
From the config it looks like you're compiling for i586, not arm or aarch64.
If you type make list-defconfigs
, then it will show you a list; here's an excerpt:
raspberrypi2_defconfig - Build for raspberrypi2
raspberrypi4_64_defconfig - Build for raspberrypi4_64
raspberrypi4_defconfig - Build for raspberrypi4
sheevaplug_defconfig - Build for sheevaplug
Once you have identified the defconfig you need, then you can do this:
make raspberrypi4_defconfig
and it'll initialize a basic configuration for the selected target. With this configuration, your compilation should run to completion.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | OmarL |