Closed toptan closed 2 years ago
m68k-amigaos-gcc -Os -noixemul test.c -o test
will compile and link it.
Thanks! I forgot about -noixemul.
However, now c++ compiler doesn't work. It produces binary but when run it it just does nothing. Just hangs. Even the simplest example:
root@00e43cd3c0c0:~# cat minimal.cpp
#include <iostream>
int main() {
std::cout << "Hello world!" << std::endl;
return 0;
}
compiled with m68k-amigaos-g++ -noixemul -Os -o minimal minimal.cpp
just hangs...
libpthread was initialized too late.
make update -j
make libpthread
and rebuild the program
@bebbo All good now. I will close this issue. Thank you for this great work!
According to posix threads the minimal example is compiled like:
$CC -pthread test.c
However I get crazy error:
I also tried to do "direct" static lib link:
Adding libnix into the story makes things even worse.
Toolchain compiled from master with
THREADS=posix make all
Test code is:
Please advise.