Gcc 9 is 1:1 with SBA:s repo, how it's built, patches applied and so on.
Gcc 10 is 0.99:1. As far as OS4 is concerned it's 1:1 unless I've misunderstood something (which is a possibility of course :)
I'd say 10 is ready for some real testing. Would be interesting to see if it's possible to get a c++20 project running on OS4. It will probably lead to bugs popping up, like the threading problems you identified the other day, but that's good I guess.
@sTix I set up, for now, a new Cygwin instance, and cloning gcc10 repo from you. I Will try to build it as usually build cross-compilers and give it a go to build firstly some simple stuff, and then Odyssey, just to see how it behave for real. If Oddysey will be compiled and works as before, then we can say it at least "ok"
It would be nice with a recent version of gdb-binutils as well. I quickly peeked into the current patchset and what it would take to apply that to the latest gdb-binutils. I walked away with a strong desire to start smoking crack.
I set up, for now, a new Cygwin instance, and cloning gcc10 repo from you. I Will try to build it as usually build cross-compilers and give it a go to build firstly some simple stuff, and then Odyssey, just to see how it behave for real. If Oddysey will be compiled and works as before, then we can say it at least "ok"
@sTix Cross compiler version of gcc10 builds fine, test binary works (click open in new tab) and even -flto works as expected.
Trying to build Odyssey now:
libwtf: builds with no probs
libjavascript: builds fine, but brings warnings about [-Wdeprecated-copy], but no errors at least
libwebcore: same build fine but brings warnings about [-Wdeprecated-copy], but no errors at least
libwebkit-owb: that one full of amiga code, so this one together with some warnings bring even an error: gcc10 by default seems to use now -Wnarrowing, and that causes issues with enums+switch of names of mui methods, so had to add -Wno-narrowing to compiler flags. Other than that all builds fine.
And final linking done! Tested binary: works :) So the first stress test passed. I Will try to build some other heavy shit (like few games using all sort of stuff).
Oh, and the size of the binary now 61.068.962, instead of 63.321.206. Dunno why it saves about 2.5MB with gcc10, maybe some inbuild optimization takes place, or maybe something else which I not aware of, but it's good. I noticed in the output of gcc10 that it has now strings "Supported LTO compression algorithm: zlib", while with the previous version I didn't have such an output, so maybe some lto related stuff are default now?
Edited by kas1e on 2021/1/9 8:24:34 Edited by kas1e on 2021/1/9 8:25:32 Edited by kas1e on 2021/1/9 8:30:08 Edited by kas1e on 2021/1/9 8:30:41 Edited by kas1e on 2021/1/9 9:17:28 Edited by kas1e on 2021/1/9 10:45:16 Edited by kas1e on 2021/1/9 10:47:33 Edited by kas1e on 2021/1/9 10:52:46
gcc9 is working well with scummvm and it's c++11 functions
i haven't tested gcc10 (would like to wait for the std:: fix to hit it, just like wtih gcc9, if it hasn't already)
People are dying. Entire ecosystems are collapsing. We are in the beginning of a mass extinction. And all you can talk about is money and fairytales of eternal economic growth. How dare you! – Greta Thunberg
People are dying. Entire ecosystems are collapsing. We are in the beginning of a mass extinction. And all you can talk about is money and fairytales of eternal economic growth. How dare you! – Greta Thunberg
Uh, just saw the lto part...need to trx it again, didn't work with earlier versions
People are dying. Entire ecosystems are collapsing. We are in the beginning of a mass extinction. And all you can talk about is money and fairytales of eternal economic growth. How dare you! – Greta Thunberg
I unfortunately still get the same error message /SDK/gcc/ppc-amigaos/bin/ld: -f may not be used without -shared even with static builds
and using -shared the binary grows in size instead of shrinking.
So, lto still don't work natively...too bad :-/
People are dying. Entire ecosystems are collapsing. We are in the beginning of a mass extinction. And all you can talk about is money and fairytales of eternal economic growth. How dare you! – Greta Thunberg
Building another C++ project using adtools-os4-9-20210108-716 shows errors regarding threading during linking stage:
ppc-amigaos-g++ -o Dungeongenerator Architekt.o Optionen_Anwenden.o Architekt_Structs_Initialisierung.o Optionen_Dateizugriff_Einstellungen.o Architekt_Verbindungen.o Optionen_Dateizugriff.o CGUIFileOpenDialog_Modified.o Optionen_GUI_aktualisieren.o COBJMeshWriter_Modified.o Optionen_GUI_merken.o DreiecksMesh_LOD.o Spline_Detailobjekte_Visibility.o DreiecksMesh.o Spline.o DreiecksMesh_Structs_Initialisierung.o Spline_Structs_Initialisierung.o EventReceiver.o SubSzene.o FraktalGenerator.o Szene.o GUI.o VoxelRaum.o main.o -lIrrlicht -lSDL_gl4es -lgl4es -lpthread
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(eh_globals.o): In function `__cxa_get_globals_fast':
/home/olasr/kod/amiga/adtools_gcc9_c17/gcc/repo/libstdc++-v3/libsupc++/eh_globals.cc:116: undefined reference to `__gthread_getspecific'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(eh_globals.o): In function `__cxa_get_globals':
/home/olasr/kod/amiga/adtools_gcc9_c17/gcc/repo/libstdc++-v3/libsupc++/eh_globals.cc:128: undefined reference to `__gthread_getspecific'
/home/olasr/kod/amiga/adtools_gcc9_c17/gcc/repo/libstdc++-v3/libsupc++/eh_globals.cc:132: undefined reference to `__gthread_setspecific'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(eh_globals.o): In function `_ZN17__eh_globals_initC4Ev':
/home/olasr/kod/amiga/adtools_gcc9_c17/gcc/repo/libstdc++-v3/libsupc++/eh_globals.cc:97: undefined reference to `__gthread_active_p'
/home/olasr/kod/amiga/adtools_gcc9_c17/gcc/repo/libstdc++-v3/libsupc++/eh_globals.cc:98: undefined reference to `__gthread_key_create'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(eh_globals.o): In function `_ZN17__eh_globals_initD4Ev':
/home/olasr/kod/amiga/adtools_gcc9_c17/gcc/repo/libstdc++-v3/libsupc++/eh_globals.cc:104: undefined reference to `__gthread_key_delete'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(guard.o): In function `_ZN9__gnu_cxx17__recursive_mutexC4Ev':
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/concurrence.h:186: undefined reference to `__gthread_active_p'
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/concurrence.h:187: undefined reference to `__gthread_recursive_mutex_init'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(guard.o): In function `__cxa_guard_acquire':
/home/olasr/kod/amiga/adtools_gcc9_c17/gcc/repo/libstdc++-v3/libsupc++/guard.cc:306: undefined reference to `__gthread_active_p'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(guard.o): In function `get_static_mutex':
/home/olasr/kod/amiga/adtools_gcc9_c17/gcc/repo/libstdc++-v3/libsupc++/guard.cc:66: undefined reference to `__gthread_once'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(guard.o): In function `__gnu_cxx::__recursive_mutex::lock()':
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/concurrence.h:202: undefined reference to `__gthread_active_p'
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/concurrence.h:204: undefined reference to `__gthread_recursive_mutex_lock'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(guard.o): In function `__gnu_cxx::__recursive_mutex::unlock()':
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/concurrence.h:213: undefined reference to `__gthread_active_p'
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/concurrence.h:215: undefined reference to `__gthread_recursive_mutex_unlock'
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/concurrence.h:213: undefined reference to `__gthread_active_p'
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/concurrence.h:215: undefined reference to `__gthread_recursive_mutex_unlock'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(guard.o): In function `__cxa_guard_abort':
/home/olasr/kod/amiga/adtools_gcc9_c17/gcc/repo/libstdc++-v3/libsupc++/guard.cc:382: undefined reference to `__gthread_active_p'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(guard.o): In function `__gnu_cxx::__recursive_mutex::unlock()':
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/concurrence.h:213: undefined reference to `__gthread_active_p'
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/concurrence.h:215: undefined reference to `__gthread_recursive_mutex_unlock'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(guard.o): In function `__cxa_guard_release':
/home/olasr/kod/amiga/adtools_gcc9_c17/gcc/repo/libstdc++-v3/libsupc++/guard.cc:423: undefined reference to `__gthread_active_p'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(guard.o): In function `__gnu_cxx::__recursive_mutex::unlock()':
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/concurrence.h:213: undefined reference to `__gthread_active_p'
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/concurrence.h:215: undefined reference to `__gthread_recursive_mutex_unlock'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(ios_init.o): In function `__exchange_and_add_dispatch':
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/atomicity.h:81: undefined reference to `__gthread_active_p'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(ios_init.o): In function `__atomic_add_dispatch':
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/atomicity.h:95: undefined reference to `__gthread_active_p'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(ios_init.o): In function `__exchange_and_add_dispatch':
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/atomicity.h:81: undefined reference to `__gthread_active_p'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(locale.o): In function `_ZN9__gnu_cxx7__mutexD4Ev':
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/concurrence.h:139: undefined reference to `__gthread_active_p'
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/concurrence.h:140: undefined reference to `__gthread_mutex_destroy'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(locale.o): In function `__gnu_cxx::__mutex::unlock()':
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/concurrence.h:158: undefined reference to `__gthread_active_p'
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/concurrence.h:160: undefined reference to `__gthread_mutex_unlock'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(locale.o): In function `__atomic_add_dispatch':
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/atomicity.h:95: undefined reference to `__gthread_active_p'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(locale.o): In function `std::locale::facet::_S_get_c_locale()':
/home/olasr/kod/amiga/adtools_gcc9_c17/gcc/repo/libstdc++-v3/src/c++98/locale.cc:217: undefined reference to `__gthread_active_p'
/home/olasr/kod/amiga/adtools_gcc9_c17/gcc/repo/libstdc++-v3/src/c++98/locale.cc:218: undefined reference to `__gthread_once'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(locale.o): In function `__exchange_and_add_dispatch':
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/atomicity.h:81: undefined reference to `__gthread_active_p'
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/atomicity.h:81: undefined reference to `__gthread_active_p'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(locale.o): In function `__atomic_add_dispatch':
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/atomicity.h:95: undefined reference to `__gthread_active_p'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(locale.o): In function `__exchange_and_add_dispatch':
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/atomicity.h:81: undefined reference to `__gthread_active_p'
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/atomicity.h:81: undefined reference to `__gthread_active_p'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(locale.o):/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/atomicity.h:95: more undefined references to `__gthread_active_p' follow
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(locale.o): In function `__gnu_cxx::__mutex::lock()':
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/concurrence.h:149: undefined reference to `__gthread_mutex_lock'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(locale.o): In function `__gnu_cxx::__mutex::unlock()':
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/concurrence.h:160: undefined reference to `__gthread_mutex_unlock'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(locale.o): In function `_ZN9__gnu_cxx7__mutexC4Ev':
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/concurrence.h:132: undefined reference to `__gthread_mutex_init'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(locale_init.o): In function `_ZN9__gnu_cxx7__mutexD4Ev':
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/concurrence.h:139: undefined reference to `__gthread_active_p'
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/concurrence.h:140: undefined reference to `__gthread_mutex_destroy'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(locale_init.o): In function `_ZN9__gnu_cxx7__mutexC4Ev':
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/concurrence.h:131: undefined reference to `__gthread_active_p'
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/concurrence.h:132: undefined reference to `__gthread_mutex_init'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(locale_init.o): In function `std::locale::_S_initialize()':
/home/olasr/kod/amiga/adtools_gcc9_c17/gcc/repo/libstdc++-v3/src/c++98/locale_init.cc:322: undefined reference to `__gthread_active_p'
/home/olasr/kod/amiga/adtools_gcc9_c17/gcc/repo/libstdc++-v3/src/c++98/locale_init.cc:323: undefined reference to `__gthread_once'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(locale_init.o): In function `__gnu_cxx::__mutex::lock()':
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/concurrence.h:147: undefined reference to `__gthread_active_p'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(locale_init.o): In function `__atomic_add_dispatch':
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/atomicity.h:95: undefined reference to `__gthread_active_p'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(locale_init.o): In function `__gnu_cxx::__mutex::unlock()':
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/concurrence.h:158: undefined reference to `__gthread_active_p'
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/concurrence.h:160: undefined reference to `__gthread_mutex_unlock'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(locale_init.o): In function `__gnu_cxx::__mutex::lock()':
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/concurrence.h:149: undefined reference to `__gthread_mutex_lock'
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/concurrence.h:147: undefined reference to `__gthread_active_p'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(locale_init.o): In function `__atomic_add_dispatch':
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/atomicity.h:95: undefined reference to `__gthread_active_p'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(locale_init.o): In function `__gnu_cxx::__mutex::unlock()':
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/concurrence.h:158: undefined reference to `__gthread_active_p'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(locale_init.o): In function `__gnu_cxx::__mutex::lock()':
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/concurrence.h:149: undefined reference to `__gthread_mutex_lock'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(locale_init.o): In function `__gnu_cxx::__mutex::unlock()':
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/concurrence.h:160: undefined reference to `__gthread_mutex_unlock'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(cow-locale_init.o): In function `__atomic_add_dispatch':
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/atomicity.h:95: undefined reference to `__gthread_active_p'
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/atomicity.h:95: undefined reference to `__gthread_active_p'
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/atomicity.h:95: undefined reference to `__gthread_active_p'
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/atomicity.h:95: undefined reference to `__gthread_active_p'
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/atomicity.h:95: undefined reference to `__gthread_active_p'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(cow-locale_init.o):/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/atomicity.h:95: more undefined references to `__gthread_active_p' follow
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(eh_alloc.o): In function `__gnu_cxx::__mutex::lock()':
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/concurrence.h:149: undefined reference to `__gthread_mutex_lock'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(eh_alloc.o): In function `__gnu_cxx::__mutex::unlock()':
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/concurrence.h:160: undefined reference to `__gthread_mutex_unlock'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(eh_alloc.o): In function `__gnu_cxx::__mutex::lock()':
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/concurrence.h:147: undefined reference to `__gthread_active_p'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(eh_alloc.o): In function `__gnu_cxx::__mutex::unlock()':
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/concurrence.h:158: undefined reference to `__gthread_active_p'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(eh_alloc.o): In function `__gnu_cxx::__mutex::lock()':
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/concurrence.h:149: undefined reference to `__gthread_mutex_lock'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(eh_alloc.o): In function `__gnu_cxx::__mutex::unlock()':
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/concurrence.h:160: undefined reference to `__gthread_mutex_unlock'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(eh_alloc.o): In function `_ZN9__gnu_cxx7__mutexC4Ev':
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/concurrence.h:131: undefined reference to `__gthread_active_p'
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/concurrence.h:132: undefined reference to `__gthread_mutex_init'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(eh_alloc.o): In function `_ZN9__gnu_cxx7__mutexD4Ev':
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/concurrence.h:139: undefined reference to `__gthread_active_p'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(eh_alloc.o): In function `__static_initialization_and_destruction_0':
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/concurrence.h:140: undefined reference to `__gthread_mutex_destroy'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(stdexcept.o): In function `__exchange_and_add_dispatch':
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/atomicity.h:81: undefined reference to `__gthread_active_p'
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/atomicity.h:81: undefined reference to `__gthread_active_p'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(cow-stdexcept.o): In function `__exchange_and_add_dispatch':
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/atomicity.h:81: undefined reference to `__gthread_active_p'
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/atomicity.h:81: undefined reference to `__gthread_active_p'
/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/atomicity.h:81: undefined reference to `__gthread_active_p'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/../../../libstdc++.a(cow-stdexcept.o):/home/olasr/kod/amiga/adtools_gcc9_c17/native-build/gcc-native-build-9.1.0/ppc-amigaos/libstdc++-v3/include/ext/atomicity.h:81: more undefined references to `__gthread_active_p' follow
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/libgcc_eh.a(unwind-sjlj.o): In function `fc_key_init_once':
/home/olasr/kod/amiga/adtools_gcc9_c17/gcc/repo/libgcc/unwind-sjlj.c:114: undefined reference to `__gthread_once'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/libgcc_eh.a(unwind-sjlj.o): In function `_Unwind_SjLj_GetContext':
/home/olasr/kod/amiga/adtools_gcc9_c17/gcc/repo/libgcc/unwind-sjlj.c:147: undefined reference to `__gthread_getspecific'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/libgcc_eh.a(unwind-sjlj.o): In function `fc_key_init':
/home/olasr/kod/amiga/adtools_gcc9_c17/gcc/repo/libgcc/unwind-sjlj.c:107: undefined reference to `__gthread_key_create'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/libgcc_eh.a(unwind-sjlj.o): In function `_Unwind_SjLj_SetContext':
/home/olasr/kod/amiga/adtools_gcc9_c17/gcc/repo/libgcc/unwind-sjlj.c:160: undefined reference to `__gthread_setspecific'
/home/olasr/kod/amiga/adtools_gcc9_c17/gcc/repo/libgcc/unwind-sjlj.c:160: undefined reference to `__gthread_setspecific'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/libgcc_eh.a(unwind-sjlj.o): In function `_Unwind_SjLj_Register':
/home/olasr/kod/amiga/adtools_gcc9_c17/gcc/repo/libgcc/unwind-sjlj.c:128: undefined reference to `__gthread_getspecific'
/home/olasr/kod/amiga/adtools_gcc9_c17/gcc/repo/libgcc/unwind-sjlj.c:129: undefined reference to `__gthread_setspecific'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/libgcc_eh.a(unwind-sjlj.o): In function `_Unwind_SjLj_SetContext':
/home/olasr/kod/amiga/adtools_gcc9_c17/gcc/repo/libgcc/unwind-sjlj.c:160: undefined reference to `__gthread_setspecific'
/OS/SDK/adtools-os4-9-20210108-716/bin/../lib/gcc/ppc-amigaos/9.1.0/libgcc_eh.a(unwind-sjlj.o): In function `_Unwind_SjLj_GetContext':
/home/olasr/kod/amiga/adtools_gcc9_c17/gcc/repo/libgcc/unwind-sjlj.c:147: undefined reference to `__gthread_getspecific'
/home/olasr/kod/amiga/adtools_gcc9_c17/gcc/repo/libgcc/unwind-sjlj.c:147: undefined reference to `__gthread_getspecific'
/home/olasr/kod/amiga/adtools_gcc9_c17/gcc/repo/libgcc/unwind-sjlj.c:147: undefined reference to `__gthread_getspecific'
@IAMSonic You forget to add -athread=native. Those __ghtread errors coming from that. Strange that it works for gcc8, it should not as well. Or maybe you just have that set in gcc8 envs, and forgot to set now on new env.
People are dying. Entire ecosystems are collapsing. We are in the beginning of a mass extinction. And all you can talk about is money and fairytales of eternal economic growth. How dare you! – Greta Thunberg
-athread=native was added already as a compiler flag but it works now when adding it as linker flag too. Compiling and linking steps are seperated in this makefile. GCC 8 doens't need that but will check GCC 8 envs later.
1. We need our C/C++ stdlib headers to be brought up-to-date with the latest standard. Especially cmath. Newlib is missing multiple functions (log2(), asinh(), etc.). 2. Newlib also has gaps in its POSIX compliance. It's missing basics such as tzset()**