public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* mips-sgi-irix5.2
@ 2000-09-21  1:56 Jean-Marc Nuzillard
  2000-09-21  6:18 ` mips-sgi-irix5.2 Tim Prince
  2000-09-21  8:42 ` mips-sgi-irix5.2 Koundinya.K
  0 siblings, 2 replies; 8+ messages in thread
From: Jean-Marc Nuzillard @ 2000-09-21  1:56 UTC (permalink / raw)
  To: gcc

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1127 bytes --]

Dear gcc people,

I wrote recently about my failure to compile gcc for mips-sgi-irix5.2

I got the folling answer from Alexandre Oliva:

IIRC, Jim Wilson once told me some old version of SGI's C compiler
would mis-compile stage1 in a way that would cause some optimizations
to be missed, and then stage2 would end up different from stage3, that
would catch up on the optimizations.  Once you get a compare failure,
try `make bootstrap2' again, so that stage3 is used as stage2, a new
stage3 is built and compared with it.

I tried that but it failed.
The problem is may be that I had no GNU tools installed.


I installed successfully bison-1.28 and texinfo-4.0
but gperf-2.7 failed because c++ is unavailable (this is what I try to
build !)

May be more important is that trying to install binutils-2.10, I was warned
that mips-sgi-irix5.2 is not supported by ld and gprof.

Is there a way to make these things working ?

Sincerely yours,


Dr. Jean-Marc Nuzillard
Laboratoire de Pharmacognosie
UMR 6013
Moulin de la Housse
CPCBAI, Bâtiment 18
BP 1039
51097 REIMS Cedex
France

Tel : 33 3 26 91 35 48
Fax :33 3 26 91 35 96

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

* Re: mips-sgi-irix5.2
  2000-09-21  1:56 mips-sgi-irix5.2 Jean-Marc Nuzillard
@ 2000-09-21  6:18 ` Tim Prince
  2000-09-21  8:42 ` mips-sgi-irix5.2 Koundinya.K
  1 sibling, 0 replies; 8+ messages in thread
From: Tim Prince @ 2000-09-21  6:18 UTC (permalink / raw)
  To: gcc, Jean-Marc Nuzillard

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1337 bytes --]

You certainly need gnu make.

----- Original Message -----
From: "Jean-Marc Nuzillard" <jm.nuzillard@univ-reims.fr>
To: <gcc@gcc.gnu.org>
Sent: Thursday, September 21, 2000 1:52 AM
Subject: mips-sgi-irix5.2


Dear gcc people,

I wrote recently about my failure to compile gcc for mips-sgi-irix5.2

I got the folling answer from Alexandre Oliva:

IIRC, Jim Wilson once told me some old version of SGI's C compiler
would mis-compile stage1 in a way that would cause some optimizations
to be missed, and then stage2 would end up different from stage3, that
would catch up on the optimizations.  Once you get a compare failure,
try `make bootstrap2' again, so that stage3 is used as stage2, a new
stage3 is built and compared with it.

I tried that but it failed.
The problem is may be that I had no GNU tools installed.


I installed successfully bison-1.28 and texinfo-4.0
but gperf-2.7 failed because c++ is unavailable (this is what I try to
build !)

May be more important is that trying to install binutils-2.10, I was warned
that mips-sgi-irix5.2 is not supported by ld and gprof.

Is there a way to make these things working ?

Sincerely yours,


Dr. Jean-Marc Nuzillard
Laboratoire de Pharmacognosie
UMR 6013
Moulin de la Housse
CPCBAI, Bâtiment 18
BP 1039
51097 REIMS Cedex
France

Tel : 33 3 26 91 35 48
Fax :33 3 26 91 35 96


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

* Re: mips-sgi-irix5.2
  2000-09-21  1:56 mips-sgi-irix5.2 Jean-Marc Nuzillard
  2000-09-21  6:18 ` mips-sgi-irix5.2 Tim Prince
@ 2000-09-21  8:42 ` Koundinya.K
  2000-09-22  2:02   ` mips-sgi-irix5.2 Erik Mouw
  1 sibling, 1 reply; 8+ messages in thread
From: Koundinya.K @ 2000-09-21  8:42 UTC (permalink / raw)
  To: Jean-Marc Nuzillard, gcc

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1783 bytes --]

Hello ,
	Why don't you take a look at http://freeware.sgi.com where pre-built 
binaries of gcc are available. You will have to search for gcc. As far as I 
know, there was once gcc2.8.1 available.

Know I think even gcc2.95.2 is also made available as I can see from

http://toolbox.sgi.com/TasteOfDT/public/freeware/Dist/fw_gcc-2.95.2.tardist

Why not try installing this and use it as a boostrap compiler for compiling 
the latest gcc. Building gcc for mips targets have always for me have been 
quite an adventure.

Koundinya


-> Dear gcc people,
-> 
-> I wrote recently about my failure to compile gcc for mips-sgi-irix5.2
-> 
-> I got the folling answer from Alexandre Oliva:
-> 
-> IIRC, Jim Wilson once told me some old version of SGI's C compiler
-> would mis-compile stage1 in a way that would cause some optimizations
-> to be missed, and then stage2 would end up different from stage3, that
-> would catch up on the optimizations.  Once you get a compare failure,
-> try `make bootstrap2' again, so that stage3 is used as stage2, a new
-> stage3 is built and compared with it.
-> 
-> I tried that but it failed.
-> The problem is may be that I had no GNU tools installed.
-> 
-> 
-> I installed successfully bison-1.28 and texinfo-4.0
-> but gperf-2.7 failed because c++ is unavailable (this is what I try to
-> build !)
-> 
-> May be more important is that trying to install binutils-2.10, I was warned
-> that mips-sgi-irix5.2 is not supported by ld and gprof.
-> 
-> Is there a way to make these things working ?
-> 
-> Sincerely yours,
-> 
-> 
-> Dr. Jean-Marc Nuzillard
-> Laboratoire de Pharmacognosie
-> UMR 6013
-> Moulin de la Housse
-> CPCBAI, Bâtiment 18
-> BP 1039
-> 51097 REIMS Cedex
-> France
-> 
-> Tel : 33 3 26 91 35 48
-> Fax :33 3 26 91 35 96
-> 


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

* Re: mips-sgi-irix5.2
  2000-09-21  8:42 ` mips-sgi-irix5.2 Koundinya.K
@ 2000-09-22  2:02   ` Erik Mouw
  2000-09-22 10:52     ` mips-sgi-irix5.2 Laurent Guerby
  0 siblings, 1 reply; 8+ messages in thread
From: Erik Mouw @ 2000-09-22  2:02 UTC (permalink / raw)
  To: kk; +Cc: jm.nuzillard, gcc

On Thu, 21 Sep 2000 21:12:55 +0530, Koundinya.K wrote:
>     Why don't you take a look at http://freeware.sgi.com where pre-built 
> binaries of gcc are available. You will have to search for gcc. As far as I 
> know, there was once gcc2.8.1 available.
> 
> Know I think even gcc2.95.2 is also made available as I can see from
> 
> http://toolbox.sgi.com/TasteOfDT/public/freeware/Dist/fw_gcc-2.95.2.tardist
> 
> Why not try installing this and use it as a boostrap compiler for compiling 
> the latest gcc. Building gcc for mips targets have always for me have been 
> quite an adventure.

That doesn't work because all SGI freeware is compiled for IRIX 6.x.


Erik

-- 
"I'm just this guy you know?"  -- Zaphod Beeblebrox in
"The Hitchhikers Guide to the Galaxy" by Douglas Adams



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

* Re: mips-sgi-irix5.2
  2000-09-22  2:02   ` mips-sgi-irix5.2 Erik Mouw
@ 2000-09-22 10:52     ` Laurent Guerby
  0 siblings, 0 replies; 8+ messages in thread
From: Laurent Guerby @ 2000-09-22 10:52 UTC (permalink / raw)
  To: J.A.K.Mouw; +Cc: kk, jm.nuzillard, gcc

> That doesn't work because all SGI freeware is compiled for IRIX 6.x.

May be you can try with an old GNAT (GNU Ada compiler) binary, since
GNAT binary releases always have a working C front-end (able to
bootstrap "c ada"), URL:

< ftp://cs.nyu.edu/pub/gnat/private/old/gnat-3.10p-mips-sgi-irix5.3-bin.tar.gz >

I don't remember what GCC version GNAT 3.10p was based upon (may be
2.7.3 or 2.8.1), but I believe it should be able to compile most of
the GNU packages without trouble. 

Start with GNU make, then everything else should work fine. May be
textutils should come second since most proprietary UNIX text tools
are complete crap, AIX grep with its 2048 line length limit comes to
mind ;-).

I don't know if there are known compilation issues on MIPS between the
current GCC and older versions (2.7.x and 2.8.x).

Hope this helps,

-- 
Laurent Guerby <guerby@acm.org>

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

* Re: mips-sgi-irix5.2
  2000-09-17  7:17 ` mips-sgi-irix5.2 Erik Mouw
@ 2000-09-17 16:45   ` Alexandre Oliva
  0 siblings, 0 replies; 8+ messages in thread
From: Alexandre Oliva @ 2000-09-17 16:45 UTC (permalink / raw)
  To: Erik Mouw; +Cc: Jean-Marc Nuzillard, gcc

On Sep 17, 2000, J.A.K.Mouw@its.tudelft.nl (Erik Mouw) wrote:

> Jean-Marc Nuzillard wrote:

>> Everything when ok until the comparision of stage2 and stage3 compilers.
>> A lot of files were different and make terminated in error.
>> I tried to run 'make install' and some stuff was installed.

> I don't know about IRIX 5.2, but in IRIX 5.3 I had to do some hacking
> to get gcc compiled at all. I hope you also installed the GNU binutils?

I've build GCC 2.95.2 on IRIX 5.2 without any need for hacking.  But
then, I was using an older version of GCC as the bootstrap compiler.

IIRC, Jim Wilson once told me some old version of SGI's C compiler
would mis-compile stage1 in a way that would cause some optimizations
to be missed, and then stage2 would end up different from stage3, that
would catch up on the optimizations.  Once you get a compare failure,
try `make bootstrap2' again, so that stage3 is used as stage2, a new
stage3 is built and compared with it.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

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

* Re: mips-sgi-irix5.2
  2000-09-15  7:42 mips-sgi-irix5.2 Jean-Marc Nuzillard
@ 2000-09-17  7:17 ` Erik Mouw
  2000-09-17 16:45   ` mips-sgi-irix5.2 Alexandre Oliva
  0 siblings, 1 reply; 8+ messages in thread
From: Erik Mouw @ 2000-09-17  7:17 UTC (permalink / raw)
  To: Jean-Marc Nuzillard; +Cc: gcc

Jean-Marc Nuzillard wrote:
> I have tried to build gcc for mips-sgi-irix5.2 (as config.guess tells me).

I suppose you're trying to build gcc-2.95.2.

> Everything when ok until the comparision of stage2 and stage3 compilers.
> A lot of files were different and make terminated in error.
> I tried to run 'make install' and some stuff was installed.

I don't know about IRIX 5.2, but in IRIX 5.3 I had to do some hacking
to get gcc compiled at all. I hope you also installed the GNU binutils?

Here is my build recipe for binutils-2.9.1 and gcc-2.95.2 on IRIX 5.3,
it might work on IRIX 5.2 as well. I installed gcc-2.95.2 for IRIX 5.3,
SunOS 4.1.4, IRIX 6.[2345] in the same directory, hence the --prefix and
--exec-prefix flags. The GNU make utility lives in /it/bin/gmake. I use
the SGI MipsPRO C compiler to bootstrap gcc.

set path = (  /usr/sbin /sbin /usr/bsd /usr/bin /bin /usr/bin/X11 )
setenv MAKE /it/bin/gmake
setenv CC /usr/bin/cc

untar binutils
cd binutils
configure --prefix=/usr/it/packages/gcc/gcc-2.95.2/install \
  --exec-prefix=/usr/it/packages/gcc/gcc-2.95.2/install/irix53 \
  --program-prefix=g
/it/bin/gmake
/it/bin/gmake/install

set path = ( /usr/it/packages/gcc/gcc-2.95.2/install/irix53/bin $path )
rehash
setenv LDFLAGS -L/usr/it/packages/gcc/gcc-2.95.2/install/irix53/lib
setenv AS /usr/it/packages/gcc/gcc-2.95.2/install/irix53/bin/gas
setenv LD /usr/it/packages/gcc/gcc-2.95.2/install/irix53/bin/gld

untar gcc
configure --prefix=/usr/it/packages/gcc/gcc-2.95.2/install \
  --exec-prefix=/usr/it/packages/gcc/gcc-2.95.2/install/irix53 \
  --enable-threads --enable-languages='c,c++,objc,f77'

Edit config.status, set all fork stuff to 'no'
Re-run configure:
configure --prefix=/usr/it/packages/gcc/gcc-2.95.2/install \
  --exec-prefix=/usr/it/packages/gcc/gcc-2.95.2/install/irix53 \
  --enable-threads --enable-languages='c,c++,objc,f77'

/it/bin/gmake CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2' bootstrap-leanMake stops, edir ../../gcc-2.95.2/libiberty/pexecute.c, comment out
  #include <vfork.h>
/it/bin/gmake CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2' bootstrap-lean(again)
/it/bin/gmake install

It works for me, YMMV.

> I tried to compile the hello.c program with gcc.
> gcc still works (I had a previous build working).
> I tried to compile the hello.C program with g++
> g++ cannot locate iostream.h. Where should it be installed ?
> I went back to the C language IO style using stdio.h.
> Compilation itself was ok but ld complained about the -lstdc++ option.
> Where should libstdc++.a be located ?
> Does the failure of the comparison step have a consequence
> on the installation of header and library files ?

Certainly. Installing a broken compiler doesn't work.

> Must I move to irix6.[2345] ?

Depends. IRIX 5.2 is no longer maintained by SGI, so it has quite some
vulnerabilities. If you want to have those vulnerabilities fixed, you
should upgrade to IRIX 6.5. However, if you have a lot of software that
depends heavily on IRIX 5.2 (like dmedia stuff), you should stay with
IRIX 5.2. Gcc 2.95.2 compiles out-of-the box on IRIX 6.5...


Erik

-- 
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031,  2600 GA Delft, The Netherlands
Phone: +31-15-2783635  Fax: +31-15-2781843  Email: J.A.K.Mouw@its.tudelft.nl
WWW: http://www-ict.its.tudelft.nl/~erik/

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

* mips-sgi-irix5.2
@ 2000-09-15  7:42 Jean-Marc Nuzillard
  2000-09-17  7:17 ` mips-sgi-irix5.2 Erik Mouw
  0 siblings, 1 reply; 8+ messages in thread
From: Jean-Marc Nuzillard @ 2000-09-15  7:42 UTC (permalink / raw)
  To: gcc

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1003 bytes --]

Dear gcc people,

I have tried to build gcc for mips-sgi-irix5.2 (as config.guess tells me).
Everything when ok until the comparision of stage2 and stage3 compilers.
A lot of files were different and make terminated in error.
I tried to run 'make install' and some stuff was installed.

I tried to compile the hello.c program with gcc.
gcc still works (I had a previous build working).
I tried to compile the hello.C program with g++
g++ cannot locate iostream.h. Where should it be installed ?
I went back to the C language IO style using stdio.h.
Compilation itself was ok but ld complained about the -lstdc++ option.
Where should libstdc++.a be located ?
Does the failure of the comparison step have a consequence
on the installation of header and library files ?

Must I move to irix6.[2345] ?

Sincerely yours



Dr. Jean-Marc Nuzillard
Laboratoire de Pharmacognosie
UMR 6013
Moulin de la Housse
CPCBAI, Bâtiment 18
BP 1039
51097 REIMS Cedex
France

Tel : 33 3 26 91 35 48
Fax :33 3 26 91 35 96

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

end of thread, other threads:[~2000-09-22 10:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-09-21  1:56 mips-sgi-irix5.2 Jean-Marc Nuzillard
2000-09-21  6:18 ` mips-sgi-irix5.2 Tim Prince
2000-09-21  8:42 ` mips-sgi-irix5.2 Koundinya.K
2000-09-22  2:02   ` mips-sgi-irix5.2 Erik Mouw
2000-09-22 10:52     ` mips-sgi-irix5.2 Laurent Guerby
  -- strict thread matches above, loose matches on Subject: below --
2000-09-15  7:42 mips-sgi-irix5.2 Jean-Marc Nuzillard
2000-09-17  7:17 ` mips-sgi-irix5.2 Erik Mouw
2000-09-17 16:45   ` mips-sgi-irix5.2 Alexandre Oliva

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).