Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

‘oct_mach_info’ has not been declared, Build issue #246

Open
devjewel01 opened this issue Jun 4, 2024 · 4 comments
Open

‘oct_mach_info’ has not been declared, Build issue #246

devjewel01 opened this issue Jun 4, 2024 · 4 comments

Comments

@devjewel01
Copy link

[ 32%] Built target tinysplineoctave_swig_compilation
Consolidate compiler generated dependencies of target tinysplineoctave
[ 33%] Building CXX object src/CMakeFiles/tinysplineoctave.dir/octave/tinysplineoctaveOCTAVE_wrap.cxx.o
/home/jewel/tinyspline/build/src/octave/tinysplineoctaveOCTAVE_wrap.cxx:1768:31: error: ‘oct_mach_info’ has not been declared
1768 | oct_mach_info::float_format fmt) {
| ^~~~~~~~~~~~~
/home/jewel/tinyspline/build/src/octave/tinysplineoctaveOCTAVE_wrap.cxx:1768:59: error: expected ‘,’ or ‘...’ before ‘fmt’
1768 | oct_mach_info::float_format fmt) {
| ^~~
/home/jewel/tinyspline/build/src/octave/tinysplineoctaveOCTAVE_wrap.cxx: In member function ‘octave_value_list octave_swig_type::member_deref(octave_swig_type::member_value_pair*, const octave_value_list&)’:
/home/jewel/tinyspline/build/src/octave/tinysplineoctaveOCTAVE_wrap.cxx:1044:94: error: invalid new-expression of abstract class type ‘octave_swig_bound_func’
1044 | #define SWIG_OCTAVE_BOUND_FUNC(func, args) octave_value(new octave_swig_bound_func(func, args))
| ^
/home/jewel/tinyspline/build/src/octave/tinysplineoctaveOCTAVE_wrap.cxx:1272:18: note: in expansion of macro ‘SWIG_OCTAVE_BOUND_FUNC’
1272 | return SWIG_OCTAVE_BOUND_FUNC(m->second.function_value(), args);
| ^~~~~~~~~~~~~~~~~~~~~~
/home/jewel/tinyspline/build/src/octave/tinysplineoctaveOCTAVE_wrap.cxx:1045:9: note: because the following virtual functions are pure within ‘octave_swig_bound_func’:
1045 | class octave_swig_bound_func : public octave_function {
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/octave-6.4.0/octave/ov-builtin.h:35,
from /usr/include/octave-6.4.0/octave/defun-int.h:33,
from /usr/include/octave-6.4.0/octave/defun-dld.h:35,
from /usr/include/octave-6.4.0/octave/oct.h:35,
from /home/jewel/tinyspline/build/src/octave/tinysplineoctaveOCTAVE_wrap.cxx:196:
/usr/include/octave-6.4.0/octave/ov-fcn.h:247:3: note: ‘virtual octave_value_list octave_function::execute(octave::tree_evaluator&, int, const octave_value_list&)’
247 | execute (octave::tree_evaluator& tw, int nargout = 0,
| ^~~~~~~
/home/jewel/tinyspline/build/src/octave/tinysplineoctaveOCTAVE_wrap.cxx:1044:94: error: invalid new-expression of abstract class type ‘octave_swig_bound_func’
1044 | #define SWIG_OCTAVE_BOUND_FUNC(func, args) octave_value(new octave_swig_bound_func(func, args))
| ^
/home/jewel/tinyspline/build/src/octave/tinysplineoctaveOCTAVE_wrap.cxx:1280:18: note: in expansion of macro ‘SWIG_OCTAVE_BOUND_FUNC’
1280 | return SWIG_OCTAVE_BOUND_FUNC(new octave_builtin(m->first->method), args);
| ^~~~~~~~~~~~~~~~~~~~~~
/home/jewel/tinyspline/build/src/octave/tinysplineoctaveOCTAVE_wrap.cxx: At global scope:
/home/jewel/tinyspline/build/src/octave/tinysplineoctaveOCTAVE_wrap.cxx:2036:31: error: ‘oct_mach_info’ has not been declared
2036 | oct_mach_info::float_format fmt)
| ^~~~~~~~~~~~~
/home/jewel/tinyspline/build/src/octave/tinysplineoctaveOCTAVE_wrap.cxx:2036:59: error: expected ‘,’ or ‘...’ before ‘fmt’
2036 | oct_mach_info::float_format fmt)
| ^~~
/home/jewel/tinyspline/build/src/octave/tinysplineoctaveOCTAVE_wrap.cxx: In member function ‘virtual bool octave_swig_ref::load_binary(std::istream&, bool, int)’:
/home/jewel/tinyspline/build/src/octave/tinysplineoctaveOCTAVE_wrap.cxx:2037:43: error: ‘fmt’ was not declared in this scope; did you mean ‘fma’?
2037 | { return ptr->load_binary(is, swap, fmt); }
| ^~~
| fma
/home/jewel/tinyspline/build/src/octave/tinysplineoctaveOCTAVE_wrap.cxx: At global scope:
/home/jewel/tinyspline/build/src/octave/tinysplineoctaveOCTAVE_wrap.cxx:2151:31: error: ‘oct_mach_info’ has not been declared
2151 | oct_mach_info::float_format fmt) {
| ^~~~~~~~~~~~~
/home/jewel/tinyspline/build/src/octave/tinysplineoctaveOCTAVE_wrap.cxx:2151:59: error: expected ‘,’ or ‘...’ before ‘fmt’
2151 | oct_mach_info::float_format fmt) {
| ^~~
/home/jewel/tinyspline/build/src/octave/tinysplineoctaveOCTAVE_wrap.cxx: In function ‘void SWIG_Octave_LinkGlobalValue(std::string)’:
/home/jewel/tinyspline/build/src/octave/tinysplineoctaveOCTAVE_wrap.cxx:2422:12: error: ‘class octave::symbol_scope’ has no member named ‘assign’
2422 | symscope.assign(name, symtab.global_varval(name));
| ^~~~~~
/home/jewel/tinyspline/build/src/octave/tinysplineoctaveOCTAVE_wrap.cxx:2423:12: error: ‘class octave::symbol_scope’ has no member named ‘mark_global’
2423 | symscope.mark_global(name);
| ^~~~~~~~~~~
/home/jewel/tinyspline/build/src/octave/tinysplineoctaveOCTAVE_wrap.cxx: In function ‘bool SWIG_Octave_LoadModule(std::string)’:
/home/jewel/tinyspline/build/src/octave/tinysplineoctaveOCTAVE_wrap.cxx:14897:23: error: ‘discard_error_messages’ was not declared in this scope
14897 | frame.protect_var(discard_error_messages); discard_error_messages = true;
| ^~~~~~~~~~~~~~~~~~~~~~
/home/jewel/tinyspline/build/src/octave/tinysplineoctaveOCTAVE_wrap.cxx:14898:23: error: ‘discard_warning_messages’ was not declared in this scope
14898 | frame.protect_var(discard_warning_messages); discard_warning_messages = true;
| ^~~~~~~~~~~~~~~~~~~~~~~~
/home/jewel/tinyspline/build/src/octave/tinysplineoctaveOCTAVE_wrap.cxx: In function ‘bool SWIG_Octave_InstallFunction(octave_function*, std::string)’:
/home/jewel/tinyspline/build/src/octave/tinysplineoctaveOCTAVE_wrap.cxx:14940:23: error: ‘discard_error_messages’ was not declared in this scope
14940 | frame.protect_var(discard_error_messages); discard_error_messages = true;
| ^~~~~~~~~~~~~~~~~~~~~~
/home/jewel/tinyspline/build/src/octave/tinysplineoctaveOCTAVE_wrap.cxx:14941:23: error: ‘discard_warning_messages’ was not declared in this scope
14941 | frame.protect_var(discard_warning_messages); discard_warning_messages = true;
| ^~~~~~~~~~~~~~~~~~~~~~~~
/home/jewel/tinyspline/build/src/octave/tinysplineoctaveOCTAVE_wrap.cxx: In function ‘octave_value_list Ftinyspline(const octave_value_list&, int)’:
/home/jewel/tinyspline/build/src/octave/tinysplineoctaveOCTAVE_wrap.cxx:15191:73: error: ‘class octave::interpreter’ has no member named ‘get_call_stack’
15191 | octave::call_stack& stack = octave::interpreter::the_interpreter()->get_call_stack();
| ^~~~~~~~~~~~~~
/home/jewel/tinyspline/build/src/octave/tinysplineoctaveOCTAVE_wrap.cxx:15192:33: error: ‘class octave::call_stack’ has no member named ‘current’
15192 | octave_function *me = stack.current();
| ^~~~~~~
gmake[2]: *** [src/CMakeFiles/tinysplineoctave.dir/build.make:76: src/CMakeFiles/tinysplineoctave.dir/octave/tinysplineoctaveOCTAVE_wrap.cxx.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:1364: src/CMakeFiles/tinysplineoctave.dir/all] Error 2
gmake: *** [Makefile:166: all] Error 2

@msteinbeck
Copy link
Owner

Hi @devjewel01,

what version of Octave and Swig are you using?

@msteinbeck
Copy link
Owner

Probably fixed with: swig/swig#2020

@devjewel01
Copy link
Author

Hi @devjewel01,

what version of Octave and Swig are you using?

Octave 6.4.0
and Swig 4.1.1

@msteinbeck
Copy link
Owner

Please upgrade to Swig 4.2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants