Dear Dr. Karron,

What does "file" say about the binaries you have generated? (It should
tell you the ABI and MIPS instruction set, as in

% file /bin/sh
/bin/sh:        ELF N32 MSB mips-3 executable MIPS - version 1
% file /bin/odump
/bin/odump:     ELF 32-bit MSB mips-2 dynamic executable MIPS - version 1
)

The binaries generated should be n32 ABI, mips-3, for a R4000 running
IRIX 6.5.10.

Please check your /etc/compiler.defaults (assuming you're using the
MIPSpro compiler, of course -- I don't know what gcc uses to determine
the ABI and instruction set it should use). It is possible that you have
generated MIPS-IV binaries, which would not run on R4000.

Please log everything that "make" generates as well as the configure log:

(csh)           make >& make-all.log
(sh,etc)        make > make-stdout.log 2> make-errors.log

> I can forward the configure log, I tried running with -o32 as opposed
> to -n32, but it still won't work. (I may be trying to change it in the wrong
> meta-make-file).

Don't change Makefiles by hand! Set the environment flags CFLAGS and
LDFLAGS and reconfigure, instead.

However, the following section from 2.4.0 configure may be relevant...
It always tries to set the n32 ABI. 

--- line 3565 ---
 *-sgi-irix6*)
    # from [EMAIL PROTECTED]
    no_libsocket=yes
    no_libnsl=yes
    no_libsun=yes
    if test -z "$GCC";then
        if test "`uname -s`" = "IRIX64"; then
            CFLAGS="-n32 -D_LONG_LONG_LIMB $CFLAGS"
            LDFLAGS="-n32 $LDFLAGS"
        else
            CFLAGS="-n32 $CFLAGS"
            LDFLAGS="-n32 $LDFLAGS"
        fi
    fi
--- end ---

I tried to configure and make using an Indigo2 R4400 (also on 6.5.10).
I set the -o32 ABI to see whether it would clash with the n32 specified
by configure, and got "cc ERROR:  cannot mix -o32 abi with -n32 abi".
So you need to edit configure if you want to produce o32 binaries...

> Please advise. I can beta site purported fixes to verify it is indeed
> detecting older MIP's CPU's.

Configure doesn't even try to detect any CPUs. It detects IRIX versions.

As far as I can see, SSH2 no longer contains any assembler optimisations,
either.

Regards,
-- 
Atro Tossavainen (Mr.)               / The Institute of Biotechnology at
Systems Analyst, Techno-Amish &     / the University of Helsinki, Finland,
+358-9-19158939  UNIX Dinosaur     / employs me, but my opinions are my own.
< URL : http : / / www . iki . fi / atro . tossavainen / >

Reply via email to