HPGCC3 - discussion and troubleshooting
|
11-02-2023, 06:47 PM
(This post was last modified: 11-02-2023 07:04 PM by ramon_ea1gth.)
Post: #1
|
|||
|
|||
HPGCC3 - discussion and troubleshooting
After reading about HPGCC and NewRPL for some time, and testing in my HP50g some HPGCC2 programs from hpcalc.org, I decided it was time to give HPGCC3 a try, as the idea to use C in the HP50g looks awesome.
I'm following the Installation instructions, written by Claudio and I guess I'm close to it, as I was able to run the install_plugin.sh script in Eclipse. Now I'm stuck at Chapter 3, 'Building the libraries', trying to build the project make_rom. Most of the project gets built (I guess). But I get an error when coping the file thumb/libgcc.a as shown below: Code:
Checking the contents of that directory, there is no libgcc.a available, but under the directories: Code:
So just to test, I copied updir nofp/libgcc.a to make it available to the builder, as seen now: Code:
After this, the building continued successfully (?) until trying cp romentries.list /home/user/hpgcc3/lib, because romentries.list doesn't exist in the directory. This is the listing when building: Code:
So I'm wondering if this is related to using the right toolchain or there is something else. Any help is appreciated. This is my system info: Linux Mint 21.2 Cinnamon (based on Ubuntu 22.04 LTS, so it is roughly an Ubuntu system). I installed gcc-arm-none-eabi from the packet manager. No gdb-arm-none-eabi packet was available so I guess it is embedded in the gcc packet. About the arm-none-eabi: Code:
Ramón Valladolid, Spain TI-50, Casio fx-180P, HP48GX, HP50g, HP Prime G2 |
|||
11-04-2023, 05:06 PM
(This post was last modified: 11-04-2023 05:16 PM by Claudio L..)
Post: #2
|
|||
|
|||
RE: HPGCC3 - discussion and troubleshooting
You need an older gcc compiler. The chip in the 50g uses the armv4t which has been deprecated years ago. You'll need to google which was the last version of gcc with full support for armv4t.
https://www.phoronix.com/news/GCC-9-Dropping-Older-ARM (Another edit...) The ARM Developer website led me to the Linaro project. I think the last one I tested with hpgcc3 was 6.3, but I see no reason why gcc7 or gcc8 wouldn't work better, as long as they still have support for armv4t. http://releases.linaro.org/components/to.../binaries/ |
|||
11-04-2023, 05:27 PM
Post: #3
|
|||
|
|||
RE: HPGCC3 - discussion and troubleshooting
Besides needing the right compiler, the issue with romentries.list might be due to python: There's a small python script that extracts entry points and putputs romentries.list as part of its process. It may be failing either because of incompatibility with newer python, or maybe the newer toolchain (uses arm-none-eabi-objdump to extract information). So first try with an older toolchain, if that doesn't solve the issue you may need to debug that python script to see why it's failing, or downgrade to a python from 2014 )
|
|||
11-06-2023, 10:42 AM
Post: #4
|
|||
|
|||
RE: HPGCC3 - discussion and troubleshooting
Both clues, the compiler and the romentries.list python script, look interesting directions to narrow the problem. I will take a look at both things and give feedback.
Thanks Claudio! Ramón Valladolid, Spain TI-50, Casio fx-180P, HP48GX, HP50g, HP Prime G2 |
|||
11-27-2023, 11:24 AM
Post: #5
|
|||
|
|||
RE: HPGCC3 - discussion and troubleshooting
I'm keeping an eye on this thread's progress. Similar Mint distro, I could not get it working either. I tried the MixiH Docker container from Github, after a couple of changes I got it to build, but have not gotten it to work yet.
I am able to run HPGCC2 native on Windows and produce binaries that work on my 49g+ so I'm sticking with that for the time being. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)