Linux MIPS Architecture development
 help / color / mirror / Atom feed
* crosscompiler
@ 1999-08-30 13:44 Thomas Berg
  1999-08-30 13:44 ` crosscompiler Thomas Berg
  0 siblings, 1 reply; 10+ messages in thread
From: Thomas Berg @ 1999-08-30 13:44 UTC (permalink / raw)
  To: linux

Hello everyone!

I've been trying to set up a crosscompiler but it seems I've run out of
luck..

binutils(2.8.1 + recommended patch) builds and installs fine
egcs(1.0.3a + recommended patch) first installation builds and installs

glibc(2.0.6 + addon libs) doesnt come close to building
( [root@sushi build]# CC=mips-linux-gcc BUILD_CC=gcc AR=mips-linux-ar
RANLIB=mips-linux-ranlib
../configure --prefix=/usr --host=mips -linux --enable-add-ons=crypt,linuxth
reads,localedata --enable-profile )

I have tried this setup on a i386 redhat box (6.0) and on sparc running
solaris 7, and taken great care to follow the instructions in the howto.

The patch that is used on glibc-2.0.6 in the Linux/MIPS HOWTO is no where to
be found ? ie glibc-2.0.6-mips.patch

Anyone got a clue what im doing wrong ? (also tried to use the precompiled
packages of binutils/egcs etc, no luck there either)

best regards,
Thomas Berg
thomas@baltic-ins-services.net

^ permalink raw reply	[flat|nested] 10+ messages in thread

* crosscompiler
  1999-08-30 13:44 crosscompiler Thomas Berg
@ 1999-08-30 13:44 ` Thomas Berg
  0 siblings, 0 replies; 10+ messages in thread
From: Thomas Berg @ 1999-08-30 13:44 UTC (permalink / raw)
  To: linux

Hello everyone!

I've been trying to set up a crosscompiler but it seems I've run out of
luck..

binutils(2.8.1 + recommended patch) builds and installs fine
egcs(1.0.3a + recommended patch) first installation builds and installs

glibc(2.0.6 + addon libs) doesnt come close to building
( [root@sushi build]# CC=mips-linux-gcc BUILD_CC=gcc AR=mips-linux-ar
RANLIB=mips-linux-ranlib
../configure --prefix=/usr --host=mips -linux --enable-add-ons=crypt,linuxth
reads,localedata --enable-profile )

I have tried this setup on a i386 redhat box (6.0) and on sparc running
solaris 7, and taken great care to follow the instructions in the howto.

The patch that is used on glibc-2.0.6 in the Linux/MIPS HOWTO is no where to
be found ? ie glibc-2.0.6-mips.patch

Anyone got a clue what im doing wrong ? (also tried to use the precompiled
packages of binutils/egcs etc, no luck there either)

best regards,
Thomas Berg
thomas@baltic-ins-services.net

^ permalink raw reply	[flat|nested] 10+ messages in thread

* CrossCompiler.
@ 2000-10-17 13:55 Nicu Popovici
  2000-10-17 14:30 ` CrossCompiler Steve Kranz
  0 siblings, 1 reply; 10+ messages in thread
From: Nicu Popovici @ 2000-10-17 13:55 UTC (permalink / raw)
  To: linux-mips

[-- Attachment #1: Type: text/plain, Size: 601 bytes --]

Hello you all,

  I am new in this field so if I will make mistakes please be patient
and I will try to not repeat myself.

So my task is to setup a gcc crosscompiler which will make code for a
mips machine. The crosscompiler will run on a i686-pc-linux machine. I
downloaded the latest stuff from oss.sgi.com ( I read the foozbar
project which was to setup a crosscompiler on a Indy machine also for
mips ) but I got an error  .
Something  with signal 11. Can any of you have any ideea of what to do
to setupsuch a crosscompiler ?

Thanks for all the help that I will get from you .

Regards,
Nicu



[-- Attachment #2: Card for Nicu Popovici --]
[-- Type: text/x-vcard, Size: 254 bytes --]

begin:vcard 
n:Popovici;Nicu
tel;cell:+40 93 605020
x-mozilla-html:FALSE
org:SC Silicon Service SRL;software 
adr:;;;IASI;IASI;6600;ROMANIA
version:2.1
email;internet:octavp@isratech.ro
title:software engineer
x-mozilla-cpt:;0
fn:Nicu Popovici
end:vcard

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: CrossCompiler.
  2000-10-17 13:55 CrossCompiler Nicu Popovici
@ 2000-10-17 14:30 ` Steve Kranz
  2000-10-17 15:20   ` CrossCompiler Keith M Wesolowski
  0 siblings, 1 reply; 10+ messages in thread
From: Steve Kranz @ 2000-10-17 14:30 UTC (permalink / raw)
  To: Nicu Popovici; +Cc: linux-mips

Try downloading the make-cross... package located at the
following site:

  ftp://oss.sgi.com/pub/linux/mips/mips-linux/simple

The README file pertaining to that package states
the following:

  "This is the "standard" toolchain. It may not be
  perfect, but it at least builds a working kernel and
  some userland packages. It will be updated as major
  bugs are fixed or every 4-6 weeks or so. If you are
  doing development with Simple and/or glibc 2.2, you
  should be using these versions.
  make-cross.sh can be used to build a full cross
  toolchain in one shot."

Steve Kranz
RidgeRun Inc.

=============================

Nicu Popovici wrote:

> Hello you all,
>
>   I am new in this field so if I will make mistakes please be patient
> and I will try to not repeat myself.
>
> So my task is to setup a gcc crosscompiler which will make code for a
> mips machine. The crosscompiler will run on a i686-pc-linux machine. I
> downloaded the latest stuff from oss.sgi.com ( I read the foozbar
> project which was to setup a crosscompiler on a Indy machine also for
> mips ) but I got an error  .
> Something  with signal 11. Can any of you have any ideea of what to do
> to setupsuch a crosscompiler ?
>
> Thanks for all the help that I will get from you .
>
> Regards,
> Nicu

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: CrossCompiler.
  2000-10-17 14:30 ` CrossCompiler Steve Kranz
@ 2000-10-17 15:20   ` Keith M Wesolowski
  0 siblings, 0 replies; 10+ messages in thread
From: Keith M Wesolowski @ 2000-10-17 15:20 UTC (permalink / raw)
  To: Steve Kranz; +Cc: Nicu Popovici, linux-mips

On Tue, Oct 17, 2000 at 08:30:37AM -0600, Steve Kranz wrote:

> Try downloading the make-cross... package located at the
> following site:

>   "This is the "standard" toolchain. It may not be
>   perfect, but it at least builds a working kernel and
>   some userland packages. It will be updated as major

Unfortunately the standard toolchain itself is out of date. I would
recommend instead getting current CVS binutils and gcc, and patching
appropriately. With any luck we'll soon have a new standard toolchain.
make-cross, otoh, is still 100% useful; I use it all the time and it
works with arbitrary versions.

-- 
Keith M Wesolowski			wesolows@chem.unr.edu
University of Nevada			http://www.chem.unr.edu
Chemistry Department Systems and Network Administrator

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Crosscompiler
@ 2000-12-11 13:26 Carsten Langgaard
  2000-12-12  4:07 ` Crosscompiler Ralf Baechle
  0 siblings, 1 reply; 10+ messages in thread
From: Carsten Langgaard @ 2000-12-11 13:26 UTC (permalink / raw)
  To: linux-mips

Where can I find a precompiled crosscompiler for mips 64 little endian ?

I coundn't find any under
ftp://oss.sgi.com/pub/linux/mips/crossdev/i386-linux/

/Carsten

--
_    _ ____  ___   Carsten Langgaard   Mailto:carstenl@mips.com
|\  /|||___)(___   MIPS Denmark        Direct: +45 4486 5527
| \/ |||    ____)  Lautrupvang 4B      Switch: +45 4486 5555
  TECHNOLOGIES     2750 Ballerup       Fax...: +45 4486 5556
                   Denmark             http://www.mips.com

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Crosscompiler
  2000-12-11 13:26 Crosscompiler Carsten Langgaard
@ 2000-12-12  4:07 ` Ralf Baechle
  2000-12-12  9:33   ` Crosscompiler Carsten Langgaard
  0 siblings, 1 reply; 10+ messages in thread
From: Ralf Baechle @ 2000-12-12  4:07 UTC (permalink / raw)
  To: Carsten Langgaard; +Cc: linux-mips

On Mon, Dec 11, 2000 at 02:26:57PM +0100, Carsten Langgaard wrote:

> Where can I find a precompiled crosscompiler for mips 64 little endian ?
> 
> I coundn't find any under
> ftp://oss.sgi.com/pub/linux/mips/crossdev/i386-linux/

Correct - because I simply didn't build one.  With no supported system there
plain wasn't any reason to.  Anyway, it's a mostly automatic process to
brew one for you, so hold your breath.  But only if you're really good
at it :-)

  Ralf

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Crosscompiler
  2000-12-12  4:07 ` Crosscompiler Ralf Baechle
@ 2000-12-12  9:33   ` Carsten Langgaard
  0 siblings, 0 replies; 10+ messages in thread
From: Carsten Langgaard @ 2000-12-12  9:33 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: linux-mips

Ralf Baechle wrote:

> On Mon, Dec 11, 2000 at 02:26:57PM +0100, Carsten Langgaard wrote:
>
> > Where can I find a precompiled crosscompiler for mips 64 little endian ?
> >
> > I coundn't find any under
> > ftp://oss.sgi.com/pub/linux/mips/crossdev/i386-linux/
>
> Correct - because I simply didn't build one.  With no supported system there
> plain wasn't any reason to.  Anyway, it's a mostly automatic process to
> brew one for you, so hold your breath.  But only if you're really good
> at it :-)

Ok, thanks. I will try to hold my breath as long as I can, meanwhile I will go
and do some Christmas shopping, which definitely are breath taking :-)

>
>   Ralf

^ permalink raw reply	[flat|nested] 10+ messages in thread

* crosscompiler
@ 2005-05-15 12:52 neoxx
  2005-05-17  7:14 ` crosscompiler Ulrich Eckhardt
  0 siblings, 1 reply; 10+ messages in thread
From: neoxx @ 2005-05-15 12:52 UTC (permalink / raw)
  To: linux-mips

Hi,

I wanna set up a crosscompiler on my intel machine (
using debian woody ) in order to cross-compile a
self-written kernel ( no Linux/Mips ) for a MIPS 4kc (
little endian ) CPU. 


I've set up the binutils ( 2.15 ). While trying to
compile gcc 3.3.4 ( --target=mipsel
--prefix=/usr/local/mipscross --enable-languages=c,c++
--without-headers ) the following error occurs:

 xgcc: installation problem, cannot exec `mips-tfile':
No such file or directory
make[2]: *** [libgcc/./_m16addsf3.o] Error 1
make[2]: Leaving directory
`/home/cag/finaltry/gcc-3.3.4/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory
`/home/cag/finaltry/gcc-3.3.4/gcc'
make: *** [all-gcc] Error 2

Any ideas how to fix that ?? Can I alternatively use
the mipsel-linux-gcc for the kernel ( I'm not quite
sure what sort of compiler that is... )

Thanks,

neoxx

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: crosscompiler
  2005-05-15 12:52 crosscompiler neoxx
@ 2005-05-17  7:14 ` Ulrich Eckhardt
  0 siblings, 0 replies; 10+ messages in thread
From: Ulrich Eckhardt @ 2005-05-17  7:14 UTC (permalink / raw)
  To: linux-mips

neoxx@canada.com wrote:
> I wanna set up a crosscompiler on my intel machine (
> using debian woody ) in order to cross-compile a
> self-written kernel ( no Linux/Mips ) for a MIPS 4kc (
> little endian ) CPU.

I'm using Debian/testing here and roughly followed
http://people.debian.org/~debacle/cross.html in order to get a working system. 
Almost no problems encountered.

> Can I alternatively use
> the mipsel-linux-gcc for the kernel ( I'm not quite
> sure what sort of compiler that is... )

mips= for MIPS
el= endianess little

IOW, this is precisely what I got from installing the crosscompiler and 
probably what you want. In order to compile non-Linux programs (i.e. programs 
launched directly from YAMON) I used these 
  CFLAGS += -Wall -mips32 -fno-builtin -mno-abicalls -fno-pic -GO -O2
though some of them might be redundant/unnecessary - I just tried combinations 
until it worked.

hth

Uli

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-05-17  7:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-12-11 13:26 Crosscompiler Carsten Langgaard
2000-12-12  4:07 ` Crosscompiler Ralf Baechle
2000-12-12  9:33   ` Crosscompiler Carsten Langgaard
  -- strict thread matches above, loose matches on Subject: below --
2005-05-15 12:52 crosscompiler neoxx
2005-05-17  7:14 ` crosscompiler Ulrich Eckhardt
2000-10-17 13:55 CrossCompiler Nicu Popovici
2000-10-17 14:30 ` CrossCompiler Steve Kranz
2000-10-17 15:20   ` CrossCompiler Keith M Wesolowski
1999-08-30 13:44 crosscompiler Thomas Berg
1999-08-30 13:44 ` crosscompiler Thomas Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox