Installation/compilation error

View: New views
4 Messages — Rating Filter:   Alert me  

Installation/compilation error

by SAMRAT RAO :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
   I am trying to compile octave 3.0.3 from source in my openSUSE 11.0. I am stuck with the following error:

ls-hdf5.cc: In function 'bool hdf5_check_attr(hid_t, const char*)':
ls-hdf5.cc:146: error: invalid conversion from 'herr_t (**)(hid_t, void*)' to 'hid_t'
ls-hdf5.cc:146: error: invalid conversion from 'void**' to 'herr_t (**)(hid_t, void*)'
/usr/local/hdf_5-1.8.2/include/H5Epublic.h:173: error: too few arguments to function 'herr_t H5Eget_auto2(hid_t, herr_t (**)(hid_t, void*), void**)'
ls-hdf5.cc:146: error: at this point in file
/usr/local/hdf_5-1.8.2/include/H5Epublic.h:174: error: too few arguments to function 'herr_t H5Eset_auto2(hid_t, herr_t (*)(hid_t, void*), void*)'
ls-hdf5.cc:147: error: at this point in file
ls-hdf5.cc:159: error: invalid conversion from 'herr_t (*)(hid_t, void*)' to 'hid_t'
ls-hdf5.cc:159: error: invalid conversion from 'void*' to 'herr_t (*)(hid_t, void*)'
/usr/local/hdf_5-1.8.2/include/H5Epublic.h:174: error: too few arguments to function 'herr_t H5Eset_auto2(hid_t, herr_t (*)(hid_t, void*), void*)'
ls-hdf5.cc:159: error: at this point in file
/usr/local/hdf_5-1.8.2/include/H5Gpublic.h: In function 'herr_t hdf5_read_next_data(hid_t, const char*, void*)':
/usr/local/hdf_5-1.8.2/include/H5Gpublic.h:78: error: too few arguments to function 'hid_t H5Gopen2(hid_t, const char*, hid_t)'
ls-hdf5.cc:225: error: at this point in file
/usr/local/hdf_5-1.8.2/include/H5Dpublic.h:98: error: too few arguments to function 'hid_t H5Dopen2(hid_t, const char*, hid_t)'
ls-hdf5.cc:235: error: at this point in file
/usr/local/hdf_5-1.8.2/include/H5Dpublic.h:98: error: too few arguments to function 'hid_t H5Dopen2(hid_t, const char*, hid_t)'
ls-hdf5.cc:307: error: at this point in file
/usr/local/hdf_5-1.8.2/include/H5Gpublic.h: In function 'std::string read_hdf5_data(std::istream&, const std::string&, bool&, octave_value&, std::string&)':
/usr/local/hdf_5-1.8.2/include/H5Gpublic.h:78: error: too few arguments to function 'hid_t H5Gopen2(hid_t, const char*, hid_t)'
ls-hdf5.cc:550: error: at this point in file
/usr/local/hdf_5-1.8.2/include/H5Apublic.h: In function 'herr_t hdf5_add_attr(hid_t, const char*)':
/usr/local/hdf_5-1.8.2/include/H5Apublic.h:45: error: too few arguments to function 'hid_t H5Acreate2(hid_t, const char*, hid_t, hid_t, hid_t, hid_t)'
ls-hdf5.cc:597: error: at this point in file
/usr/local/hdf_5-1.8.2/include/H5Dpublic.h: In function 'int save_hdf5_empty(hid_t, const char*, dim_vector)':
/usr/local/hdf_5-1.8.2/include/H5Dpublic.h:95: error: too few arguments to function 'hid_t H5Dcreate2(hid_t, const char*, hid_t, hid_t, hid_t, hid_t, hid_t)'
ls-hdf5.cc:644: error: at this point in file
/usr/local/hdf_5-1.8.2/include/H5Dpublic.h: In function 'int load_hdf5_empty(hid_t, const char*, dim_vector&)':
/usr/local/hdf_5-1.8.2/include/H5Dpublic.h:98: error: too few arguments to function 'hid_t H5Dopen2(hid_t, const char*, hid_t)'
ls-hdf5.cc:674: error: at this point in file
/usr/local/hdf_5-1.8.2/include/H5Gpublic.h: In function 'bool add_hdf5_data(hid_t, const octave_value&, const std::string&, const std::string&, bool, bool)':
/usr/local/hdf_5-1.8.2/include/H5Gpublic.h:76: error: too few arguments to function 'hid_t H5Gcreate2(hid_t, const char*, hid_t, hid_t, hid_t)'
ls-hdf5.cc:752: error: at this point in file
/usr/local/hdf_5-1.8.2/include/H5Dpublic.h:95: error: too few arguments to function 'hid_t H5Dcreate2(hid_t, const char*, hid_t, hid_t, hid_t, hid_t, hid_t)'
ls-hdf5.cc:766: error: at this point in file
make[2]: *** [ls-hdf5.o] Error 1
make[2]: Leaving directory `/media/work/softwares/octave/octave-3.0.3/src'
make[1]: *** [src] Error 2
make[1]: Leaving directory `/media/work/softwares/octave/octave-3.0.3'
make: *** [all] Error 2

I compiled hdf5-1.8.2 from source too. Is there a problem with my compilation of hdf5-1.8.2?

Thanks,
Samrat.

_______________________________________________
Help-octave mailing list
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave

Re: Installation/compilation error

by Dmitri A. Sergatskov :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, Dec 21, 2008 at 8:53 PM, SAMRAT RAO <samluvsyou@...> wrote:
> Hi,
>    I am trying to compile octave 3.0.3 from source in my openSUSE 11.0. I am
> stuck with the following error:
>
> ls-hdf5.cc: In function 'bool hdf5_check_attr(hid_t, const char*)':
> ls-hdf5.cc:146: error: invalid conversion from 'herr_t (**)(hid_t, void*)'
> to 'hid_t'
> ls-hdf5.cc:146: error: invalid conversion from 'void**' to 'herr_t
> (**)(hid_t, void*)'

You need to set HDF5-1.6 compatibility by defining CPPFLAGS="-DH5_USE_16_API"
e.g.:

./configure CPPFLAGS="-DH5_USE_16_API"

Dmitri.
--
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave

Re: Installation/compilation error

by SAMRAT RAO :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
   By mistake i had taken this conversation offline. So this is a repeat post in some sense.
   Using the suggestion i was able to compile octave-3.0.3 (the size of the octave-3.0.3 directory is 1Gb). But 'make check' immediately gives the error:

samrat@linux-hl2a:/media/work/
softwares/octave/octave-3.0.3> make check
make -f octMakefile check
make[1]: Entering directory `/media/work/softwares/octave/octave-3.0.3'
make -C test check
make[2]: Entering directory `/media/work/softwares/octave/octave-3.0.3/test'
./build_sparse_tests.sh
../run-octave --norc --silent --no-history ./fntests.m .

Integrated test scripts:

  src/DLD-FUNCTIONS/bsxfun.cc ............................panic: Illegal instruction -- stopping myself...
make[2]: *** [check] Illegal instruction
make[2]: Leaving directory `/media/work/softwares/octave/octave-3.0.3/test'
make[1]: *** [check] Error 2

make[1]: Leaving directory `/media/work/softwares/octave/octave-3.0.3'
make: *** [check] Error 2

What should be my next step?

Samrat.


On Mon, Dec 22, 2008 at 8:47 AM, Dmitri A. Sergatskov <dasergatskov@...> wrote:
On Sun, Dec 21, 2008 at 8:53 PM, SAMRAT RAO <samluvsyou@...> wrote:
> Hi,
>    I am trying to compile octave 3.0.3 from source in my openSUSE 11.0. I am
> stuck with the following error:
>
> ls-hdf5.cc: In function 'bool hdf5_check_attr(hid_t, const char*)':
> ls-hdf5.cc:146: error: invalid conversion from 'herr_t (**)(hid_t, void*)'
> to 'hid_t'
> ls-hdf5.cc:146: error: invalid conversion from 'void**' to 'herr_t
> (**)(hid_t, void*)'

You need to set HDF5-1.6 compatibility by defining CPPFLAGS="-DH5_USE_16_API"
e.g.:

./configure CPPFLAGS="-DH5_USE_16_API"

Dmitri.
--


_______________________________________________
Help-octave mailing list
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave

Re: Installation/compilation error

by Dmitri A. Sergatskov :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Dec 22, 2008 at 12:24 AM, SAMRAT RAO <samluvsyou@...> wrote:

>
>   src/DLD-FUNCTIONS/bsxfun.cc ............................panic: Illegal
> instruction -- stopping myself...
> make[2]: *** [check] Illegal instruction
> make[2]: Leaving directory `/media/work/softwares/octave/octave-3.0.3/test'
> make[1]: *** [check] Error 2
> make[1]: Leaving directory `/media/work/softwares/octave/octave-3.0.3'
> make: *** [check] Error 2
>
> What should be my next step?

All I can tell you at the moment is that it is working for me.
This is a long shot, but just make sure you do not mix object files compiled
with different compiler flags, in particular with and without
 CPPFLAGS="-DH5_USE_16_API"
(i.e. you run configure on pristine source tree).

>
> Samrat.

Dmitri.
--
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave