-
Notifications
You must be signed in to change notification settings - Fork 66
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
amiga-gcc 13.2 built executable exits with error code 121 #402
Comments
For now you have to strip the executable using v 13.2. Add or use |
I'll try these two and get back to you:
Thank you! Danke! |
I've tried this with amiga-gcc 6:
Also statically compiled with gcc 6:
I've also compiled with amiga-gcc 6 and stripped with amiga-gcc 13.2:
And I ran each build on fs-uae after converting to adf and the results are same "... failed with return code 20", amiga-gcc 13.2 fails with "Error code 121" Should I build gcc 13.1 and see? |
Ensure that mathieeedoubbas.library and mathieeedoubtrans.library are present. |
I use <math.h> / libm and link with -lm , and I took it for granted. Man I have to really appreciate you for porting so much stuff that people take for granted. Maybe I have to do it the Amiga way: http://amigadev.elowar.com/read/ADCD_2.1/Libraries_Manual_guide/node048A.html Since it is for an Amiga 500 Kickstart 1.3 I'd need to find a softfp version. Perhaps I'll have to write my own simplified / equivalent math functions or use something like https://core-math.gitlabpages.inria.fr/ Thank you for the support. |
What's the problem? Both libs are available with kick 1.3. Check the workbench's libs folder. |
Okay I guess the problem was that I am an idiot and noob to amiga dev stuff. Your hint and (bebbo/libnix#36) solved it! Thanks a ton!!! I learned something new. Leaving this here for any new folks who encounter issues with libraries not found:
Now only the issue with amiga-gcc 13.2 built executable exiting with error code 121 remains. But I guess gcc 6 is fine for my purposes unless gcc 13.2 compiles way more efficient binaries. Edit: This is such excitement and a dream come true that after 3 decades I can run My Own Amiga Program (TM), I have found closure to my childhood pains. And feels like the first time I discovered programming. Much Love! Keep up the awesome work. |
please retest |
Dear Bebbo, thank you for keeping Amiga development alive!
I once owned an Amiga 500 back when I was a kid, and decades later I have the urge to make a demo for the Amiga.
I am thankful that folks like you exist that keeps the machine and dream alive.
I am an absolute noob to Amiga development and I encountered an error:
Unable to load helloamiga.exe: Error code 121
I built the helloamiga.c to target Amiga 500 with kickstart 1.3 ROM without errors:
I used the amiga-gcc 13.2 toolchain (
make branch branch=amiga13.1 mod=gcc
)The helloamiga.exe was packaged as adf with exe2adf:
Then I ran it with fs-uae.
I do not know if I did something wrong or related to amiga-gcc. Any hints for a fix is highly appreciated as I am trying to avoid building lower versions of amiga-gcc from scratch to test out.
The helloamiga.c test code as well as the exe and adf is attached here in a zip:
helloamiga.zip
.
The text was updated successfully, but these errors were encountered: