rimusolem opened a new issue #9780: Build error
URL: https://github.com/apache/incubator-mxnet/issues/9780
 
 
   I got the following error while building mxnet in Arch linux with gcc 7.3.0. 
   ```
   make[3]: Entering directory 
'/home/xxx/LocalPackages/mxnet-without-cuda/src/incubator-mxnet/ps-lite/zeromq-4.1.4'
     CXX      src/libzmq_la-address.lo
   In file included from 
/usr/include/c++/7.3.0/x86_64-pc-linux-gnu/bits/os_defines.h:39:0,
                    from 
/usr/include/c++/7.3.0/x86_64-pc-linux-gnu/bits/c++config.h:533,
                    from /usr/include/c++/7.3.0/string:38,
                    from src/address.hpp:33,
                    from src/address.cpp:31:
   /usr/include/features.h:376:4: error: #warning _FORTIFY_SOURCE requires 
compiling with optimization (-O) [-Werror=cpp]
    #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
       ^~~~~~~
   cc1plus: all warnings being treated as errors
   make[3]: *** [Makefile:2543: src/libzmq_la-address.lo] Error 1
   ```
   I used these options.
   ```
   USE_BLAS=mkl ADD_CFLAGS=-I/opt/intel/mkl/include 
ADD_LDFLAGS=-L/opt/intel/mkl/lib/intel64 USE_LAPACK=1 USE_CPP_PACKAGE=1 
USE_DIST_KVSTORE=1
   ```
   The compilation was successful without `USE_DIST_KVSTORE=1`.

----------------------------------------------------------------
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

Reply via email to