The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 what about other architectures?
Author: gill 
Date:   19-06-03 04:06

if the "slow box" is, say, an alpha or a sparc ... how can I build the world/kernel on my fast i386 box? I've searched for a good doc on this "cross compiling" topic but found nothing really. Perhaps it is so simple that it seems obvious, but it isn't obvious to me :/

Reply To This Message
 Re: what about other architectures?
Author: Dan Langille 
Date:   19-06-03 15:03

The short answer is : don't bother. I asked in a developers channel:

Someone mentioned: make TARGET_ARCH=alpha buildworld

Same person said: I think cross-compiling from a 32-bit to 64-bit arch produces inferior results, at least with gcc. I believe that person shouldn't cross-build to alpha.The speed isn't worth the problems

Another person said: yes, gcc still has cross compile issues with some platforms, where it generates invalid code.. especially with -O and 32->64 bit.... i386(32) -> alpha(64) is notorious. its similar on i386->ia64. the only thing cross world builds are really useful for are testing syntax and bootstrapping. You do NOT want to release from it.

make TARGET_ARCH=alpha buildworld; make installworld DESTDIR=/somewhere TARGET_ARCH=alpha

$ grep TARGET Makefile
# If TARGET_ARCH=arch (e.g. alpha) is specified you can
${MAKE} -f Makefile.upgrade -m ${.CURDIR}/share/mk ${.TARGET}

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 

 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Remember my login:
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum