Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8013

C/C++ • Re: clang Pi Zero leads to illegal instruction

$
0
0
Thanks, that helped.

I also added this to my Makefile, and was able to compile and run my old programs.

Unfortunately

Code:

-march=armv6
is not supported by newer Raspberrys; is there an alternative to updating all my Makefiles? Will there be an update to clang?
That's right. You can't specify -march=armv6 with clang running on the 64-bit operating system.

Does armv6 also disable hardware float?

While -march=native should produce a working binary on any platform, in my option not specifying any flag should also work.

Statistics: Posted by ejolson — Mon Dec 22, 2025 3:55 pm



Viewing all articles
Browse latest Browse all 8013

Trending Articles