Running make gives an error
Closed this issue · 2 comments
ChthonicCrusader commented
Using RPi 3. When ran make command got following error message:
gcc -O2 -march=native hex2hcd.c -o hex2hcd
*** Error in `gcc': double free or corruption (top): 0x002a4c58 ***
: recipe for target 'hex2hcd' failed
make: *** [hex2hcd] Aborted
ChthonicCrusader commented
Fix:
Replaced -march=native with -mcpu=cortex-a53 in Makefile so that CFLAGS looks lke:
CFLAGS = -O2 -mcpu=cortex-a53
Source: Serverov's comment on Motion-Project/motion#104
Close it if found genuine
jessesung commented
@ChthonicCrusader: I'm thinking about removing the whole optimization stuff since this is a quite small tool. Does it work for you with "CFLAGS = -O2"?