-
Notifications
You must be signed in to change notification settings - Fork 6.8k
C++-Package examples broken #17514
Comments
This comment has been minimized.
This comment has been minimized.
I can't reproduce your error, but I do observe
|
This comment has been minimized.
This comment has been minimized.
I ran bisect, and actually b1e4911 is at fault here: @anirudh2290 note that to reproduce this issue, you need a fresh checkout of the repository.
|
Also need to figure out why CI didn't detect this issue before closing this issue |
This also fails on my machine:
|
|
The problem is that my dev machine runs Arch Linux(rolling releases). But I'm still wondering why compiling and linking with GCC-9.2/CUDA-10.2 + commit ffeebe4 as HEAD works but fails with 230ceee? |
You can see that 230ceee cleans up a lot of code, which probably affects the order in which libraries are linked. As you say, GCC 9.2 is unsupported by Cuda, so it's probably undefined behaviour and worked for some lucky reason with the old build script. Another reason could be that there is a bug in upstream GCC9.2 / linker. Feel free to investigate this further. If there's any bug in our build script, we're happy to update it. Also sorry to take over your issue to track the bug introduced by #16654 |
is this resolved? |
C++ package problem is fixed by #17520. |
try with
|
Description
Compiling clean checkout from github causes multiple
undefined reference
linker errors.This kind of errors usually happen if compilation units are linked together that have been compiled with different C++ standards.
Error Message
/usr/bin/ld: libmxnet.a(c_api.cc.o): in function
MXNDArrayReshape': c_api.cc:(.text+0x56a7): undefined reference to
std::__cxx11::basic_ostringstream<To Reproduce
git clone --recursive https://github.com/olk/incubator-mxnet/
cd incubator-mxnet/
mkdir build && cd build
cmake -DUSE_NCCL=1 -DUSE_CPP_PACKAGE=1 -DCMAKE_BUILD_TYPE=Release -GNinja ..
ninja -v -j 32
What have you tried to solve it?
The issue was introduced by commit:
230ceee Switch to modern CMake CUDA handling (#17031)
The sources can be successfully compiled and linked with ffeebe4 fix int8 add ut (#17166) as HEAD (== the commit before 230ceee).
Environment
The text was updated successfully, but these errors were encountered: