Repository: pytorch
Issue: USE_SYSTEM_CPUINFO: internal symbol `clog_vlog_fatal' isn't defined
Labels: module: build,triaged

## 🐛 Bug

When building PyTorch with `USE_SYSTEM_CPUINFO`, I observe the following error message:
```
[1626/4089] Linking CXX executable bin/vec256_test_all_types_AVX
FAILED: bin/vec256_test_all_types_AVX
: && /home/t-astewart/spack/lib/spack/env/gcc/g++ -Wno-deprecated -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 -Wno-stringop-overflow -DHAVE_AVX_CPU_DEFINITION -DHAVE_AVX2_CPU_DEFINITION -O3 -DNDEBUG -DNDEBUG -rdynamic -Wl,-rpath -Wl,/home/t-astewart/spack/opt/spack/linux-ubuntu18.04-haswell/gcc-7.5.0/hwloc-2.5.0-e7ygv5b2kvnvzl3bxbft2b72xzaqkciu/lib -Wl,-rpath -Wl,/home/t-astewart/spack/opt/spack/linux-ubuntu18.04-haswell/gcc-7.5.0/libevent-2.1.12-p2dxdtdk7dzoe3hifzobmiesuhssfjto/lib -Wl,-rpath -Wl,/home/t-astewart/spack/opt/spack/linux-ubuntu18.04-haswell/gcc-7.5.0/zlib-1.2.11-fegtmskef3daxdtyp3x3m6zz2fjfpxpq/lib -Wl,-rpath -Wl,/home/t-astewart/spack/opt/spack/linux-ubuntu18.04-haswell/gcc-7.5.0/openmpi-4.0.5-7qbqtxj5elk634wyigfpl4uuecfknflk/lib -L/home/t-astewart/spack/opt/spack/linux-ubuntu18.04-haswell/gcc-7.5.0/hwloc-2.5.0-e7ygv5b2kvnvzl3bxbft2b72xzaqkciu/lib -L/home/t-astewart/spack/opt/spack/linux-ubuntu18.04-haswell/gcc-7.5.0/libevent-2.1.12-p2dxdtdk7dzoe3hifzobmiesuhssfjto/lib -L/home/t-astewart/spack/opt/spack/linux-ubuntu18.04-haswell/gcc-7.5.0/zlib-1.2.11-fegtmskef3daxdtyp3x3m6zz2fjfpxpq/lib -pthread caffe2/CMakeFiles/vec256_test_all_types_AVX.dir/__/aten/src/ATen/test/vec256_test_all_types.cpp.o caffe2/CMakeFiles/vec256_test_all_types_AVX.dir/__/aten/src/ATen/native/quantized/affine_quantizer_base.cpp.o -o bin/vec256_test_all_types_AVX  -Wl,-rpath,/tmp/t-astewart/spack-stage/spack-stage-py-torch-1.9.0-xuwj6k5xdsvuh7dytidaetwb6pub75th/spack-src/build/lib:/home/t-astewart/spack/opt/spack/linux-ubuntu18.04-haswell/gcc-7.5.0/cpuinfo-2020-12-17-7uiie72enhshzvaswemwg6h7uu7puraj/lib  lib/libc10.so  -lsleef  lib/libgtest_main.a  lib/libfbgemm.a  lib/libgtest.a  -pthread  lib/libasmjit.a  -lpthread  -lrt  /home/t-astewart/spack/opt/spack/linux-ubuntu18.04-haswell/gcc-7.5.0/cpuinfo-2020-12-17-7uiie72enhshzvaswemwg6h7uu7puraj/lib/libcpuinfo.a && :
/home/t-astewart/spack/opt/spack/linux-ubuntu18.04-haswell/gcc-7.5.0/cpuinfo-2020-12-17-7uiie72enhshzvaswemwg6h7uu7puraj/lib/libcpuinfo.a(api.c.o): In function `cpuinfo_log_fatal':
/tmp/t-astewart/spack-stage/spack-stage-cpuinfo-2020-12-17-7uiie72enhshzvaswemwg6h7uu7puraj/spack-src/src/cpuinfo/log.h:17: undefined reference to `clog_vlog_fatal'
/home/t-astewart/spack/opt/spack/linux-ubuntu18.04-haswell/gcc-7.5.0/cpuinfo-2020-12-17-7uiie72enhshzvaswemwg6h7uu7puraj/lib/libcpuinfo.a(init.c.o): In function `cpuinfo_log_error':
/tmp/t-astewart/spack-stage/spack-stage-cpuinfo-2020-12-17-7uiie72enhshzvaswemwg6h7uu7puraj/spack-src/src/cpuinfo/log.h:16: undefined reference to `clog_vlog_error'
/home/t-astewart/spack/opt/spack/linux-ubuntu18.04-haswell/gcc-7.5.0/cpuinfo-2020-12-17-7uiie72enhshzvaswemwg6h7uu7puraj/lib/libcpuinfo.a(processors.c.o): In function `cpuinfo_log_error':
/tmp/t-astewart/spack-stage/spack-stage-cpuinfo-2020-12-17-7uiie72enhshzvaswemwg6h7uu7puraj/spack-src/src/cpuinfo/log.h:16: undefined reference to `clog_vlog_error'
/home/t-astewart/spack/opt/spack/linux-ubuntu18.04-haswell/gcc-7.5.0/cpuinfo-2020-12-17-7uiie72enhshzvaswemwg6h7uu7puraj/lib/libcpuinfo.a(smallfile.c.o): In function `cpuinfo_log_error':
/tmp/t-astewart/spack-stage/spack-stage-cpuinfo-2020-12-17-7uiie72enhshzvaswemwg6h7uu7puraj/spack-src/src/cpuinfo/log.h:16: undefined reference to `clog_vlog_error'
/usr/bin/ld: bin/vec256_test_all_types_AVX: internal symbol `clog_vlog_fatal' isn't defined
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
```

## To Reproduce

Steps to reproduce the behavior:

1. Set `USE_SYSTEM_CPUINFO`
1. `python setup.py install`

## Expected behavior

I would expect to be able to use a system cpuinfo installation.

## Environment

 - PyTorch Version: 1.9.0
 - OS: Linux (Ubuntu 18.04)
 - How you installed PyTorch: `spack`
 - Build command you used: `python setup.py install`
 - Python version: 3.8.10
 - CUDA/cuDNN version: 10.1.243/8.0.5.39
 - GPU models and configuration: K80 (sm_37)

## Additional context

* [build log](https://github.com/pytorch/pytorch/files/6681020/spack-build-out.txt)
* [build env](https://github.com/pytorch/pytorch/files/6681021/spack-build-env.txt)

cc @malfet @seemethere @walterddr