Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Self-hosted toolchain for non-x86?: (3 Items)
   
Self-hosted toolchain for non-x86?  
Since the pkgsrc project only supports building on self-hosted QNX systems...

Is it feasible to create a self-hosted toolchain that can run on a non-x86 QNX machine (e.g., ppcbe)? I'm guessing 
somebody has at least attempted this at some point... any pointers on where to start?

Alternatively, do you guys have non-x86 self-hosted versions available internally that our support rep could get for us?


Thanks,
Josh
Re: Self-hosted toolchain for non-x86?  
Josh Radel wrote:
> Since the pkgsrc project only supports building on self-hosted QNX systems...
> 
> Is it feasible to create a self-hosted toolchain that can run on a non-x86 QNX machine (e.g., ppcbe)? I'm guessing 
somebody has at least attempted this at some point... any pointers on where to start?
> 
> Alternatively, do you guys have non-x86 self-hosted versions available internally that our support rep could get for 
us?

No, we don't use native non-x86 toolchains internally.

To start with, check out the binutils and gcc from the foundry, and use 
the existing compilers to configure and build binutils and gcc for a ppc 
host. e.g. --host=powerpc-unknown-nto-qnx6.4.0 
--target=powerpc-unknown-nto-qnx6.4.0

Building binutils for your target should be straightforward. Building 
gcc will be slightly more complicated. If you're building gcc 4.3.3 or 
newer, you'll have to cross compile gmp and mpfr for your target as 
these are now needed for cc1/cc1plus.

It may be easier for you to cross-compile the project(s) you want to 
build from pkgsrc then going to through the hassle of setting up a 
native toolchain for your target.

Regards,

Ryan Mansfield

Re: Self-hosted toolchain for non-x86?  
On Thu, Aug 27, 2009 at 12:28:32PM -0400, Ryan Mansfield wrote:
> Josh Radel wrote:
> > Since the pkgsrc project only supports building on self-hosted QNX systems...
> > 
> > Is it feasible to create a self-hosted toolchain that can run on a non-x86 QNX machine (e.g., ppcbe)? I'm guessing 
somebody has at least attempted this at some point... any pointers on where to start?
> > 
> > Alternatively, do you guys have non-x86 self-hosted versions available internally that our support rep could get for
 us?
> 
> No, we don't use native non-x86 toolchains internally.
> 
> To start with, check out the binutils and gcc from the foundry, and use 
> the existing compilers to configure and build binutils and gcc for a ppc 
> host. e.g. --host=powerpc-unknown-nto-qnx6.4.0 
> --target=powerpc-unknown-nto-qnx6.4.0
> 
> Building binutils for your target should be straightforward. Building 
> gcc will be slightly more complicated. If you're building gcc 4.3.3 or 
> newer, you'll have to cross compile gmp and mpfr for your target as 
> these are now needed for cc1/cc1plus.
> 
> It may be easier for you to cross-compile the project(s) you want to 
> build from pkgsrc then going to through the hassle of setting up a 
> native toolchain for your target.

There's also all sorts of other utilities pkgsrc
expects that are only shipped self hosted...

-seanb