These are chat archives for symengine/symengine

4th
Aug 2016
Isuru Fernando
@isuruf
Aug 04 2016 05:27
@bjodah, that video is certainly interesting. I only watched it partially. I'll have a look later today. Does it handle C++ templates well?
Isuru Fernando
@isuruf
Aug 04 2016 10:12
@spencerlyon2, one problem I think the issue with OS X is that the julia application cannot find libsymengine.dylib's dependencies as their path may not be in the rpath of the application.
Can you try something like,
install_name_tool -add_rpath @loader_path/ /Users/sglyon/.julia/v0.4/Conda/deps/usr/lib/libsymengine.dylib
Srajan Garg
@srajangarg
Aug 04 2016 10:51
In [10]: s1 = Poly(3, x)

In [11]: s2 = Poly(3, y)

In [12]: s1 == s2
Out[12]: False

In [13]: s1 = Poly(0, x)

In [14]: s2 = Poly(0, y)

In [15]: s1 == s2
Out[15]: False
I believe symengine behaviour is not the same^
Isuru Fernando
@isuruf
Aug 04 2016 10:52
I think it is the same.
Srajan Garg
@srajangarg
Aug 04 2016 10:52
bool __eq__(const Basic &o) const
{
...
} else if (0 == dict_.size() && 0 == o_.dict_.size()) {
            return true;
...
}
Isuru Fernando
@isuruf
Aug 04 2016 10:53
Yes, that needs to be corrected I guess. Can you open an issue?
Srajan Garg
@srajangarg
Aug 04 2016 10:54
Should I fix it in the PR on Mpolys itself?
Isuru Fernando
@isuruf
Aug 04 2016 10:54
No, you should open an issue and get comments from others
Srajan Garg
@srajangarg
Aug 04 2016 10:54
Okay
Spencer Lyon
@sglyon
Aug 04 2016 12:54
Hey @isuruf I’m not sure what that command does. It didn’t work properly, so I’ll just post what I did see
~|⇒ install_name_tool -add_rpath @loader_path/ /Users/sglyon/.julia/v0.4/Conda/deps/usr/lib/libsymengine.dylib
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /Users/sglyon/.julia/v0.4/Conda/deps/usr/lib/libsymengine.dylib (for architecture x86_64) option "-add_rpath @loader_path/" would duplicate path, file already has LC_RPATH for: @loader_path/
Isuru Fernando
@isuruf
Aug 04 2016 13:37
@spencerlyon2, thanks. It seems that the command is not necessary.
Spencer Lyon
@sglyon
Aug 04 2016 13:38
Just an FYI, I also have symengine.dylib in /usr/local/lib
not sure if that matters
Isuru Fernando
@isuruf
Aug 04 2016 13:38
I think the problem lies with julia failing to load the dependencies
Spencer Lyon
@sglyon
Aug 04 2016 13:43
Hmm. Any way around that?
Isuru Fernando
@isuruf
Aug 04 2016 13:44
We could load the dependencies first. But symengine has optional dependencies, so I don't know how to fix that
Spencer Lyon
@sglyon
Aug 04 2016 13:47
could we load them first only if we try to load symengine.dylib from within the conda folder (b/c we know which binary conda would have grabbed)
Isuru Fernando
@isuruf
Aug 04 2016 13:48
Is it possible to do that with BinDeps?
Spencer Lyon
@sglyon
Aug 04 2016 13:49

Not sure — I think we’re beyond my BinDeps knowledge there.

I’ll try it

I think it is working
Isuru Fernando
@isuruf
Aug 04 2016 14:38
It's failing on travis osx