olk opened a new issue #17156: failing C++14 compilation for mxnet 1.5.1
URL: https://github.com/apache/incubator-mxnet/issues/17156
 
 
   ## Description
   mxnet compiled with USE_CXX14_IF_AVAILABLE=ON forced compilation error in 
DMLC.
   
   ### Error Message
   ```
   
/home/graemer/.cache/yay/mxnet-git/src/mxnet-git/include/dmlc/thread_group.h:77:26:
 Fehler: »shared_timed_mutex« in Namensbereich »std« bezeichnet keinen Typ
      77 | using SharedMutex = c;
         |                          ^~~~~~~~~~~~~~~~~~
   
/home/graemer/.cache/yay/mxnet-git/src/mxnet-git/include/dmlc/thread_group.h:77:21:
 Anmerkung: »std::shared_timed_mutex« ist erst ab C++14 verfügbar
      77 | using SharedMutex = std::shared_timed_mutex;
   ```
   
   I guess that -std=C++14 isn't correctly passed to DMLC because file 
thread_group.h includes C++1 features (like std::shared_timed_mutex) only if 
   DMLC_USE_CXX14 is defined or __cplusplus > 201103L
   
   I think that __cplusplus > 201103L is misleading because only 201402L does 
identify C++14.
   
   ## Environment
   
   We recommend using our script for collecting the diagnositc information. Run 
the following command and paste the outputs below:
   ```----------Python Info----------
   Version      : 3.8.0
   Compiler     : GCC 9.2.0
   Build        : ('default', 'Oct 23 2019 18:51:26')
   Arch         : ('64bit', 'ELF')
   ------------Pip Info-----------
   Version      : 19.2.3
   Directory    : /usr/lib/python3.8/site-packages/pip
   ----------MXNet Info-----------
   Version      : 1.6.0
   Directory    : /usr/lib/python3.8/site-packages/mxnet
   Num GPUs     : 2
   Hashtag not found. Not installed from pre-built package.
   ----------System Info----------
   Platform     : Linux-5.4.3-arch1-1-x86_64-with-glibc2.2.5
   system       : Linux
   node         : e5lx
   release      : 5.4.3-arch1-1
   version      : #1 SMP PREEMPT Fri, 13 Dec 2019 09:39:02 +0000
   
   ```
   

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

Reply via email to