LinuxQuestions.org
Register a domain and help support LQ
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 12-01-2006, 01:56 PM   #1
Carpo
Member
 
Registered: Aug 2003
Location: Somewhere
Distribution: Gentoo (for now)
Posts: 364

Rep: Reputation: 30
Question compiling programs on an smp pc to use on non smp pc


a stupid question im sure but i will still ask it, seeing as when you compile a program if you have made a custom kernel it picks it up as 486 or 686.

if i make a program on a pc where i have a custom 2.6.219smp kernel and go to use that same program on another pc with only 1 cpu will it cause issues or should it run just fine - as i dont really wanna do 2 compiles of each prog
 
Old 12-01-2006, 04:00 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,974
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
You needn't worry about programs. gcc won't (can't) make a program
dependent on SMP. Only the architecture matters.


Cheers,
Tink
 
Old 12-02-2006, 02:42 AM   #3
Carpo
Member
 
Registered: Aug 2003
Location: Somewhere
Distribution: Gentoo (for now)
Posts: 364

Original Poster
Rep: Reputation: 30
tahnks tinkster - will make em on the smp box then - is faster ;P
 
Old 03-22-2007, 03:08 PM   #4
Carpo
Member
 
Registered: Aug 2003
Location: Somewhere
Distribution: Gentoo (for now)
Posts: 364

Original Poster
Rep: Reputation: 30
ok i know this is bumping up and old thread but i have a slight different angle on this question now - seeing as i have bought myself an nforce board with an amd athlon 64 x2 can i use the packages i made on the p4 smp box or will i need to make new packages baring in mind i have made a custom kernel using K8 option in 2.6.18.8 kernel
 
Old 03-22-2007, 03:23 PM   #5
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
I think you can do it by specifying the architecture you are compiling for, and the target and host.

See here:
http://gcc.gnu.org/onlinedocs/gcc-4....002d64-Options

I don't think you can run packages you already made that were compiled specifically for a pentium4. But if they are generic enough they may run. What compile flags did you use ?
 
Old 03-22-2007, 03:52 PM   #6
Carpo
Member
 
Registered: Aug 2003
Location: Somewhere
Distribution: Gentoo (for now)
Posts: 364

Original Poster
Rep: Reputation: 30
atm none yet - still a bit rusty after my little break but from what i have seen from some of the configure logs they are all saying they are building for i686 - so i think i should be able to get away with it for now untill i decide i am confident enough to make custom and tuned up packages, shouldnt be too hard i can make packages for main pc and use them on laptop even if it is a smp box they were made from, and i wouldnt have thought it would take long to do the same on the amd box

thanks for the link - very informative
 
  


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
Hyperthread server goes to kernel panic with SMP kernic, boots ok with non SMP kernel abefroman Linux - Kernel 1 09-15-2006 05:43 PM
Any reason to keep a non-smp kernel installed on a smp FC3 machine? jim-j Fedora 2 03-12-2006 07:06 AM
Compiling in SMP into 2.6.8 (Sarge stable) jimgeorge Debian 6 06-21-2005 02:17 PM
compiling SMP kernel WMD Slackware 8 08-08-2004 09:34 AM
Compiling SMP Kernel outlawpsd Slackware 4 10-31-2003 09:09 AM


All times are GMT -5. The time now is 08:43 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration