help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Installing GCC-4.x in userspace / Compiling Octave from CVS


From: Sergei Steshenko
Subject: Re: Installing GCC-4.x in userspace / Compiling Octave from CVS
Date: Mon, 1 Oct 2007 18:39:25 -0700 (PDT)

--- "John W. Eaton" <address@hidden> wrote:

> On  1-Oct-2007, Sergei Steshenko wrote:
> 
> | 
> | --- "John W. Eaton" <address@hidden> wrote:
> | 
> | ...
> | > See also the thread
> | > 
> | >   http://www.cae.wisc.edu/pipermail/bug-octave/2007-May/002494.html
> | > 
> | > which shows that this incompatibility does affect Octave.
> | > 
> | > jwe
> | > 
> | 
> | This is how "my" 'octave' behaves:
> | 
> | "
> | octave:5>  a=[1+i;1+i]
> | a =
> | 
> |    1 + 1i
> |    1 + 1i
> | 
> | octave:6> a'
> | ans =
> | 
> |    1 - 1i   1 - 1i
> | 
> | octave:7> a'*a
> | ans =  4
> | octave:8> b=2*a
> | b =
> | 
> |    2 + 2i
> |    2 + 2i
> | 
> | octave:9> a'*b
> | ans =  8
> | octave:10>                   
> | "
> | 
> | -isn't it as it should be ? That is, if I'm not mistaken, it's like
> | octave-2.1.73 in the URL you've posted which is considered to be correct,
> | right ?
> 
> Did you compile Octave with gfortran?  Is your blas library compiled
> with g77 (or something else that similarly assumes the g77/f2c calling
> conventions)?  If so, then I'm surprised by the result that you see.
> 
> jwe
> 

Everything is compiled with gcc-4.2.1, which means it is compiled with
gfortran, but while building 'lapack' I also gave path to gcc-3.4.6 libraries
in order to satisfy the linker.

I think that was needed for built-in self-tests.

Here is the relevant part of 'make.inc' which comes with 'lapack':

    19  FORTRAN = 
/maxtor5/sergei/AppsFromScratchWD/install/gcc-4.2.1/bin/gfortran
    20  OPTS     = -funroll-all-loops -O3
    21  DRVOPTS  = $(OPTS)
    22  NOOPT    =
    23  LOADER = 
/maxtor5/sergei/AppsFromScratchWD/install/gcc-4.2.1/bin/gfortran
    24  LOADOPTS = -L /maxtor5/sergei/AppsFromScratchWD/install/gcc-4.2.1/lib -L
/maxtor5/sergei/AppsFromScratchWD/install/gcc-4.2.1/libexec/gcc/i686-pc-linux-gnu/4.2.1
 -L
/maxtor5/sergei/AppsFromScratchWD/install/gcc-3.4.6/lib -lgfortran -l g2c#
.

Regards,
  Sergei.

Applications From Scratch: http://appsfromscratch.berlios.de/


       
____________________________________________________________________________________
Building a website is a piece of cake. Yahoo! Small Business gives you all the 
tools to get online.
http://smallbusiness.yahoo.com/webhosting 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]