Skip to content

Instantly share code, notes, and snippets.

View abinashmeher999's full-sized avatar
🤓
Don't mind me, just browsing

Abinash Meher abinashmeher999

🤓
Don't mind me, just browsing
  • Autonomous Ground Vehicle Research Group
  • Kharagpur, India
View GitHub Profile
@abinashmeher999
abinashmeher999 / make_verbose
Created May 29, 2015 15:57
Error on compilation of wrappers
abinashmeher999@JARVIS:~/gsoc/symengine/src/ruby/ext/symengine$ make clean
abinashmeher999@JARVIS:~/gsoc/symengine/src/ruby/ext/symengine$ ls
extconf.h extconf.rb Makefile ruby_basic.c ruby_basic.h symengine.c
abinashmeher999@JARVIS:~/gsoc/symengine/src/ruby/ext/symengine$ ruby extconf.rb checking for main() in -lsymengine... no
creating extconf.h
creating Makefile
abinashmeher999@JARVIS:~/gsoc/symengine/src/ruby/ext/symengine$ ls
extconf.h Makefile ruby_basic.c symengine.c
extconf.rb mkmf.log ruby_basic.h
abinashmeher999@JARVIS:~/gsoc/symengine/src/ruby/ext/symengine$ make VERBOSE=1
@abinashmeher999
abinashmeher999 / cmake_output
Created May 29, 2015 17:28
Verbose make of cmake and extconf
/usr/bin/cmake -H/home/abinashmeher999/gsoc/symengine -B/home/abinashmeher999/gsoc/symengine --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/abinashmeher999/gsoc/symengine/CMakeFiles /home/abinashmeher999/gsoc/symengine/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory `/home/abinashmeher999/gsoc/symengine'
make -f src/teuchos/CMakeFiles/teuchos.dir/build.make src/teuchos/CMakeFiles/teuchos.dir/depend
make[2]: Entering directory `/home/abinashmeher999/gsoc/symengine'
cd /home/abinashmeher999/gsoc/symengine && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/abinashmeher999/gsoc/symengine /home/abinashmeher999/gsoc/symengine/src/teuchos /home/abinashmeher999/gsoc/symengine /home/abinashmeher999/gsoc/symengine/src/teuchos /home/abinashmeher999/gsoc/symengine/src/teuchos/CMakeFiles/teuchos.dir/DependInfo.cmake --color=
make[2]: Leaving directory `/home/abinashmeher999/gsoc/symengine'
make -f src/teuchos/CMakeFiles/teuchos.di
@abinashmeher999
abinashmeher999 / load_error
Created June 4, 2015 18:25
Load error shown when I require 'symengine'
abinashmeher999@JARVIS:~$ irb
2.2.0 :001 > require 'symengine'
LoadError: cannot load such file -- symengine/symengine
from /home/abinashmeher999/.rvm/rubies/ruby-2.2.0/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /home/abinashmeher999/.rvm/rubies/ruby-2.2.0/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /home/abinashmeher999/.rvm/gems/ruby-2.2.0/gems/symengine-0.0.0.pre/lib/symengine.rb:1:in `<top (required)>'
from /home/abinashmeher999/.rvm/rubies/ruby-2.2.0/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:128:in `require'
from /home/abinashmeher999/.rvm/rubies/ruby-2.2.0/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:128:in `rescue in require'
from /home/abinashmeher999/.rvm/rubies/ruby-2.2.0/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:39:in `require'
from (irb):1
@abinashmeher999
abinashmeher999 / mkmf.log
Created June 15, 2015 07:23
The output obtained on doing `rake compile` or `ruby extconf.rb`
have_header: checking for cwrapper.h... -------------------- yes
"gcc -o conftest -I/home/abinashmeher999/.rvm/rubies/ruby-2.2.0/include/ruby-2.2.0/x86_64-linux -I/home/abinashmeher999/.rvm/rubies/ruby-2.2.0/include/ruby-2.2.0/ruby/backward -I/home/abinashmeher999/.rvm/rubies/ruby-2.2.0/include/ruby-2.2.0 -I../../../../ext/symengine -I/opt/local/include -I/usr/local/include -I/home/abinashmeher999/.rvm/rubies/ruby-2.2.0/include -I/usr/include -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat -fPIC -Wall -Werror -fPIC -std=c99 conftest.c -L/usr/local/lib -Wl,-R/usr/local/lib -L/home/abinashmeher999/.rvm/rubies/ruby-2.2.0/lib -Wl,-R/home/abinashmeher999/.rvm/rubies/ruby-2.2.0/lib -L/usr/lib -Wl,-R/usr/lib -L. -L/home/abinashmeher999/.rvm/rubies/ruby-2.2.0/lib -Wl,-R/
have_header: checking for cwrapper.h... -------------------- yes
"g++ -o conftest -I/home/abinashmeher999/.rvm/rubies/ruby-2.2.0/include/ruby-2.2.0/x86_64-linux -I/home/abinashmeher999/.rvm/rubies/ruby-2.2.0/include/ruby-2.2.0/ruby/backward -I/home/abinashmeher999/.rvm/rubies/ruby-2.2.0/include/ruby-2.2.0 -I../../../../ext/symengine -Wall -O3 -Wall -Wcast-qual -Wconversion -DSGI__gnu_cxx -DREADLINE -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat -fPIC -Wall -Werror -fPIC conftest.c -L/usr/local/lib -Wl,-R/usr/local/lib -L/home/abinashmeher999/.rvm/rubies/ruby-2.2.0/lib -Wl,-R/home/abinashmeher999/.rvm/rubies/ruby-2.2.0/lib -L/usr/lib -Wl,-R/usr/lib -L. -L/home/abinashmeher999/.rvm/rubies/ruby-2.2.0/lib -Wl,-R/home/abinashmeher999/.rvm/rubies/ruby-2.2.0/lib -L. -fsta
Install the project...
-- Install configuration: "Release"
-- Installing: /usr/local/lib/libsymengine.so
-- Installing: /usr/local/include/add.h
-- Installing: /usr/local/include/symengine_assert.h
-- Installing: /usr/local/include/functions.h
-- Installing: /usr/local/include/monomials.h
-- Installing: /usr/local/include/polynomial.h
-- Installing: /usr/local/include/number.h
-- Installing: /usr/local/include/rings.h
@abinashmeher999
abinashmeher999 / after_adding_FindPackageHandleStandardArgs
Created June 17, 2015 23:19
Errors while adding FindRuby.cmake
abinashmeher999@JARVIS:~/gsoc/symengine$ cmake -DWITH_RUBY=yes .
CMake Error: Error in cmake code at
/home/abinashmeher999/gsoc/symengine/cmake/FindPackageHandleStandardArgs.cmake:3:
Parse error. Expected "(", got newline with text "
".
CMake Error at cmake/FindGMP.cmake:10 (include):
include could not find load file:
/home/abinashmeher999/gsoc/symengine/cmake/FindPackageHandleStandardArgs.cmake
Call Stack (most recent call first):
error: could not apply ef2e21a... Created a basic structure for the new Polynomial class and tried to integrate it with the visitor pattern
When you have resolved this problem, run "git rebase --continue".
If you prefer to skip this patch, run "git rebase --skip" instead.
To check out the original branch and stop rebasing, run "git rebase --abort".
Could not apply ef2e21a74790abea24d9d89f4ee041160046c1c4... Created a basic structure for the new Polynomial class and tried to integrate it with the visitor pattern
void basic_args(const basic a, const basic_struct*** array, int *size)
{
std::vector<RCP<const Basic> > args;
args = (*RCP_const_cast(a))->get_args();
*size = args.size();
*array = (const basic_struct**)malloc((*size)*sizeof(basic_struct*));
std::vector<RCP<const Basic>>::iterator it;
int index = 0;
for (it = args.begin(); it != args.end(); ++it) {
(*array)[index++] = reinterpret_cast<const basic_struct*>(&(*it));
@abinashmeher999
abinashmeher999 / bt
Created June 30, 2015 20:33
GDB result of running test_cwrapper
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.