* MIPS Cross Compiler Tools
@ 2001-07-10 16:27 Marc Karasek
2001-07-10 16:35 ` Steve Langasek
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Marc Karasek @ 2001-07-10 16:27 UTC (permalink / raw)
To: 'linux-mips@oss.sgi.com'
I had a question about the cross compiler tools for MIPS, specifically
glibc. I d/l the rpms from oss.sgi.com, but they are only binutils, and
the compiler (C, C++).
Are most people building glibc against these or are you building the tools
completely from scratch? As glibc is needed to compile anything else other
than the kernel.
Marc Karasek
Sr. Firmware Eng
iVivity Inc
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: MIPS Cross Compiler Tools
2001-07-10 16:27 MIPS Cross Compiler Tools Marc Karasek
@ 2001-07-10 16:35 ` Steve Langasek
2001-07-10 17:11 ` Marc Karasek
2001-07-10 16:39 ` Pete Popov
2001-07-10 16:46 ` H . J . Lu
2 siblings, 1 reply; 10+ messages in thread
From: Steve Langasek @ 2001-07-10 16:35 UTC (permalink / raw)
To: 'linux-mips@oss.sgi.com'
Hi Marc,
On Tue, 10 Jul 2001, Marc Karasek wrote:
> I had a question about the cross compiler tools for MIPS, specifically
> glibc. I d/l the rpms from oss.sgi.com, but they are only binutils, and
> the compiler (C, C++).
> Are most people building glibc against these or are you building the tools
> completely from scratch? As glibc is needed to compile anything else other
> than the kernel.
You don't need a special 'cross-compiler' glibc in order to set up a
cross-build environment for MIPS; simply grab a glibc package that's
precompiled for MIPS and install it into your cross-build root directory.
I don't know who (if anyone) would have rpms for a recent mips glibc; I use
Debian, where I have the packages available as part of the distro.
Regards,
Steve Langasek
postmodern programmer
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: MIPS Cross Compiler Tools
2001-07-10 16:27 MIPS Cross Compiler Tools Marc Karasek
2001-07-10 16:35 ` Steve Langasek
@ 2001-07-10 16:39 ` Pete Popov
2001-07-10 17:09 ` Marc Karasek
2001-07-10 16:46 ` H . J . Lu
2 siblings, 1 reply; 10+ messages in thread
From: Pete Popov @ 2001-07-10 16:39 UTC (permalink / raw)
To: Marc Karasek; +Cc: 'linux-mips@oss.sgi.com'
Marc Karasek wrote:
> I had a question about the cross compiler tools for MIPS, specifically
> glibc. I d/l the rpms from oss.sgi.com, but they are only binutils, and
> the compiler (C, C++).
>
> Are most people building glibc against these or are you building the tools
> completely from scratch? As glibc is needed to compile anything else other
> than the kernel.
Friday or Monday MontaVista should have the HHL2.0 Journeyman mips
release on the ftp site which will include the userland apps, cross AND
native tools, etc. The tools and glibc are very up to date. I would
suggest checking Monday for the release and using that instead of
building your own.
Pete
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: MIPS Cross Compiler Tools
2001-07-10 16:27 MIPS Cross Compiler Tools Marc Karasek
2001-07-10 16:35 ` Steve Langasek
2001-07-10 16:39 ` Pete Popov
@ 2001-07-10 16:46 ` H . J . Lu
2001-07-10 17:05 ` Marc Karasek
2 siblings, 1 reply; 10+ messages in thread
From: H . J . Lu @ 2001-07-10 16:46 UTC (permalink / raw)
To: Marc Karasek; +Cc: 'linux-mips@oss.sgi.com'
On Tue, Jul 10, 2001 at 12:27:43PM -0400, Marc Karasek wrote:
> I had a question about the cross compiler tools for MIPS, specifically
> glibc. I d/l the rpms from oss.sgi.com, but they are only binutils, and
> the compiler (C, C++).
>
> Are most people building glibc against these or are you building the tools
> completely from scratch? As glibc is needed to compile anything else other
> than the kernel.
My RedHat 7.1 release on oss.sgi.com has the complete cross toolchain:
H.J.
-----
My mini-port of RedHat 7.1 is at
ftp://oss.sgi.com/pub/linux/mips/redhat/7.1/
you should be able to put a small RedHat 7.1 on the mips/mipsel box and
compile the rest of RedHat 7.1 yourselves.
Here are something you should know:
1. The cross compiler hosted on RedHat 7.1/ia32 is provided as a
toolchain rpm. The binary rpms for the mips and mipsel cross compilers
are included.
2. You have to find a way to put those rpms on your machine. I use
network boot and NFS root to do it.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: MIPS Cross Compiler Tools
2001-07-10 16:46 ` H . J . Lu
@ 2001-07-10 17:05 ` Marc Karasek
2001-07-10 17:07 ` H . J . Lu
2001-07-11 8:41 ` Gleb O. Raiko
0 siblings, 2 replies; 10+ messages in thread
From: Marc Karasek @ 2001-07-10 17:05 UTC (permalink / raw)
To: H . J . Lu; +Cc: 'linux-mips@oss.sgi.com'
This is for an embedded platform, with no harddrive. So I will need to
use things like busybox, etc. I just need the headers & libs. So far I
have only been able to find glibc-2.2.2 from deb in an rpm format.
Could not get this to install in /usr/local/mips-linux/... properly. I
guess what I am really looking for is a tgz file of the libs/headers.
SO I can put it where I want it. Any packaged dist (RH, deb) would not
be usefull in this scenario. At least that is my experience todate....
Thanks for the quick response..
On 10 Jul 2001 09:46:27 -0700, H . J . Lu wrote:
> On Tue, Jul 10, 2001 at 12:27:43PM -0400, Marc Karasek wrote:
> > I had a question about the cross compiler tools for MIPS, specifically
> > glibc. I d/l the rpms from oss.sgi.com, but they are only binutils, and
> > the compiler (C, C++).
> >
> > Are most people building glibc against these or are you building the tools
> > completely from scratch? As glibc is needed to compile anything else other
> > than the kernel.
>
> My RedHat 7.1 release on oss.sgi.com has the complete cross toolchain:
>
>
>
> H.J.
> -----
> My mini-port of RedHat 7.1 is at
>
> ftp://oss.sgi.com/pub/linux/mips/redhat/7.1/
>
> you should be able to put a small RedHat 7.1 on the mips/mipsel box and
> compile the rest of RedHat 7.1 yourselves.
>
> Here are something you should know:
>
> 1. The cross compiler hosted on RedHat 7.1/ia32 is provided as a
> toolchain rpm. The binary rpms for the mips and mipsel cross compilers
> are included.
> 2. You have to find a way to put those rpms on your machine. I use
> network boot and NFS root to do it.
--
/*************************
Marc Karasek
Sr. Firmware Engineer
iVivity Inc.
marc_karasek@ivivity.com
(770) 986-8925
(770) 986-8926 Fax
*************************/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: MIPS Cross Compiler Tools
2001-07-10 17:05 ` Marc Karasek
@ 2001-07-10 17:07 ` H . J . Lu
2001-07-11 8:41 ` Gleb O. Raiko
1 sibling, 0 replies; 10+ messages in thread
From: H . J . Lu @ 2001-07-10 17:07 UTC (permalink / raw)
To: Marc Karasek; +Cc: 'linux-mips@oss.sgi.com'
On Tue, Jul 10, 2001 at 01:05:01PM -0400, Marc Karasek wrote:
> This is for an embedded platform, with no harddrive. So I will need to
> use things like busybox, etc. I just need the headers & libs. So far I
> have only been able to find glibc-2.2.2 from deb in an rpm format.
> Could not get this to install in /usr/local/mips-linux/... properly. I
> guess what I am really looking for is a tgz file of the libs/headers.
> SO I can put it where I want it. Any packaged dist (RH, deb) would not
> be usefull in this scenario. At least that is my experience todate....
What are you talking about? Did you ask for the cross toolchain? What
does it have anything to do with your target?
H.J.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: MIPS Cross Compiler Tools
2001-07-10 16:39 ` Pete Popov
@ 2001-07-10 17:09 ` Marc Karasek
2001-07-10 17:55 ` Pete Popov
0 siblings, 1 reply; 10+ messages in thread
From: Marc Karasek @ 2001-07-10 17:09 UTC (permalink / raw)
To: ppopov; +Cc: 'linux-mips@oss.sgi.com'
Will these be in the form of rpms or tgz files?? In the case of rpm do
you know if they would be package similar to the ones on oss.sgi.com?
ie Setup for a crossdev enviroment. I just really need the cross tools
as the dev is on an embedded system, with no harddrive. The userland
stuff is pretty worthless to me. I will be using busybox, tinylogin,
etc. for the standard bin utilities. Having a few megabytes to store
everything in makes you very sensitive to size.... :-)
Thanks for the quick response...
On 10 Jul 2001 09:39:02 -0700, Pete Popov wrote:
> Marc Karasek wrote:
>
> > I had a question about the cross compiler tools for MIPS, specifically
> > glibc. I d/l the rpms from oss.sgi.com, but they are only binutils, and
> > the compiler (C, C++).
> >
> > Are most people building glibc against these or are you building the tools
> > completely from scratch? As glibc is needed to compile anything else other
> > than the kernel.
>
> Friday or Monday MontaVista should have the HHL2.0 Journeyman mips
> release on the ftp site which will include the userland apps, cross AND
> native tools, etc. The tools and glibc are very up to date. I would
> suggest checking Monday for the release and using that instead of
> building your own.
>
> Pete
--
/*************************
Marc Karasek
Sr. Firmware Engineer
iVivity Inc.
marc_karasek@ivivity.com
(770) 986-8925
(770) 986-8926 Fax
*************************/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: MIPS Cross Compiler Tools
2001-07-10 16:35 ` Steve Langasek
@ 2001-07-10 17:11 ` Marc Karasek
0 siblings, 0 replies; 10+ messages in thread
From: Marc Karasek @ 2001-07-10 17:11 UTC (permalink / raw)
To: Steve Langasek; +Cc: 'linux-mips@oss.sgi.com'
I really need the libs to cross-compile some other apps. The target is
an embedded system, so I need to crosscompile things like busybox,
tinylogin, etc. (It will NOT have a harddrive) I have done this before
with ARM and it is pretty easy once you get the tools in place.
Sometimes that is the hardest part...
On 10 Jul 2001 11:35:20 -0500, Steve Langasek wrote:
> Hi Marc,
>
> On Tue, 10 Jul 2001, Marc Karasek wrote:
>
> > I had a question about the cross compiler tools for MIPS, specifically
> > glibc. I d/l the rpms from oss.sgi.com, but they are only binutils, and
> > the compiler (C, C++).
>
> > Are most people building glibc against these or are you building the tools
> > completely from scratch? As glibc is needed to compile anything else other
> > than the kernel.
>
> You don't need a special 'cross-compiler' glibc in order to set up a
> cross-build environment for MIPS; simply grab a glibc package that's
> precompiled for MIPS and install it into your cross-build root directory.
>
> I don't know who (if anyone) would have rpms or a recent mips glibc; I use
> Debian, where I have the packages available as part of the distro.
>
> Regards,
> Steve Langasek
> postmodern programmer
--
/*************************
Marc Karasek
Sr. Firmware Engineer
iVivity Inc.
marc_karasek@ivivity.com
(770) 986-8925
(770) 986-8926 Fax
*************************/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: MIPS Cross Compiler Tools
2001-07-10 17:09 ` Marc Karasek
@ 2001-07-10 17:55 ` Pete Popov
0 siblings, 0 replies; 10+ messages in thread
From: Pete Popov @ 2001-07-10 17:55 UTC (permalink / raw)
To: Marc Karasek; +Cc: 'linux-mips@oss.sgi.com'
Marc Karasek wrote:
> Will these be in the form of rpms or tgz files??
rpm
In the case of rpm do
> you know if they would be package similar to the ones on oss.sgi.com?
I'm not sure how the oss.sgi.com tools are packaged. The MontaVista
release gets installed in /opt/hardhat/<....>. The
/opt/hardhat/devkit/mips/fp<le|be>/target is the root fs that gets
mounted over nfs. The target root fs has all the userland apps and
native tools. The /opt/hardhat/devkit/mips/fp_<le|be>/bin has the cross
tools.
> ie Setup for a crossdev enviroment. I just really need the cross tools
> as the dev is on an embedded system, with no harddrive.
That's what we work with mostly as well.
> The userland
> stuff is pretty worthless to me. I will be using busybox, tinylogin,
> etc. for the standard bin utilities.
OK, but we have all of those packaged in rpm as well, and it's very easy
to rebuild the rpms from the source rpms, if you need to rebuild them.
Pete
> Having a few megabytes to store
> everything in makes you very sensitive to size.... :-)
>
> Thanks for the quick response...
>
> On 10 Jul 2001 09:39:02 -0700, Pete Popov wrote:
>
>>Marc Karasek wrote:
>>
>>
>>>I had a question about the cross compiler tools for MIPS, specifically
>>>glibc. I d/l the rpms from oss.sgi.com, but they are only binutils, and
>>>the compiler (C, C++).
>>>
>>>Are most people building glibc against these or are you building the tools
>>>completely from scratch? As glibc is needed to compile anything else other
>>>than the kernel.
>>>
>>Friday or Monday MontaVista should have the HHL2.0 Journeyman mips
>>release on the ftp site which will include the userland apps, cross AND
>>native tools, etc. The tools and glibc are very up to date. I would
>>suggest checking Monday for the release and using that instead of
>>building your own.
>>
>>Pete
>>
> --
> /*************************
> Marc Karasek
> Sr. Firmware Engineer
> iVivity Inc.
> marc_karasek@ivivity.com
> (770) 986-8925
> (770) 986-8926 Fax
> *************************/
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: MIPS Cross Compiler Tools
2001-07-10 17:05 ` Marc Karasek
2001-07-10 17:07 ` H . J . Lu
@ 2001-07-11 8:41 ` Gleb O. Raiko
1 sibling, 0 replies; 10+ messages in thread
From: Gleb O. Raiko @ 2001-07-11 8:41 UTC (permalink / raw)
To: Marc Karasek; +Cc: H . J . Lu, 'linux-mips@oss.sgi.com'
Marc Karasek wrote:
>
> This is for an embedded platform, with no harddrive. So I will need to
> use things like busybox, etc. I just need the headers & libs. So far I
> have only been able to find glibc-2.2.2 from deb in an rpm format.
> Could not get this to install in /usr/local/mips-linux/... properly. I
> guess what I am really looking for is a tgz file of the libs/headers.
I've got cross mipseb libc as rpm for a long time. Sure, it's installed
in /usr/mips-linux and has noarch format. The SPEC file just picks up
mips.rpm and builds noarch with /usr/mips-linux as root. Unfortunately,
I haven't a place where I may upload rpm for public access. If it's what
you need I may send the spec file by request.
Regards,
Gleb.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2001-07-11 8:26 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-10 16:27 MIPS Cross Compiler Tools Marc Karasek
2001-07-10 16:35 ` Steve Langasek
2001-07-10 17:11 ` Marc Karasek
2001-07-10 16:39 ` Pete Popov
2001-07-10 17:09 ` Marc Karasek
2001-07-10 17:55 ` Pete Popov
2001-07-10 16:46 ` H . J . Lu
2001-07-10 17:05 ` Marc Karasek
2001-07-10 17:07 ` H . J . Lu
2001-07-11 8:41 ` Gleb O. Raiko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox