LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 04-24-2017, 03:53 PM   #1
arfon
Member
 
Registered: Apr 2004
Location: Texas
Distribution: Slackware
Posts: 166

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; 04-24-2017 at 03:58 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] motion not building on RPi (Slackware ARM 14.2) - THE FIX arfon Slackware 1 08-04-2016 02:07 PM
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

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

All times are GMT -5. The time now is 11:16 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration