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

Error start not defined occurs when building WinRPM 0.4.0 on Julia 1.0 on Windows 10 64-bit. #162

Open
denchat opened this issue Aug 27, 2018 · 3 comments

Comments

@denchat
Copy link

denchat commented Aug 27, 2018

(v1.0) pkg> add WinRPM

add 0.4.0

 Resolving package versions...
  Updating `C:\Users\User\.julia\environments\v1.0\Project.toml`
  [c17dfb99] + WinRPM v0.4.0
  Updating `C:\Users\User\.julia\environments\v1.0\Manifest.toml`
  [e1450e63] + BufferedStreams v1.0.0
  [0862f596] + HTTPClient v0.2.1
  [b27032c2] + LibCURL v0.3.1
  [522f3ed2] + LibExpat v0.5.0
  [2ec943e9] + Libz v1.0.0
  [c17dfb99] + WinRPM v0.4.0

Try to build it, get "start not defined"

(v1.0) pkg> build WinRPM
  Building LibCURL → `C:\Users\User\.julia\packages\LibCURL\Qs5og\deps\build.log`
  Building WinRPM ─→ `C:\Users\User\.julia\packages\WinRPM\rDDZz\deps\build.log`
┌ Error: Error building `WinRPM`:
│ ERROR: LoadError: UndefVarError: start not defined
│ Stacktrace:
│  [1] getproperty(::Module, ::Symbol) at .\sysimg.jl:13
│  [2] top-level scope at none:0
│  [3] include at .\boot.jl:317 [inlined]
│  [4] include_relative(::Module, ::String) at .\loading.jl:1038
│  [5] include(::Module, ::String) at .\sysimg.jl:29
│  [6] top-level scope at none:2
│  [7] eval at .\boot.jl:319 [inlined]
│  [8] eval(::Expr) at .\client.jl:389
│  [9] top-level scope at .\none:3
│ in expression starting at C:\Users\User\.julia\packages\WinRPM\rDDZz\src\WinRPM.jl:214
│ ERROR: LoadError: Failed to precompile WinRPM [c17dfb99-b4f7-5aad-8812-456da1ad7187] to C:\Users\User\.julia\compiled\v1.0\WinRPM\ko3j0.ji.
│ Stacktrace:
│  [1] error(::String) at .\error.jl:33
│  [2] macro expansion at .\logging.jl:313 [inlined]
│  [3] compilecache(::Base.PkgId, ::String) at .\loading.jl:1184
│  [4] _require(::Base.PkgId) at .\logging.jl:311
│  [5] require(::Base.PkgId) at .\loading.jl:852
│  [6] macro expansion at .\logging.jl:311 [inlined]
│  [7] require(::Module, ::Symbol) at .\loading.jl:834
│  [8] top-level scope at C:\Users\User\.julia\packages\WinRPM\rDDZz\deps\build.jl:2
│  [9] include at .\boot.jl:317 [inlined]
│  [10] include_relative(::Module, ::String) at .\loading.jl:1038
│  [11] include(::Module, ::String) at .\sysimg.jl:29
│  [12] include(::String) at .\client.jl:388
│  [13] top-level scope at none:0
│ in expression starting at C:\Users\User\.julia\packages\WinRPM\rDDZz\deps\build.jl:1
└ @ Pkg.Operations C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\Operations.jl:1068

(v1.0) pkg>

As of Auguest 27, 2018, I have tried dev WinRPM also but it failed as the same error.

@shang-zd
Copy link

I also got the same problem.
My version info as below:

julia> versioninfo()
Julia Version 1.0.0
Commit 5d4eaca0c9 (2018-08-08 20:58 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Core(TM) i3 CPU M 380 @ 2.53GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-6.0.0 (ORCJIT, westmere)

The error occurred when I tried to use it, details as below:

julia> using WinRPM
[ Info: Precompiling WinRPM [c17dfb99-b4f7-5aad-8812-456da1ad7187]
ERROR: LoadError: UndefVarError: start not defined
Stacktrace:
[1] getproperty(::Module, ::Symbol) at .\sysimg.jl:13
[2] top-level scope at none:0
[3] include at .\boot.jl:317 [inlined]
[4] include_relative(::Module, ::String) at .\loading.jl:1038
[5] include(::Module, ::String) at .\sysimg.jl:29
[6] top-level scope at none:2
[7] eval at .\boot.jl:319 [inlined]
[8] eval(::Expr) at .\client.jl:389
[9] top-level scope at .\none:3
in expression starting at C:\Users\zd.julia\packages\WinRPM\rDDZz\src\WinRPM.jl
:214
ERROR: Failed to precompile WinRPM [c17dfb99-b4f7-5aad-8812-456da1ad7187] to C:
Users\zd.julia\compiled\v1.0\WinRPM\ko3j0.ji.
Stacktrace:
[1] error(::String) at .\error.jl:33
[2] macro expansion at .\logging.jl:313 [inlined]
[3] compilecache(::Base.PkgId, ::String) at .\loading.jl:1184
[4] _require(::Base.PkgId) at .\logging.jl:311
[5] require(::Base.PkgId) at .\loading.jl:852
[6] macro expansion at .\logging.jl:311 [inlined]
[7] require(::Module, ::Symbol) at .\loading.jl:834

@omus
Copy link

omus commented Aug 31, 2018

Should be fixed by: #158

@denchat
Copy link
Author

denchat commented Sep 3, 2018

Thank you. Confirm as a fixed issue here.
By the way, I successfully built Cairo with pkg> dev WinRPM, not via update WinRPM

(v1.0) pkg> dev WinRPM
   Cloning git-repo `https://github.com/JuliaPackaging/WinRPM.jl.git`
  Updating git-repo `https://github.com/JuliaPackaging/WinRPM.jl.git`
 Resolving package versions...
  Updating `C:\Users\User\.julia\environments\v1.0\Project.toml`
  [c17dfb99] ↑ WinRPM v0.4.1 ⇒ v0.4.1+ [`C:\Users\User\.julia\dev\WinRPM`]
  Updating `C:\Users\User\.julia\environments\v1.0\Manifest.toml`
  [c17dfb99] ↑ WinRPM v0.4.1 ⇒ v0.4.1+ [`C:\Users\User\.julia\dev\WinRPM`]
  Building WinRPM → `C:\Users\User\.julia\dev\WinRPM\deps\build.log`

(v1.0) pkg> build Cairo
  Building LibCURL ─→ `C:\Users\User\.julia\packages\LibCURL\Z32eb\deps\build.log`
  Building WinRPM ──→ `C:\Users\User\.julia\dev\WinRPM\deps\build.log`
 Resolving package versions...
  Building Homebrew → `C:\Users\User\.julia\packages\Homebrew\l8kUw\deps\build.log`
  Building Cairo ───→ `C:\Users\User\.julia\packages\Cairo\CXPG1\deps\build.log`
 Resolving package versions...

(v1.0) pkg>

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

3 participants