Skip to content

Commit

Permalink
Update -march definition on RPi (BCM2835) to fix compilation (#565)
Browse files Browse the repository at this point in the history
Cross-compiling using arm-linux-gnueabihf-gcc 7.4.0 resulted in the following error:

`sorry, unimplemented: Thumb-1 hard-float VFP ABI`

Fixed by adding `-marm` to the build parameters for RPi 1
  • Loading branch information
CoRfr authored and Avamander committed Jan 26, 2020
1 parent 147ef4d commit 9f41849
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ function gcc_cpu_flags {
local soc=$1
case $soc in
BCM2835)
flags="-march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard"
flags="-marm -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard"
;;
BCM2836)
flags="-march=armv7-a -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard"
Expand Down

0 comments on commit 9f41849

Please sign in to comment.