Running make gives an error #2

Closed
opened 2017-08-09 19:06:59 +02:00 by ChthonicCrusader · 2 comments
ChthonicCrusader commented 2017-08-09 19:06:59 +02:00 (Migrated from github.com)

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

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 *** <builtin>: recipe for target 'hex2hcd' failed make: *** [hex2hcd] Aborted
ChthonicCrusader commented 2017-08-09 19:08:57 +02:00 (Migrated from github.com)

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 https://github.com/Motion-Project/motion/issues/104
Close it if found genuine

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 https://github.com/Motion-Project/motion/issues/104 Close it if found genuine
jessesung commented 2017-08-14 08:34:00 +02:00 (Migrated from github.com)

@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"?

@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"?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: schtobia/hex2hcd#2
No description provided.