help-octave
[Top][All Lists]
Advanced

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

RE: problem compiling SparseCmplxQR.cc with a RHEL3 box


From: Cohen-Tanugi, Johann
Subject: RE: problem compiling SparseCmplxQR.cc with a RHEL3 box
Date: Tue, 8 May 2007 16:59:00 -0700

hi,

John W. Eaton wrote:
> On  8-May-2007, Cohen-Tanugi, Johann wrote:
>
> | I am getting the following compile error trying to build octave 2.9.10 on 
> an RHEL3 box :
> | -bash-2.05b$ gmake
> | g++ -c  -fPIC -I. -I.. -I../liboctave -I../src -I../libcruft/misc   
> -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -Wold-style-cast -g -O2 
> SparseCmplxQR.cc -o pic/SparseCmplxQR.o
> | SparseCmplxQR.cc:40: syntax error before `__attribute__'
> | ...
> | and then a bunch of warnings.
> | 
> | -bash-2.05b$ uname -a
> | Linux noric02 2.4.21-47.0.1.ELsmp #1 SMP Fri Oct 13 17:47:16 EDT 2006 i686 
> athlon i386 GNU/Linux
>
> Why does everyone always seem to think the kernel version is relevant?
> The compiler is failing here, not the kernel...
>
good point, sorry! The habit of thinking about linux release rather than 
constituents. So :
-bash-2.05b$ g++ -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man 
--infodir=/usr/share/info --enable-shared --enable-threads=posix 
--disable-checking --with-system-zlib --enable-__cxa_atexit 
--host=i386-redhat-linux
Thread model: posix
gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-58)

> | the line 40 of the file is :
> | SparseComplexQR::SparseComplexQR_rep::SparseComplexQR_rep 
> | (const SparseComplexMatrix& a GCC_ATTR_UNUSED,                     
> <----------this line
> |  int order GCC_ATTR_UNUSED)
> | 
> | so I am stuck as to debugging what goes wrong....
>
> Does the following help?
>
>   http://www.cae.wisc.edu/pipermail/bug-octave/2007-April/002111.html
>
yes, thanks! Though in the end I just cvs the current hes and checked the diff 
between the 2 versions. Now it is compiling, so wait and see.... but while I 
was at it I also tried to compile the current HEAD, and I got the following 
compile error :
oct-gperf.h:55: ISO C++ forbids declaration of `in_word_set' with no type
oct-gperf.h:93: ISO C++ forbids declaration of `wordlist' with no type
oct-gperf.h:128: initializer for scalar variable requires one element
oct-gperf.h:142: ISO C++ forbids declaration of `in_word_set' with no type
oct-gperf.h: In static member function `static const int*
   octave_kw_hash::in_word_set(const char*, unsigned int)':
oct-gperf.h:153: request for member `name' in `wordlist[index]', which is of
   non-aggregate type `int'
oct-gperf.h:161: ISO C++ forbids declaration of `wordptr' with no type
oct-gperf.h:162: ISO C++ forbids declaration of `wordendptr' with no type
oct-gperf.h:166: request for member `name' in `*wordptr', which is of
   non-aggregate type `int'
lex.l: In function `int is_keyword_token(const std::string&)':
lex.l:998: cannot convert `const int*' to `const octave_kw*' in initialization
lex.l: In function `octave_value_list Fiskeyword(const octave_value_list&,
   int)':
lex.l:2459: request for member `name' in `wordlist[i]', which is of
   non-aggregate type `int'

Just passing the info in case it helps, I know what working with the HEAD 
implies.....

best and thanks for the quick response,
Johann
> jwe



reply via email to

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