help-octave
[Top][All Lists]
Advanced

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

Re: make error about log2 for octave-3.1.51 (Not 3.1.50)


From: Jaroslav Hajek
Subject: Re: make error about log2 for octave-3.1.51 (Not 3.1.50)
Date: Wed, 23 Jul 2008 11:34:03 +0200

On Wed, Jul 23, 2008 at 10:06 AM, Tatsuro MATSUOKA
<address@hidden> wrote:
> Hello
>
> /opt/octave/gcc-3.4.4dw2/bin/g++ -c -I/opt/octave/gcc-3.4.4dw2/include 
> -I/usr/include
> -I/opt/octave/octave-3.1.51/include  -I. -I.. -I../liboctave -I../src 
> -I../libcruft/misc
> -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -Wold-style-cast -g -O2 Cell.cc 
> -o Cell.o
> In file included from ov.h:59,
>                 from oct-obj.h:33,
>                 from Cell.h:32,
>                 from Cell.cc:29:
> ov-base.h:527: error: expected `)' before '/' token
> In file included from oct-obj.h:33,
>                 from Cell.h:32,
>                 from Cell.cc:29:
> ov.h:997: error: expected `)' before '/' token
> make[2]: *** [Cell.o] Error 1
> make[2]: Leaving directory `/home/octaves/octave-3.1.51/src'
> make[1]: *** [src] Error 2
> make[1]: Leaving directory `/home/octaves/octave-3.1.51'
> make: *** [all] Error 2
>
> ov-base.h:527: error: expected `)' before '/' token
>  virtual octave_value log2 (void) const;
>
> ov.h:997: error: expected `)' before '/' token
>

This looks really weird given that there is no / token on the line. I
suspect that
you have log2 defined to some macro and that causes problems.
Can you try running:

/opt/octave/gcc-3.4.4dw2/bin/g++ -E -C
-I/opt/octave/gcc-3.4.4dw2/include -I/usr/include
 -I/opt/octave/octave-3.1.51/include  -I. -I.. -I../liboctave -I../src
-I../libcruft/misc
 -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -Wold-style-cast -g -O2 Cell.cc

in the directory where the make failure occured and posting the output?

> config.h:464
> /* Define to 1 if you have the `log2' function. */
> /* #undef HAVE_LOG2 */
>
>
> config.log:9156
> configure:26029: /opt/octave/gcc-3.4.4dw2/bin/gcc -o conftest.exe -g -O2
> -I/opt/octave/gcc-3.4.4dw2/include -I/usr/include 
> -I/opt/octave/octave-3.1.51/include
> -L/opt/octave/gcc-3.4.4dw2/lib -L/opt/octave/octave-3.1.51/lib conftest.c 
> -ldl -lwsock32 -lblas -lhdf5
> -lz -lm  -lwsock32 >&5
> conftest.c:265: warning: conflicting types for built-in function 'log2'
> /cygdrive/c/DOCUME~1/Tatsu/LOCALS~1/Temp/ccir4uGp.o: In function `main':
> /home/octaves/octave-3.1.51/conftest.c:284: undefined reference to `_log2'
> collect2: ld returned 1 exit status
> configure:26035: $? = 1
>
>
> Unlike octave-3.1.50, this time, non-existense of log2 function was 
> successfuly detected.

I'm not sure - the messages indicate that log2 is probably present but
some problems occur with its usage.

> So there are be some codes fot the definition of function log2.
>
> Would someone kindly tell me where it is ?


The xlog2 wrappers are defined in liboctave/lo-mappers.cc but it
doesn't seem to be related to your problem in any way.

>
> I think that it is non-effective for our system.
>
> Regards
>
> Tatsuro
>
>
>
> --------------------------------------
> Stop! Global Warming ~ Yahoo! JAPAN Earth Project
> http://pr.mail.yahoo.co.jp/earthproject/
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www.cae.wisc.edu/mailman/listinfo/help-octave
>



-- 
RNDr. Jaroslav Hajek
computing expert
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz


reply via email to

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