LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-05-2007, 05:27 AM   #1
sci3ntist
Member
 
Registered: Dec 2006
Distribution: Debian,Slackware,FreeBSD,CentOS,Red Hat,Windows Server 2008
Posts: 133

Rep: Reputation: 16
Cross Compiling gcc


Hi
I needa cross-linker and a cross-assembler to compile gcc-2.3 that runs under 4.4BSD-lite or linux, also i need some tutorial about how to cross-compile the gcc.
Thanks
 
Old 08-05-2007, 08:37 AM   #2
rubadub
Member
 
Registered: Jun 2004
Posts: 236

Rep: Reputation: 33
Hope this is some help...
http://www.torriefamily.org/~torriem/cross/
and obviously...
http://gcc.gnu.org/onlinedocs/gcc-4.2.1/gcc/
and search for target within it...
 
Old 08-05-2007, 09:57 AM   #3
sci3ntist
Member
 
Registered: Dec 2006
Distribution: Debian,Slackware,FreeBSD,CentOS,Red Hat,Windows Server 2008
Posts: 133

Original Poster
Rep: Reputation: 16
Thanks, but i need to cross compile gcc-2.3 that comes with 4.4BSD-lite under FreeBSD,also I got a problem when compiling Binutil under freebsd,Is there any compatible version for FreeBSD.
 
Old 08-07-2007, 08:33 AM   #4
ciotog
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728
Blog Entries: 2

Rep: Reputation: 43
I've successfully used Dan Kegel's crosstool scripts to build a cross-compile environment for embedded system development, and they also support Canadian cross builds (which I believe is what you're after). Note that you don't really have to worry about which version of BSD your target is, if it's the same architecture as the build system. In other words I don't think you really need to follow the Canadian cross directions, you can simply build the cross-compile environment on the FreeBSD system and then copy the /opt/crosstool directory over to the 4.4BSD-lite system. Once you've set up your path and perhaps some symlinks you should be good.

http://kegel.com/crosstool/crosstool....html#canadian
 
  


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
Cross compiling gcc 4.x mks_jangra Linux - Software 1 05-17-2007 08:32 PM
Problem Compiling GCC as cross comp (mkdir issue) elyk1212 Linux - Desktop 3 10-01-2006 03:46 AM
Error cross copiling gcc.. gobi_dgm Linux - Software 0 09-20-2006 10:18 AM
GCC cross compiling to alpha sparc? jon_k Linux - Software 2 12-07-2004 02:23 PM
help: gcc cross-compiler for m68000 worthij Linux - Software 0 11-09-2004 01:32 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:45 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