Open
Description
Bug
Log:
root@164a9000a4ab:/tmp/scratch/pytorch/build# cmake --build . -- -j1
[1/153] : && /usr/bin/g++-8 -fdebug-prefix-map='/tmp/scratch'='/usr/local/src' -g -march=haswell -mtune=generic -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -fopenmp -DNDEBUG -DUSE_KINETO -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -O2 -fPIC -Wno-narrowing -Wall -Wextra -Werror=return-type -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-result -Wno-unused-local-typedefs -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-psabi -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Werror=cast-function-type -Wno-stringop-overflow -O3 -DNDEBUG -DNDEBUG -rdynamic c10/cuda/test/CMakeFiles/c10_cuda_CUDATest.dir/impl/CUDATest.cpp.o -o bin/c10_cuda_CUDATest -Wl,-rpath,/tmp/scratch/pytorch/build/lib:/usr/local/lib:/usr/local/cuda/lib64: lib/libc10_cuda.so lib/libgtest_main.a lib/libc10.so /usr/local/lib/libglog.so.0.5.0 /usr/local/lib/libgflags.so.2.2.2 -lpthread /usr/local/cuda/lib64/libcudart.so lib/libgtest.a -pthread && :
FAILED: bin/c10_cuda_CUDATest
: && /usr/bin/g++-8 -fdebug-prefix-map='/tmp/scratch'='/usr/local/src' -g -march=haswell -mtune=generic -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -fopenmp -DNDEBUG -DUSE_KINETO -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -O2 -fPIC -Wno-narrowing -Wall -Wextra -Werror=return-type -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-result -Wno-unused-local-typedefs -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-psabi -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Werror=cast-function-type -Wno-stringop-overflow -O3 -DNDEBUG -DNDEBUG -rdynamic c10/cuda/test/CMakeFiles/c10_cuda_CUDATest.dir/impl/CUDATest.cpp.o -o bin/c10_cuda_CUDATest -Wl,-rpath,/tmp/scratch/pytorch/build/lib:/usr/local/lib:/usr/local/cuda/lib64: lib/libc10_cuda.so lib/libgtest_main.a lib/libc10.so /usr/local/lib/libglog.so.0.5.0 /usr/local/lib/libgflags.so.2.2.2 -lpthread /usr/local/cuda/lib64/libcudart.so lib/libgtest.a -pthread && :
lib/libc10.so: undefined reference to `google::glog_internal_namespace_::IsGoogleLoggingInitialized()'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
glog 0.5 is released a few days ago.
IIRC pytorch redefined that func to expose it.
Wondering that's related.
Environment
- PyTorch Version (e.g., 1.0): master
- OS (e.g., Linux): Ubuntu 18.04 / CentOS 7
- How you installed PyTorch (
conda
,pip
, source): source - Build command you used (if compiling from source): cmake+ninja+gcc
- Python version: 3.6
- CUDA/cuDNN version: 11.3