Closed acf closed 1 year ago
ARGH. Inevitably I find the answer two minutes after I have given up and posted an issue. PosixLib readme says it requires an FPU for the math functions and when I switch the CPU to 68020 all is well. :-). Sorry for the noise.
Long story, but maybe there's a detail in there that helps somehow....
I've been a keen user of vamos of a while. I've been using bebbo/amiga-gcc to build a small project on my (intel) Mac and using vamos to run the unit tests "on an amiga"as part of the build.
I paused for a while (lost my job, found another one, yay) and went to get started again. In the interim I had bought a new M1 Mac, so I started to install all my amiga tooling again. I had a problem with amiga-gcc installation and decided to try VBCC, which now plays nicely with 3.2.x.
When I ran my tests, vamos crashed. If I ran the same binary inside FS-UAE all was well.
I have stripped back and narrowed it down and got to the point where its apparent that a little hello world app built with vbcc works fine until I link it with Frank Wille's posixlib
Exact same C code, recompiled with
-lposix
, crashes vamos, but with or without posix the executable runs fine in FS-UAE.I confess I'm largely cargo-culting a lot of the compiler end of this so I can work more quickly than just using SAS on the virtual amiga so I'm not sure where to start figuring out the issue, which is why this ticket is so rambling and vague.
Is there anything obvious in the vamos log? Or anything further I could try poking at ? I'm happy to do as much legwork as I can but I'm not sure where to start.
Thanks!
Alan