Skip to content

symengine-0.1.0.gem does not compile #70

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

Open
larry104 opened this issue Nov 29, 2018 · 2 comments
Open

symengine-0.1.0.gem does not compile #70

larry104 opened this issue Nov 29, 2018 · 2 comments

Comments

@larry104
Copy link

It seems the symengine-0.1.0.gem does not compile - I get errors like the following ...

Is the rubywrapper for symengine still actively developed?

`[ 20%] Building C object ext/symengine/CMakeFiles/symengine_ruby.dir/ruby_number.c.o
/scratch/ruby/ruby-2.4.5/lib/ruby/gems/2.4.0/gems/symengine-0.1.0/ext/symengine/ruby_number.c: In function 'cnumber_comp':
/scratch/ruby/ruby-2.4.5/lib/ruby/gems/2.4.0/gems/symengine-0.1.0/ext/symengine/ruby_number.c:23:5: warning: implicit declaration of function 'basic_number_sign' [-Wimplicit-function-declaration]
int sign = basic_number_sign(cbasic_sub);
^
[ 26%] Building C object ext/symengine/CMakeFiles/symengine_ruby.dir/ruby_integer.c.o
[ 33%] Building C object ext/symengine/CMakeFiles/symengine_ruby.dir/ruby_real_double.c.o
[ 40%] Building C object ext/symengine/CMakeFiles/symengine_ruby.dir/ruby_real_mpfr.c.o
[ 46%] Building C object ext/symengine/CMakeFiles/symengine_ruby.dir/ruby_complex.c.o
/scratch/ruby/ruby-2.4.5/lib/ruby/gems/2.4.0/gems/symengine-0.1.0/ext/symengine/ruby_complex.c: In function 'ccomplex_real_part':
/scratch/ruby/ruby-2.4.5/lib/ruby/gems/2.4.0/gems/symengine-0.1.0/ext/symengine/ruby_complex.c:5:28: error: 'complex_real_part' undeclared (first use in this function)
return function_onearg(complex_real_part, self);
^
/scratch/ruby/ruby-2.4.5/lib/ruby/gems/2.4.0/gems/symengine-0.1.0/ext/symengine/ruby_complex.c:5:28: note: each undeclared identifier is reported only once for each function it appears in
/scratch/ruby/ruby-2.4.5/lib/ruby/gems/2.4.0/gems/symengine-0.1.0/ext/symengine/ruby_complex.c: In function 'ccomplex_imaginary_part':
/scratch/ruby/ruby-2.4.5/lib/ruby/gems/2.4.0/gems/symengine-0.1.0/ext/symengine/ruby_complex.c:10:28: error: 'complex_imaginary_part' undeclared (first use in this function)
return function_onearg(complex_imaginary_part, self);
^
/scratch/ruby/ruby-2.4.5/lib/ruby/gems/2.4.0/gems/symengine-0.1.0/ext/symengine/ruby_complex.c: In function 'ccomplex_real_part':
/scratch/ruby/ruby-2.4.5/lib/ruby/gems/2.4.0/gems/symengine-0.1.0/ext/symengine/ruby_complex.c:6:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/scratch/ruby/ruby-2.4.5/lib/ruby/gems/2.4.0/gems/symengine-0.1.0/ext/symengine/ruby_complex.c: In function 'ccomplex_imaginary_part':
/scratch/ruby/ruby-2.4.5/lib/ruby/gems/2.4.0/gems/symengine-0.1.0/ext/symengine/ruby_complex.c:11:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make[2]: *** [ext/symengine/CMakeFiles/symengine_ruby.dir/ruby_complex.c.o] Error 1
make[1]: *** [ext/symengine/CMakeFiles/symengine_ruby.dir/all] Error 2
make: *** [all] Error 2

make failed, exit code 2
`

@isuruf
Copy link
Member

isuruf commented Nov 29, 2018

C++ library is being actively maintained. Ruby gem's not so much. But it should work. Which symengine (C++ library) version are you using?

@larry104
Copy link
Author

I just did a "git clone" compiled with gcc 4.8.5 and ruby 2.4.5 - all fresh installs. The default gem symengine (0.0.2) compiles and works fine.

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