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

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

Open
GregMc opened this issue Dec 9, 2021 · 3 comments
Open

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

GregMc opened this issue Dec 9, 2021 · 3 comments

Comments

@GregMc
Copy link

GregMc commented Dec 9, 2021

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
Copy link
Owner

ronisbr commented Dec 9, 2021

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
Copy link
Author

GregMc commented Dec 10, 2021

Thanks Ronan ,

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

@GregMc
Copy link
Author

GregMc commented Dec 24, 2021

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 )

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

2 participants