Neutron3529 opened a new issue #20347:
URL: https://github.com/apache/incubator-mxnet/issues/20347


   ## Description
   It might be a bug with oneDNN, but which affect mxnet in a surprising way:
   since `std::thread::id` does no have a `!=` operator in GCC 11, oneDNN 
failed to compile, when try to solving such problem by switch the gcc version 
to 10, [another error occurs](https://aur.archlinux.org/packages/mxnet/):
   ```
   FAILED: im2rec
   : && /opt/cuda/bin/g++ -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 
-pipe -fno-plt -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe 
-fno-plt -Wall -Wno-unknown-pragmas -Wno-sign-compare -O3 -std=c++11 
-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now 
CMakeFiles/im2rec.dir/tools/im2rec.cc.o -o im2rec -L/opt/cuda/lib64   
-L/opt/cuda/targets/x86_64-linux/lib/stubs   
-L/opt/cuda/targets/x86_64-linux/lib 
-Wl,-rpath,/opt/cuda/lib64/stubs:/opt/cuda/lib64:/home/gnaggnoyil-wsl/.cache/yay/mxnet/src/mxnet-cuda/build/3rdparty/openmp/runtime/src
  -Wl,--whole-archive  libmxnet.a  -Wl,--no-whole-archive  -lcblas  -fopenmp  
/usr/lib/librt.so  3rdparty/openmp/runtime/src/libomp.so  -lpthread  -llapack
     /usr/lib/libcudnn.so  -lcuda  /lib/libnccl.so  
/usr/lib/libopencv_highgui.so.4.5.2  3rdparty/dmlc-core/libdmlc.a  
/usr/lib/libopencv_videoio.so.4.5.2  /usr/lib/libopencv_imgcodecs.so.4.5.2  
/usr/lib/libopencv_imgproc.so.4.5.2  /usr/lib/libopencv_core.so.4.5.2  
-lpthread  /opt/cuda/lib64/libcudart.so  /opt/cuda/lib64/stubs/libcufft.so  
/opt/cuda/lib64/stubs/libcublas.so  /opt/cuda/lib64/stubs/libcusolver.so  
/opt/cuda/lib64/stubs/libcusparse.so  /opt/cuda/lib64/stubs/libcurand.so  
/opt/cuda/lib64/stubs/libnvrtc.so  /opt/cuda/lib64/stubs/libcuda.so  
/opt/cuda/lib64/libnvToolsExt.so  -ldl  -lrt  -lcudadevrt  -lcudart_static  
-lrt  -lpthread  -ldl && :
   /usr/sbin/ld: /usr/lib/libopencv_core.so.4.5.2: undefined reference to 
`std::__exception_ptr::exception_ptr::_M_release()@CXXABI_1.3.13'
   /usr/sbin/ld: /usr/lib/libopencv_imgcodecs.so.4.5.2: undefined reference to 
`std::__throw_bad_array_new_length()@GLIBCXX_3.4.29'
   /usr/sbin/ld: /usr/lib/libopencv_core.so.4.5.2: undefined reference to 
`std::__exception_ptr::exception_ptr::_M_addref()@CXXABI_1.3.13'
   ```
   I have submitted [a PR](https://github.com/oneapi-src/oneDNN/pull/1090) 
about the miscompile of oneDNN, this issue is only intend to tell mxnet team to 
update the oneDNN's version.


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



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to