New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compile error using gcc-10.3.0 on Ubuntu 21.04 #63
Comments
I can't reproduce it here with gcc 10.2 on debian/sid. let me know if that avoid the error. |
after checking a bit more it seems that it should become |
Yes, changing |
Apparently this issue was caused not by a gcc update but by glib 2.68. |
Maybe the |
I get this when I try to compile the latest git source, 0.28.3-1667-g819c891e
../src/headers/gx_system.h: In instantiation of ‘bool gx_system::atomic_compare_and_exchange(T**, T*, T*) [with T = _jack_session_event]’: ../src/gx_head/engine/gx_jack.cpp:1110:79: required from here /usr/include/glib-2.0/glib/gatomic.h:206:45: warning: invalid conversion from ‘volatile void*’ to ‘void*’ [-fpermissive] 206 | __atomic_compare_exchange_n ((atomic), &gapcae_oldval, (newval), FALSE, __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST) ? TRUE : FALSE;
and it points to the &gapcae_oldval variable
My C-Fu isn't strong enough to figure out the proper solution but the quick-n-dirty fix was to add -fpermissive to CXXFLAGS in trunk/build/c4che/_cache.py
The text was updated successfully, but these errors were encountered: