Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows support #25

Open
davidanthoff opened this issue Oct 23, 2017 · 6 comments
Open

Windows support #25

davidanthoff opened this issue Oct 23, 2017 · 6 comments

Comments

@davidanthoff
Copy link
Contributor

On Windows, I cloned https://github.com/staticfloat/NettleBuilder and then try to run build_tarballs.jl. I get the following error:

INFO: Building nettle as it is unsatisfied
ERROR: LoadError: error compiling #DockerRunner#34: could not load library "libc"
The specified module could not be found.

Stacktrace:
 [1] (::Core.#kw#Type)(::Array{Any,1}, ::Type{BinaryBuilder.DockerRunner}) at .\<missing>:0
 [2] #build#44(::Bool, ::Bool, ::Bool, ::Bool, ::Function, ::BinaryBuilder.Dependency) at C:\Users\anthoff\.julia\v0.6\BinaryBuilder\src\Dependency.jl:126
 [3] (::BinaryBuilder.#kw##build)(::Array{Any,1}, ::BinaryBuilder.#build, ::BinaryBuilder.Dependency) at .\<missing>:0
 [4] (::##4#6)(::BinaryProvider.Prefix) at C:\Users\anthoff\source\NettleBuilder\build_tarballs.jl:51
 [5] mktempdir(::BinaryProvider.##97#99{##4#6}, ::String) at .\file.jl:392
 [6] cd(::##3#5, ::String) at .\file.jl:59
 [7] macro expansion at C:\Users\anthoff\source\NettleBuilder\build_tarballs.jl:29 [inlined]
 [8] anonymous at .\<missing>:?
 [9] include_from_node1(::String) at .\loading.jl:569
 [10] include(::String) at .\sysimg.jl:14
 [11] process_options(::Base.JLOptions) at .\client.jl:305
 [12] _start() at .\client.jl:371
while loading C:\Users\anthoff\source\NettleBuilder\build_tarballs.jl, in expression starting on line 22
@staticfloat
Copy link
Member

Yeah....... that stuff should be wrapped in linux only stuff.

@staticfloat
Copy link
Member

Fixed in de8d6df

@staticfloat
Copy link
Member

Or rather, that particular issue is fixed, but windows support is still anyone's guess. So try again now?

@Keno
Copy link
Contributor

Keno commented Oct 23, 2017

Or wait until we've gotten around to actually trying this on other platforms ;).

@davidanthoff
Copy link
Contributor Author

Alright, I'll wait until you give a green light for Windows. Having said that, I did try it one more time ;) here is the log output:

INFO: Building nettle as it is unsatisfied
INFO: Updating build image staticfloat/julia_crossbuild:x64, this may take a few minutes. To disable automatic image updating, set the `BINBUILD_IMAGE_AUTOUPDATE` environment variable to `"false"` in your shell environment or in your `~/.juliarc.jl` file.
INFO: [BuildStep nettle/configure_0]
INFO:   `./nettle-3.3/configure --host=i686-linux-gnu --prefix=/`
docker: Error response from daemon: invalid bind mount spec "/C/Users/anthoff/AppData/Local/Temp/jl_2F22.tmp:C:\\Users\\anthoff\\AppData\\Local\\Temp\\jl_2F22.tmp": invalid mode: \Users\anthoff\AppData\Local\Temp\jl_2F22.tmp.
See 'docker run --help'.
ERROR: LoadError: Build step nettle/configure_0 did not complete successfully

Stacktrace:
 [1] #build#44(::Bool, ::Bool, ::Bool, ::Bool, ::Function, ::BinaryBuilder.Dependency) at C:\Users\anthoff\.julia\v0.6\BinaryBuilder\src\Dependency.jl:139
 [2] (::BinaryBuilder.#kw##build)(::Array{Any,1}, ::BinaryBuilder.#build, ::BinaryBuilder.Dependency) at .\<missing>:0
 [3] (::##4#6)(::BinaryProvider.Prefix) at C:\Users\anthoff\source\NettleBuilder\build_tarballs.jl:51
 [4] mktempdir(::BinaryProvider.##97#99{##4#6}, ::String) at .\file.jl:392
 [5] cd(::##3#5, ::String) at .\file.jl:59
 [6] macro expansion at C:\Users\anthoff\source\NettleBuilder\build_tarballs.jl:29 [inlined]
 [7] anonymous at .\<missing>:?
 [8] include_from_node1(::String) at .\loading.jl:569
 [9] include(::String) at .\sysimg.jl:14
 [10] process_options(::Base.JLOptions) at .\client.jl:305
 [11] _start() at .\client.jl:371
while loading C:\Users\anthoff\source\NettleBuilder\build_tarballs.jl, in expression starting on line 22

@staticfloat
Copy link
Member

Mmm, yeah, looks like the paths aren't getting passed to the windows docker daemon properly. We probably need to do the equivalent of cygpath -w to them. But this may become a moot issue, as Keno's next goal is to eliminate the need for Docker in the first place, so the official response here is "Hold Tight". :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants