Go Back   Hardware Forums > Software Support Forums > Linux and Other OSes

Reply
 
LinkBack Thread Tools
Old 31-05-2008, 07:58 AM   #1 (permalink) Top
out of date
 
zeus's Avatar
 
Join Date: May 2003
Age: 27
Posts: 1,618
Times Helpful: 104
My Mood: Twisted
Status: Offline

My Computer

Default Compiling from source... platform specific?

If I compile a package from source does it matter if I have an x86 or powerpc computer? Most binaries are for x86 and I have an ibook with gutsy.

cheers guys!

  Reply With Quote
Whats this? Microsoft Wireless Optical Desktop 3000
Microsoft Wireless Optical Desktop 3000
Seller Price (inc. VAT) Delivery Total Price Availability Seller Rating
uk.insight.com £76.36 £5.86 £82.22 In Stock Rated: 4 out of 5 - Number of votes: 2
Tekheads.co.uk £21.73 £4.95 £26.68 In Stock Rated: 3 out of 5 - Number of votes: 310
IT247.com £61.44 Free £61.44 In Stock Rated: 4 out of 5 - Number of votes: 38
Old 31-05-2008, 03:15 PM   #2 (permalink) Top
Paranoid Geeky Geek
 
donkey42's Avatar
 
Join Date: Mar 2006
Age: 34 Male
Posts: 5,746
Times Helpful: 306
My Mood: Paranoid
Status: Offline

My Computer

no, if you compiling from source, compiling from source creates the appropriate installation files for the architecture you are compiling it for

BTW: i can't believe i'm advising about compiling source, anyone would think i compile source all the time, tbh, i haven't even configured HWF kernel in my system let alone compiling from suorce

Edit: source code is source code it must be compiled before it can be executed on any specific architecture / platform

e.g. x86, PPC or whatever

Last edited by donkey42; 31-05-2008 at 04:35 PM. Reason: edit
  Reply With Quote
Old 01-06-2008, 07:27 AM   #3 (permalink) Top
Nonconformist Geek
 
Anti-Trend's Avatar
 
Join Date: Oct 2003
Age: 27 Male
Posts: 4,815
Times Helpful: 525
Status: Online

My Computer

For best results, put CPU-specific Cflags in your /etc/environment file.

Safe Cflags - Gentoo Linux Wiki

For instance, to get the best stable Cflags for a G5 SPARC...
Code:
CHOST="powerpc64-unknown-linux-gnu"
CFLAGS="-mcpu=G5 -O2 -pipe -maltivec -mabi=altivec -fno-strict-aliasing"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O1"
Send a message via ICQ to Anti-Trend Send a message via AIM to Anti-Trend   Reply With Quote
The Following User Says Thank You to Anti-Trend For This Useful Post: Show me >>
Old 01-06-2008, 10:57 AM   #4 (permalink) Top
Paranoid Geeky Geek
 
donkey42's Avatar
 
Join Date: Mar 2006
Age: 34 Male
Posts: 5,746
Times Helpful: 306
My Mood: Paranoid
Status: Offline

My Computer

if i may be so bold
Quote:
Originally Posted by zeus
Most binaries are for x86
if source is already compiled for x86 they are not compatible with PPC or any other architecture
  Reply With Quote
Old 01-06-2008, 12:07 PM   #5 (permalink) Top
The King

 
Addis's Avatar
 
Join Date: Jan 2004
Age: 18 Male
Posts: 5,254
Times Helpful: 402
My Mood: Drunk
Status: Offline

My Computer

Not all applications can be compiled for any architecture though. There may be cases where certain programs/libraries can only be built for certain architectures, since there's no guarantee that it's portable.
__________________
Never trust a program you don't have the source code for.

My website | Powerful Desktop Linux | Linux for human beings | Linux for power users | Linux for ricers
Send a message via MSN to Addis   Reply With Quote
The Following User Says Thank You to Addis For This Useful Post: Show me >>
Old 01-06-2008, 12:18 PM   #6 (permalink) Top
Paranoid Geeky Geek
 
donkey42's Avatar
 
Join Date: Mar 2006
Age: 34 Male
Posts: 5,746
Times Helpful: 306
My Mood: Paranoid
Status: Offline

My Computer

Quote:
Originally Posted by Addis
Not all applications can be compiled for any architecture though. There may be cases where certain programs/libraries can only be built for certain architectures, since there's no guarantee that it's portable.
thankies, are there any tell tale signs to signify a prog/lib source is not cross compilable between arch ?

Edit: sorry for the stupid post, presumably you can tell the arch by reading the source

Last edited by donkey42; 01-06-2008 at 12:29 PM. Reason: edit
  Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy Files to a specific folder zinge Networking and Computer Security 3 07-01-2008 09:03 AM
Compiling source code with Ubuntu RHochstenbach Linux and Other OSes 3 19-06-2007 09:45 PM
Specific network sharing TheFire Networking and Computer Security 4 14-04-2006 04:54 AM
Non Specific CPU usage illusion Windows OS's 11 01-02-2006 10:49 AM
Compiling ProcalX Linux and Other OSes 3 08-10-2004 07:47 AM


All times are GMT +1. The time now is 05:30 PM.


Copyright © 2000 - 2008 · HARDWAREFORUMS.COM · All rights reserved