LibCURL.jl icon indicating copy to clipboard operation
LibCURL.jl copied to clipboard

LibCURL build fails for Windows XP sp3 (32-bits related)

Open stanpetit opened this issue 12 years ago • 9 comments

Hi @amitmurthy !

I try to get IJulia running for Julia ...

Version 0.3.0-prerelease+4095 (2014-07-09 02:16 UTC)
Commit 2b6d708 (4 days old master)
i686-w64-mingw32

While LibCURL doesn't build, Nettle can't either.

===============================[ ERROR: LibCURL ]===============================


None of the selected providers can install dependency libcurl-4
while loading C:\Documents and Settings\Administrateur\.julia\v0.3\LibCURL\deps\
build.jl, in expression starting on line 13

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


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


WARNING: LibCURL had build errors.

 - packages with build errors remain installed in C:\Documents and Settings\Admi
nistrateur\.julia\v0.3
 - build a package and all its dependencies with `Pkg.build(pkg)`
 - build a single package by running its `deps/build.jl` script

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

Here is deps/build.jl From the @windows_only macro, expression starting on line 13 (@BinDeps.install)is waiting for a dependency provided by "WinRPM"

using BinDeps

@BinDeps.setup

@windows_only begin
# note that there is a 32-bit version of libcurl.dll
# included with Git, which will not work with 64 bit Julia
libcurl = library_dependency("libcurl-4")
using WinRPM
provides(WinRPM.RPM, "libcurl", libcurl, os = :Windows)
end

@BinDeps.install
  • In my case, the problem seem to come from "WinRPM" that doesn't provide the expected data : I am expecting a win32 version of libcurl.
  • How can we be sure that Autoconf (in BinDeps.jl) is properly setting up for a win32 or a win64 case ? As a matter of fact, I even doubt it does so : "BinDeps.jl" gets instructed to fetch "libcurl-4", with "os = :Windows", whatever Windows is win32 or win64, and "libcurl-4" seems to be the win64 version : BinDeps.jl will resolve windows version for autotools with a win64 version of libcurl in any case.
  • At this level of the code, it is under "build.jl" responsibility to provide "BinDeps.jl" the proper version of the source to build with. It must be possible to detect 32 | 64 version at "build.jl" level. I am a beginner in Julia language (roughly read into it to understand a bit, but no more yet !) : would you mind posting some sample code about this, or forward me to where I can get the info?

Also, there is a part of the "Pkg" functionality that is very unclear to me : when running "Pkg.status()", and more with "Pkg.installed()", shouldn't we expect "the-real-build-status-with-individual-dependancies-resolving" of the packages instead of just release numbers ? Or : Should Julia be aware of it's extended aptitudes, or not ...

Best regards, Stan.

stanpetit avatar Jul 13 '14 15:07 stanpetit

In sysinfo.jl, I can find :

julia> Sys.ARCH
:i686
julia> Sys.WORD_SIZE
32
julia> Sys.ARCH == :i686
true

but :

julia> Sys.ARCH == i686
ERROR: i686 not defined

Would the following be "Julian" correct ?

importall Base
using BinDeps

@BinDeps.setup

@windows_only begin

# note that there is a 32-bit version of libcurl.dll
# included with Git, which will not work with 64 bit Julia
libcurl = "foo"
if Sys.WORD_SIZE == 32           # or : if Sys.ARCH == :i686
    libcurl = library_dependency("the-libcurl-win32-included-with-Git-I-am-longing-for")
    # I guess the proper name would be enough ...
else
    libcurl = library_dependency("libcurl-4")
end

using WinRPM
    provides(WinRPM.RPM, "libcurl", libcurl, os = :Windows)

end # @windows_only begin

@BinDeps.install

I don't figure out if it is up to WinRPM to fetch the 32-bits version, when I look into "~.julia\v0.3\Nettle\deps\build.jl", It seems to be the only way for the @windows macro ... I hope I can get a functionnal Julia (IJulia) before I get senile! Sure I will enjoy it's straightforward powerful syntax very much, as I expect :)

stanpetit avatar Jul 13 '14 17:07 stanpetit

I realize that my previous post is (almost) complete nonsense !

stanpetit avatar Jul 14 '14 17:07 stanpetit

I am having the same issue. Can anyone help??

kevin-li avatar Sep 03 '14 18:09 kevin-li

Also broken here.

mlubin avatar Sep 04 '14 03:09 mlubin

Also the same problem here but it is not on XP but windows 7.

dhoegh avatar Sep 04 '14 13:09 dhoegh

As a (perhaps) temporary solution,

https://github.com/JuliaLang/IJulia.jl/issues/227#

The problem is with BinDeps.jl

kevin-li avatar Sep 04 '14 17:09 kevin-li

@kevin-li it worked for me in x64 win7 julia-0.4

babaq avatar Sep 04 '14 21:09 babaq

See https://github.com/JuliaWeb/LibCURL.jl/pull/17

ihnorton avatar Sep 04 '14 22:09 ihnorton

Pretty sure this has been fixed for over a year. Leave a comment, or open a new issue if not.

tkelman avatar Jan 07 '16 05:01 tkelman