Skip to content

Instantly share code, notes, and snippets.

View Sumith1896's full-sized avatar
🎉

Sumith Kulal Sumith1896

🎉
View GitHub Profile
sumith1896@yoda:~$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 10.42.0.1 0.0.0.0 UG 0 0 0 wlan0
10.42.0.0 * 255.255.255.0 U 9 0 0 wlan0
172.17.0.0 * 255.255.0.0 U 0 0 0 docker0
sumith1896@yoda:~$
sumith1896@yoda:~/github/sympy/nbviewer$ docker build -t sumith/nbviewer:v1 .
Sending build context to Docker daemon 14.72 MB
Step 1 : FROM debian:jessie
---> 47af6ca8a14a
Step 2 : MAINTAINER Project Jupyter <jupyter@googlegroups.com>
---> Using cache
---> 40608db74442
Step 3 : ENV DEBIAN_FRONTEND noninteractive
---> Using cache
---> eca73364fc32
sumith1896@yoda:~/github/slick/slick$ git clean -dfx
Removing project/project/
Removing project/target/
Removing slick/src/sphinx/exts/__pycache__/
Removing slick/target/
sumith1896@yoda:~/github/slick/slick$ sbt make-site
[info] Loading project definition from /home/sumith1896/github/slick/slick/project
[info] Updating {file:/home/sumith1896/github/slick/slick/project/}slick-build...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
┌─[sumith@sumith-Lenovo-Z50-70] - [~/sandbox] - [Sun Jan 17, 12:07]
└─[$] <> clang++ -fsanitize=undefined -v ftrapv.cpp
Ubuntu clang version 3.4-1ubuntu3 (tags/RELEASE_34/final) (based on LLVM 3.4)
Target: x86_64-pc-linux-gnu
Thread model: posix
Found candidate GCC installation: /usr/bin/../lib/gcc/i686-linux-gnu/4.8
Found candidate GCC installation: /usr/bin/../lib/gcc/i686-linux-gnu/4.8.5
Found candidate GCC installation: /usr/bin/../lib/gcc/i686-linux-gnu/4.9
Found candidate GCC installation: /usr/bin/../lib/gcc/i686-linux-gnu/4.9.3
Found candidate GCC installation: /usr/bin/../lib/gcc/i686-linux-gnu/5.3.0
sumith@sumith-Lenovo-Z50-70:~/github/sympy/symengine.py$ python3 setup.py install
/usr/local/lib/python3.5/site-packages/setuptools/dist.py:285: UserWarning: Normalizing '0.1.0.dev' to '0.1.0.dev0'
normalized_version,
running install
running build
-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
sumith@sumith-Lenovo-Z50-70:~/github/SymPy/symengine.py$ python3 setup.py install
running install
running build
-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
sumith@sumith-Lenovo-Z50-70:~/github/symengine/symengine/tests/basic$ ./test_polynomial
test_polynomial: /usr/local/include/piranha/hash_set.hpp:1271: piranha::hash_set<T, Hash, Pred>::size_type piranha::hash_set<T, Hash, Pred>::_bucket_from_hash(const size_t&) const [with T = SymEngine::m_pair; Hash = SymEngine::pair_hash; Pred = SymEngine::pair_eq; piranha::hash_set<T, Hash, Pred>::size_type = long unsigned int; std::size_t = long unsigned int]: Assertion `bucket_count()' failed.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
test_polynomial is a Catch v1.1 b14 (develop) host application.
Run with -? for options
-------------------------------------------------------------------------------
Arithmetic of Polynomial
-------------------------------------------------------------------------------
```
../../libsymengine.a(polys.cpp.o): In function `SymEngine::Polynomial::Polynomial(std::vector<SymEngine::RCP<SymEngine::Symbol const>, std::allocator<SymEngine::RCP<SymEngine::Symbol const> > > const&, piranha::hash_set<SymEngine::m_pair, SymEngine::pair_hash, SymEngine::pair_eq>)':
polys.cpp:(.text+0x92b): undefined reference to `vtable for SymEngine::Polynomial'
../../libsymengine.a(polys.cpp.o): In function `SymEngine::Polynomial::Polynomial(SymEngine::RCP<SymEngine::Basic const> const&, std::unordered_map<SymEngine::RCP<SymEngine::Basic const>, SymEngine::RCP<SymEngine::Number const>, SymEngine::RCPBasicHash, SymEngine::RCPBasicKeyEq, std::allocator<std::pair<SymEngine::RCP<SymEngine::Basic const> const, SymEngine::RCP<SymEngine::Number const> > > >&)':
polys.cpp:(.text+0x17f9): undefined reference to `vtable for SymEngine::Polynomial'
collect2: error: ld returned 1 exit status
make[2]: *** [symengine/tests/basic/test_polynomial] Error 1
make[1]: *** [symengine/tests/basic/CMakeFiles/test_polynomial.d
```
sumith@sumith-Lenovo-Z50-70:~/github/csympy$ make
[ 8%] Built target teuchos
Scanning dependencies of target symengine
[ 10%] Building CXX object symengine/CMakeFiles/symengine.dir/basic.cpp.o
In file included from /home/sumith/github/csympy/symengine/basic.h:25:0,
from /home/sumith/github/csympy/symengine/basic.cpp:1:
/home/sumith/github/csympy/symengine/symengine_rcp.h: In instantiation of ‘SymEngine::RCP<T> SymEngine::make_rcp(Args&& ...) [with T = const SymEngine::Polynomial; Args = {const std::vector<SymEngine::RCP<const SymEngine::Symbol>, std::allocator<SymEngine::RCP<const SymEngine::Symbol> > >&, piranha::hash_set<SymEngine::m_pair, SymEngine::pair_hash, SymEngine::pair_eq>&}]’:
/home/sumith/github/csympy/symengine/polys.h:28:58: required from here
/home/sumith/github/csympy/symengine/symengine_rcp.h:205:54: error: cannot bind ‘piranha::hash_set<SymEngine::m_pair, SymEngine::pair_hash, SymEngine::pair_eq>’ lvalue to ‘SymEngine::hash_set&& {aka piranha::hash_set<SymEngine::m_pa
sumith@sumith-Lenovo-Z50-70:~/github/csympy$ git clean -dfx
Removing build-clang/
sumith@sumith-Lenovo-Z50-70:~/github/csympy$ mkdir build-clang
sumith@sumith-Lenovo-Z50-70:~/github/csympy$ cd build-clang/
sumith@sumith-Lenovo-Z50-70:~/github/csympy/build-clang$ CC=clang CXX=clang++ CXXFLAGS="-stdlib=libc++" cmake ../
-- The C compiler identification is Clang 3.3.0
-- The CXX compiler identification is Clang 3.3.0
-- Check for working C compiler: /home/sumith/anaconda/bin/clang
-- Check for working C compiler: /home/sumith/anaconda/bin/clang -- works
-- Detecting C compiler ABI info