My Big Fat GNU Octave question

IRIX and IRIX software discussion including open source and commerical offerings.
Forum rules
Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.
User avatar
squeen
Moderator
Moderator
Posts: 2932
Joined: Fri May 09, 2003 6:10 am
Location: Maryland, USA

My Big Fat GNU Octave question

Unread postby squeen » Mon Jul 14, 2003 4:38 am

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.) :?

User avatar
nekonoko
Site Admin
Site Admin
Posts: 8042
Joined: Thu Jan 23, 2003 1:31 am
Location: Pleasanton, California
Contact:

Re: My Big Fat GNU Octave question

Unread postby nekonoko » Tue Jul 15, 2003 2:32 am

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.

syschuck
Posts: 3
Joined: Thu Jul 17, 2003 3:44 pm
Location: Louisville, KY USA
Contact:

Compiling Octave on Irix 6.5

Unread postby syschuck » Thu Jul 17, 2003 4:09 pm

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

User avatar
squeen
Moderator
Moderator
Posts: 2932
Joined: Fri May 09, 2003 6:10 am
Location: Maryland, USA

Unread postby squeen » Thu Jul 17, 2003 5:21 pm

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.

User avatar
nekonoko
Site Admin
Site Admin
Posts: 8042
Joined: Thu Jan 23, 2003 1:31 am
Location: Pleasanton, California
Contact:

Unread postby nekonoko » Sat Jul 19, 2003 5:15 am

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.

User avatar
dexter1
Moderator
Moderator
Posts: 2062
Joined: Thu Feb 20, 2003 6:57 am
Location: Voorburg, The Netherlands
Contact:

Unread postby dexter1 » Sat Jul 19, 2003 9:03 am

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...

User avatar
semi-fly
Posts: 786
Joined: Fri Feb 21, 2003 5:29 am
Location: Ypsitucky, MI
Contact:

Unread postby semi-fly » Sat Jul 19, 2003 9:58 am

I'd like to help out with porting unix software once I'm up and running with mips pro/GCC. :)

User avatar
Hakimoto
Moderator
Moderator
Posts: 2483
Joined: Sun Mar 30, 2003 4:29 am
Location: Kabul, Afghanistan, Asia
Contact:

Unread postby Hakimoto » Tue Jul 22, 2003 9:27 am

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.

User avatar
nekonoko
Site Admin
Site Admin
Posts: 8042
Joined: Thu Jan 23, 2003 1:31 am
Location: Pleasanton, California
Contact:

Unread postby nekonoko » Tue Jul 22, 2003 3:44 pm

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.

syschuck
Posts: 3
Joined: Thu Jul 17, 2003 3:44 pm
Location: Louisville, KY USA
Contact:

Array<octave_value>::resize_fill_value (void)

Unread postby syschuck » Thu Jul 24, 2003 1:14 pm

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.

User avatar
nekonoko
Site Admin
Site Admin
Posts: 8042
Joined: Thu Jan 23, 2003 1:31 am
Location: Pleasanton, California
Contact:

Re: Array<octave_value>::resize_fill_value (void)

Unread postby nekonoko » Thu Jul 24, 2003 2:17 pm

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.

User avatar
squeen
Moderator
Moderator
Posts: 2932
Joined: Fri May 09, 2003 6:10 am
Location: Maryland, USA

Unread postby squeen » Thu Jul 24, 2003 2:47 pm

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.

User avatar
nekonoko
Site Admin
Site Admin
Posts: 8042
Joined: Thu Jan 23, 2003 1:31 am
Location: Pleasanton, California
Contact:

Unread postby nekonoko » Thu Jul 24, 2003 2:54 pm

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.

User avatar
lisp
Posts: 274
Joined: Wed Feb 05, 2003 5:23 am
Location: England
Contact:

Unread postby lisp » Fri Jul 25, 2003 12:10 am

dexter1 wrote:]Terragen


I wasn't aware of the source for this being available. Is it?
--
lisa

User avatar
nekonoko
Site Admin
Site Admin
Posts: 8042
Joined: Thu Jan 23, 2003 1:31 am
Location: Pleasanton, California
Contact:

Unread postby nekonoko » Fri Jul 25, 2003 9:22 am

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.


Return to “IRIX and Software”

Who is online

Users browsing this forum: No registered users and 1 guest