Closed maxnbk closed 4 years ago
Linked with RH3DM-77
Try updating GCC to version 7 or 8. Our Python 2 CI builds currently run on Ubuntu with GCC 7.4 and our Python 3 builds run on Debian with GCC 8.3.
Change of compiler has little to do with error that is happening here:
/tmp/pip-req-build-BYVT7S/src/bindings/../lib/opennurbs/opennurbs_lock.h:118:44: error: use of deleted function ‘std::atomic<int>::atomic(const std::atomic<int>&)’
std::atomic<int> m_lock_value = ON_Lock::UnlockedValue;
Solution is to change assignment to direct initialization, then all those preprocessor ifs with clang can go out. I have been playing with it here: https://github.com/mcneel/opennurbs/commit/6e4070418b6829c41cc283a4f3e89314d5069d24
Thanks for the suggestion @bareya – I'll pass it along to my colleagues who look after opennurbs.
In the meantime, I managed to install the rhino3dm package via pip (Python 3) on Centos 7 using gcc 7.3.1.
yum install centos-release-scl
yum install devtoolset-7-gcc*
scl enable devtoolset-7 bash
pip3 install -vv rhino3dm
exit
Closed via RH3DM-77
same error with both py2.7 and py3.7, gcc-4, gcc-6, llvm-9