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


  Search this Thread
Old 10-23-2012, 03:51 PM   #1
Registered: Oct 2012
Location: UK
Distribution: Slackware
Posts: 252

Rep: Reputation: Disabled
Compiling mjpegtools on Slackware64 14

Having just upgraded from Slackware64-13.37 to 14.0, I've had to re-install some of my software, and one or two of them are proving problematic - specifically mjpegtools and vobcopy!

I have a standard slackbuild script for mjpegtools-2.0.0 which worked fine under 13.37. However, under 14, gcc produces an error whilst compiling: "Your gcc does not even support i386 for -march and -mtune"

This isn't surprising, as I'm building for x86_64! What is surprising is that gcc then interprets this error message as an instruction to search for a file or directory, and then crashes:

"gcc: error: Your: No such file or directory
gcc: error: gcc: No such file or directory
gcc: error: does: No such file or directory
gcc: error: not: No such file or directory"

and so on!!!

I've never seen anything like this before, and I've been a Slack user for over ten years!

Anyone got any clues as to what is going on?

Old 10-23-2012, 04:18 PM   #2
LQ Veteran
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,819
Blog Entries: 1

Rep: Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209Reputation: 1209
Hi and welcome to LQ.

I've just tried it on my Slackware64 14. No problems here. It must be something with your environment. I don't know, did you use to run -multilib and haven't removed all the packages?
Old 10-24-2012, 01:25 AM   #3
Registered: Oct 2012
Location: UK
Distribution: Slackware
Posts: 252

Original Poster
Rep: Reputation: Disabled
Hi, and thanks for the quick response!

Its a clean install, pure 64-bit, though I am running a self-compiled kernel (3.6.3). Not sure why or if that should make any difference!

Very odd! Why would gcc complain about i386 on an x86_64 system? Still, if it works for you, it must be something I've missed here - but what?

Any clues much appreciated!

Old 10-24-2012, 01:44 AM   #4
Registered: Jan 2011
Distribution: Slackware 14.1
Posts: 117

Rep: Reputation: 31
I have also compiled mjpegtools on x86_64 without problems. What is the output of
uname -a
uname -m
Try executing the SlackBuild with the "-x" parameter and log the output. For example:
bash -x mjpegtools.SlackBuild 2>&1 | tee m.log
Old 10-24-2012, 01:45 AM   #5
Registered: Oct 2003
Location: WA
Distribution: Slackware64 14.2 Slackware 14.2, Slackware{32,64}-current
Posts: 761
Blog Entries: 2

Rep: Reputation: 246Reputation: 246Reputation: 246
First off, you may want to revert to the stock Slackware with 3.2.29 kernel. mjpegtool then should compile. Then add one change at a time.

I run clean stock Slackware64 and Slackware64-multilib and compiling mjpegtool for x86_64 was not a problem.
Old 10-24-2012, 02:13 AM   #6
Registered: Oct 2012
Location: UK
Distribution: Slackware
Posts: 252

Original Poster
Rep: Reputation: Disabled

I found a new slackbuild script on Slacky and tried that - it worked instantly!

At a quick glance, I can't see anything significantly different in the way its configured, but there's obviously some subtle change in there! I'll have to have a closer look at it later, but for the moment, problem solved!

Many thanks for your help, guys! Just knowing that you all managed to build it persuaded me that it was something unique to the way I was doing things, rather than a generic issue! And that led me to a solution, even if I'm not quite sure why, yet!!!



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] Compiling FTLK-1.x on Slackware64-Current tpreitzel Slackware 3 08-13-2012 02:26 AM
[SOLVED] Compiling TQt3 on Slackware64 13.37 Stragonian Slackware 12 06-12-2012 12:25 PM
[SOLVED] compiling 32bit programs in slackware64 animeresistance Slackware 7 08-05-2011 05:35 PM
[SOLVED] compiling 32 bit on Slackware64 business_kid Slackware 9 05-21-2010 03:17 AM
Compiling Crafty in Slackware64 13 arubin Slackware 5 11-19-2009 03:11 AM

All times are GMT -5. The time now is 01:55 AM.

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