paulross/skiplist

pragma mark on gcc 11.4.0

Opened this issue · 0 comments

13MaxG commented

When running pip install orderedstructs I got

In file included from src/cpp/SkipList.h:546,
from src/cpp/SkipList.cpp:15:
src/cpp/Node.h:47: error: ignoring ‘#pragma mark ’ [-Werror=unknown-pragmas]
47 | #pragma mark -
| compilation terminated due to -Wfatal-errors.

on my Ubuntu with gcc 11.4.0

Quick workaround was to

pip install orderedstructs --no-clean --verbose 
cd /tmp/pip-install-2trguabw/orderedstructs_9e35897d0af3405b8af47356cb93a4e4/
vi setup.py  
python setup.py bdist_wheel
python setup.py install

Where these two lines are removed from setup.py

    '-Werror',
    '-Wfatal-errors',