Crosscat build fails in anaconda environment: "cpp_code/src/weakprng.cpp:314:38: error: ‘UINT64_C’ was not declared in this scope~
Closed this issue · 6 comments
alxempirical commented
Dockerfile and output below.
FROM continuumio/anaconda
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y g++ git libboost-dev
RUN conda install conda-build
# Build crosscat package
RUN conda skeleton pypi crosscat && conda build crosscat && rm -rf crosscat
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Icpp_code/include/CrossCat -I/opt/conda/envs/_build/lib/python2.7/site-packages/numpy/core/include -I/opt/conda/envs/_build/include/python2.7 -c cpp_code/src/weakprng.cpp -o build/temp.linux-x86_64-2.7/cpp_code/src/weakprng.o
cpp_code/src/weakprng.cpp: In function ‘int crypto_weakprng_selftest()’:
cpp_code/src/weakprng.cpp:314:38: error: ‘UINT64_C’ was not declared in this scope
error: command 'gcc' failed with exit status 1
riastradh-probcomp commented
Environment? OS? C compiler?
alxempirical commented
OS is debian wheezy, gcc version is 4.7.2. Full environment is as described in that Dockerfile. I've pushed the image to alxempirical/crosscat-build, in case it's useful. The aborted build is in /crosscat.
root@0170cc6539d5:/# cat /etc/issue
Debian GNU/Linux 7 \n \l
root@0170cc6539d5:/# gcc --version
gcc (Debian 4.7.2-5) 4.7.2
alxempirical commented
I've pushed the image
It's like a gig, though, so it may be faster to build directly.
riastradh-probcomp commented
Guess weakprng.cpp needs #define __STDC_CONSTANT_MACROS
at the top -- not sure why Ubuntu 14.04 / GCC 4.8 doesn't fail this way.
riastradh-probcomp commented
Try again?
alxempirical commented
Thanks. master
now builds in that environment, and I can work with that.