Oneflow-Inc / oneflow

OneFlow is a deep learning framework designed to be user-friendly, scalable and efficient.
http://www.oneflow.org
Apache License 2.0
5.88k stars 666 forks source link

Build error with "CPU only" on macOS #3453

Open GHGmc2 opened 4 years ago

GHGmc2 commented 4 years ago

$ cd build $ cmake .. -DPython3_EXECUTABLE=/opt/anaconda3/envs/py36/bin/python -DBUILD_CUDA=OFF -DBUILD_TESTING=OFF $ make


- error

[ 5%] Creating directories for 'cocoapi' [ 5%] Performing download step (git clone) for 'cocoapi' -- Avoiding repeated git clone, stamp file is up to date: '/Users/user/CLionProjects/oneflow/build/cocoapi/src/cocoapi-stamp/cocoapi-gitclone-lastrun.txt' [ 5%] No patch step for 'cocoapi' [ 5%] No update step for 'cocoapi' [ 5%] No configure step for 'cocoapi' [ 5%] Performing build step for 'cocoapi' common/maskApi.c:8:10: fatal error: 'math.h' file not found

include

     ^~~~~~~~

1 error generated. make[2]: [cocoapi/src/cocoapi-stamp/cocoapi-build] Error 1 make[1]: [CMakeFiles/cocoapi.dir/all] Error 2 make: *** [all] Error 2

yuanms2 commented 4 years ago

@jackalcooper could we reproduce the issue?

jackalcooper commented 4 years ago

@yuanms2 yes I have reproduced it. I found a workaround but blocked by other issues later.

rogerdehe commented 3 years ago

this is caused by Catalina, I find solution in StackOverflow. But I still have problem with epoll.h, can we support kqueue?