IRIX and Software

MOPAC 7 compilation - Page 1

For a few years now I have periodically attempted to compile GNU Octave on my SGI, alway with less than marginal success. I recently downloaded the source from http://www.octave.org/ which is version 2.1.50. This is the first version I've gotten to compile with errors!!! Unfortunately, it immediatly Bus error (core dump) when I run the executable. I used
./configure --with-local-prefix=/usr/freeware --with-g77 --enable-shared --enable-dl --disable-readline
and gmake with gcc version 3.2.2.
I read in the octave README.Linux file
If you can compile Octave, but it crashes with a segmentation fault
right away, you probably have incompatible versions of libc and
libstdc++ installed, or you have a version of the dynamic loader,
ld.so, that is incompatible with your versions of the libraries, or
both.

When I check ldd I get:
ldd ./octave
liboctinterp.so => /usr/local/lib/octave-2.1.50/liboctinterp.so
liboctave.so => /usr/local/lib/octave-2.1.50/liboctave.so
libcruft.so => /usr/local/lib/octave-2.1.50/libcruft.so
libscs.so => /usr/lib32/libscs.so
libcurses.so => /usr/lib32/libcurses.so
libdl.so => /usr/lib32/libdl.so
libmpi.so => /usr/lib32/libmpi.so
libm.so => /usr/lib32/libm.so
libc.so.1 => /usr/lib32/libc.so.1
libftn.so => /usr/lib32/libftn.so
libCsup.so => /usr/lib32/libCsup.so
libC.so.2 => /usr/lib32/libC.so.2
libCio.so.1 => /usr/lib32/libCio.so.1
libarray.so => /usr/lib32/libarray.so

Which doesn't look to me like it is picking up the /usr/freeware libraries. Another funny thing is if I issue the same configure command as above, but with the --disable-readline I get
...
checking for rl_set_keyboard_input_timeout in -lreadline... no
configure: WARNING: I need GNU Readline 4.2 or later
configure: error: this is fatal unless you specify --disable-readline

even though I have readline 4.3 from the freeware.sgi.com site installed and only versions 4.2 and up are required.
versions | grep readline
I fw_readline 05/23/2003 readline-4.3 GNU command line prompt libraries
I fw_readline.man 05/23/2003 readline-4.3 man pages
I fw_readline.man.examples 05/23/2003 readline-4.3 example programs
I fw_readline.man.info 05/23/2003 readline-4.3 info pages
I fw_readline.man.readline 05/23/2003 readline-4.3 man pages
I fw_readline.man.relnotes 05/23/2003 readline-4.3 release notes
I fw_readline.src 03/27/2003 readline-4.3 original source code
I fw_readline.src.readline 03/27/2003 readline-4.3 original source code
I fw_readline.sw 05/23/2003 readline-4.3 execution only env
I fw_readline.sw.dev 05/23/2003 readline-4.3 archive libraries
I fw_readline.sw.hdr 05/23/2003 readline-4.3 header files
I fw_readline.sw.lib 05/23/2003 readline-4.3 shared libraries
I fw_readline.sw.readline 05/23/2003 readline-4.3 prompt utility
I fw_readline.sw64 05/23/2003 readline-4.3 execution only env
I fw_readline.sw64.lib 05/23/2003 readline-4.3 64-bit shared libraries
I gnu.sw.lib_readline 03/27/2003 GNU readline library

This software (an analytical package very MATLAB compatible) is the holy grail of freeware builts to me. If some one out there could help me build it on my machine I would be eternally grafteful. (I even paid The Written Word once to compile it for me...without much luck.) :?
Well I gave it a quick try using my preferred method for compiling against Freeware:

CFLAGS '-I/usr/freeware/include -O3'
LDFLAGS '-L/usr/freeware/lib32'

However, the configure script died with:

'configure error: linking to Fortran libraries from C fails'

I think my build of gcc-3.3 is missing Fortran support. Hopefully the August Freeware will be out soon so I can just go with an "official" gcc-3.3 (I really hope they include it!)
Twitter: @neko_no_ko
IRIX Release 4.0.5 IP12 Version 06151813 System V
Copyright 1987-1992 Silicon Graphics, Inc.
All Rights Reserved.
Octave can compile, and like you've I've tried off and on for sometime but to no-avail.
Last March, I finally took it on and got it to compile nicely with the MipsPro 7.3
compiler. Here is what I used as a 'Build script'


#!/bin/bash
#
#
export CC="cc -n32 -mips4 -mp -apo -O3 "
export CXX="CC -n32 -mips4 -mp -apo -O3 "
export F77="f77 -n32 -mips4 -mp -apo -O3 "
export CFLAGS=" -apo -n32 -mips4 -O3 -mp -I/usr/freeware/include"
export CXXFLAGS="-apo -n32 -LANG:std -ptused -prelink -mips4 -O3 -mp -I/usr/freeware/include -woff 3333"
export FFLAGS="-apo -n32 -mips4 -O3 -mp "
export LDFLAGS="-apo -n32 -mips4 -L/usr/lib32/mips4 -L/usr/freeware/lib32"
export LIBS="-lfastm -lreadline -lncurses -lmp -lpthread"
export FLIBS="-lftn -lfastm -lmp -lpthread"
export MAKE="gmake -j35"
./configure --prefix=/sw/freeware --enable-shared --disable-static --enable-rpath='-rpath /usr/lib32:$(octlibdir):/usr/freeware/lib32' --with-blas=scs_mp

-------

There is one more thing:
You will need some special headers that fake the C++ ISO standard headers. I put these
over in /usr/freeware/include but you can place them where you need. I got these from
one of the Octave developers, but I don't think he would mind if I passed the along.
You can fetch them via ftp at ftp://egypt.spd.louisville.edu/pub/CC-isoheaders.tar


Also note: I've been told to expect precision problems with -lfastm so it's optional.
Double also note: This is for a parallel version of Octave. A single processor version
should be much easier. <Grin>

Best Regards,
CHuck
This is so unbelievably incredible...I was dumbstruck for 5 minutes before I could respond.
:shock: :arrow: :o :arrow: :D
I'll give it a try tomorrow evening (parallel processing!!).

Thank you kind stranger.
squeen wrote: This is so unbelievably incredible...I was dumbstruck for 5 minutes before I could respond.
:shock: :arrow: :o :arrow: :D
I'll give it a try tomorrow evening (parallel processing!!).

Thank you kind stranger.


I'm still having some problems getting it to build; though it might just be me :) Anyone else getting this error?

Code: Select all

cc-3234 CC: ERROR File = ./TEMPLATE-INST/Array-tc.cc, Line = 42
Explicit specialization of function "Array<octave_value>::resize_fill_value"
must precede its first use.

Array<octave_value>::resize_fill_value (void)
^

1 error detected in the compilation of "./TEMPLATE-INST/Array-tc.cc".
Twitter: @neko_no_ko
IRIX Release 4.0.5 IP12 Version 06151813 System V
Copyright 1987-1992 Silicon Graphics, Inc.
All Rights Reserved.
hmmm, i will attempt a build next week, when i'm at camp. Other builds i will attempt are:

Transcode
Jashakah
Celestia
Terragen
Faad2 (We almost had this!)
xmame/xmess-0.71
Lyx

If anyone can come up with some more packages to build, let me know...
I'd like to help out with porting unix software once I'm up and running with mips pro/GCC. :)
That´s so nice... I´m off forum for a coupple of days and you guys lay down another quality plan to port stuff. Respect. Respect. Respect.
dexter1 wrote: hmmm, i will attempt a build next week, when i'm at camp. Other builds i will attempt are:

Transcode
Jashakah
Celestia
Terragen
Faad2 (We almost had this!)
xmame/xmess-0.71
Lyx

If anyone can come up with some more packages to build, let me know...


Hmm, just a couple:

wxPython (for BitTorrent)
xine (with IRIX audio/OpenGL plugins - for AAC playback)
Twitter: @neko_no_ko
IRIX Release 4.0.5 IP12 Version 06151813 System V
Copyright 1987-1992 Silicon Graphics, Inc.
All Rights Reserved.
Opps. I believe it's the only file that needs to be changed
to make Octave compile.

The template in Array-tc.cc is not used, and can be simply
remarked out.

#ifdef 0
template<>
octave_value
Array<octave_value>::resize_fill_value (void)
{
...blah
}
#endif

Sorry I forgot to mention that.

Have fun.
Great! I'll give it another go this evening. Thanks!
Twitter: @neko_no_ko
IRIX Release 4.0.5 IP12 Version 06151813 System V
Copyright 1987-1992 Silicon Graphics, Inc.
All Rights Reserved.
I've been seriously tied up this week -- but the minute I have some time....

Is the MIPS Pro C++ compiler a pre-requist for this method? I assumed it is and so have been making arrangments to obtain a temporary license.

Thanks again. I'll let you know how it goes next week.
squeen wrote: I've been seriously tied up this week -- but the minute I have some time....

Is the MIPS Pro C++ compiler a pre-requist for this method? I assumed it is and so have been making arrangments to obtain a temporary license.

Thanks again. I'll let you know how it goes next week.


Yes, along with Fortran/APO licenses. I have everything set up, just can't do it from here (I'm at work) :)
Twitter: @neko_no_ko
IRIX Release 4.0.5 IP12 Version 06151813 System V
Copyright 1987-1992 Silicon Graphics, Inc.
All Rights Reserved.
dexter1 wrote: ]Terragen


I wasn't aware of the source for this being available. Is it?
--
lisa
squeen wrote: I've been seriously tied up this week -- but the minute I have some time....

Is the MIPS Pro C++ compiler a pre-requist for this method? I assumed it is and so have been making arrangments to obtain a temporary license.

Thanks again. I'll let you know how it goes next week.


Here it is:

http://www.nekochan.net/wiki/downloads/octav ... s4.tardist

This is built without -lfastm since I figured precision might be important for something like this. However, it's also optimized for multi-processor use.
Twitter: @neko_no_ko
IRIX Release 4.0.5 IP12 Version 06151813 System V
Copyright 1987-1992 Silicon Graphics, Inc.
All Rights Reserved.
Heh, you beat me to it! I have it compiled as well but the build process took ages. I actually have a mips3 build because of my Challenge S. If someone needs that instead of the mips4 build let me know.

Celestia linkage is a minefield, even in MPRO74. Next week I'll have another go at it.

Transcode is full wil gcc hardcoded flags. This will take quite some time

Lisa, you're right about terragen. No open source for that one...

wxPython looks very funky...

Xmame/Xmess 0.71.1 builds are done. I will attempt a tardist for these binaries complete with documentation and rc files, because lately we seem to get a lot of questions about them.

I was very busy reviving two SGI's an R3K Indigo and a R10K O200. Battling sleep, i have to remove the PROM password from the R3K indigo, and the PROM of the O200 was so old it wouldn't even netboot at 100 Mbit full duplex. Try finding 10 mbit devices in these lanparties these days :)

Both are running fine now and both owners think these machines are absolutely wonderful.

Now if y'all excuse me, i have to get my booze to the sitting corner and socialize :)

http://81.161.228.4
I couldn't wait until moday - I just had to know and... It Works!

This is hugely helpful to me...professionally and personally. I can not thank everyone who helped out enough! (Especially syschuck who guided Neko to the solution with his only two posts to this forum -- now that's quality over quantity) I know I'm not the only one who has struggled with this in the past -- the net is littered with posts going back to IRIX 5.x of folks who have fought with this compile.


squeen: Nekochant.net is the place where all your IRIX dreams come true. I'm not sh*tting you, they really do!

[unpaid testamonial]

Please Neko - make this whopping (34M) package availible in your download section!

Yippee! (...dancing on furniture) :D
squeen wrote: IPlease Neko - make this whopping (34M) package availible in your download section!


Great! I just posted it - wanted to make sure it was working okay for you first :) Glad to be of help; this is the sort of thing that makes running a site like this worth the effort.
Twitter: @neko_no_ko
IRIX Release 4.0.5 IP12 Version 06151813 System V
Copyright 1987-1992 Silicon Graphics, Inc.
All Rights Reserved.
hi fellows....

well looking for a matlab option in SGI and came with this...but
where is it ??? http://www.nekochan.net/downloads/octave-2.1.50-mips4.tardist

seems like a broken link
thanks in advance
rodrigo
choza wrote: hi fellows....

well looking for a matlab option in SGI and came with this...but
where is it ??? http://www.nekochan.net/downloads/octave-2.1.50-mips4.tardist

seems like a broken link
thanks in advance
rodrigo

broken link allright: http://www.nekochan.net/wiki/downloads/contr ... s4.tardist