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

Can't read Pango_jll.libpango_path on 32-bit systems #17

Closed
giordano opened this issue Dec 12, 2019 · 0 comments · Fixed by #18
Closed

Can't read Pango_jll.libpango_path on 32-bit systems #17

giordano opened this issue Dec 12, 2019 · 0 comments · Fixed by #18

Comments

@giordano
Copy link
Member

giordano commented Dec 12, 2019

readmeta(open(Pango_jll.libpango_path, "r"))

gives the following error on 32-bit Linux:

  MethodError: no method matching ELFHandle(::IOStream, ::Int64, ::ELFInternal, ::ELFHeader32{ELFHandle}, ::String)
  Closest candidates are:
    ELFHandle(::T, !Matched::Int32, ::ELFInternal, ::ELFHeader, ::String) where T<:IO at /home/travis/.julia/packages/ObjectFile/K3HNL/src/ELF/ELFHandle.jl:16
  Stacktrace:
   [1] readmeta(::IOStream, ::Type{ELFHandle}) at /home/travis/.julia/packages/ObjectFile/K3HNL/src/ELF/ELFHandle.jl:59
   [2] readmeta(::IOStream) at /home/travis/.julia/packages/ObjectFile/K3HNL/src/Abstract/ObjectHandle.jl:125
   [3] top-level scope at show.jl:562
   [4] top-level scope at /home/travis/build/giordano/DependencyWalker.jl/test/runtests.jl:6
   [5] top-level scope at /buildworker/worker/package_linux32/build/usr/share/julia/stdlib/v1.3/Test/src/Test.jl:1107
   [6] top-level scope at /home/travis/build/giordano/DependencyWalker.jl/test/runtests.jl:6
   [7] include at ./boot.jl:328 [inlined]
   [8] include_relative(::Module, ::String) at ./loading.jl:1105
   [9] include(::Module, ::String) at ./Base.jl:31
   [10] include(::String) at ./client.jl:424
   [11] top-level scope at none:6
   [12] eval(::Module, ::Any) at ./boot.jl:330
   [13] exec_options(::Base.JLOptions) at ./client.jl:263
   [14] _start() at ./client.jl:460

Found in https://travis-ci.com/giordano/DependencyWalker.jl/builds/140719359

Similar error on 32-bit Windows:

MethodError: no method matching COFFHandle(::IOStream, ::Int64, ::COFFHeader, ::UInt32, ::COFFOptionalHeader32, ::String)
  Closest candidates are:
    COFFHandle(::T, !Matched::Int32, ::COFFHeader, ::UInt32, ::ObjectFile.COFF.COFFOptionalHeader, ::String) where T<:IO at C:\Users\appveyor\.julia\packages\ObjectFile\K3HNL\src\COFF\COFFHandle.jl:11
  Stacktrace:
   [1] readmeta(::IOStream, ::Type{COFFHandle}) at C:\Users\appveyor\.julia\packages\ObjectFile\K3HNL\src\COFF\COFFHandle.jl:66
   [2] readmeta(::IOStream) at C:\Users\appveyor\.julia\packages\ObjectFile\K3HNL\src\Abstract\ObjectHandle.jl:125
   [3] top-level scope at show.jl:562
   [4] top-level scope at C:\projects\dependencywalker-jl\test\runtests.jl:6
   [5] top-level scope at D:\buildbot\worker\package_win32\build\usr\share\julia\stdlib\v1.3\Test\src\Test.jl:1107
   [6] top-level scope at C:\projects\dependencywalker-jl\test\runtests.jl:6
   [7] include at .\boot.jl:328 [inlined]
   [8] include_relative(::Module, ::String) at .\loading.jl:1105
   [9] include(::Module, ::String) at .\Base.jl:31
   [10] include(::String) at .\client.jl:424
   [11] top-level scope at none:6
   [12] eval(::Module, ::Any) at .\boot.jl:330
   [13] exec_options(::Base.JLOptions) at .\client.jl:263
   [14] _start() at .\client.jl:460

Found at https://ci.appveyor.com/project/giordano/dependencywalker-jl/builds/29482247/job/klesvwfwoa3plopm

Maybe start should be cast to Int? Or position(io) returns always Int64?

@giordano giordano changed the title Can't read Pango_jll.libpango_path on 32-bit Linux Can't read Pango_jll.libpango_path on 32-bit systems Dec 12, 2019
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

Successfully merging a pull request may close this issue.

1 participant