You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/04/23 18:30:23 UTC

[GitHub] sl1pkn07 opened a new issue #10655: cmake warning: You have called ADD_LIBRARY for library mxnet without any source files. This typically indicates a problem with your CMakeLists.txt file

sl1pkn07 opened a new issue #10655: cmake warning: You have called ADD_LIBRARY for library mxnet without any source files. This typically indicates a problem with your CMakeLists.txt file
URL: https://github.com/apache/incubator-mxnet/issues/10655
 
 
   ## Description
   ``
   You have called ADD_LIBRARY for library mxnet without any source files. This typically indicates a problem with your CMakeLists.txt file
   ``
   
   ## Environment info (Required)
   What to do:
   ```
   
   └───╼  LC_ALL=C python diagnose.py 
   ----------Python Info----------
   Version      : 3.6.5
   Compiler     : GCC 7.3.1 20180406
   Build        : ('default', 'Apr 14 2018 13:17:30')
   Arch         : ('64bit', 'ELF')
   ------------Pip Info-----------
   Version      : 9.0.1
   Directory    : /usr/lib/python3.6/site-packages/pip
   ----------MXNet Info-----------
   No MXNet installed.
   ----------System Info----------
   Platform     : Linux-4.16.3-1-ARCH-x86_64-with-arch
   system       : Linux
   node         : sL1pKn07
   release      : 4.16.3-1-ARCH
   version      : #1 SMP PREEMPT Thu Apr 19 09:17:56 UTC 2018
   ----------Hardware Info----------
   machine      : x86_64
   processor    : 
   Architecture:        x86_64
   CPU op-mode(s):      32-bit, 64-bit
   Byte Order:          Little Endian
   CPU(s):              48
   On-line CPU(s) list: 0-47
   Thread(s) per core:  2
   Core(s) per socket:  12
   Socket(s):           2
   NUMA node(s):        2
   Vendor ID:           GenuineIntel
   CPU family:          6
   Model:               79
   Model name:          Genuine Intel(R) CPU 0000 @ 2.20GHz
   Stepping:            0
   CPU MHz:             2196.760
   CPU max MHz:         2400.0000
   CPU min MHz:         1200.0000
   BogoMIPS:            4391.16
   Virtualization:      VT-x
   L1d cache:           32K
   L1i cache:           32K
   L2 cache:            256K
   L3 cache:            30720K
   NUMA node0 CPU(s):   0-11,24-35
   NUMA node1 CPU(s):   12-23,36-47
   Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_l3 cdp_l3 invpcid_single pti intel_ppin tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm cqm rdt_a rdseed adx smap intel_pt xsaveopt cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm ida arat pln pts
   ----------Network Test----------
   Setting timeout: 10
   Timing for MXNet: https://github.com/apache/incubator-mxnet, DNS: 0.0213 sec, LOAD: 0.8931 sec.
   Timing for Gluon Tutorial(en): http://gluon.mxnet.io, DNS: 0.0199 sec, LOAD: 0.0726 sec.
   Timing for Gluon Tutorial(cn): https://zh.gluon.ai, DNS: 0.0273 sec, LOAD: 0.8388 sec.
   Timing for FashionMNIST: https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/gluon/dataset/fashion-mnist/train-labels-idx1-ubyte.gz, DNS: 0.0194 sec, LOAD: 0.8398 sec.
   Timing for PYPI: https://pypi.python.org/pypi/pip, DNS: 0.0195 sec, LOAD: 0.4099 sec.
   Timing for Conda: https://repo.continuum.io/pkgs/free/, DNS: 0.0189 sec, LOAD: 0.1302 sec.
   ```
   NOTE: the processor is a pair of Xeon E5-2650-V4 ES
   
   Compiler (gcc/clang/mingw/visual studio):
   
   cmake 3.10.3
   
   MXNet commit hash:
   `057885d7442de67d6c2ebfb49b5356ba25850204`
   
   Build config:
   ```
     # use system openmp
     rm -fr "${srcdir}/incubator-mxnet/3rdparty/openmp"
   
     # use system gtest
     sed '/GTEST/s/^/#/g' -i "${srcdir}/incubator-mxnet/CMakeLists.txt"
   
     cd "${srcdir}/build"
     cmake ../incubator-mxnet \
       -DCMAKE_BUILD_TYPE=None \
       -DCMAKE_INSTALL_PREFIX=/usr \
       -DCMAKE_INSTALL_LIBDIR=lib \
       -DCMAKE_INSTALL_DOCDIR=share/doc/mxnet \
       -DBUILD_TESTING=OFF \
       -DWITH_TEST=OFF\
       -DBUILD_SHARED_LIBS=ON \
       -DCUDA_HOST_COMPILER=/opt/cuda/bin/gcc \
       -DCUDA_CUDA_LIBRARY=/opt/cuda/lib64/stub/libcuda.so \
       -DUSE_OLDCMAKECUDA=ON \
       -DUSE_CUDNN=ON \
       -DUSE_NCCL=ON \
       -DUSE_OPENCV=ON \
       -DUSE_OPENMP=ON \
       -DUSE_LAPACK=ON \
       -DBUILD_CPP_EXAMPLES=OFF \
       -DCOMPILER_SUPPORT_MF16C=OFF \
   #     -DUSE_CXX14_IF_AVAILABLE=ON
   ```
   
   ## Error Message:
   ``
   You have called ADD_LIBRARY for library mxnet without any source files. This typically indicates a problem with your CMakeLists.txt file
   ``
   
   ## Minimum reproducible example
   run `cmake` with any option
   
   ## Steps to reproduce
   run `cmake` with any option
   
   ## What have you tried to solve it?
   seems is or incomplete or useless:
   
   https://github.com/apache/incubator-mxnet/blob/73d879cf6439eb83b337fcbf6c743dbf385b9766/CMakeLists.txt#L589
   
   
   
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services