Motion fails to build on Slackware ARM 14.2 (RaspberryPi3 4.4.16-v7+)-
"uname -m" returns "armv7l"
Ran the Slackbuild and it failed with:
Code:
*** Error in `gcc': double free or corruption (top): 0x00310550 ***
Edited the MOTION configure script-
CHANGED:
Code:
*)
CPU_OPTIONS="-march=native -mtune=native"
;;
esac
TO:
Code:
*)
CPU_OPTIONS="-march=armv7-a -mtune=arm7"
;;
esac
Ran Slackbuild script again and it failed with:
Code:
/tmp/ccQG2Q9Q.s: Assembler messages:
/tmp/ccQG2Q9Q.s:1452: Error: bad instruction `emms'
<builtin>: recipe for target 'ffmpeg.o' failed
make: *** [ffmpeg.o] Error 1
Edited the MOTION ffmpeg.c file-
CHANGED:
Code:
#ifndef __SSE_MATH__
__asm__ __volatile__ ( "emms");
#endif
TO:
Code:
/* #ifndef __SSE_MATH__
__asm__ __volatile__ ( "emms");
#endif */
Motion compiled after that.
Credit where credit is due: This fix was found by LQ user
elrod.