Skip to content

Instantly share code, notes, and snippets.

@abinashmeher999
Created May 27, 2015 13:19
Show Gist options
  • Save abinashmeher999/3997cd256a91ff08edce to your computer and use it in GitHub Desktop.
Save abinashmeher999/3997cd256a91ff08edce to your computer and use it in GitHub Desktop.
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'
Tasks: TOP => compile => compile:x86_64-linux => compile:symengine:x86_64-linux => copy:symengine:x86_64-linux:2.2.0 => tmp/x86_64-linux/symengine/2.2.0/symengine.so
(See full trace by running task with --trace)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment