juliusshufan commented on issue #14755: Build on Linux will fail if "test" option used URL: https://github.com/apache/incubator-mxnet/issues/14755#issuecomment-486536861 @larroy Thanks for the follow-up, at my side, the compilation is successful with gcc6.3.1 on using make -j USE_OPENCV=1 USE_MKLDNN=1 USE_BLAS=openblas test But it will fail on gcc 4.8.5/5.3.1, logs as below. seems it more like a GCC compatibility issue. If the GCC4.8.5 is still the minimum requirement for MXNet, could you please try with gcc 4/5. USE_BLAS=open: #gcc5.3.1) 60 g++ -c -std=c++11 -Wall -O2 -Iinclude -fPIC -I../include -I../3rdparty/dlpack/include -I../3rdparty/HalideIR/src -I../topi/include -I/home/torch/workspace/sourc e/incubator-mxnet/3rdparty/dmlc-core/include -c src/pass/plan_memory.cc -o build/src/pass/plan_memory.o 61 In file included from 3rdparty/googletest/googletest/include/gtest/internal/gtest-internal.h:40:0, 62 from 3rdparty/googletest/googletest/include/gtest/gtest.h:60, 63 from 3rdparty/googletest/googletest//src/gtest-all.cc:38: 64 3rdparty/googletest/googletest/include/gtest/internal/gtest-port.h:830:12: error: ‘std::get’ has not been declared 65 using std::get; 66 ^ 67 3rdparty/googletest/googletest/include/gtest/internal/gtest-port.h:831:12: error: ‘std::make_tuple’ has not been declared 68 using std::make_tuple; 69 ^ 70 3rdparty/googletest/googletest/include/gtest/internal/gtest-port.h:832:12: error: ‘std::tuple’ has not been declared 71 using std::tuple; #gcc4.8.5) 42 /usr/include/c++/4.8.2/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is c urrently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options. 43 #error This file requires compiler and library support for the \ 44 ^ 45 ^M 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0In file included from 3rdparty/googletest/googletest/include/gtest/internal/gtes t-internal.h:40:0, 46 from 3rdparty/googletest/googletest/include/gtest/gtest.h:60, 47 from 3rdparty/googletest/googletest//src/gtest-all.cc:38: 48 3rdparty/googletest/googletest/include/gtest/internal/gtest-port.h:830:12: error: ‘std::get’ has not been declared 49 using std::get; 50 ^ 51 3rdparty/googletest/googletest/include/gtest/internal/gtest-port.h:831:12: error: ‘std::make_tuple’ has not been declared USE_BLAS=openblas: #gcc5.3.1) 41 /opt/rh/devtoolset-4/root/usr/include/c++/5.3.1/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options. 42 #error This file requires compiler and library support \ 43 ^ 44 % Total % Received % Xferd Average Speed Time Time Time Current 45 Dload Upload Total Spent Left Speed 46 ^M 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0g++ -c -std=c++11 -Wall -O2 -Iinclude -fPIC -I../include -I../3rdparty/dlpack/in clude -I../3rdparty/HalideIR/src -I../topi/include -I/home/torch/workspace/source/incubator-mxnet/3rdparty/dmlc-core/include -c src/core/node.cc -o build/src/c ore/node.o #gcc4.8.5) 22 /usr/include/c++/4.8.2/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is c urrently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options. 23 #error This file requires compiler and library support for the \ 24 ^ 25 g++ -c -O3 -Wall -Wno-unknown-pragmas -Iinclude -std=c++0x -fopenmp -fPIC -DDMLC_USE_HDFS=0 -DDMLC_USE_S3=0 -DDMLC_USE_AZURE=0 -msse2 -o recordio.o src/recordi o.cc
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
