Skip to content
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

Will not compile on base Centos 7. #4

Open
stiffwind opened this issue Feb 7, 2018 · 0 comments
Open

Will not compile on base Centos 7. #4

stiffwind opened this issue Feb 7, 2018 · 0 comments

Comments

@stiffwind
Copy link

Is there a minimum requirement for gcc or some other pacakage(s)? This failes duing the compilation phase on stock Centos 7 with stock python 3.4.

pip3 install cyrandom

Collecting cyrandom
Using cached cyrandom-0.3.0.tar.gz
Installing collected packages: cyrandom
Running setup.py install for cyrandom ... error
Complete output from command /usr/bin/python3.4 -u -c "import setuptools, tokenize;file='/tmp/pip-build-5enle9y_/cyrandom/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-man5zaz6-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.4
creating build/lib.linux-x86_64-3.4/cyrandom
copying cyrandom/init.py -> build/lib.linux-x86_64-3.4/cyrandom
copying cyrandom/cyrandom.pxd -> build/lib.linux-x86_64-3.4/cyrandom
copying cyrandom/init.pxd -> build/lib.linux-x86_64-3.4/cyrandom
running build_ext
building 'cyrandom.cyrandom' extension
creating build/temp.linux-x86_64-3.4
creating build/temp.linux-x86_64-3.4/cyrandom
gcc -pthread -Wno-unused-result -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python3.4m -c cyrandom/cyrandom.c -o build/temp.linux-x86_64-3.4/cyrandom/cyrandom.o
gcc -pthread -Wno-unused-result -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python3.4m -c cyrandom/_mersenne.c -o build/temp.linux-x86_64-3.4/cyrandom/_mersenne.o
gcc -pthread -Wno-unused-result -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python3.4m -c cyrandom/_seed.c -o build/temp.linux-x86_64-3.4/cyrandom/_seed.o
cyrandom/_seed.c: In function ârandom_seed_time_pidâ:
cyrandom/_seed.c:22:3: error: unknown type name â_PyTime_tâ
_PyTime_t now;
^
cyrandom/_seed.c:25:3: warning: implicit declaration of function â_PyTime_GetSystemClockâ [-Wimplicit-function-declaration]
now = _PyTime_GetSystemClock();
^
cyrandom/_seed.c:27:3: warning: right shift count >= width of type [enabled by default]
key[1] = (unsigned long)(now >> 32);
^
cyrandom/_seed.c:31:3: warning: implicit declaration of function â_PyTime_GetMonotonicClockâ [-Wimplicit-function-declaration]
now = _PyTime_GetMonotonicClock();
^
cyrandom/_seed.c:33:3: warning: right shift count >= width of type [enabled by default]
key[4] = (unsigned long)(now >> 32);
^
error: command 'gcc' failed with exit status 1

----------------------------------------

Command "/usr/bin/python3.4 -u -c "import setuptools, tokenize;file='/tmp/pip-build-5enle9y_/cyrandom/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-man5zaz6-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-5enle9y_/cyrandom/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant