Bool size in Darwin ppc ABI is 4-byte (Windows too?) #319
Labels
No labels
Bug
Extensions
New Feature
Not our bug - SDL2
Not our bug - WMA
Utilities
Wine
X3DAudio Accuracy
XACT Accuracy
XAudio2 Accuracy
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-FNA-XNA/FAudio#319
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Apparently on Windows bool is also 4-byte, according to:
github.com/FNA-XNA/FAudio@d0a90be698However tests header defined bool as
uint8_t:github.com/FNA-XNA/FAudio@c5f8246875/tests/FAudio_compat.h (L5)I am not sure about how it works on Windows; to accommodate Darwin ppc it will be needed to do smth like:
I think the typedef is just to alias the BOOL name, since FAudio itself uses uint8_t, but if making it uint32_t makes it work for ppc I can merge that in!
@flibitijibibo Thank you for responding (and for merging the PR!).
I got some issue with running tests: once launched, the binary does nothing, essentially freezing, and GDB does not show any meaningful output (it also hangs after Reading symbols for shared libraries).
So no need to change bool there right now, I think. Unless tests actually run (even with failures), that is pointless anyway.
P. S. It is quite possible our SDL2 is not working correctly on PPC (it is in experimental status), but I would expect tests failing, if so, but not being unable to even start. Apparently something unrelated to SDL2 is broken, but I have no idea what.
Not sure about the tests, but the utils might narrow it down a bit - the utils don't do any winapi mapping so it should be possible to run those and get some output without any alignment weirdness happening.
@flibitijibibo Sorry for a silly question, where to find those utils? They are not installed, and I am not sure they are built by default.
I think the CMake option is BUILD_UTILS, it won't be on by default (phoneposting atm).
I should have looked into CMakeLists, will try it now.
UPD.

facttoollaunches, for example, but looks like this (may be SDL2 issue though):(initial dyld error is caused by library paths set in the binaries – they point to install prefix, while I ran binary without installing libs first; so ignore that).
P. S. I wonder if
FAudioworks on macOS at all. Portfile has a note that utils segfaulted, and be sure, this was not on PowerPC:github.com/macports/macports-ports@380698f056/audio/FAudio/Portfile (L42-L43)@flibitijibibo So utilities launch and at least their menus work, though fonts are displayed in a barely readable fashion.
Ironically, this did not help in any way to understand why tests do not start, since utilities are kind of okay.
When I run with GDB, I get this (and I have to interrupt the process, as it freezes):