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
Fail mix firmware
on Nerves RPi0 with Pelemay ** (Mix) Nerves encountered an error. %IO.Stream{device: :standard_io, line_or_bytes: :line, raw: true}
#73
Comments
Thank you for your contribution @osako-ricc I guess this error message is essential:
That is, Nerves assumes not dlls but elf. |
Would you run the following command? @osako-ricc
|
No, the error shows it is compiled for x86_64, not ARM. I guess it needs cross compilation. |
@mobileoverlord @fhunleth @ConnorRigby I'd like to modify Pelemay.Generator.Builder to compile the application into the target architecture like ARM. |
mix firmware
on Nerves RPi0 with Pelamy ** (Mix) Nerves encountered an error. %IO.Stream{device: :standard_io, line_or_bytes: :line, raw: true}
Following the command:
|
@fhunleth said:
|
I'll try to use Does |
|
@fhunleth said:
|
@osako-ricc Would you test it again, with modifying {:pelemay, git: "https://github.com/zeam-vm/pelemay.git", branch: "zacky1972_issue_73"}, |
Following command:
|
Thank you for your report. I guess it occured due to the difference of the compiler options between Unfortunately, I'll debug and test it tomorrow |
@fhunleth said:
|
@fhunleth is right. Due to the difference of compiler option, it causes anothor error. I'll debug and test on Linux, tomorrow. |
@christianjgreen said:
|
I don't know it. Anyway, I found Pelemay must identify which compiler is used, so it can generate or not the pragma. |
I guess solving this issue may be so complicated problem because Nerves and Pelemay rely on Thus, I'll try to fix this issue after refactoring of code generation, which is planed on version 0.0.5. This version up needs so much time and efforts that I may regard this release as version 0.1.0. |
Hey there!
I have committed example changes to a fork: christianjgreen@8afb367 |
I'll check your patch, soon! Thank you! @christianjgreen |
@christianjgreen We've just tested your code at last! I modified your code a little because it doesn't work when We'll test again, on Linux and Nerves. Thank you. |
mix firmware
on Nerves RPi0 with Pelamy ** (Mix) Nerves encountered an error. %IO.Stream{device: :standard_io, line_or_bytes: :line, raw: true}mix firmware
on Nerves RPi0 with Pelemay ** (Mix) Nerves encountered an error. %IO.Stream{device: :standard_io, line_or_bytes: :line, raw: true}
Thanks for the update! 🙇 |
Describe the bug
RaspberryPi Zero WH のNerves環境下にてmix firmwareに失敗する.
To Reproduce
Steps to reproduce the behavior:
lib/pelemay_sample.ex
:Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
elixir --version
): OTP22/Elixir 1.9.1uname -a
): macOS 10.14.6 / Darwin VLAN2-dhcp18.is.env.kitakyu-u.ac.jp 18.7.0 Darwin Kernel Version 18.7.0: Tue Aug 20 16:57:14 PDT 2019; root:xnu-4903.271.2~2/RELEASE_X86_64 x86_64clang -v
): Apple LLVM version 10.0.1 (clang-1001.0.46.4)Additional context
Pelemayを
mix deps.get
した状態のものをmix do firmware, firmware.burn
して,iex
でコードをテストすると,以下のような挙動を得た.なお,Nervesを通さずにDocTestを通すことはできます.
The text was updated successfully, but these errors were encountered: