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
Add prebuilts for Raspberry Pi #13
Comments
Hi @plattysoft, the prebuilt sdcc indeed contains patches, the binaries come from this repo: https://github.com/retrodeluxe/sdcc-msx you can see the changes in the history. If you build from that repo for arm you should get an equivalent to the x86 and darwin prebuilts. Let me know if that works... some of the bigger examples indeed need a patched sdcc, but the sprites one I think it should work fine without it, so maybe there is another problem. |
ah, I have to try that.
|
yup, if the Makefile uses CONFIG_BANKED_CALLS := enabled it requires the changes included in the customized sdcc-msx repo. The build should be fixed after updating the prebuilt. |
I got an error building the sources, but the configure did not gave any warning and I was also able to build the version 3.8.0 of sdcc, so not sure if I am missing some tool / lib that needs to be installed in the Pi |
I think if you build sdcc for all the targets it requires some tools that may not be available on your linux, and it doesn' t complain during the configure. --disable-mcs51-port Excludes the Intel mcs51 port maybe the error gives you a hint on which ones to disable. |
I was just re-running it.
I realized that my current version of Raspberry OS is about 2 years old and can't be updated, so I am going to re-flash it and go again from scratch. I will let you know. Thanks! |
yep, that relates to: |
Well, I already started flashing a newer version of the Raspberry OS on the Pi, so I won't be able to try again until later. |
Now, with an updated tool system, and disabling all the targets, I am getting a completely different error. It is interesting because sdbinutils is disabled.
|
This is strange, I complied sdcc without errors on the previous version of the OS. I will try to build the standard 3.8 version and see if the issue is with this branch or with the current dev environment |
Does it need a specific version of gcc to compile? I downloaded sdcc 3.8.0, which I previously compiled without problems, and it is failing too. The compiler version is the only thing that I can think of. I am using gcc 8.3 |
I am not sure, I usually don't have problems with the sdcc build, neither in MacOS nor in Linux. Probably there is something different on the build for ARM. Can you post here the build error? maybe I can guess something. |
@plattysoft did you figure out the problem? |
I haven't tried in a few days, both sdcc from the main branch and the one from this repo gave an error compiling, and it wasn't really informative, so given that I can use the engine on my Mac, I decided to swap to it. |
I was trying to get rlengine up and running on a Raspberry Pi using Raspbian.
The problem is that the current makefile detects it as an x86, which is wrong.
I have make a prebuilt version of sdcc 3.8.0 and tweaked main.mk to account for arm architecture (plattysoft@76bee55)
As of today, it does compile, and the hello world rom works, but the more complex examples that use sprites got into an endless loop.
I suspect I need to patch something in the sdcc built after compiling, but there is no documentation about it.
If you point me to what those changes are, I can make this work and open a PR from my fork.
Cheers.
The text was updated successfully, but these errors were encountered: