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

Pkg.build("WinRPM") fails on 0.6.0-dev.1671 #88

Open
josefsachsconning opened this issue Dec 23, 2016 · 10 comments
Open

Pkg.build("WinRPM") fails on 0.6.0-dev.1671 #88

josefsachsconning opened this issue Dec 23, 2016 · 10 comments

Comments

@josefsachsconning
Copy link

C:\Users\s2sajs>C:\cygwin64\home\s2sajs\julia-master\usr\bin\julia.exe
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.6.0-dev.1671 (2016-12-23 05:10 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit 44d7677 (0 days old master)
|__/                   |  x86_64-w64-mingw32

julia> Pkg.add("WinRPM")
INFO: Nothing to be done

julia> Pkg.build("WinRPM")
INFO: Building WinRPM
===============================[ ERROR: WinRPM ]================================


LoadError: LoadError: LoadError: LoadError: syntax: expected identifier after "const"
while loading C:\Users\s2sajs\.julia\v0.6\LibExpat\src\lX_common_h.jl, in expression starting on line 14
while loading C:\Users\s2sajs\.julia\v0.6\LibExpat\src\LibExpat.jl, in expression starting on line 13
while loading C:\Users\s2sajs\.julia\v0.6\WinRPM\src\WinRPM.jl, in expression starting on line 11
while loading C:\Users\s2sajs\.julia\v0.6\WinRPM\deps\build.jl, in expression starting on line 1

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


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


WARNING: WinRPM had build errors.

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

================================================================================
@tkelman
Copy link
Contributor

tkelman commented Dec 23, 2016

does it work if you check out master of LibExpat?

@josefsachsconning
Copy link
Author

After Pkg.checkout("LibExpat"), I get

julia> Pkg.build("WinRPM")
INFO: Building WinRPM
WARNING: could not import Base.lastidx into LegacyStrings
WARNING: takebuf_string(b) is deprecated, use String(take!(b)) instead.
 in depwarn(::String, ::Symbol) at .\deprecated.jl:64
 in takebuf_string(::Base.AbstractIOBuffer{Array{UInt8,1}}) at .\deprecated.jl:5
0
 in xpath_parse_expr(::String, ::Int64, ::Int64, ::Bool) at C:\Users\s2sajs\.jul
ia\v0.6\LibExpat\src\xpath.jl:480
 in xpath_parse_expr(::String, ::Int64, ::Int64, ::Bool) at C:\Users\s2sajs\.jul
ia\v0.6\LibExpat\src\xpath.jl:635
 in xpath_parse(::String, ::Int64, ::Bool) at C:\Users\s2sajs\.julia\v0.6\LibExp
at\src\xpath.jl:333
 in xpath_parse_expr(::String, ::Int64, ::Int64, ::Bool) at C:\Users\s2sajs\.jul
ia\v0.6\LibExpat\src\xpath.jl:500
 in xpath_parse(::String, ::Bool) at C:\Users\s2sajs\.julia\v0.6\LibExpat\src\xp
ath.jl:92
 in @xpath_str(::ANY) at C:\Users\s2sajs\.julia\v0.6\LibExpat\src\xpath.jl:73
 in include_from_node1(::String) at .\loading.jl:532
 in eval(::Module, ::Any) at .\boot.jl:236
 in require(::Symbol) at .\loading.jl:446
 in include_from_node1(::String) at .\loading.jl:532
 in include(::SubString{String}) at .\sysimg.jl:14
 in evalfile(::SubString{String}, ::Array{String,1}) at .\loading.jl:572 (repeat
s 2 times)
 in cd(::##2#4, ::String) at .\file.jl:58
 in (::##1#3)(::IOStream) at .\none:13
 in open(::##1#3, ::String, ::String) at .\iostream.jl:152
 in eval(::Module, ::Any) at .\boot.jl:236
 in process_options(::Base.JLOptions) at .\client.jl:270
 in _start() at .\client.jl:357
while loading C:\Users\s2sajs\.julia\v0.6\WinRPM\src\WinRPM.jl, in expression st
arting on line 130
WARNING: Method definition (::Type{WinRPM.Packages})(#T<:Union{Array{LibExpat.ET
ree, 1}, Base.Set{LibExpat.ETree}}) in module WinRPM at C:\Users\s2sajs\.julia\v
0.6\WinRPM\src\WinRPM.jl:207 overwritten at C:\Users\s2sajs\.julia\v0.6\WinRPM\s
rc\WinRPM.jl:209.
WARNING: takebuf_string(b) is deprecated, use String(take!(b)) instead.
 in depwarn(::String, ::Symbol) at .\deprecated.jl:64
 in takebuf_string(::Base.AbstractIOBuffer{Array{UInt8,1}}) at .\deprecated.jl:5
0
 in xpath_parse_expr(::String, ::Int64, ::Int64, ::Bool) at C:\Users\s2sajs\.jul
ia\v0.6\LibExpat\src\xpath.jl:476
 in xpath_parse_expr(::String, ::Int64, ::Int64, ::Bool) at C:\Users\s2sajs\.jul
ia\v0.6\LibExpat\src\xpath.jl:635
 in xpath_parse(::String, ::Int64, ::Bool) at C:\Users\s2sajs\.julia\v0.6\LibExp
at\src\xpath.jl:333
 in xpath_parse_expr(::String, ::Int64, ::Int64, ::Bool) at C:\Users\s2sajs\.jul
ia\v0.6\LibExpat\src\xpath.jl:500
 in xpath_parse(::String, ::Bool) at C:\Users\s2sajs\.julia\v0.6\LibExpat\src\xp
ath.jl:92
 in @xpath_str(::ANY) at C:\Users\s2sajs\.julia\v0.6\LibExpat\src\xpath.jl:73
 in include_from_node1(::String) at .\loading.jl:532
 in eval(::Module, ::Any) at .\boot.jl:236
 in require(::Symbol) at .\loading.jl:446
 in include_from_node1(::String) at .\loading.jl:532
 in include(::SubString{String}) at .\sysimg.jl:14
 in evalfile(::SubString{String}, ::Array{String,1}) at .\loading.jl:572 (repeat
s 2 times)
 in cd(::##2#4, ::String) at .\file.jl:58
 in (::##1#3)(::IOStream) at .\none:13
 in open(::##1#3, ::String, ::String) at .\iostream.jl:152
 in eval(::Module, ::Any) at .\boot.jl:236
 in process_options(::Base.JLOptions) at .\client.jl:270
 in _start() at .\client.jl:357
while loading C:\Users\s2sajs\.julia\v0.6\WinRPM\src\WinRPM.jl, in expression st
arting on line 274
WARNING: takebuf_string(b) is deprecated, use String(take!(b)) instead.
 in depwarn(::String, ::Symbol) at .\deprecated.jl:64
 in takebuf_string(::Base.AbstractIOBuffer{Array{UInt8,1}}) at .\deprecated.jl:5
0
 in escape_with(::String, ::String) at C:\Users\s2sajs\.julia\v0.6\URIParser\src
\esc.jl:60
 in (::WinRPM.#cacheget#9{Bool,Bool})(::String, ::Bool) at C:\Users\s2sajs\.juli
a\v0.6\WinRPM\src\WinRPM.jl:140
 in update(::Bool, ::Bool) at C:\Users\s2sajs\.julia\v0.6\WinRPM\src\WinRPM.jl:1
64
 in __init__() at C:\Users\s2sajs\.julia\v0.6\WinRPM\src\WinRPM.jl:48
 in include_from_node1(::String) at .\loading.jl:532
 in eval(::Module, ::Any) at .\boot.jl:236
 in require(::Symbol) at .\loading.jl:446
 in include_from_node1(::String) at .\loading.jl:532
 in include(::SubString{String}) at .\sysimg.jl:14
 in evalfile(::SubString{String}, ::Array{String,1}) at .\loading.jl:572 (repeat
s 2 times)
 in cd(::##2#4, ::String) at .\file.jl:58
 in (::##1#3)(::IOStream) at .\none:13
 in open(::##1#3, ::String, ::String) at .\iostream.jl:152
 in eval(::Module, ::Any) at .\boot.jl:236
 in process_options(::Base.JLOptions) at .\client.jl:270
 in _start() at .\client.jl:357
while loading C:\Users\s2sajs\.julia\v0.6\WinRPM\src\WinRPM.jl, in expression st
arting on line 519
WARNING: skipping repodata/repomd.xml, not in cache -- call WinRPM.update() to d
ownload
WARNING: skipping repodata/repomd.xml, not in cache -- call WinRPM.update() to d
ownload
INFO: Downloading https://cache.julialang.org/http://download.opensuse.org/repos
itories/windows:/mingw:/win32/openSUSE_13.2/repodata/repomd.xml
INFO: Downloading https://cache.julialang.org/http://download.opensuse.org/repos
itories/windows:/mingw:/win32/openSUSE_13.2/repodata/4b152a4ac32264cf1031de32aaa
d90cbaa8e4365b5b65c809faf34a30d107186-primary.xml.gz
WARNING: encounted invalid data while parsing repomd
===============================[ ERROR: WinRPM ]================================


LoadError: UndefVarError: fn_ not defined
while loading C:\Users\s2sajs\.julia\v0.6\WinRPM\deps\build.jl, in expression st
arting on line 2

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


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


WARNING: WinRPM had build errors.

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

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

@tkelman
Copy link
Contributor

tkelman commented Dec 23, 2016

not sure where fn_ is coming from...

@KristofferC
Copy link
Member

KristofferC commented Dec 23, 2016

I had a very similar error today that was undefined in build.jl when something was trying to build MbedTLS. When I looked in the MbedTLS build.jl file I did not find any reference to that variable. After exiting julia and pulling MbedTLS master it seemed to work again...

@nixphix
Copy link

nixphix commented Dec 31, 2016

Similar issue here as well while installing IJulia in windows 7

`julia> Pkg.add("WinRPM")
INFO: No packages to install, update or remove
INFO: Package database updated

julia> Pkg.build("WinRPM")
INFO: Building WinRPM
=============================================[ ERROR: WinRPM ]==============================================

LoadError: LoadError: LoadError: LoadError: syntax: expected identifier after "const"
while loading C:\Users\Prabakaran.julia\v0.6\LibExpat\src\lX_common_h.jl, in expression starting on line 14
while loading C:\Users\Prabakaran.julia\v0.6\LibExpat\src\LibExpat.jl, in expression starting on line 13
while loading C:\Users\Prabakaran.julia\v0.6\WinRPM\src\WinRPM.jl, in expression starting on line 11
while loading C:\Users\Prabakaran.julia\v0.6\WinRPM\deps\build.jl, in expression starting on line 1

=============================================================================================================
`

@musm
Copy link
Contributor

musm commented Feb 15, 2017

I think this can be closed now? Try a Pkg.update . The bug in LibExpat was recently fixed.

@josefsachsconning
Copy link
Author

This is what I'm getting now.

C:\Users\sachs>C:\cygwin64\home\sachs\src\julia-master\usr\bin\julia.exe
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.6.0-dev.2831 (2017-02-15 11:49 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit cb1aae9 (0 days old master)
|__/                   |  x86_64-w64-mingw32

julia> Pkg.add("WinRPM")
INFO: Installing BinDeps v0.4.5
INFO: Installing BufferedStreams v0.3.0
INFO: Installing LibExpat v0.2.4
INFO: Installing Libz v0.2.4
INFO: Installing SHA v0.3.1
INFO: Installing URIParser v0.1.8
INFO: Installing WinRPM v0.2.3
INFO: Building WinRPM
ERROR: LoadError: LoadError: error compiling version: could not load library "zlib1"
The specified module could not be found.

Stacktrace:
 [1] include_from_node1(::String) at .\loading.jl:539
 [2] include(::String) at .\sysimg.jl:14
 [3] include_from_node1(::String) at .\loading.jl:539
 [4] include(::String) at .\sysimg.jl:14
 [5] anonymous at .\<missing>:2
while loading C:\Users\sachs\.julia\v0.6\Libz\src\lowlevel.jl, in expression starting on line 110
while loading C:\Users\sachs\.julia\v0.6\Libz\src\Libz.jl, in expression starting on line 11
===============================[ ERROR: WinRPM ]================================


LoadError: LoadError: Failed to precompile Libz to C:\Users\sachs\.julia\lib\v0.6\Libz.ji.
while loading C:\Users\sachs\.julia\v0.6\WinRPM\src\WinRPM.jl, in expression starting on line 10
while loading C:\Users\sachs\.julia\v0.6\WinRPM\deps\build.jl, in expression starting on line 1

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


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


WARNING: WinRPM had build errors.

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

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

INFO: Package database updated

julia>

@tkelman
Copy link
Contributor

tkelman commented Feb 15, 2017

if your julia is a source build, you're missing make win-extras

@musm
Copy link
Contributor

musm commented Feb 16, 2017

Looks like an unrelated issue, perhaps open a new issue if still encountering that different error, but this one I believe is now fixed.

@musm
Copy link
Contributor

musm commented May 2, 2017

Is this still an issue?

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

No branches or pull requests

5 participants