One piece of software I enjoy using on most OSes is SIMH, and while I can easily get SIMH for any Linux, or macOS, or BSD, it’s not available in HaikuPorts (or at least not in the default repos), so I figured I could roll builds myself.
I downloaded the source from the 4.x Git repo here and made sure to install the needed prerequisite -devel packages (libpcap, libsdl2, libsdl2-ttf, libpcre). However, my test runs are giving me errors a few seconds into evoking ‘make’.
What is needed to get SIMH to build correctly in Haiku? The errors I’m seeing mention declaration of ‘uint64’ and ‘t_uint64’ (which are in the linked Pastebin), so I figure something needs to be declared differently?
Does SIMH or HaikuPorter throws this error?
If HaikuPorter, then you should enable secondary arches in the HaikuPorts config.
If SIMH throws the error, then you should patch the realted files and add Haiku to the list of supported operating systems.
It is definetely possible to build and use SIMH on Haiku, so try harder and also consider to join to the haiku irc channel for real-time support.
This error is being thrown by HaikuPorter itself. The error is as follows:
~> haikuporter --get-dependencies simh
Checking if any dependency-infos need to be updated …
Looking for stale dependency-infos …
Warning: skipping simh-4.0.0_git, as it is untested on the target architecture.
Error: No version of simh can be built
I’ll try with secondary dependencies enabled and see if it helps.
Secondary arch (currently) only used on 32 bit, where the primary arch means the ancient GCC2 toolchain and the d secondary means the GCC11 toolchain.
If your OS is 64 bit, then there is no secondary arch.
The error implies you have ?x86_64 or ?all flag in your recipe (notice the question mark), which means it is untested.
There is a setting for enabling untested recipes in the HaikuPorter config, you should enable that.
And consider to post your wip recipe.