xumengwei opened a new issue #8707: Fail to build amalgamation for Android in latest version URL: https://github.com/apache/incubator-mxnet/issues/8707 Environment: MacOS, target: Nexus 6 I built the toolchain as follows `python build/tools/make_standalone_toolchain.py --arch arm --api 21 --install-dir /tmp/my-android-toolchain --stl=libc++ --force` And openblas builds successfully. Then I tried to build amalgamation as follows `cd mxnet/amalgamation export PATH=$PATH:yourpath/android-toolchain/bin export CC=arm-linux-androideabi-clang export CXX=arm-linux-androideabi-clang++` Then comes the error `/Users/echo/GoogleDrive/DL/mxnet/amalgamation/../src/storage/./cpu_shared_storage_manager.h:30:10: fatal error: 'sys/fcntl.h' file not found` I replace the #include <sys/fcntl.h> with #include <fcntl.h>, and also add the following DEP to MAKEFILE `DEFS+=-DMSHADOW_USE_CUDA=0 -DMSHADOW_USE_MKL=0 -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=0 -DMSHADOW_USE_SSE=0 -DDMLC_LOG_STACK_TRACE=0 -DMSHADOW_FORCE_STREAM -DMXNET_USE_OPENCV=0 -DMXNET_PREDICT_ONLY=1 -DDISABLE_OPENMP=1 export CFLAGS = -std=c++11 -Wall -O3 -Wno-unknown-pragmas -funroll-loops -Iinclude -fPIC $(DEFS)` Now the expanding works fine, but the compilation still breaks as follows `jni/../mxnet_predict-all.cc:64354:13: error: use of undeclared identifier 'shm_open' fid = shm_open(filename.c_str(), O_EXCL|O_CREAT|O_RDWR, 0666); ^ jni/../mxnet_predict-all.cc:64359:11: error: use of undeclared identifier 'shm_open' fid = shm_open(filename.c_str(), O_RDWR, 0666); ^ jni/../mxnet_predict-all.cc:64394:14: error: use of undeclared identifier 'shm_unlink' CHECK_EQ(shm_unlink(filename.c_str()), 0)` Is there anybody can help me out of this? I've been stuck on this for a long period (:
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services