These are chat archives for symengine/symengine

31st
Oct 2017
Isuru Fernando
@isuruf
Oct 31 2017 13:29
What version of symengine.rb is this?
Shikhar Jaiswal
@ShikharJ
Oct 31 2017 13:40
0.0.2 I think.
Isuru Fernando
@isuruf
Oct 31 2017 13:40
Try the git master
Shikhar Jaiswal
@ShikharJ
Oct 31 2017 13:48
I'm getting this:
Scanning dependencies of target symengine_ruby
[  6%] Building C object ext/symengine/CMakeFiles/symengine_ruby.dir/ruby_basic.c.o
[ 12%] Building C object ext/symengine/CMakeFiles/symengine_ruby.dir/ruby_symbol.c.o
[ 18%] Building C object ext/symengine/CMakeFiles/symengine_ruby.dir/ruby_number.c.o
/var/lib/gems/2.3.0/gems/symengine-0.1.0/ext/symengine/ruby_number.c: In functioncnumber_comp’:
/var/lib/gems/2.3.0/gems/symengine-0.1.0/ext/symengine/ruby_number.c:23:16: warning: implicit declaration of functionbasic_number_sign’; did you mean ‘basic_lambertw’? [-Wimplicit-function-declaration]
     int sign = basic_number_sign(cbasic_sub);
                ^~~~~~~~~~~~~~~~~
                basic_lambertw
[ 25%] Building C object ext/symengine/CMakeFiles/symengine_ruby.dir/ruby_integer.c.o
[ 31%] Building C object ext/symengine/CMakeFiles/symengine_ruby.dir/ruby_real_double.c.o
[ 37%] Building C object ext/symengine/CMakeFiles/symengine_ruby.dir/ruby_real_mpfr.c.o
[ 43%] Building C object ext/symengine/CMakeFiles/symengine_ruby.dir/ruby_complex.c.o
/var/lib/gems/2.3.0/gems/symengine-0.1.0/ext/symengine/ruby_complex.c: In functionccomplex_real_part’:
/var/lib/gems/2.3.0/gems/symengine-0.1.0/ext/symengine/ruby_complex.c:5:28: error: ‘complex_real_part’ undeclared (first use in this function); did you mean ‘ccomplex_real_part’?
     return function_onearg(complex_real_part, self);
                            ^~~~~~~~~~~~~~~~~
                            ccomplex_real_part
/var/lib/gems/2.3.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
/var/lib/gems/2.3.0/gems/symengine-0.1.0/ext/symengine/ruby_complex.c: In functionccomplex_imaginary_part’:
/var/lib/gems/2.3.0/gems/symengine-0.1.0/ext/symengine/ruby_complex.c:10:28: error: ‘complex_imaginary_part’ undeclared (first use in this function); did you mean ‘ccomplex_imaginary_part’?
     return function_onearg(complex_imaginary_part, self);
                            ^~~~~~~~~~~~~~~~~~~~~~
                            ccomplex_imaginary_part
/var/lib/gems/2.3.0/gems/symengine-0.1.0/ext/symengine/ruby_complex.c: In functionccomplex_real_part’:
/var/lib/gems/2.3.0/gems/symengine-0.1.0/ext/symengine/ruby_complex.c:6:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
/var/lib/gems/2.3.0/gems/symengine-0.1.0/ext/symengine/ruby_complex.c: In functionccomplex_imaginary_part’:
/var/lib/gems/2.3.0/gems/symengine-0.1.0/ext/symengine/ruby_complex.c:11:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
ext/symengine/CMakeFiles/symengine_ruby.dir/build.make:206: recipe for target 'ext/symengine/CMakeFiles/symengine_ruby.dir/ruby_complex.c.o' failed
make[2]: *** [ext/symengine/CMakeFiles/symengine_ruby.dir/ruby_complex.c.o] Error 1
CMakeFiles/Makefile2:85: recipe for target 'ext/symengine/CMakeFiles/symengine_ruby.dir/all' failed
make[1]: *** [ext/symengine/CMakeFiles/symengine_ruby.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

make failed, exit code 2
Isuru Fernando
@isuruf
Oct 31 2017 13:49
@ShikharJ, I think complex_real_part was renamed to complex_part in symengine master
Shikhar Jaiswal
@ShikharJ
Oct 31 2017 13:54
I'm still getting this:
Scanning dependencies of target symengine_ruby
[  6%] Building C object ext/symengine/CMakeFiles/symengine_ruby.dir/ruby_basic.c.o
[ 12%] Building C object ext/symengine/CMakeFiles/symengine_ruby.dir/ruby_symbol.c.o
[ 18%] Building C object ext/symengine/CMakeFiles/symengine_ruby.dir/ruby_number.c.o
/var/lib/gems/2.3.0/gems/symengine-0.1.0/ext/symengine/ruby_number.c: In functioncnumber_comp’:
/var/lib/gems/2.3.0/gems/symengine-0.1.0/ext/symengine/ruby_number.c:23:16: warning: implicit declaration of functionbasic_number_sign’; did you mean ‘basic_lambertw’? [-Wimplicit-function-declaration]
     int sign = basic_number_sign(cbasic_sub);
                ^~~~~~~~~~~~~~~~~
                basic_lambertw
[ 25%] Building C object ext/symengine/CMakeFiles/symengine_ruby.dir/ruby_integer.c.o
[ 31%] Building C object ext/symengine/CMakeFiles/symengine_ruby.dir/ruby_real_double.c.o
[ 37%] Building C object ext/symengine/CMakeFiles/symengine_ruby.dir/ruby_real_mpfr.c.o
[ 43%] Building C object ext/symengine/CMakeFiles/symengine_ruby.dir/ruby_complex.c.o
/var/lib/gems/2.3.0/gems/symengine-0.1.0/ext/symengine/ruby_complex.c: In functionccomplex_real_part’:
/var/lib/gems/2.3.0/gems/symengine-0.1.0/ext/symengine/ruby_complex.c:5:28: error: ‘complex_part’ undeclared (first use in this function); did you mean ‘complex_set’?
     return function_onearg(complex_part, self);
                            ^~~~~~~~~~~~
                            complex_set
/var/lib/gems/2.3.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
/var/lib/gems/2.3.0/gems/symengine-0.1.0/ext/symengine/ruby_complex.c: In functionccomplex_imaginary_part’:
/var/lib/gems/2.3.0/gems/symengine-0.1.0/ext/symengine/ruby_complex.c:10:28: error: ‘complex_imaginary_part’ undeclared (first use in this function); did you mean ‘ccomplex_imaginary_part’?
     return function_onearg(complex_imaginary_part, self);
                            ^~~~~~~~~~~~~~~~~~~~~~
                            ccomplex_imaginary_part
/var/lib/gems/2.3.0/gems/symengine-0.1.0/ext/symengine/ruby_complex.c: In functionccomplex_real_part’:
/var/lib/gems/2.3.0/gems/symengine-0.1.0/ext/symengine/ruby_complex.c:6:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
/var/lib/gems/2.3.0/gems/symengine-0.1.0/ext/symengine/ruby_complex.c: In functionccomplex_imaginary_part’:
/var/lib/gems/2.3.0/gems/symengine-0.1.0/ext/symengine/ruby_complex.c:11:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
ext/symengine/CMakeFiles/symengine_ruby.dir/build.make:206: recipe for target 'ext/symengine/CMakeFiles/symengine_ruby.dir/ruby_complex.c.o' failed
make[2]: *** [ext/symengine/CMakeFiles/symengine_ruby.dir/ruby_complex.c.o] Error 1
CMakeFiles/Makefile2:85: recipe for target 'ext/symengine/CMakeFiles/symengine_ruby.dir/all' failed
make[1]: *** [ext/symengine/CMakeFiles/symengine_ruby.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

make failed, exit code 2
Shikhar Jaiswal
@ShikharJ
Oct 31 2017 13:55
Ah yes. I traced the PR in symengine/symengine#1263 .
Shikhar Jaiswal
@ShikharJ
Oct 31 2017 14:08
Thanks. Works beautifully, also sent in a PR.