ronisbr / BaremetalPi.jl

Julia library to access Raspberry Pi peripherals without requiring external libraries.
Other
49 stars 5 forks source link

BaremetalPi 0.1.1 doesn't seem to work with Julia 1.7.0 #4

Open GregMc opened 2 years ago

GregMc commented 2 years ago

Sorry to advise

But I think BaremetalPi 0.1.1 doesn't seem to work with Julia 1.7.0

I have an older Julia version 1.6.1 and BaremetalPi works fine on that ...

This is the Error :- _``` julia> using BaremetalPi [ Info: Precompiling BaremetalPi [3a90a9a9-52f9-452b-94bd-193d585bd84f] ERROR: LoadError: TypeError: in ccall method definition, expected Type, got a value of type TypeVar Stacktrace: [1] top-level scope @ ~/.julia/packages/BaremetalPi/vlIDG/src/ioctl.jl:12 [2] include(mod::Module, _path::String) @ Base ./Base.jl:418 [3] include(x::String) @ BaremetalPi ~/.julia/packages/BaremetalPi/vlIDG/src/BaremetalPi.jl:1 [4] top-level scope @ ~/.julia/packages/BaremetalPi/vlIDG/src/BaremetalPi.jl:22 [5] include @ ./Base.jl:418 [inlined] [6] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::Nothing) @ Base ./loading.jl:1318 [7] top-level scope @ none:1 [8] eval @ ./boot.jl:373 [inlined] [9] eval(x::Expr) @ Base.MainInclude ./client.jl:453 [10] top-level scope @ none:1 in expression starting at /home/pi/.julia/packages/BaremetalPi/vlIDG/src/ioctl.jl:12 in expression starting at /home/pi/.julia/packages/BaremetalPi/vlIDG/src/BaremetalPi.jl:1 ERROR: Failed to precompile BaremetalPi [3a90a9a9-52f9-452b-94bd-193d585bd84f] to /home/pi/.julia/compiled/v1.7/BaremetalPi/jl_coyRJU. Stacktrace: [1] error(s::String) @ Base ./error.jl:33 [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, ignore_loaded_modules::Bool) @ Base ./loading.jl:1466 [3] compilecache(pkg::Base.PkgId, path::String) @ Base ./loading.jl:1410 [4] _require(pkg::Base.PkgId) @ Base ./loading.jl:1120 [5] require(uuidkey::Base.PkgId) @ Base ./loading.jl:1013 [6] require(into::Module, mod::Symbol) @ Base ./loading.jl:997

ronisbr commented 2 years ago

Hi @GregMc

Thanks for the bug report. I am already aware of this bug. The problem is that I was not able yet to compile v1.7 to the Raspberry Pi zero (which is the only one I own) so that I can fix the problem :(

I think I have a solution. I will do this in a separate branch.

GregMc commented 2 years ago

Thanks Ronan ,

I'll test it when you get a chance to propose a solution.

GregMc commented 2 years ago

Hi Ronisbr ,

Julia-1.7.1 has just been released - so I checked - and unfortunately BaremetalPi still exhibits the error.

I am using RasPi4 ( with 8 Meg of memory if I remember correctly )