These are chat archives for symengine/symengine

10th
May 2017
Christopher Rackauckas
@ChrisRackauckas
May 10 2017 11:37
@isuruf master
Pkg.build("SymEngine")
INFO: Building Conda
INFO: Building SymEngine
INFO: Attempting to Create directory C:\Users\Chris\.julia\v0.5\SymEngine\deps\downloads
INFO: Directory C:\Users\Chris\.julia\v0.5\SymEngine\deps\downloads already created
INFO: Downloading file https://github.com/symengine/symengine/releases/download/v0.3.0/binaries-msvc-x86_64.tar.bz2
INFO: Done downloading file https://github.com/symengine/symengine/releases/download/v0.3.0/binaries-msvc-x86_64.tar.bz2
INFO: Attempting to Create directory C:\Users\Chris\.julia\v0.5\SymEngine
INFO: Directory C:\Users\Chris\.julia\v0.5\SymEngine already created
INFO: Path C:\Users\Chris\.julia\v0.5\SymEngine\deps\usr/bin already created
==============================[ ERROR: SymEngine ]==============================

LoadError: Provider BinDeps.Binaries failed to satisfy dependency libsymengine_dummy
while loading C:\Users\Chris\.julia\v0.5\SymEngine\deps\build.jl, in expression starting on line 49

================================================================================

================================[ BUILD ERRORS ]================================

WARNING: SymEngine had build errors.

 - packages with build errors remain installed in C:\Users\Chris\.julia\v0.5
 - build the package(s) and all dependencies with `Pkg.build("SymEngine")`
 - build a single package by running its `deps/build.jl` script

================================================================================
Isuru Fernando
@isuruf
May 10 2017 11:38
Can you show the contents of C:\Users\Chris\.julia\v0.5\SymEngine\usr\bin?
Christopher Rackauckas
@ChrisRackauckas
May 10 2017 11:40
C:\Users\Chris\.julia\v0.5\SymEngine\deps\usr\bin>dir
 Volume in drive C has no label.
 Volume Serial Number is 2899-4B37

 Directory of C:\Users\Chris\.julia\v0.5\SymEngine\deps\usr\bin

04/14/2017  12:05 AM    <DIR>          .
04/14/2017  12:05 AM    <DIR>          ..
03/29/2016  08:24 AM            19,136 api-ms-win-core-console-l1-1-0.dll
03/29/2016  08:24 AM            18,624 api-ms-win-core-datetime-l1-1-0.dll
03/29/2016  08:24 AM            18,624 api-ms-win-core-debug-l1-1-0.dll
03/29/2016  08:24 AM            18,624 api-ms-win-core-errorhandling-l1-1-0.dll
03/29/2016  08:24 AM            22,208 api-ms-win-core-file-l1-1-0.dll
03/29/2016  08:24 AM            18,624 api-ms-win-core-file-l1-2-0.dll
03/29/2016  08:24 AM            18,624 api-ms-win-core-file-l2-1-0.dll
03/29/2016  08:24 AM            18,624 api-ms-win-core-handle-l1-1-0.dll
03/29/2016  08:24 AM            19,136 api-ms-win-core-heap-l1-1-0.dll
03/29/2016  08:24 AM            18,624 api-ms-win-core-interlocked-l1-1-0.dll
03/29/2016  08:24 AM            19,136 api-ms-win-core-libraryloader-l1-1-0.dll
03/29/2016  08:24 AM            21,184 api-ms-win-core-localization-l1-2-0.dll
03/29/2016  08:24 AM            19,136 api-ms-win-core-memory-l1-1-0.dll
03/29/2016  08:24 AM            18,624 api-ms-win-core-namedpipe-l1-1-0.dll
03/29/2016  08:24 AM            19,648 api-ms-win-core-processenvironment-l1-1-0.dll
03/29/2016  08:24 AM            20,672 api-ms-win-core-processthreads-l1-1-0.dll
03/29/2016  08:24 AM            19,136 api-ms-win-core-processthreads-l1-1-1.dll
03/29/2016  08:24 AM            18,112 api-ms-win-core-profile-l1-1-0.dll
03/29/2016  08:24 AM            19,136 api-ms-win-core-rtlsupport-l1-1-0.dll
03/29/2016  08:24 AM            18,624 api-ms-win-core-string-l1-1-0.dll
03/29/2016  08:24 AM            20,672 api-ms-win-core-synch-l1-1-0.dll
03/29/2016  08:24 AM            19,136 api-ms-win-core-synch-l1-2-0.dll
03/29/2016  08:24 AM            19,648 api-ms-win-core-sysinfo-l1-1-0.dll
03/29/2016  08:24 AM            18,624 api-ms-win-core-timezone-l1-1-0.dll
03/29/2016  08:24 AM            18,624 api-ms-win-core-util-l1-1-0.dll
03/29/2016  08:24 AM            19,648 api-ms-win-crt-conio-l1-1-0.dll
03/29/2016  08:24 AM            22,720 api-ms-win-crt-convert-l1-1-0.dll
03/29/2016  08:24 AM            19,136 api-ms-win-crt-environment-l1-1-0.dll
03/29/2016  08:24 AM            20,672 api-ms-win-crt-filesystem-l1-1-0.dll
03/29/2016  08:24 AM            19,648 api-ms-win-crt-heap-l1-1-0.dll
03/29/2016  08:24 AM            19,136 api-ms-win-crt-locale-l1-1-0.dll
03/29/2016  08:24 AM            27,840 api-ms-win-crt-math-l1-1-0.dll
03/29/2016  08:24 AM            26,816 api-ms-win-crt-multibyte-l1-1-0.dll
03/29/2016  08:24 AM            70,848 api-ms-win-crt-private-l1-1-0.dll
03/29/2016  08:24 AM            19,648 api-ms-win-crt-process-l1-1-0.dll
03/29/2016  08:24 AM            23,232 api-ms-win-crt-runtime-l1-1-0.dll
03/29/2016  08:24 AM            24,768 api-ms-win-crt-stdio-l1-1-0.dll
03/29/2016  08:24 AM            24,768 api-ms-win-crt-string-l1-1-0.dll
03/29/2016  08:24 AM            21,184 api-ms-win-crt-time-l1-1-0.dll
03/29/2016  08:24 AM            19,136 api-ms-win-crt-utility-l1-1-0.dll
06/09/2016  10:53 PM           333,632 concrt140.dll
01/02/2017  09:41 PM           603,136 gmp.dll
01/02/2017  09:41 PM           603,136 mpir.dll
01/02/2017  09:41 PM         3,944,448 mpir.pdb
01/02/2017  09:41 PM           348,160 mpirxx_static.pdb
01/02/2017  09:41 PM           167,936 mpir_static.pdb
06/09/2016  10:53 PM           633,152 msvcp140.dll
11/26/2016  10:57 PM         2,591,232 symengine.dll
03/29/2016  08:24 AM           992,960 ucrtbase.dll
06/09/2016  10:53 PM           395,592 vccorlib140.dll
06/09/2016  10:53 PM           185,152 vcomp140.dll
06/09/2016  10:53 PM            87,888 vcruntime140.dll
looks like it didn't download a new symengine.dll
Isuru Fernando
@isuruf
May 10 2017 11:41
yes, there should be a symengine-0.3.dll there
Can you try changing the line, https://github.com/symengine/SymEngine.jl/blob/master/deps/build.jl#L33 to provides(Binaries, URI(url), libdep, unpacked_dir="$path\bin")
Ah, I know why it errors, let me fix it in master
Hmm, no that's not it. I don't know why it errors
I'll fix that
Can you try the following diff?
diff --git a/deps/build.jl b/deps/build.jl
index f30d082..7852204 100644
--- a/deps/build.jl
+++ b/deps/build.jl
@@ -23,6 +23,7 @@ libdep = library_dependency("libsymengine_dummy", aliases=[libsymengine_soname])

 path = abspath(dirname(@__FILE__), "usr")
 if is_windows()
+    path = join(path, libsymengine_version)
     isdir(path) || mkdir(path)
     if Sys.WORD_SIZE == 64
         suffix = "x86_64"
Christopher Rackauckas
@ChrisRackauckas
May 10 2017 11:49
INFO: Building Conda
INFO: Building SymEngine
==============================[ ERROR: SymEngine ]==============================

LoadError: SystemError (with C0.3.0:0.3.0\0.3.0U0.3.0s0.3.0e0.3.0r0.3.0s0.3.0\0.3.0C0.3.0h0.3.0r0.3.0i0.3.0s0.3.0\0.3.0.0.3.0j0.3.0u0.3.0l0.3.0i0.3.0a0.3.0\0.3.0v0.3.000.3.0.0.3.050.3.0\0.3.0S0.3.0y0.3.0m0.3.0E0.3.0n0.3.0g0.3.0i0.3.0n0.3.0e0.3.0\0.3.0d0.3.0e0.3.0p0.3.0s0.3.0\0.3.0u0.3.0s0.3.0r): mkdir: No such file or directory
while loading C:\Users\Chris\.julia\v0.5\SymEngine\deps\build.jl, in expression starting on line 27

================================================================================

================================[ BUILD ERRORS ]================================

WARNING: SymEngine had build errors.

 - packages with build errors remain installed in C:\Users\Chris\.julia\v0.5
 - build the package(s) and all dependencies with `Pkg.build("SymEngine")`
 - build a single package by running its `deps/build.jl` script

================================================================================
Isuru Fernando
@isuruf
May 10 2017 11:51
Sorry, that should have been,
diff --git a/deps/build.jl b/deps/build.jl
index f30d082..1f38a31 100644
--- a/deps/build.jl
+++ b/deps/build.jl
@@ -23,6 +23,7 @@ libdep = library_dependency("libsymengine_dummy", aliases=[libsymengine_soname])

 path = abspath(dirname(@__FILE__), "usr")
 if is_windows()
+    path = joinpath(path, libsymengine_version)
     isdir(path) || mkdir(path)
     if Sys.WORD_SIZE == 64
         suffix = "x86_64"
Christopher Rackauckas
@ChrisRackauckas
May 10 2017 11:52
==============================[ ERROR: SymEngine ]==============================

LoadError: Path C:\Users\Chris\.julia\v0.5\SymEngine\deps\usr\0.3.0/bin was not created successfully (Tried to run pipeline(`7z x 'C:\Users\Chris\.julia\v0.5\SymEngine\deps\downloads\binaries-msvc-x86_64.tar.bz2' -y -so`, stdout=`7z x -si -y -ttar '-oC:\Users\Chris\.julia\v0.5\SymEngine\deps'`) )
while loading C:\Users\Chris\.julia\v0.5\SymEngine\deps\build.jl, in expression starting on line 50

================================================================================

================================[ BUILD ERRORS ]================================

WARNING: SymEngine had build errors.

 - packages with build errors remain installed in C:\Users\Chris\.julia\v0.5
 - build the package(s) and all dependencies with `Pkg.build("SymEngine")`
 - build a single package by running its `deps/build.jl` script

================================================================================
a bunch of stuff seemed to compile
but then this
Isuru Fernando
@isuruf
May 10 2017 11:57
Looks like we'll have to patch BinDeps
Otherwise those who had previous installations will not be able to update without manually deleting the deps/usr folder
Christopher Rackauckas
@ChrisRackauckas
May 10 2017 12:01
yeah, same as the ImageMagick issue
Isuru Fernando
@isuruf
May 10 2017 12:03
How about deleting the folder in build.jl for now?
Christopher Rackauckas
@ChrisRackauckas
May 10 2017 12:04
INFO: Building Conda
INFO: Building SymEngine
==============================[ ERROR: SymEngine ]==============================

LoadError: SystemError (with C:\Users\Chris\.julia\v0.5\SymEngine\deps\usr\0.3.0): mkdir: No such file or directory
while loading C:\Users\Chris\.julia\v0.5\SymEngine\deps\build.jl, in expression starting on line 27

================================================================================

================================[ BUILD ERRORS ]================================

WARNING: SymEngine had build errors.

 - packages with build errors remain installed in C:\Users\Chris\.julia\v0.5
 - build the package(s) and all dependencies with `Pkg.build("SymEngine")`
 - build a single package by running its `deps/build.jl` script

================================================================================
err
it needs the folder
Isuru Fernando
@isuruf
May 10 2017 12:04
revert back the changes I mentioned
That's not going to work
Christopher Rackauckas
@ChrisRackauckas
May 10 2017 12:05

INFO: Building Conda
INFO: Building SymEngine
INFO: Attempting to Create directory C:\Users\Chris\.julia\v0.5\SymEngine\deps\downloads
INFO: Downloading file https://github.com/symengine/symengine/releases/download/v0.3.0/binaries-msvc-x86_64.tar.bz2
INFO: Done downloading file https://github.com/symengine/symengine/releases/download/v0.3.0/binaries-msvc-x86_64.tar.bz2
INFO: Attempting to Create directory C:\Users\Chris\.julia\v0.5\SymEngine
INFO: Directory C:\Users\Chris\.julia\v0.5\SymEngine already created

7-Zip [64] 9.20  Copyright (c) 1999-2010 Igor Pavlov  2010-11-18

Processing archive: C:\Users\Chris\.julia\v0.5\SymEngine\deps\downloads\binaries-msvc-x86_64.tar.bz2

Extracting  binaries-msvc-x86_64.tar

7-Zip [64] 9.20  Copyright (c) 1999-2010 Igor Pavlov  2010-11-18

Processing archive: 

Extracting  usr\include\symengine\symengine_casts.h
Extracting  usr\bin\api-ms-win-crt-time-l1-1-0.dll
Extracting  usr\include\gmp-impl.h
Extracting  usr\include\symengine\eval_mpfr.h
Extracting  usr\include\symengine\basic-methods.inc
Extracting  usr\bin\api-ms-win-crt-utility-l1-1-0.dll
Extracting  usr\include\symengine\polys\uexprpoly.h
Extracting  usr\include\symengine\polys\uintpoly_flint.h
Extracting  usr\lib\gmp.lib
Extracting  usr\include\symengine\symengine_exception.h
Extracting  usr\include\symengine\printer.h
Extracting  usr\bin\api-ms-win-core-namedpipe-l1-1-0.dll
Extracting  usr\bin\api-ms-win-crt-conio-l1-1-0.dll
Extracting  usr\bin\api-ms-win-core-processthreads-l1-1-0.dll
Extracting  usr\bin\api-ms-win-core-util-l1-1-0.dll
Extracting  usr\bin\api-ms-win-crt-string-l1-1-0.dll
Extracting  usr\include\symengine\visitor.h
Extracting  usr\licenses\mpir
Extracting  usr\bin\concrt140.dll
Extracting  usr\bin\api-ms-win-core-file-l1-2-0.dll
Extracting  usr\licenses\symengine
Extracting  usr\include\symengine\polys\msymenginepoly.h
Extracting  usr\bin\api-ms-win-core-console-l1-1-0.dll
Extracting  usr\include\symengine\fields.h
Extracting  usr\lib
Extracting  usr\include\mpirxx.h
Extracting  usr\include\symengine\matrix.h
Extracting  usr\bin\api-ms-win-core-rtlsupport-l1-1-0.dll
Extracting  usr\bin\symengine.dll
Extracting  usr\bin\vcomp140.dll
Extracting  usr\lib\gmp_static.lib
Extracting  usr\include\symengine\mp_wrapper.h
Extracting  usr\include\symengine\ntheory.h
Extracting  usr\include\symengine\monomials.h
Extracting  usr\include\symengine\derivative.h
Extracting  usr\include\symengine\series.h
Extracting  usr\bin\api-ms-win-crt-private-l1-1-0.dll
Extracting  usr\bin\api-ms-win-core-synch-l1-1-0.dll
Extracting  usr\lib\mpir.lib
Extracting  usr\include\symengine\series_visitor.h
Extracting  usr\bin\api-ms-win-core-errorhandling-l1-1-0.dll
Extracting  usr\include\symengine\rings.h
Extracting  usr\bin\api-ms-win-core-libraryloader-l1-1-0.dll
Extracting  usr\bin\api-ms-win-crt-stdio-l1-1-0.dll
Extracting  usr\bin\api-ms-win-crt-filesystem-l1-1-0.dll
Extracting  usr\include\symengine\lambda_double.h
Extracting  usr\bin\api-ms-win-core-memory-l1-1-0.dll
Extracting  usr\include\symengine\complex_mpc.h
Extracting  usr\include\symengine\llvm_double.h
Extracting  usr\include\symengine\eval.h
Extracting  usr\include\gmp-longlong.h
Extracting  usr\bin\api-ms-win-core-processthreads-l1-1-1.dll
Extracting  usr\lib\gmpxx_static.lib
Extracting  usr\include
Extracting  usr\include\symengine\series_generic.h
Extracting  usr\include\symengine\sets.h
Extracting  usr\include\symengine\dict.h
Extracting  usr\include\symengine\cwrapper.h
Extracting  usr\include\symengine\real_double.h
Extracting  usr\bin\api-ms-win-crt-convert-l1-1-0.dll
Extracting  usr\bin\api-ms-win-core-interlocked-l1-1-0.dll
Extracting  usr\include\symengine\infinity.h
Extracting  usr\CMake\SymEngineConfig.cmake
Extracting  usr\include\symengine\eval_mpc.h
Extracting  usr\include\symengine\polys\basic_conversions.h
Extracting  usr\include\symengine\symengine_rcp.h
Extracting  usr\include\symengine\polys\uratpoly.h
Extracting  usr\bin\api-ms-win-core-file-l2-1-0.dll
Extracting  usr\bin\api-ms-win-core-string-l1-1-0.dll
Extracting  usr\include\symengine\di
okay
with the changes reverted, deleting usr works
Isuru Fernando
@isuruf
May 10 2017 12:08
It will error if the destination already exists
Christopher Rackauckas
@ChrisRackauckas
May 10 2017 12:09
I'm having this issue on Windows
Isuru Fernando
@isuruf
May 10 2017 12:12
Yes, we are using Binaries only on windows
Francesco Biscani
@bluescarni
May 10 2017 12:16
@isuruf I've made the 0.2 release of mp++ here: https://github.com/bluescarni/mppp/releases/tag/v0.2
there's quite a few breaking changes, but the main change it that the library is now supposed to be used as an external project rather than including a copy of it in a separate project. just like a normal regular dependency.
docs have been overhauled as well: https://bluescarni.github.io/mppp/
I'll have piranha depend on it, probably starting from the next release
(but it'll still take a while for that)
I'd like to propose conda packages for it soon, and before the next release of piranha I'll open some PR to symengine to help with the transition
just as a heads-up :)
Isuru Fernando
@isuruf
May 10 2017 12:20
Thanks a lot. Ping me if you create a PR to staged-recipes
Francesco Biscani
@bluescarni
May 10 2017 12:20
sure. thanks for all the help
Isuru Fernando
@isuruf
May 10 2017 12:21
I'd also like to try mppp integer without piranha in symengine and see how the integer class does compared to flint, gmp and boostmp
But I guess there's no rational class in mppp?
Francesco Biscani
@bluescarni
May 10 2017 12:21
not yet, that's the next feature I will add
so if you want in symengine you can also have the option to have mppp without piranha now
Isuru Fernando
@isuruf
May 10 2017 12:58
Tests are passing in appveyor. Since the extracted folder is now versioned there shouldn't be any problems when updating
Christopher Rackauckas
@ChrisRackauckas
May 10 2017 12:59
:+1:
Christopher Rackauckas
@ChrisRackauckas
May 10 2017 19:33
@isuruf I tried it out locally: it seems good.
is there anything blocking the Julia release then?