-
Notifications
You must be signed in to change notification settings - Fork 47
CodecZLib build fails on Linux and WSL #170
Comments
With BinaryProvider v0.5.5, I have the same build problems on all of my machines (macOS, Windows 10, ubuntu/linux), not only in CodecZlib, but also, LibCURL, EzXML, MbedTLS, ZMQ, FreeType. Under v0.5.4, all of them were working without any problem. Please fix this ASAP!!
|
The error seems to be here BinaryProvider.jl/src/Products.jl Line 398 in 6779f54
BinaryProvider.jl/src/Products.jl Line 168 in 6779f54
which was introduced in v0.5.5. It looks like a Windows-only fix of some sort that breaks on other systems. This can be easily fixed I suppose and a new bugfix release done. |
Hi, could you try to comment out the line 168 and see whether that is the root cause?
UPDATE:
whithout modification of
|
Hmm, it is not that
However, I can confirm that setting Tried the following: dl_esc_path = replace(dl_path, "\\"=>"\\\\")
if success(`$(Base.julia_cmd()) -e "import Libdl; Libdl.dlopen(\"$(dl_esc_path)\")"`)
return dl_path
else
println("failed for $dl_esc_path")
return dl_path
end And the output is
However: dl_esc_path = "/home/zgornel/.julia/packages/CodecZlib/9jDi1/deps/usr/lib/libz.so"
success(`$(Base.julia_cmd()) -e "import Libdl; Libdl.dlopen(\"$(dl_esc_path)\")"`) returns |
Ah, then it is probably the usage of the quotes somehow |
Please execute
and tell me the response |
Here it is:
|
Well, I don't have an immediate clue ... |
Could you provide line 93 of your Well, probably better send the whole file |
If I remove te replacement
So I think it comes from the fact that the system does not find the file. |
In that case you could try to replace the symlink with a copy of the original file and retest. |
... to me it seems that you have different access rights in your REPL and in the ... I'll be offline for a while |
@hhaensel , indeed, it looks like a permission problem as I cannot reproduce the problem on a second machine.
|
We came across a similar issue recently, when ImageMagick could not be rebuild without removing the binaries beforehand: ImageMagick, PR 159 and FileIO, Issue 229 |
It should have been |
@hhaensel, I just tried FreeType.jl by removing |
Two questions:
|
Indeed. We're getting there. ;) |
My bad, the value was |
@BoundaryValueProblems |
@staticfloat
returns true at the REPL, but not when run from the build process. |
O wow! That's indeed a big thing. Thanks for pointing to that. |
I deleted everything in the
Same when deleting the entire I can't test this right now on the linux server that I use, as I need it to run. I should also mention that I put a completely fresh install of julia and all packages on the server the other day, and ran into the described issue creating my baseline environment. No updates or actual use had happened yet. |
Very strange!
|
Once I am done with the current project I will give reinstalling julia on the server a try. |
That was a fresh installation. All packages listed in the manifest are installed by the |
@hhaensel : I tried by moving my ~/.julia to ~/.julia.bak and installed various packages. But when it tried to install CodecZlib, it failed with the same error. I only tried this on my Windows 10 machine. By the way, I didn't reinstall julia v1.1.1; I just used the previously installed julia v1.1.1. Anyways, I will stick with [email protected] for a while. |
Today, I installed Julia v1.2.0, and hence, I also did fresh install of various packages. BinaryProvider v0.5.6 was installed automatically, and it didn't complain anything. So, perhaps, now is a good time to close this issue? |
You are right, we can close this issue. |
OK, then let's close this issue since #172 is still open. But somehow I myself cannot close it. Could someone close this? Thanks! |
Dear Team,
I am trying to setup a new server with Julia, and while trying to build JLD2 the build of CodecZlib fails.
The error message is the following:
Digging through the source code of CodecZLib's build.jl I find that on line 7 they define
which is at odds with the error above, where appear to be 4 inputs, and the prefix is at the end.
Further in line 76
clearly ends with
unsatisfied = false
, as we progress to line 96,Now, in BinaryProvider's product.jl we have at line 419 (as mentioned by the error)
which looks almost identical to the line above, which goes through.
Further, on my WSL setup, where I
havehad working JLD2 and CodecZLib, rebuilding it now fails with the same error as above.I am not sure what to do about this, as I am not highly proficient in Julia yet, but I would appreciate assistance.
Many thanks.
Update
After (painfully) downgrading to version 0.5.4 it goes through without any issue, so there appears to be a bug in the latest release.
The text was updated successfully, but these errors were encountered: