LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-03-2016, 08:44 PM   #1
arfon
Member
 
Registered: Apr 2004
Distribution: Slackware & RHEL
Posts: 370

Rep: Reputation: Disabled
motion not building on RPi (Slackware ARM 14.2) - THE FIX


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'.

Last edited by arfon; 08-03-2016 at 08:50 PM.
 
Old 08-04-2016, 02:07 PM   #2
stormtracknole
Senior Member
 
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,259

Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
Originally Posted by arfon View Post
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'.
Awesome! Thanks for sharing. I tried building motion with ffmpeg support, but ended up having to drop support for it. May have to give this a try again.

On a side note, not sure you are are aware that there is a Slackware ARM sub-forum here at LQ.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware ARM on RPI Zero: any success stories yet? gus3 Slackware - ARM 2 01-12-2016 11:35 PM
rpi-update on slackware arm justwantin Slackware - ARM 2 04-22-2014 01:29 AM
RPi Slackware ARM installer updated to 3.10.22 kernel Exaga Slackware - ARM 0 12-11-2013 03:44 AM
running a x86 binary on ARM RPI hardware depam Linux - Software 3 01-18-2013 10:04 PM
[SOLVED] Error building Mesa 7.10.2 on Slackware 13.37, possible fix folkenfanel Slackware 1 05-03-2011 02:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration