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 2020/03/19 19:03:09 UTC

[GitHub] [incubator-mxnet] guanxinq opened a new issue #17874: Build Error

guanxinq opened a new issue #17874: Build Error
URL: https://github.com/apache/incubator-mxnet/issues/17874
 
 
   ## Description
   There is a build error when I do the following:
   ```
   1. git clone --recursive https://github.com/apache/incubator-mxnet
   2. mkdir build && cd build
   3. cmake -DBLAS=open -DUSE_CUDA=1 -DUSE_CUDA_PATH=/usr/local/cuda -DUSE_CUDNN=1 -DCMAKE_BUILD_TYPE=Release ..
   4. make -j12
   ```
   Error message:
   ```
   /home/ubuntu/last/incubator-mxnet/include/dmlc/concurrentqueue.h: In instantiation of ‘dmlc::moodycamel::ConcurrentQueue<T, Traits>::ImplicitProducer::dequeue(U&)::Guard::~Guard() [with U = mxnet::profiler::ProfileStat*; T = mxnet::profiler::ProfileStat*; Traits = dmlc::moodycamel::ConcurrentQueueDefaultTraits]’:
   /home/ubuntu/last/incubator-mxnet/include/dmlc/concurrentqueue.h:2569:1:   required from ‘bool dmlc::moodycamel::ConcurrentQueue<T, Traits>::ImplicitProducer::dequeue(U&) [with U = mxnet::profiler::ProfileStat*; T = mxnet::profiler::ProfileStat*; Traits = dmlc::moodycamel::ConcurrentQueueDefaultTraits]’
   /home/ubuntu/last/incubator-mxnet/include/dmlc/concurrentqueue.h:1663:67:   required from ‘bool dmlc::moodycamel::ConcurrentQueue<T, Traits>::ProducerBase::dequeue(U&) [with U = mxnet::profiler::ProfileStat*; T = mxnet::profiler::ProfileStat*; Traits = dmlc::moodycamel::ConcurrentQueueDefaultTraits]’
   /home/ubuntu/last/incubator-mxnet/include/dmlc/concurrentqueue.h:1066:20:   required from ‘bool dmlc::moodycamel::ConcurrentQueue<T, Traits>::try_dequeue(U&) [with U = mxnet::profiler::ProfileStat*; T = mxnet::profiler::ProfileStat*; Traits = dmlc::moodycamel::ConcurrentQueueDefaultTraits]’
   /home/ubuntu/last/incubator-mxnet/src/operator/./../profiler/./profiler.h:227:28:   required from here
   /home/ubuntu/last/incubator-mxnet/include/dmlc/concurrentqueue.h:2566:65: error: cannot call member function ‘void dmlc::moodycamel::ConcurrentQueue<T, Traits>::add_block_to_free_list(dmlc::moodycamel::ConcurrentQueue<T, Traits>::Block*) [with T = mxnet::profiler::ProfileStat*; Traits = dmlc::moodycamel::ConcurrentQueueDefaultTraits]’ without object
                      parent->add_block_to_free_list(block);
                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~        ^      
   CMakeFiles/mxnet_static.dir/build.make:6783: recipe for target 'CMakeFiles/mxnet_static.dir/src/operator/rnn.cu.o' failed
   make[2]: *** [CMakeFiles/mxnet_static.dir/src/operator/rnn.cu.o] Error 1
   make[2]: *** Waiting for unfinished jobs....
   ```
   Environment:
   AWS G4 instance with Ubuntu 18.04.
   

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


With regards,
Apache Git Services

[GitHub] [incubator-mxnet] apeforest commented on issue #17874: Build Error

Posted by GitBox <gi...@apache.org>.
apeforest commented on issue #17874: Build Error
URL: https://github.com/apache/incubator-mxnet/issues/17874#issuecomment-601475147
 
 
   @guanxinq can you post your env using the diagnose.py. I don't find any error when building on DLAMI 26.0
   

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


With regards,
Apache Git Services

[GitHub] [incubator-mxnet] lilongyue commented on issue #17874: Build Error

Posted by GitBox <gi...@apache.org>.
lilongyue commented on issue #17874: Build Error
URL: https://github.com/apache/incubator-mxnet/issues/17874#issuecomment-609426665
 
 
   @guanxinq @leezu @apeforest @ry  , this looks like a strange thing can anyone explain why ?

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


With regards,
Apache Git Services

[GitHub] [incubator-mxnet] lilongyue commented on issue #17874: Build Error

Posted by GitBox <gi...@apache.org>.
lilongyue commented on issue #17874: Build Error
URL: https://github.com/apache/incubator-mxnet/issues/17874#issuecomment-609421041
 
 
   @leezu @apeforest  i think i got the same build bug in the latest repository.
   i changed nothing of the cMakeLists.txt , i imported the whole project to my clion ide workspace and build 
   the mxnet target.
   some of my environment:
   gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1) 
   nvcc: NVIDIA (R) Cuda compiler driver
   Copyright (c) 2005-2019 NVIDIA Corporation
   Built on Fri_Feb__8_19:08:17_PST_2019
   Cuda compilation tools, release 10.1, V10.1.105
   
   
   
   
   /workspace/cppworkspace/incubator-mxnet/include/dmlc/concurrentqueue.h: In instantiation of ‘dmlc::moodycamel::ConcurrentQueue<T, Traits>::ImplicitProducer::dequeue(U&)::Guard::~Guard() [with U = mxnet::profiler::ProfileStat*; T = mxnet::profiler::ProfileStat*; Traits = dmlc::moodycamel::ConcurrentQueueDefaultTraits]’:
   /workspace/cppworkspace/incubator-mxnet/include/dmlc/concurrentqueue.h:2569:1:   required from ‘bool dmlc::moodycamel::ConcurrentQueue<T, Traits>::ImplicitProducer::dequeue(U&) [with U = mxnet::profiler::ProfileStat*; T = mxnet::profiler::ProfileStat*; Traits = dmlc::moodycamel::ConcurrentQueueDefaultTraits]’
   /workspace/cppworkspace/incubator-mxnet/include/dmlc/concurrentqueue.h:1663:67:   required from ‘bool dmlc::moodycamel::ConcurrentQueue<T, Traits>::ProducerBase::dequeue(U&) [with U = mxnet::profiler::ProfileStat*; T = mxnet::profiler::ProfileStat*; Traits = dmlc::moodycamel::ConcurrentQueueDefaultTraits]’
   /workspace/cppworkspace/incubator-mxnet/include/dmlc/concurrentqueue.h:1066:20:   required from ‘bool dmlc::moodycamel::ConcurrentQueue<T, Traits>::try_dequeue(U&) [with U = mxnet::profiler::ProfileStat*; T = mxnet::profiler::ProfileStat*; Traits = dmlc::moodycamel::ConcurrentQueueDefaultTraits]’
   /workspace/cppworkspace/incubator-mxnet/src/operator/./../profiler/./profiler.h:227:28:   required from here
   /workspace/cppworkspace/incubator-mxnet/include/dmlc/concurrentqueue.h:2566:65: error: cannot call member function ‘void dmlc::moodycamel::ConcurrentQueue<T, Traits>::add_block_to_free_list(dmlc::moodycamel::ConcurrentQueue<T, Traits>::Block*) [with T = mxnet::profiler::ProfileStat*; Traits = dmlc::moodycamel::ConcurrentQueueDefaultTraits]’ without object
                      parent->add_block_to_free_list(block);
                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~        ^      
   CMakeFiles/mxnet_static.dir/build.make:6904: recipe for target 'CMakeFiles/mxnet_static.dir/src/operator/rnn.cu.o' failed
   
   

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


With regards,
Apache Git Services

[GitHub] [incubator-mxnet] yajiedesign commented on issue #17874: Build Error

Posted by GitBox <gi...@apache.org>.
yajiedesign commented on issue #17874: Build Error
URL: https://github.com/apache/incubator-mxnet/issues/17874#issuecomment-602317830
 
 
   same error with msvc. but it's just a simple grammatical mistake.change `xxx->ConcurrentQueue::Block::template xxx()` to `xxx->template xxx()`

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


With regards,
Apache Git Services

[GitHub] [incubator-mxnet] apeforest commented on issue #17874: Build Error

Posted by GitBox <gi...@apache.org>.
apeforest commented on issue #17874: Build Error
URL: https://github.com/apache/incubator-mxnet/issues/17874#issuecomment-601415458
 
 
   @guanxinq the build steps you used are outdated. Please follow the one at:
   https://mxnet.apache.org/get_started/ubuntu_setup
   
   @leezu I think we may want to remove this page to avoid confusion:
   https://mxnet.apache.org/get_started/build_from_source
   

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


With regards,
Apache Git Services

[GitHub] [incubator-mxnet] lilongyue commented on issue #17874: Build Error

Posted by GitBox <gi...@apache.org>.
lilongyue commented on issue #17874: Build Error
URL: https://github.com/apache/incubator-mxnet/issues/17874#issuecomment-609425157
 
 
   @guanxinq @leezu @apeforest @ry 
   i checked the code , and i simply change this line  in the file :
   'incubator-mxnet/include/dmlc/concurrentqueue.h'
   from :
   parent->add_block_to_free_list(block);
   to:
   (*parent).add_block_to_free_list(block);
   
   then all things find build success!
   
      

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


With regards,
Apache Git Services

[GitHub] [incubator-mxnet] yajiedesign removed a comment on issue #17874: Build Error

Posted by GitBox <gi...@apache.org>.
yajiedesign removed a comment on issue #17874: Build Error
URL: https://github.com/apache/incubator-mxnet/issues/17874#issuecomment-602317830
 
 
   same error with msvc. but it's just a simple grammatical mistake.change `xxx->ConcurrentQueue::Block::template xxx()` to `xxx->template xxx()`

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


With regards,
Apache Git Services

[GitHub] [incubator-mxnet] guanxinq commented on issue #17874: Build Error

Posted by GitBox <gi...@apache.org>.
guanxinq commented on issue #17874: Build Error
URL: https://github.com/apache/incubator-mxnet/issues/17874#issuecomment-601465572
 
 
   @apeforest I followed the instructions from https://mxnet.apache.org/get_started/ubuntu_setup. The CPU build succeed, while GPU build failed with the same error. 
   Also I agree that we should remove the outdated docs if possible.

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


With regards,
Apache Git Services

[GitHub] [incubator-mxnet] leezu edited a comment on issue #17874: Build Error

Posted by GitBox <gi...@apache.org>.
leezu edited a comment on issue #17874: Build Error
URL: https://github.com/apache/incubator-mxnet/issues/17874#issuecomment-601481160
 
 
   @guanxinq the doc should work, but it's not optimal. Any contributions are welcome.
   
   Again, if you don't provide us with your build and configuration log you can't expect any assistance with this issue.

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


With regards,
Apache Git Services

[GitHub] [incubator-mxnet] leezu commented on issue #17874: Build Error

Posted by GitBox <gi...@apache.org>.
leezu commented on issue #17874: Build Error
URL: https://github.com/apache/incubator-mxnet/issues/17874#issuecomment-601397858
 
 
   Please post complete logs of build and configuration.

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


With regards,
Apache Git Services

[GitHub] [incubator-mxnet] leezu commented on issue #17874: Build Error

Posted by GitBox <gi...@apache.org>.
leezu commented on issue #17874: Build Error
URL: https://github.com/apache/incubator-mxnet/issues/17874#issuecomment-601481160
 
 
   @guanxinq the doc should work.
   
   Again, if you don't provide us with your build and configuration log you can't expect any assistance with this issue.

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


With regards,
Apache Git Services