apache / mxnet

Lightweight, Portable, Flexible Distributed/Mobile Deep Learning with Dynamic, Mutation-aware Dataflow Dep Scheduler; for Python, R, Julia, Scala, Go, Javascript and more
https://mxnet.apache.org
Apache License 2.0
20.78k stars 6.79k forks source link

Can't build in debug mode with Make #15789

Open larroy opened 5 years ago

larroy commented 5 years ago

Description

Can't build in debug mode with Make.

Environment info (Required)

----------Python Info----------
('Version      :', '2.7.15+')
('Compiler     :', 'GCC 7.3.0')
('Build        :', ('default', 'Nov 27 2018 23:36:35'))
('Arch         :', ('64bit', ''))
------------Pip Info-----------
No corresponding pip install for current python.
----------MXNet Info-----------
No MXNet installed.
----------System Info----------
('Platform     :', 'Linux-4.15.0-1044-aws-x86_64-with-Ubuntu-18.04-bionic')
('system       :', 'Linux')
('node         :', 'ip-172-31-21-194')
('release      :', '4.15.0-1044-aws')
('version      :', '#46-Ubuntu SMP Thu Jul 4 13:38:28 UTC 2019')
----------Hardware Info----------
('machine      :', 'x86_64')
('processor    :', 'x86_64')
Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              8
On-line CPU(s) list: 0-7
Thread(s) per core:  2
Core(s) per socket:  4
Socket(s):           1
NUMA node(s):        1
Vendor ID:           GenuineIntel
CPU family:          6
Model:               79
Model name:          Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz
Stepping:            1
CPU MHz:             2699.804
CPU max MHz:         3000.0000
CPU min MHz:         1200.0000
BogoMIPS:            4600.08
Hypervisor vendor:   Xen
Virtualization type: full
L1d cache:           32K
L1i cache:           32K
L2 cache:            256K
L3 cache:            46080K
NUMA node0 CPU(s):   0-7
Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch cpuid_fault invpcid_single pti fsgsbase bmi1 hle avx2 smep bmi2 erms invpcid rtm rdseed adx xsaveopt
----------Network Test----------
Setting timeout: 10
Timing for MXNet: https://github.com/apache/incubator-mxnet, DNS: 0.0026 sec, LOAD: 0.6484 sec.
Timing for PYPI: https://pypi.python.org/pypi/pip, DNS: 0.0031 sec, LOAD: 0.3433 sec.
Timing for FashionMNIST: https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/gluon/dataset/fashion-mnist/train-labels-idx1-ubyte.gz, DNS: 0.0067 sec, LOAD: 0.0846 sec.
Timing for Conda: https://repo.continuum.io/pkgs/free/, DNS: 0.0095 sec, LOAD: 0.0843 sec.
Timing for Gluon Tutorial(en): http://gluon.mxnet.io, DNS: 0.0466 sec, LOAD: 0.0871 sec.
Timing for Gluon Tutorial(cn): https://zh.gluon.ai, DNS: 0.2034 sec, LOAD: 0.2443 sec.

Package used (Python/R/Scala/Julia): (I'm using ...)

For Scala user, please provide:

  1. Java version: (java -version)
  2. Maven version: (mvn -version)
  3. Scala runtime if applicable: (scala -version)

For R user, please provide R sessionInfo():

Build info (Required if built from source)

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.4.0-1ubuntu1~18.04.1' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1) 

MXNet commit hash:

commit a2b11aed6851c20f7fcf419849dbb3f4b8c4c192 (HEAD -> master, upstream/master)

Build config: (Paste the content of config.mk, or the build command.)

piotr@ip-172-31-21-194:0: ~/mxnet_master_make_debug [master]> diff config.mk make/config.mk 
51c51
< DEV = 1
---
> DEV = 0
54c54
< DEBUG = 1
---
> DEBUG = 0
73c73
< USE_CUDA = 1
---
> USE_CUDA = 0
77,78c77,78
< USE_CUDA_PATH = /usr/local/cuda
< #USE_CUDA_PATH = NONE
---
> # USE_CUDA_PATH = /usr/local/cuda
> USE_CUDA_PATH = NONE

Error Message:

(Paste the complete error message, including stack trace.)

=1 -DUSE_MKL=1 -I/home/piotr/mxnet_master_make_debug/src/operator/nn/mkldnn/ -I/home/piotr/mxnet_master_make_debug/3rdparty/mkldnn/build/install/include -DMXNET_USE_OPENCV=1 -I/usr/include/opencv -fopenmp -DMXNET_USE_OPENMP=1 -DMXNET_USE_OPERATOR_TUNING=1 -DMSHADOW_INT64_TENSOR_SIZE=0 -DMXNET_USE_BLAS_ATLAS=1 -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -DUSE_JEMALLOC  -I/home/piotr/mxnet_master_make_debug/3rdparty/nvidia_cub -DMXNET_ENABLE_CUDA_RTC=1 -DMXNET_USE_NCCL=0 -DMXNET_USE_LIBJPEG_TURBO=0 -MMD -c src/operator/batch_norm_v1.cc -o build/src/operator/batch_norm_v1.o
ccache g++ -std=c++11 -c -DMSHADOW_FORCE_STREAM -Wall -Wsign-compare -g -Werror -g -O0 -D_GLIBCXX_ASSERTIONS -I/home/piotr/mxnet_master_make_debug/3rdparty/mshadow/ -I/home/piotr/mxnet_master_make_debug/3rdparty/dmlc-core/include -fPIC -I/home/piotr/mxnet_master_make_debug/3rdparty/tvm/nnvm/include -I/home/piotr/mxnet_master_make_debug/3rdparty/dlpack/include -I/home/piotr/mxnet_master_make_debug/3rdparty/tvm/include -Iinclude -funroll-loops -Wno-unused-parameter -Wno-unknown-pragmas -Wno-unused-local-typedefs -msse3 -mf16c -I/usr/local/cuda/include -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -I/home/piotr/mxnet_master_make_debug/3rdparty/mkldnn/build/install/include -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=0 -DMSHADOW_USE_PASCAL=0 -DMXNET_USE_MKLDNN=1 -DUSE_MKL=1 -I/home/piotr/mxnet_master_make_debug/src/operator/nn/mkldnn/ -I/home/piotr/mxnet_master_make_debug/3rdparty/mkldnn/build/install/include -DMXNET_USE_OPENCV=1 -I/usr/include/opencv -fopenmp -DMXNET_USE_OPENMP=1 -DMXNET_USE_OPERATOR_TUNING=1 -DMSHADOW_INT64_TENSOR_SIZE=0 -DMXNET_USE_BLAS_ATLAS=1 -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -DUSE_JEMALLOC  -I/home/piotr/mxnet_master_make_debug/3rdparty/nvidia_cub -DMXNET_ENABLE_CUDA_RTC=1 -DMXNET_USE_NCCL=0 -DMXNET_USE_LIBJPEG_TURBO=0 -MMD -c src/operator/sequence_mask.cc -o build/src/operator/sequence_mask.o
src/operator/c_lapack_api.cc:59:0: error: "MXNET_LAPACK_CWRAPPER5" redefined [-Werror]
   #define MXNET_LAPACK_CWRAPPER5(func, dtype) \

In file included from src/operator/c_lapack_api.cc:20:0:
src/operator/c_lapack_api.h:420:0: note: this is the location of the previous definition
   #define MXNET_LAPACK_CWRAPPER5(func, dtype) \

src/operator/c_lapack_api.cc:28:25: note: #pragma message: Warning: lapack usage not enabled, linalg-operators will not be available. Ensure that lapack library is installed and build with USE_LAPACK=1 to get lapack functionalities.
      " functionalities.")
                         ^
cc1plus: all warnings being treated as errors
Makefile:540: recipe for target 'build/src/operator/c_lapack_api.o' failed
make: *** [build/src/operator/c_lapack_api.o] Error 1
make: *** Waiting for unfinished jobs....

Minimum reproducible example

(If you are using your own code, please provide a short script that reproduces the error. Otherwise, please provide link to the existing example.)

Steps to reproduce

nice -n19 make -j(nproc)

What have you tried to solve it?

Nothing so far.

mxnet-label-bot commented 5 years ago

Hey, this is the MXNet Label Bot. Thank you for submitting the issue! I will try and suggest some labels so that the appropriate MXNet community members can help resolve it. Here are my recommended labels: Build

larroy commented 5 years ago

@mxnet-label-bot add [Bug]

larroy commented 5 years ago

@mxnet-label-bot add [Build]