Open barracuda156 opened 6 months ago
Sorry about that. Will need your help troubleshooting this one (again).
In the other issue you mentioned that we needed to check for 8-byte atomics but the configure file is testing for it:
https://github.com/traversc/qs/blob/4798f3c68aff8e0d5004ff544ed70c0db2433474/configure.ac#L64
Does that small test program compile separately with g++
?
@traversc Yes, ppc (as well as some other 32-bit archs) do not have native 64-bit atomics. It has been the case and nothing changed or will change here.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81283#c2
I will try to compile that tomorrow. Something does not work as intended with the check, but we have to find out what exactly.
@traversc Sorry for a delay. I have tried now to compile a standalone snippet, and no, it fails, as it should:
36-244% /opt/local/bin/g++-mp-13 test_qs.cpp -o test_qs
Undefined symbols:
"___atomic_fetch_add_8", referenced from:
_main in ccak9Rx8.o
ld: symbol(s) not found
collect2: error: ld returned 1 exit status
If you add some random gibberish to break the test program in the config file here:
https://github.com/traversc/qs/blob/4798f3c68aff8e0d5004ff544ed70c0db2433474/configure#L2414
will it still say Does not require -latomic flag
? I don't understand why it compiles from the config file but not independently.
Also, do you know if its possible to set up a VM? I'm guessing no since it is a mac.
@traversc VM is certainly possible since I have it myself on an Intel machine.
I use Parallels with Snow Leopard Server and I can build and run ppc
binaries via Rosetta. There are open-source alternatives like UTM.
After https://github.com/traversc/qs/issues/88 we have this broken again for systems where
libatomic
has to be linked. Configure check does not work correctly.