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 / 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):
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
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
@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/
@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 / 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 / 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 / error_rake_compile
Created May 27, 2015 13:19
Error while running rake compile
make
linking shared-object symengine/symengine.so
/usr/bin/ld: symengine.o: relocation R_X86_64_PC32 against undefined symbol `cbasic_alloc' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
make: *** [symengine.so] Error 1
rake aborted!
Command failed with status (2): [make...]
/home/abinashmeher999/.rvm/gems/ruby-2.2.0/gems/rake-compiler-0.9.5/lib/rake/extensiontask.rb:155:in `block (2 levels) in define_compile_tasks'
/home/abinashmeher999/.rvm/gems/ruby-2.2.0/gems/rake-compiler-0.9.5/lib/rake/extensiontask.rb:154:in `block in define_compile_tasks'
@abinashmeher999
abinashmeher999 / .vimrc
Created March 16, 2015 16:37
vimrc trim space
call plug#begin('~/.vim/plugged')
"
" always enabled
Plug 'tpope/vim-fugitive'
Plug 'scrooloose/syntastic'
Plug 'bling/vim-airline'
Plug 'scrooloose/nerdcommenter'
"Plug 'jiangmiao/auto-pairs'
Plug 'xolox/vim-misc'
Plug 'docunext/closetag.vim'
require "mkmf"
$srcs = [
'hypergeometric.c'
]
#if have_header("gsl/gsl_sf_exp.h", ["/usr/local/Cellar/gsl/1.15/include/"])
# have_library("gsl")
#end