paulross/skiplist

can not install from pip or with `setup.py`

Closed this issue · 2 comments

I got the same error src/cpp/Node.h:21: error: ignoring ‘#pragma mark ’ [-Werror=unknown-pragmas] as in #8 when install from pip

Then I install with USING_GCC=1, but I got:

$ USING_GCC=1 python setup.py install
running install
running bdist_egg
running egg_info
writing orderedstructs.egg-info/PKG-INFO
writing dependency_links to orderedstructs.egg-info/dependency_links.txt
writing top-level names to orderedstructs.egg-info/top_level.txt
reading manifest file 'orderedstructs.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'orderedstructs.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_ext
building 'orderedstructs' extension
/home/auderson/miniconda3/bin/x86_64-conda-linux-gnu-cc -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -Wstrict-prototypes -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/auderson/miniconda3/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/auderson/miniconda3/include -fPIC -I. -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1 -I/home/auderson/miniconda3/include/python3.8 -c src/cpy/cOrderedStructs.cpp -o build/temp.linux-x86_64-3.8/src/cpy/cOrderedStructs.o -Wall -Wextra -Werror -Wfatal-errors -Wno-c++11-compat-deprecated-writable-strings -std=c++11 -Isrc/cpp -USKIPLIST_THREAD_SUPPORT -Wno-stdlibcxx-not-found -Wno-unknown-pragmas -Wno-cast-function-type -Wno-missing-field-initializers -g3 -O2 -DNDEBUG
cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
cc1plus: error: unrecognized command line option '-Wno-stdlibcxx-not-found' [-Werror]
compilation terminated due to -Wfatal-errors.
cc1plus: all warnings being treated as errors
error: command '/home/auderson/miniconda3/bin/x86_64-conda-linux-gnu-cc' failed with exit status 1

gcc version

$ gcc --version
gcc (GCC) 4.8.5
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

upgrade gcc solved this issue

Great, thanks that fixed it!