LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-11-2005, 05:11 PM   #1
dosnlinux
Member
 
Registered: Mar 2005
Distribution: slackware 11, arch 2007.08
Posts: 154

Rep: Reputation: 30
what's my package x86?


I finally got a chance to compile some packages, but I don't know about gcc default x86. Do I put packagename-i486-1.tgz or do I put the x86 for my processor(i686)?
 
Old 07-11-2005, 05:31 PM   #2
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
it doesn't really matter. Both should work, as it is the same architecture.
The x86 (hence the name) can stand for 386,486 or 686 (pentium, AMD athlon and such processors).
 
Old 07-12-2005, 03:17 PM   #3
dosnlinux
Member
 
Registered: Mar 2005
Distribution: slackware 11, arch 2007.08
Posts: 154

Original Poster
Rep: Reputation: 30
I know it doesn't really matter. It's just a matter of curiosity and wanting to have my packages labled correctly.(step 1 on my road to learning slack package management)
 
Old 07-12-2005, 04:05 PM   #4
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
it might just be a bit optimized for the architecture. if you have i686, then if you can find i686 use that, otherwise any of the x86 types will fit.
 
Old 07-12-2005, 06:59 PM   #5
dosnlinux
Member
 
Registered: Mar 2005
Distribution: slackware 11, arch 2007.08
Posts: 154

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by marghorp
it might just be a bit optimized for the architecture
Right. I want to know if the packages that I compile on my machine are bit optimized for my architecture, or the origional architecture that the slackware gcc was compiled for(i486).
 
Old 07-13-2005, 05:21 PM   #6
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
The optimization can be set using FLAGS or editing the /etc/make.conf file. Search the web for both. What you will set, will be how the stuff is compiled.
 
Old 07-14-2005, 03:09 PM   #7
dosnlinux
Member
 
Registered: Mar 2005
Distribution: slackware 11, arch 2007.08
Posts: 154

Original Poster
Rep: Reputation: 30
Thank you very much

Make has a conf file!?!
Maybe there's other things that can be tweaked in it...

I've seen FLAGS in some of the compiler messages so I'll have to check the make files and do some research

Last edited by dosnlinux; 07-14-2005 at 03:12 PM.
 
Old 07-15-2005, 09:26 AM   #8
-0-
Member
 
Registered: Nov 2004
Location: London uk
Distribution: Slack 10
Posts: 67

Rep: Reputation: 15
IIRC /etc/make.conf is a gentoo thing.


man make says squat about it, so i'd think as much.
 
Old 07-15-2005, 09:46 AM   #9
MMYoung
Member
 
Registered: Apr 2004
Location: Arkansas
Distribution: Ubuntu 8.10
Posts: 365

Rep: Reputation: 30
Quote:
Originally posted by dosnlinux
I know it doesn't really matter. It's just a matter of curiosity and wanting to have my packages labled correctly.(step 1 on my road to learning slack package management)
You may want to take a look at this little HOWTO GCC Myths and Facts. You can also get "technical" with the GCC documentation Intel 386 and AMD x86-64 Options.

Basically you can set a "general" cpu type with the following CFLAG variable:
"-march=i686"
This will compile the program for all 686 processors, this includes Athlons as well.

If you have a Pentium IV CPU you can further optimize with this:
"-march=i686 -mcpu=pentium4"
This is the same as above, but it "turns on" special features that are avialable to the Pentium 4.

The way that Pat V compiles most, not all but most, of the software for Slackware is to use:
"-march=i486 -mcpu=i686"
This allows for the most compatibility with nearly every processor out there with the special features that will be used if the package is installed on a 686 processor.

HTH,
MMYoung
 
Old 07-20-2005, 12:54 PM   #10
dosnlinux
Member
 
Registered: Mar 2005
Distribution: slackware 11, arch 2007.08
Posts: 154

Original Poster
Rep: Reputation: 30
Quote:
You may want to take a look at this little HOWTO GCC Myths and Facts. You can also get "technical" with the GCC documentation Intel 386 and AMD x86-64 Options.
Thanks for the links! The one at freshmeat.net was really helpful. I guess I'll have to take a closer look at my makefiles from now on. I cant wait to finish the GCC manual! I've also starting downloading the other GNU tools manuals to see what wealth of information they hide.
 
  


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
Mandriva 32-bit X86, 64-bit x86-64 & i586. La Dima Mandriva 9 10-07-2005 06:12 AM
Boot x86 target from flash, with the image and file system on the x86 host. batsayan Linux - Software 2 08-23-2005 12:09 AM
message "Problem during installation: x package needed for (installed) x package frayed2 Linux - Newbie 1 04-24-2005 07:05 PM
Does apt-get install <package> upgrade the package if it is already installed? davidas Debian 4 04-05-2004 06:12 PM
installing an unstable package from debian's online package archive ganninu Debian 13 11-07-2003 03:00 PM

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

All times are GMT -5. The time now is 09:34 PM.

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