Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building on archlinux fails with include error #8307

Open
binarynoise opened this issue Mar 12, 2024 · 8 comments
Open

Building on archlinux fails with include error #8307

binarynoise opened this issue Mar 12, 2024 · 8 comments

Comments

@binarynoise
Copy link

binarynoise commented Mar 12, 2024

🐛 Describe the bug

Building on archlinux with venv --system-site-packages fails with a include error related to <glog/logging.h>

python -m venv --system-site-packages venv
source venv/bin/activate
MAX_JOBS=1 LANG=C python setup.py install > log.txt 2>&1

log.txt

Building in a venv without system site packages fails too.

Versions

Collecting environment information...
PyTorch version: 2.2.0
Is debug build: False
CUDA used to build PyTorch: N/A
ROCM used to build PyTorch: 6.0.32830-

OS: Arch Linux (x86_64)
GCC version: (GCC) 13.2.1 20230801
Clang version: Could not collect
CMake version: version 3.28.3
Libc version: glibc-2.39

Python version: 3.11.8 (main, Feb 12 2024, 14:50:05) [GCC 13.2.1 20230801] (64-bit runtime)
Python platform: Linux-6.7.9-arch1-1.1-x86_64-with-glibc2.39
Is CUDA available: True
CUDA runtime version: Could not collect
CUDA_MODULE_LOADING set to: LAZY
GPU models and configuration: AMD Radeon RX 7800 XT (gfx1100)
Nvidia driver version: Could not collect
cuDNN version: Could not collect
HIP runtime version: 6.0.32830
MIOpen runtime version: 3.0.0
Is XNNPACK available: True

CPU:
Architecture:                       x86_64
CPU op-mode(s):                     32-bit, 64-bit
Address sizes:                      46 bits physical, 48 bits virtual
Byte Order:                         Little Endian
CPU(s):                             28
On-line CPU(s) list:                0-27
Vendor ID:                          GenuineIntel
Model name:                         Intel(R) Core(TM) i7-14700K
CPU family:                         6
Model:                              183
Thread(s) per core:                 2
Core(s) per socket:                 20
Socket(s):                          1
Stepping:                           1
CPU(s) scaling MHz:                 36%
CPU max MHz:                        5600,0000
CPU min MHz:                        800,0000
BogoMIPS:                           6837,00
Flags:                              fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect user_shstk avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi vnmi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr ibt flush_l1d arch_capabilities
Virtualization:                     VT-x
L1d cache:                          768 KiB (20 instances)
L1i cache:                          1 MiB (20 instances)
L2 cache:                           28 MiB (11 instances)
L3 cache:                           33 MiB (1 instance)
NUMA node(s):                       1
NUMA node0 CPU(s):                  0-27
Vulnerability Gather data sampling: Not affected
Vulnerability Itlb multihit:        Not affected
Vulnerability L1tf:                 Not affected
Vulnerability Mds:                  Not affected
Vulnerability Meltdown:             Not affected
Vulnerability Mmio stale data:      Not affected
Vulnerability Retbleed:             Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass:    Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:           Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:           Mitigation; Enhanced / Automatic IBRS, IBPB conditional, RSB filling, PBRSB-eIBRS SW sequence
Vulnerability Srbds:                Not affected
Vulnerability Tsx async abort:      Not affected

Versions of relevant libraries:
[pip3] numpy==1.26.4
[pip3] torch==2.2.0
[pip3] torchvision==0.16.2
[conda] Could not collect
@NicolasHug
Copy link
Member

Hi @binarynoise can you please copy/paste the logs here? It is safer for us than to download a file.

@binarynoise
Copy link
Author

Building wheel torchvision-0.17.1+4fd856b
Compiling extensions with following flags:
  FORCE_CUDA: False
  FORCE_MPS: False
  DEBUG: False
  TORCHVISION_USE_PNG: True
  TORCHVISION_USE_JPEG: True
  TORCHVISION_USE_NVJPEG: True
  TORCHVISION_USE_FFMPEG: True
  TORCHVISION_USE_VIDEO_CODEC: True
  NVCC_FLAGS: 
/home/tilo/src/Linux/vision/MANIFEST.in -> /home/tilo/src/Linux/vision/MANIFEST.in [skipped, no changes]
/home/tilo/src/Linux/vision/test/cpp/test_custom_operators.cpp -> /home/tilo/src/Linux/vision/test/cpp/test_custom_operators.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/test/tracing/frcnn/test_frcnn_tracing.cpp -> /home/tilo/src/Linux/vision/test/tracing/frcnn/test_frcnn_tracing.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/cmake/TorchVisionConfig.cmake.in -> /home/tilo/src/Linux/vision/cmake/TorchVisionConfig.cmake.in [skipped, no changes]
/home/tilo/src/Linux/vision/ios/VisionTestApp/VisionTestApp/AppDelegate.h -> /home/tilo/src/Linux/vision/ios/VisionTestApp/VisionTestApp/AppDelegate.h [skipped, no changes]
/home/tilo/src/Linux/vision/ios/VisionTestApp/VisionTestApp/ViewController.h -> /home/tilo/src/Linux/vision/ios/VisionTestApp/VisionTestApp/ViewController.h [skipped, no changes]
/home/tilo/src/Linux/vision/ios/VisionTestApp/VisionTestApp/ModelRunner.h -> /home/tilo/src/Linux/vision/ios/VisionTestApp/VisionTestApp/ModelRunner.h [skipped, no changes]
/home/tilo/src/Linux/vision/examples/cpp/hello_world/main.cpp -> /home/tilo/src/Linux/vision/examples/cpp/hello_world/main.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/macros.h -> /home/tilo/src/Linux/vision/torchvision/csrc/macros.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/vision.h -> /home/tilo/src/Linux/vision/torchvision/csrc/vision.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/vision.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/vision_hip.cpp [skipped, already hipified]
/home/tilo/src/Linux/vision/torchvision/csrc/vision.h -> /home/tilo/src/Linux/vision/torchvision/csrc/vision.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/nms.h -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/nms.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/deform_conv2d.h -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/deform_conv2d.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/deform_conv2d.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/deform_conv2d.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/nms.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/nms.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/ps_roi_pool.h -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/ps_roi_pool.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/ps_roi_pool.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/ps_roi_pool.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/roi_align.h -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/roi_align.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/roi_align.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/roi_align.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/ps_roi_align.h -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/ps_roi_align.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/ps_roi_align.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/ps_roi_align.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/roi_align.h -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/roi_align.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/roi_pool.h -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/roi_pool.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/ops.h -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/ops.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/roi_pool.h -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/roi_pool.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/roi_pool.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/roi_pool.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/ps_roi_pool.h -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/ps_roi_pool.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/deform_conv2d.h -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/deform_conv2d.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/mps/mps_helpers.h -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/mps/mps_helpers.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/mps/mps_kernels.h -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/mps/mps_kernels.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/autocast/nms_kernel.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/autocast/nms_kernel.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/autocast/deform_conv2d_kernel.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/autocast/deform_conv2d_kernel.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/autocast/ps_roi_align_kernel.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/autocast/ps_roi_align_kernel.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/autocast/ps_roi_pool_kernel.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/autocast/ps_roi_pool_kernel.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/autocast/roi_align_kernel.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/autocast/roi_align_kernel.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/autocast/roi_pool_kernel.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/autocast/roi_pool_kernel.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/hip/cuda_helpers.h -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/hip/cuda_helpers.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/cpu/nms_kernel.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/cpu/nms_kernel.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/cpu/roi_align_common.h -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/cpu/roi_align_common.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/cpu/deform_conv2d_kernel.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/cpu/deform_conv2d_kernel.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/cpu/ps_roi_align_kernel.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/cpu/ps_roi_align_kernel.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/cpu/ps_roi_pool_kernel.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/cpu/ps_roi_pool_kernel.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/cpu/roi_align_kernel.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/cpu/roi_align_kernel_hip.cpp [skipped, already hipified]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/cpu/roi_pool_kernel.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/cpu/roi_pool_kernel.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/cuda/cuda_helpers.h -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/hip/hip_helpers.h [skipped, already hipified]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/cuda/roi_pool_kernel.cu -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/hip/roi_pool_kernel.hip [skipped, already hipified]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/cuda/ps_roi_pool_kernel.cu -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/hip/ps_roi_pool_kernel.hip [skipped, already hipified]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/cuda/nms_kernel.cu -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/hip/nms_kernel.hip [skipped, already hipified]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/cuda/ps_roi_align_kernel.cu -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/hip/ps_roi_align_kernel.hip [skipped, already hipified]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/cuda/cuda_helpers.h -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/hip/hip_helpers.h [skipped, already hipified]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/cuda/deform_conv2d_kernel.cu -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/hip/deform_conv2d_kernel.hip [skipped, already hipified]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/cuda/roi_align_kernel.cu -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/hip/roi_align_kernel.hip [skipped, already hipified]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/quantized/cpu/qroi_align_kernel.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/quantized/cpu/qroi_align_kernel.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/quantized/cpu/qnms_kernel.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/quantized/cpu/qnms_kernel.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/autograd/deform_conv2d_kernel.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/autograd/deform_conv2d_kernel.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/autograd/ps_roi_align_kernel.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/autograd/ps_roi_align_kernel.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/autograd/ps_roi_pool_kernel.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/autograd/ps_roi_pool_kernel.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/autograd/roi_align_kernel.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/autograd/roi_align_kernel.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/autograd/roi_pool_kernel.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/autograd/roi_pool_kernel.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/defs.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/defs.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/time_keeper.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/time_keeper.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/stream.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/stream.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/video_sampler.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/video_sampler.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/video_stream.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/video_stream.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/util.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/util.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/video_stream.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/video_stream.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/seekable_buffer.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/seekable_buffer.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/decoder.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/decoder.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/audio_sampler.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/audio_sampler.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/audio_stream.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/audio_stream.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/subtitle_sampler.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/subtitle_sampler.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/subtitle_stream.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/subtitle_stream.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/cc_stream.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/cc_stream.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/decoder.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/decoder.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/decoder.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/decoder.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/video_sampler.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/video_sampler.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/time_keeper.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/time_keeper.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/util.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/util.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/cc_stream.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/cc_stream.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/memory_buffer.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/memory_buffer.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/memory_buffer.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/memory_buffer.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/seekable_buffer.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/seekable_buffer.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/subtitle_stream.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/subtitle_stream.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/audio_stream.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/audio_stream.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/sync_decoder.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/sync_decoder.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/util_test.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/util_test.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/subtitle_stream.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/subtitle_stream.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/util.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/util.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/stream.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/stream.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/stream.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/stream.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/defs.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/defs.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/time_keeper.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/time_keeper.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/video_stream.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/video_stream.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/seekable_buffer.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/seekable_buffer.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/video_sampler.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/video_sampler.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/audio_sampler.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/audio_sampler.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/audio_stream.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/audio_stream.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/subtitle_sampler.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/subtitle_sampler.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/sync_decoder.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/sync_decoder.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/subtitle_sampler.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/subtitle_sampler.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/cc_stream.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/cc_stream.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/audio_sampler.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/audio_sampler.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/sync_decoder_test.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/sync_decoder_test.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/memory_buffer.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/memory_buffer.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/gpu/decoder.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/gpu/decoder_hip.h [skipped, already hipified]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/gpu/decoder.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/gpu/decoder_hip.cpp [skipped, already hipified]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/gpu/demuxer.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/gpu/demuxer.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/gpu/gpu_decoder.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/gpu/gpu_decoder_hip.h [skipped, already hipified]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/gpu/decoder.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/gpu/decoder_hip.h [skipped, already hipified]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/gpu/demuxer.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/gpu/demuxer.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/gpu/gpu_decoder.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/io/decoder/gpu/gpu_decoder_hip.cpp [skipped, already hipified]
/home/tilo/src/Linux/vision/torchvision/csrc/io/image/image_read_mode.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/image/image_read_mode.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/decode_image.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/decode_image.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/decode_jpeg.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/decode_jpeg.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/decode_png.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/decode_png.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/encode_jpeg.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/encode_jpeg.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/encode_png.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/encode_png.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/read_write_file.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/read_write_file.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/image/cuda/decode_jpeg_cuda.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/image/hip/decode_jpeg_hip.h [skipped, already hipified]
/home/tilo/src/Linux/vision/torchvision/csrc/io/image/image.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/image/image_hip.h [skipped, already hipified]
/home/tilo/src/Linux/vision/torchvision/csrc/io/image/image.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/io/image/image_hip.cpp [skipped, already hipified]
/home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/decode_jpeg.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/decode_jpeg.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/decode_image.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/decode_image.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/common_jpeg.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/common_jpeg.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/encode_jpeg.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/encode_jpeg.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/decode_image.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/decode_image.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/common_jpeg.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/common_jpeg.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/read_write_file.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/read_write_file.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/encode_jpeg.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/encode_jpeg.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/decode_png.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/decode_png.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/encode_png.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/encode_png.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/common_png.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/common_png.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/encode_png.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/encode_png.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/decode_png.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/decode_png.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/read_write_file.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/read_write_file.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/decode_jpeg.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/decode_jpeg.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/common_png.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/common_png.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/common_jpeg.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/common_jpeg.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/image/cuda/decode_jpeg_cuda.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/io/image/hip/decode_jpeg_hip.cpp [skipped, already hipified]
/home/tilo/src/Linux/vision/torchvision/csrc/io/image/cuda/decode_jpeg_cuda.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/image/hip/decode_jpeg_hip.h [skipped, already hipified]
/home/tilo/src/Linux/vision/torchvision/csrc/io/video/video.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/video/video.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/video/video.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/io/video/video.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/video/video.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/video/video.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/video_reader/video_reader.h -> /home/tilo/src/Linux/vision/torchvision/csrc/io/video_reader/video_reader.h [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/video_reader/video_reader.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/io/video_reader/video_reader.cpp [skipped, no changes]
�[92mSuccessfully preprocessed all matching files.�[0m
Total number of unsupported CUDA function calls: 0


Total number of replaced kernel launches: 15
Compiling with debug mode OFF
/home/tilo/src/Linux/vision/torchvision/csrc/ops/autocast/deform_conv2d_kernel.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/autocast/deform_conv2d_kernel.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/autocast/nms_kernel.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/autocast/nms_kernel.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/autocast/ps_roi_align_kernel.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/autocast/ps_roi_align_kernel.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/autocast/ps_roi_pool_kernel.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/autocast/ps_roi_pool_kernel.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/autocast/roi_align_kernel.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/autocast/roi_align_kernel.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/autocast/roi_pool_kernel.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/autocast/roi_pool_kernel.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/autograd/deform_conv2d_kernel.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/autograd/deform_conv2d_kernel.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/autograd/ps_roi_align_kernel.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/autograd/ps_roi_align_kernel.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/autograd/ps_roi_pool_kernel.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/autograd/ps_roi_pool_kernel.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/autograd/roi_align_kernel.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/autograd/roi_align_kernel.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/autograd/roi_pool_kernel.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/autograd/roi_pool_kernel.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/cpu/deform_conv2d_kernel.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/cpu/deform_conv2d_kernel.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/cpu/nms_kernel.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/cpu/nms_kernel.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/cpu/ps_roi_align_kernel.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/cpu/ps_roi_align_kernel.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/cpu/ps_roi_pool_kernel.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/cpu/ps_roi_pool_kernel.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/cpu/roi_align_kernel.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/cpu/roi_align_kernel_hip.cpp [skipped, already hipified]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/cpu/roi_pool_kernel.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/cpu/roi_pool_kernel.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/deform_conv2d.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/deform_conv2d.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/nms.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/nms.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/ps_roi_align.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/ps_roi_align.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/ps_roi_pool.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/ps_roi_pool.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/quantized/cpu/qnms_kernel.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/quantized/cpu/qnms_kernel.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/quantized/cpu/qroi_align_kernel.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/quantized/cpu/qroi_align_kernel.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/roi_align.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/roi_align.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/ops/roi_pool.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/ops/roi_pool.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/vision.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/vision_hip.cpp [skipped, already hipified]
�[92mSuccessfully preprocessed all matching files.�[0m
Total number of unsupported CUDA function calls: 0


Total number of replaced kernel launches: 0
Found PNG library
Building torchvision with PNG image support
  libpng version: 1.6.43
  libpng include path: /usr/include/libpng16
Running build on conda-build: False
Running build on conda: False
Building torchvision with JPEG image support
  libjpeg include path: None
  libjpeg lib path: None
Building torchvision without NVJPEG image support
/home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/decode_image.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/decode_image.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/encode_jpeg.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/encode_jpeg.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/common_jpeg.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/common_jpeg.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/encode_png.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/encode_png.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/decode_png.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/decode_png.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/read_write_file.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/read_write_file.cpp [skipped, no changes]
/home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/decode_jpeg.cpp -> /home/tilo/src/Linux/vision/torchvision/csrc/io/image/cpu/decode_jpeg.cpp [skipped, no changes]
�[92mSuccessfully preprocessed all matching files.�[0m
Total number of unsupported CUDA function calls: 0


Total number of replaced kernel launches: 0
Building torchvision with ffmpeg support
  ffmpeg version: b'ffmpeg version n6.1.1 Copyright (c) 2000-2023 the FFmpeg developers\nbuilt with gcc 13.2.1 (GCC) 20230801\nconfiguration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-amf --enable-avisynth --enable-cuda-llvm --enable-lto --enable-fontconfig --enable-frei0r --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libharfbuzz --enable-libiec61883 --enable-libjack --enable-libjxl --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libplacebo --enable-libpulse --enable-librav1e --enable-librsvg --enable-librubberband --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpl --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-libzimg --enable-nvdec --enable-nvenc --enable-opencl --enable-opengl --enable-shared --enable-vapoursynth --enable-version3 --enable-vulkan\nlibavutil      58. 29.100 / 58. 29.100\nlibavcodec     60. 31.102 / 60. 31.102\nlibavformat    60. 16.100 / 60. 16.100\nlibavdevice    60.  3.100 / 60.  3.100\nlibavfilter     9. 12.100 /  9. 12.100\nlibswscale      7.  5.100 /  7.  5.100\nlibswresample   4. 12.100 /  4. 12.100\nlibpostproc    57.  3.100 / 57.  3.100\n'
  ffmpeg include path: ['/usr/include']
  ffmpeg library_dir: ['/usr/lib']
Building torchvision without video codec support
running install
/home/tilo/src/Linux/vision/venv/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/home/tilo/src/Linux/vision/venv/lib/python3.11/site-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
running bdist_egg
running egg_info
writing torchvision.egg-info/PKG-INFO
writing dependency_links to torchvision.egg-info/dependency_links.txt
writing requirements to torchvision.egg-info/requires.txt
writing top-level names to torchvision.egg-info/top_level.txt
reading manifest file 'torchvision.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '__pycache__' found under directory '*'
warning: no previously-included files matching '*.py[co]' found under directory '*'
adding license file 'LICENSE'
writing manifest file 'torchvision.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
copying torchvision/version.py -> build/lib.linux-x86_64-cpython-311/torchvision
running build_ext
building 'torchvision._C' extension
Emitting ninja build file /home/tilo/src/Linux/vision/build/temp.linux-x86_64-cpython-311/build.ninja...
Compiling objects...
Using envvar MAX_JOBS (1) as the number of workers...
[1/32] c++ -MMD -MF /home/tilo/src/Linux/vision/build/temp.linux-x86_64-cpython-311/torchvision/csrc/ops/autocast/deform_conv2d_kernel.o.d -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -ffat-lto-objects -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -fPIC -DWITH_HIP -I/home/tilo/src/Linux/vision/torchvision/csrc -I/usr/lib/python3.11/site-packages/torch/include -I/usr/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -I/usr/lib/python3.11/site-packages/torch/include/TH -I/usr/lib/python3.11/site-packages/torch/include/THC -I/usr/lib/python3.11/site-packages/torch/include/THH -I/opt/rocm/include -I/home/tilo/src/Linux/vision/venv/include -I/usr/include/python3.11 -c -c /home/tilo/src/Linux/vision/torchvision/csrc/ops/autocast/deform_conv2d_kernel.cpp -o /home/tilo/src/Linux/vision/build/temp.linux-x86_64-cpython-311/torchvision/csrc/ops/autocast/deform_conv2d_kernel.o -fPIC -D__HIP_PLATFORM_AMD__=1 -DUSE_ROCM=1 -fPIC -D__HIP_PLATFORM_AMD__=1 -DUSE_ROCM=1 -g0 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1017"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=1 -std=c++17
FAILED: /home/tilo/src/Linux/vision/build/temp.linux-x86_64-cpython-311/torchvision/csrc/ops/autocast/deform_conv2d_kernel.o 
c++ -MMD -MF /home/tilo/src/Linux/vision/build/temp.linux-x86_64-cpython-311/torchvision/csrc/ops/autocast/deform_conv2d_kernel.o.d -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -ffat-lto-objects -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -fPIC -DWITH_HIP -I/home/tilo/src/Linux/vision/torchvision/csrc -I/usr/lib/python3.11/site-packages/torch/include -I/usr/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -I/usr/lib/python3.11/site-packages/torch/include/TH -I/usr/lib/python3.11/site-packages/torch/include/THC -I/usr/lib/python3.11/site-packages/torch/include/THH -I/opt/rocm/include -I/home/tilo/src/Linux/vision/venv/include -I/usr/include/python3.11 -c -c /home/tilo/src/Linux/vision/torchvision/csrc/ops/autocast/deform_conv2d_kernel.cpp -o /home/tilo/src/Linux/vision/build/temp.linux-x86_64-cpython-311/torchvision/csrc/ops/autocast/deform_conv2d_kernel.o -fPIC -D__HIP_PLATFORM_AMD__=1 -DUSE_ROCM=1 -fPIC -D__HIP_PLATFORM_AMD__=1 -DUSE_ROCM=1 -g0 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1017"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=1 -std=c++17
In file included from /usr/include/c10/util/logging_is_google_glog.h:50,
                 from /usr/include/c10/util/Logging.h:26,
                 from /usr/include/ATen/core/ivalue_inl.h:25,
                 from /usr/include/ATen/core/ivalue.h:1551,
                 from /usr/include/ATen/core/List_inl.h:4,
                 from /usr/include/ATen/core/List.h:490,
                 from /usr/include/ATen/core/IListRef_inl.h:3,
                 from /usr/include/ATen/core/IListRef.h:631,
                 from /usr/include/ATen/DeviceGuard.h:3,
                 from /usr/include/ATen/ATen.h:9,
                 from /home/tilo/src/Linux/vision/torchvision/csrc/ops/autocast/../deform_conv2d.h:3,
                 from /home/tilo/src/Linux/vision/torchvision/csrc/ops/autocast/deform_conv2d_kernel.cpp:1:
/usr/include/glog/logging.h:60:4: error: #error <glog/logging.h> was not included correctly. See the documention for how to consume the library.
   60 | #  error <glog/logging.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
In file included from /usr/include/glog/logging.h:63:
/usr/include/glog/flags.h:45:4: error: #error <glog/flags.h> was not included correctly. See the documention for how to consume the library.
   45 | #  error <glog/flags.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
In file included from /usr/include/glog/logging.h:77:
/usr/include/glog/log_severity.h:38:4: error: #error <glog/log_severity.h> was not included correctly. See the documention for how to consume the library.
   38 | #  error <glog/log_severity.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
In file included from /usr/include/glog/logging.h:78:
/usr/include/glog/vlog_is_on.h:71:4: error: #error <glog/vlog_is_on.h> was not included correctly. See the documention for how to consume the library.
   71 | #  error <glog/vlog_is_on.h> was not included correctly. See the documention for how to consume the library.
      |    ^~~~~
/usr/include/glog/flags.h:105:1: error: ‘GLOG_EXPORT’ does not name a type
  105 | DECLARE_int32(logemaillevel);
      | ^~~~~~~~~~~~~
/usr/include/glog/flags.h:105:1: error: ‘FLAGS_logemaillevel’ has not been declared in ‘fLI’
  105 | DECLARE_int32(logemaillevel);
      | ^~~~~~~~~~~~~
/usr/include/glog/flags.h:106:1: error: ‘GLOG_EXPORT’ does not name a type
  106 | DECLARE_int32(logcleansecs);
      | ^~~~~~~~~~~~~
/usr/include/glog/flags.h:106:1: error: ‘FLAGS_logcleansecs’ has not been declared in ‘fLI’
  106 | DECLARE_int32(logcleansecs);
      | ^~~~~~~~~~~~~
/usr/include/glog/flags.h:109:1: error: ‘GLOG_EXPORT’ does not name a type
  109 | DECLARE_bool(drop_log_memory);
      | ^~~~~~~~~~~~
/usr/include/glog/flags.h:109:1: error: ‘FLAGS_drop_log_memory’ has not been declared in ‘fLB’
  109 | DECLARE_bool(drop_log_memory);
      | ^~~~~~~~~~~~
/usr/include/glog/flags.h:111:1: error: ‘GLOG_EXPORT’ does not name a type
  111 | DECLARE_string(alsologtoemail);
      | ^~~~~~~~~~~~~~
/usr/include/glog/flags.h:111:1: error: ‘FLAGS_alsologtoemail’ has not been declared in ‘fLS’
  111 | DECLARE_string(alsologtoemail);
      | ^~~~~~~~~~~~~~
/usr/include/glog/flags.h:112:1: error: ‘GLOG_EXPORT’ does not name a type
  112 | DECLARE_string(log_backtrace_at);
      | ^~~~~~~~~~~~~~
/usr/include/glog/flags.h:112:1: error: ‘FLAGS_log_backtrace_at’ has not been declared in ‘fLS’
  112 | DECLARE_string(log_backtrace_at);
      | ^~~~~~~~~~~~~~
/usr/include/glog/flags.h:115:1: error: ‘GLOG_EXPORT’ does not name a type
  115 | DECLARE_bool(timestamp_in_logfile_name);
      | ^~~~~~~~~~~~
/usr/include/glog/flags.h:115:1: error: ‘FLAGS_timestamp_in_logfile_name’ has not been declared in ‘fLB’
  115 | DECLARE_bool(timestamp_in_logfile_name);
      | ^~~~~~~~~~~~
/usr/include/glog/flags.h:118:1: error: ‘GLOG_EXPORT’ does not name a type
  118 | DECLARE_bool(logtostdout);
      | ^~~~~~~~~~~~
/usr/include/glog/flags.h:118:1: error: ‘FLAGS_logtostdout’ has not been declared in ‘fLB’
  118 | DECLARE_bool(logtostdout);
      | ^~~~~~~~~~~~
/usr/include/glog/flags.h:121:1: error: ‘GLOG_EXPORT’ does not name a type
  121 | DECLARE_bool(colorlogtostdout);
      | ^~~~~~~~~~~~
/usr/include/glog/flags.h:121:1: error: ‘FLAGS_colorlogtostdout’ has not been declared in ‘fLB’
  121 | DECLARE_bool(colorlogtostdout);
      | ^~~~~~~~~~~~
/usr/include/glog/flags.h:124:1: error: ‘GLOG_EXPORT’ does not name a type
  124 | DECLARE_bool(logtostderr);
      | ^~~~~~~~~~~~
/usr/include/glog/flags.h:124:1: error: ‘FLAGS_logtostderr’ has not been declared in ‘fLB’
  124 | DECLARE_bool(logtostderr);
      | ^~~~~~~~~~~~
/usr/include/glog/flags.h:127:1: error: ‘GLOG_EXPORT’ does not name a type
  127 | DECLARE_bool(alsologtostderr);
      | ^~~~~~~~~~~~
/usr/include/glog/flags.h:127:1: error: ‘FLAGS_alsologtostderr’ has not been declared in ‘fLB’
  127 | DECLARE_bool(alsologtostderr);
      | ^~~~~~~~~~~~
/usr/include/glog/flags.h:130:1: error: ‘GLOG_EXPORT’ does not name a type
  130 | DECLARE_bool(colorlogtostderr);
      | ^~~~~~~~~~~~
/usr/include/glog/flags.h:130:1: error: ‘FLAGS_colorlogtostderr’ has not been declared in ‘fLB’
  130 | DECLARE_bool(colorlogtostderr);
      | ^~~~~~~~~~~~
/usr/include/glog/flags.h:134:1: error: ‘GLOG_EXPORT’ does not name a type
  134 | DECLARE_int32(stderrthreshold);
      | ^~~~~~~~~~~~~
/usr/include/glog/flags.h:134:1: error: ‘FLAGS_stderrthreshold’ has not been declared in ‘fLI’
  134 | DECLARE_int32(stderrthreshold);
      | ^~~~~~~~~~~~~
/usr/include/glog/flags.h:137:1: error: ‘GLOG_EXPORT’ does not name a type
  137 | DECLARE_bool(log_file_header);
      | ^~~~~~~~~~~~
/usr/include/glog/flags.h:137:1: error: ‘FLAGS_log_file_header’ has not been declared in ‘fLB’
  137 | DECLARE_bool(log_file_header);
      | ^~~~~~~~~~~~
/usr/include/glog/flags.h:140:1: error: ‘GLOG_EXPORT’ does not name a type
  140 | DECLARE_bool(log_prefix);
      | ^~~~~~~~~~~~
/usr/include/glog/flags.h:140:1: error: ‘FLAGS_log_prefix’ has not been declared in ‘fLB’
  140 | DECLARE_bool(log_prefix);
      | ^~~~~~~~~~~~
/usr/include/glog/flags.h:143:1: error: ‘GLOG_EXPORT’ does not name a type
  143 | DECLARE_bool(log_year_in_prefix);
      | ^~~~~~~~~~~~
/usr/include/glog/flags.h:143:1: error: ‘FLAGS_log_year_in_prefix’ has not been declared in ‘fLB’
  143 | DECLARE_bool(log_year_in_prefix);
      | ^~~~~~~~~~~~
/usr/include/glog/flags.h:147:1: error: ‘GLOG_EXPORT’ does not name a type
  147 | DECLARE_int32(logbuflevel);
      | ^~~~~~~~~~~~~
/usr/include/glog/flags.h:147:1: error: ‘FLAGS_logbuflevel’ has not been declared in ‘fLI’
  147 | DECLARE_int32(logbuflevel);
      | ^~~~~~~~~~~~~
/usr/include/glog/flags.h:150:1: error: ‘GLOG_EXPORT’ does not name a type
  150 | DECLARE_int32(logbufsecs);
      | ^~~~~~~~~~~~~
/usr/include/glog/flags.h:150:1: error: ‘FLAGS_logbufsecs’ has not been declared in ‘fLI’
  150 | DECLARE_int32(logbufsecs);
      | ^~~~~~~~~~~~~
/usr/include/glog/flags.h:154:1: error: ‘GLOG_EXPORT’ does not name a type
  154 | DECLARE_int32(minloglevel);
      | ^~~~~~~~~~~~~
/usr/include/glog/flags.h:154:1: error: ‘FLAGS_minloglevel’ has not been declared in ‘fLI’
  154 | DECLARE_int32(minloglevel);
      | ^~~~~~~~~~~~~
/usr/include/glog/flags.h:158:1: error: ‘GLOG_EXPORT’ does not name a type
  158 | DECLARE_string(log_dir);
      | ^~~~~~~~~~~~~~
/usr/include/glog/flags.h:158:1: error: ‘FLAGS_log_dir’ has not been declared in ‘fLS’
  158 | DECLARE_string(log_dir);
      | ^~~~~~~~~~~~~~
/usr/include/glog/flags.h:161:1: error: ‘GLOG_EXPORT’ does not name a type
  161 | DECLARE_int32(logfile_mode);
      | ^~~~~~~~~~~~~
/usr/include/glog/flags.h:161:1: error: ‘FLAGS_logfile_mode’ has not been declared in ‘fLI’
  161 | DECLARE_int32(logfile_mode);
      | ^~~~~~~~~~~~~
/usr/include/glog/flags.h:165:1: error: ‘GLOG_EXPORT’ does not name a type
  165 | DECLARE_string(log_link);
      | ^~~~~~~~~~~~~~
/usr/include/glog/flags.h:165:1: error: ‘FLAGS_log_link’ has not been declared in ‘fLS’
  165 | DECLARE_string(log_link);
      | ^~~~~~~~~~~~~~
/usr/include/glog/flags.h:167:1: error: ‘GLOG_EXPORT’ does not name a type
  167 | DECLARE_int32(v);  // in vlog_is_on.cc
      | ^~~~~~~~~~~~~
/usr/include/glog/flags.h:167:1: error: ‘FLAGS_v’ has not been declared in ‘fLI’
  167 | DECLARE_int32(v);  // in vlog_is_on.cc
      | ^~~~~~~~~~~~~
/usr/include/glog/flags.h:169:1: error: ‘GLOG_EXPORT’ does not name a type
  169 | DECLARE_string(vmodule);  // also in vlog_is_on.cc
      | ^~~~~~~~~~~~~~
/usr/include/glog/flags.h:169:1: error: ‘FLAGS_vmodule’ has not been declared in ‘fLS’
  169 | DECLARE_string(vmodule);  // also in vlog_is_on.cc
      | ^~~~~~~~~~~~~~
/usr/include/glog/flags.h:172:1: error: ‘GLOG_EXPORT’ does not name a type
  172 | DECLARE_uint32(max_log_size);
      | ^~~~~~~~~~~~~~
/usr/include/glog/flags.h:172:1: error: ‘FLAGS_max_log_size’ has not been declared in ‘fLU’
  172 | DECLARE_uint32(max_log_size);
      | ^~~~~~~~~~~~~~
/usr/include/glog/flags.h:175:1: error: ‘GLOG_EXPORT’ does not name a type
  175 | DECLARE_bool(stop_logging_if_full_disk);
      | ^~~~~~~~~~~~
/usr/include/glog/flags.h:175:1: error: ‘FLAGS_stop_logging_if_full_disk’ has not been declared in ‘fLB’
  175 | DECLARE_bool(stop_logging_if_full_disk);
      | ^~~~~~~~~~~~
/usr/include/glog/flags.h:178:1: error: ‘GLOG_EXPORT’ does not name a type
  178 | DECLARE_bool(log_utc_time);
      | ^~~~~~~~~~~~
/usr/include/glog/flags.h:178:1: error: ‘FLAGS_log_utc_time’ has not been declared in ‘fLB’
  178 | DECLARE_bool(log_utc_time);
      | ^~~~~~~~~~~~
/usr/include/glog/flags.h:181:1: error: ‘GLOG_EXPORT’ does not name a type
  181 | DECLARE_string(logmailer);
      | ^~~~~~~~~~~~~~
/usr/include/glog/flags.h:181:1: error: ‘FLAGS_logmailer’ has not been declared in ‘fLS’
  181 | DECLARE_string(logmailer);
      | ^~~~~~~~~~~~~~
/usr/include/glog/flags.h:183:1: error: ‘GLOG_EXPORT’ does not name a type
  183 | DECLARE_bool(symbolize_stacktrace);
      | ^~~~~~~~~~~~
/usr/include/glog/flags.h:183:1: error: ‘FLAGS_symbolize_stacktrace’ has not been declared in ‘fLB’
  183 | DECLARE_bool(symbolize_stacktrace);
      | ^~~~~~~~~~~~
/usr/include/glog/vlog_is_on.h:111:8: error: ‘GLOG_EXPORT’ does not name a type
  111 | extern GLOG_EXPORT int SetVLOGLevel(const char* module_pattern, int log_level);
      |        ^~~~~~~~~~~
/usr/include/glog/vlog_is_on.h:130:8: error: ‘GLOG_EXPORT’ does not name a type
  130 | extern GLOG_EXPORT bool InitVLOG3__(SiteFlag* site_flag,
      |        ^~~~~~~~~~~
/usr/include/glog/logging.h:82:20: error: variable ‘google::GLOG_EXPORT google::LogMessageTime’ has initializer but incomplete type
   82 | struct GLOG_EXPORT LogMessageTime {
      |                    ^~~~~~~~~~~~~~
/usr/include/glog/logging.h:83:19: error: expected ‘}’ before ‘;’ token
   83 |   LogMessageTime();
      |                   ^
/usr/include/glog/logging.h:82:35: note: to match this ‘{’
   82 | struct GLOG_EXPORT LogMessageTime {
      |                                   ^
/usr/include/glog/logging.h:84:3: error: ‘explicit’ outside class declaration
   84 |   explicit LogMessageTime(std::chrono::system_clock::time_point now);
      |   ^~~~~~~~
/usr/include/glog/logging.h:87:13: error: non-member function ‘time_t google::timestamp()’ cannot have cv-qualifier
   87 |       const noexcept {
      |             ^~~~~~~~
/usr/include/glog/logging.h: In function ‘time_t google::timestamp()’:
/usr/include/glog/logging.h:88:49: error: ‘when’ was not declared in this scope
   88 |     return std::chrono::system_clock::to_time_t(when());
      |                                                 ^~~~
/usr/include/glog/logging.h: At global scope:
/usr/include/glog/logging.h:90:61: error: non-member function ‘const std::chrono::_V2::system_clock::time_point& google::when()’ cannot have cv-qualifier
   90 |   const std::chrono::system_clock::time_point& when() const noexcept {
      |                                                             ^~~~~~~~
/usr/include/glog/logging.h: In function ‘const std::chrono::_V2::system_clock::time_point& google::when()’:
/usr/include/glog/logging.h:91:12: error: ‘timestamp_’ was not declared in this scope; did you mean ‘timestamp’?
   91 |     return timestamp_;
      |            ^~~~~~~~~~
      |            timestamp
/usr/include/glog/logging.h: At global scope:
/usr/include/glog/logging.h:93:19: error: non-member function ‘int google::sec()’ cannot have cv-qualifier
   93 |   int sec() const noexcept { return tm_.tm_sec; }
      |                   ^~~~~~~~
/usr/include/glog/logging.h: In function ‘int google::sec()’:
/usr/include/glog/logging.h:93:37: error: ‘tm_’ was not declared in this scope; did you mean ‘tm’?
   93 |   int sec() const noexcept { return tm_.tm_sec; }
      |                                     ^~~
      |                                     tm
/usr/include/glog/logging.h: At global scope:
/usr/include/glog/logging.h:94:21: error: non-member function ‘long int google::usec()’ cannot have cv-qualifier
   94 |   long usec() const noexcept { return usecs_.count(); }
      |                     ^~~~~~~~
/usr/include/glog/logging.h: In function ‘long int google::usec()’:
/usr/include/glog/logging.h:94:39: error: ‘usecs_’ was not declared in this scope; did you mean ‘usec’?
   94 |   long usec() const noexcept { return usecs_.count(); }
      |                                       ^~~~~~
      |                                       usec
/usr/include/glog/logging.h: At global scope:
/usr/include/glog/logging.h:95:20: error: non-member function ‘int google::min()’ cannot have cv-qualifier
   95 |   int(min)() const noexcept { return tm_.tm_min; }
      |                    ^~~~~~~~
/usr/include/glog/logging.h: In function ‘int google::min()’:
/usr/include/glog/logging.h:95:38: error: ‘tm_’ was not declared in this scope; did you mean ‘tm’?
   95 |   int(min)() const noexcept { return tm_.tm_min; }
      |                                      ^~~
      |                                      tm
/usr/include/glog/logging.h: At global scope:
/usr/include/glog/logging.h:96:20: error: non-member function ‘int google::hour()’ cannot have cv-qualifier
   96 |   int hour() const noexcept { return tm_.tm_hour; }
      |                    ^~~~~~~~
/usr/include/glog/logging.h: In function ‘int google::hour()’:
/usr/include/glog/logging.h:96:38: error: ‘tm_’ was not declared in this scope; did you mean ‘tm’?
   96 |   int hour() const noexcept { return tm_.tm_hour; }
      |                                      ^~~
      |                                      tm
/usr/include/glog/logging.h: At global scope:
/usr/include/glog/logging.h:97:19: error: non-member function ‘int google::day()’ cannot have cv-qualifier
   97 |   int day() const noexcept { return tm_.tm_mday; }
      |                   ^~~~~~~~
/usr/include/glog/logging.h: In function ‘int google::day()’:
/usr/include/glog/logging.h:97:37: error: ‘tm_’ was not declared in this scope; did you mean ‘tm’?
   97 |   int day() const noexcept { return tm_.tm_mday; }
      |                                     ^~~
      |                                     tm
/usr/include/glog/logging.h: At global scope:
/usr/include/glog/logging.h:98:21: error: non-member function ‘int google::month()’ cannot have cv-qualifier
   98 |   int month() const noexcept { return tm_.tm_mon; }
      |                     ^~~~~~~~
/usr/include/glog/logging.h: In function ‘int google::month()’:
/usr/include/glog/logging.h:98:39: error: ‘tm_’ was not declared in this scope; did you mean ‘tm’?
   98 |   int month() const noexcept { return tm_.tm_mon; }
      |                                       ^~~
      |                                       tm
/usr/include/glog/logging.h: At global scope:
/usr/include/glog/logging.h:99:20: error: non-member function ‘int google::year()’ cannot have cv-qualifier
   99 |   int year() const noexcept { return tm_.tm_year; }
      |                    ^~~~~~~~
/usr/include/glog/logging.h: In function ‘int google::year()’:
/usr/include/glog/logging.h:99:38: error: ‘tm_’ was not declared in this scope; did you mean ‘tm’?
   99 |   int year() const noexcept { return tm_.tm_year; }
      |                                      ^~~
      |                                      tm
/usr/include/glog/logging.h: At global scope:
/usr/include/glog/logging.h:100:25: error: non-member function ‘int google::dayOfWeek()’ cannot have cv-qualifier
  100 |   int dayOfWeek() const noexcept { return tm_.tm_wday; }
      |                         ^~~~~~~~
/usr/include/glog/logging.h: In function ‘int google::dayOfWeek()’:
/usr/include/glog/logging.h:100:43: error: ‘tm_’ was not declared in this scope; did you mean ‘tm’?
  100 |   int dayOfWeek() const noexcept { return tm_.tm_wday; }
      |                                           ^~~
      |                                           tm
/usr/include/glog/logging.h: At global scope:
/usr/include/glog/logging.h:101:25: error: non-member function ‘int google::dayInYear()’ cannot have cv-qualifier
  101 |   int dayInYear() const noexcept { return tm_.tm_yday; }
      |                         ^~~~~~~~
/usr/include/glog/logging.h: In function ‘int google::dayInYear()’:
/usr/include/glog/logging.h:101:43: error: ‘tm_’ was not declared in this scope; did you mean ‘tm’?
  101 |   int dayInYear() const noexcept { return tm_.tm_yday; }
      |                                           ^~~
      |                                           tm
/usr/include/glog/logging.h: At global scope:
/usr/include/glog/logging.h:102:19: error: non-member function ‘int google::dst()’ cannot have cv-qualifier
  102 |   int dst() const noexcept { return tm_.tm_isdst; }
      |                   ^~~~~~~~
/usr/include/glog/logging.h: In function ‘int google::dst()’:
/usr/include/glog/logging.h:102:37: error: ‘tm_’ was not declared in this scope; did you mean ‘tm’?
  102 |   int dst() const noexcept { return tm_.tm_isdst; }
      |                                     ^~~
      |                                     tm
/usr/include/glog/logging.h: At global scope:
/usr/include/glog/logging.h:104:13: error: non-member function ‘long int google::gmtoff()’ cannot have cv-qualifier
  104 |       const noexcept {
      |             ^~~~~~~~
/usr/include/glog/logging.h: In function ‘long int google::gmtoff()’:
/usr/include/glog/logging.h:105:12: error: ‘gmtoffset_’ was not declared in this scope; did you mean ‘gmtoff’?
  105 |     return gmtoffset_.count();
      |            ^~~~~~~~~~
      |            gmtoff
/usr/include/glog/logging.h: At global scope:
/usr/include/glog/logging.h:107:42: error: non-member function ‘std::chrono::seconds google::gmtoffset()’ cannot have cv-qualifier
  107 |   std::chrono::seconds gmtoffset() const noexcept { return gmtoffset_; }
      |                                          ^~~~~~~~
/usr/include/glog/logging.h: In function ‘std::chrono::seconds google::gmtoffset()’:
/usr/include/glog/logging.h:107:60: error: ‘gmtoffset_’ was not declared in this scope; did you mean ‘gmtoffset’?
  107 |   std::chrono::seconds gmtoffset() const noexcept { return gmtoffset_; }
      |                                                            ^~~~~~~~~~
      |                                                            gmtoffset
/usr/include/glog/logging.h: At global scope:
/usr/include/glog/logging.h:108:29: error: non-member function ‘const tm& google::tm()’ cannot have cv-qualifier
  108 |   const std::tm& tm() const noexcept { return tm_; }
      |                             ^~~~~~~~
/usr/include/glog/logging.h: In function ‘const tm& google::tm()’:
/usr/include/glog/logging.h:108:47: error: ‘tm_’ was not declared in this scope; did you mean ‘tm’?
  108 |   const std::tm& tm() const noexcept { return tm_; }
      |                                               ^~~
      |                                               tm
/usr/include/glog/logging.h: At global scope:
/usr/include/glog/logging.h:110:2: error: expected unqualified-id before ‘private’
  110 |  private:
      |  ^~~~~~~
/usr/include/glog/logging.h:122:33: error: ‘LogMessageTime’ does not name a type; did you mean ‘LogMessageInfo’?
  122 |                           const LogMessageTime& time_)
      |                                 ^~~~~~~~~~~~~~
      |                                 LogMessageInfo
/usr/include/glog/logging.h:133:9: error: ‘LogMessageTime’ does not name a type; did you mean ‘LogMessageInfo’?
  133 |   const LogMessageTime& time;
      |         ^~~~~~~~~~~~~~
      |         LogMessageInfo
/usr/include/glog/logging.h: In constructor ‘LogMessageInfo::LogMessageInfo(const char*, const char*, const int&, std::thread::id, const int&)’:
/usr/include/glog/logging.h:127:9: error: class ‘LogMessageInfo’ does not have any field named ‘time’
  127 |         time(time_) {}
      |         ^~~~
/usr/include/glog/logging.h: At global scope:
/usr/include/glog/logging.h:136:1: error: expected declaration before ‘}’ token
  136 | }  // namespace google
      | ^
/usr/include/glog/logging.h:483:1: error: two or more data types in declaration of ‘InitGoogleLogging’
  483 | GLOG_EXPORT void InitGoogleLogging(const char* argv0);
      | ^~~~~~~~~~~
/usr/include/glog/logging.h:502:55: error: two or more data types in declaration of ‘InitGoogleLogging’
  502 | [[deprecated("Use InstallPrefixFormatter instead.")]] GLOG_EXPORT void
      |                                                       ^~~~~~~~~~~
/usr/include/glog/logging.h:507:1: error: two or more data types in declaration of ‘IsGoogleLoggingInitialized’
  507 | GLOG_EXPORT bool IsGoogleLoggingInitialized();
      | ^~~~~~~~~~~
/usr/include/glog/logging.h:510:1: error: two or more data types in declaration of ‘ShutdownGoogleLogging’
  510 | GLOG_EXPORT void ShutdownGoogleLogging();
      | ^~~~~~~~~~~
/usr/include/glog/logging.h:521:1: error: two or more data types in declaration of ‘InstallPrefixFormatter’
  521 | GLOG_EXPORT void InstallPrefixFormatter(PrefixFormatterCallback callback,
      | ^~~~~~~~~~~
/usr/include/glog/logging.h:527:1: error: expected initializer before ‘InstallFailureFunction’
  527 | InstallFailureFunction(logging_fail_func_t fail_func);
      | ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/glog/logging.h:531:19: error: two or more data types in declaration of ‘EnableLogCleaner’
  531 |     "instead.")]] GLOG_EXPORT void
      |                   ^~~~~~~~~~~
/usr/include/glog/logging.h:534:1: error: two or more data types in declaration of ‘EnableLogCleaner’
  534 | GLOG_EXPORT void EnableLogCleaner(const std::chrono::minutes& overdue);
      | ^~~~~~~~~~~
/usr/include/glog/logging.h:535:1: error: two or more data types in declaration of ‘DisableLogCleaner’
  535 | GLOG_EXPORT void DisableLogCleaner();
      | ^~~~~~~~~~~
/usr/include/glog/logging.h:536:1: error: two or more data types in declaration of ‘SetApplicationFingerprint’
  536 | GLOG_EXPORT void SetApplicationFingerprint(const std::string& fingerprint);
      | ^~~~~~~~~~~
/usr/include/glog/logging.h:660:1: error: two or more data types in declaration of ‘MakeCheckOpValueString’
  660 | GLOG_EXPORT void MakeCheckOpValueString(std::ostream* os, const char& v);
      | ^~~~~~~~~~~
/usr/include/glog/logging.h:662:1: error: two or more data types in declaration of ‘MakeCheckOpValueString’
  662 | GLOG_EXPORT void MakeCheckOpValueString(std::ostream* os, const signed char& v);
      | ^~~~~~~~~~~
/usr/include/glog/logging.h:664:1: error: two or more data types in declaration of ‘MakeCheckOpValueString’
  664 | GLOG_EXPORT void MakeCheckOpValueString(std::ostream* os,
      | ^~~~~~~~~~~
/usr/include/glog/logging.h:669:1: error: two or more data types in declaration of ‘MakeCheckOpValueString’
  669 | GLOG_EXPORT void MakeCheckOpValueString(std::ostream* os,
      | ^~~~~~~~~~~
/usr/include/glog/logging.h:689:19: error: variable ‘google::GLOG_EXPORT google::logging::internal::CheckOpMessageBuilder’ has initializer but incomplete type
  689 | class GLOG_EXPORT CheckOpMessageBuilder {
      |                   ^~~~~~~~~~~~~~~~~~~~~
/usr/include/glog/logging.h:690:2: error: expected primary-expression before ‘public’
  690 |  public:
      |  ^~~~~~
/usr/include/glog/logging.h:690:2: error: expected ‘}’ before ‘public’
/usr/include/glog/logging.h:689:41: note: to match this ‘{’
  689 | class GLOG_EXPORT CheckOpMessageBuilder {
      |                                         ^
/usr/include/glog/logging.h:690:2: error: expected ‘,’ or ‘;’ before ‘public’
  690 |  public:
      |  ^~~~~~
/usr/include/glog/logging.h:694:25: error: expected class-name before ‘(’ token
  694 |   ~CheckOpMessageBuilder();
      |                         ^
/usr/include/glog/logging.h: In function ‘std::ostream* google::logging::internal::ForVar1()’:
/usr/include/glog/logging.h:696:36: error: ‘stream_’ was not declared in this scope
  696 |   std::ostream* ForVar1() { return stream_; }
      |                                    ^~~~~~~
/usr/include/glog/logging.h: At global scope:
/usr/include/glog/logging.h:702:2: error: expected unqualified-id before ‘private’
  702 |  private:
      |  ^~~~~~~
/usr/include/glog/logging.h: In function ‘std::unique_ptr<std::__cxx11::basic_string<char> > google::logging::MakeCheckOpString(const T1&, const T2&, const char*)’:
/usr/include/glog/logging.h:709:3: error: ‘CheckOpMessageBuilder’ was not declared in this scope; did you mean ‘google::logging::internal::CheckOpMessageBuilder’?
  709 |   CheckOpMessageBuilder comb(exprtext);
      |   ^~~~~~~~~~~~~~~~~~~~~
      |   google::logging::internal::CheckOpMessageBuilder
/usr/include/glog/logging.h:689:19: note: ‘google::logging::internal::CheckOpMessageBuilder’ declared here
  689 | class GLOG_EXPORT CheckOpMessageBuilder {
      |                   ^~~~~~~~~~~~~~~~~~~~~
/usr/include/glog/logging.h:710:26: error: ‘comb’ was not declared in this scope; did you mean ‘wctomb’?
  710 |   MakeCheckOpValueString(comb.ForVar1(), v1);
      |                          ^~~~
      |                          wctomb
/usr/include/glog/logging.h: At global scope:
/usr/include/glog/logging.h:830:1: error: invalid declarator before ‘CheckstrcmptrueImpl’
  830 | DECLARE_CHECK_STROP_IMPL(strcmp, true)
      | ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glog/logging.h:831:1: error: invalid declarator before ‘CheckstrcmpfalseImpl’
  831 | DECLARE_CHECK_STROP_IMPL(strcmp, false)
      | ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glog/logging.h:832:1: error: invalid declarator before ‘CheckstrcasecmptrueImpl’
  832 | DECLARE_CHECK_STROP_IMPL(strcasecmp, true)
      | ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glog/logging.h:833:1: error: invalid declarator before ‘CheckstrcasecmpfalseImpl’
  833 | DECLARE_CHECK_STROP_IMPL(strcasecmp, false)
      | ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glog/logging.h:926:1: error: expected declaration before ‘}’ token
  926 | }  // namespace google
      | ^
/usr/include/glog/logging.h:1198:32: error: expected initializer before ‘:’ token
 1198 | class GLOG_EXPORT LogStreamBuf : public std::streambuf {
      |                                ^
/usr/include/glog/logging.h:1215:23: error: aggregate ‘google::logging::internal::GLOG_NO_EXPORT google::logging::internal::LogMessageData’ has incomplete type and cannot be defined
 1215 | struct GLOG_NO_EXPORT LogMessageData;
      |                       ^~~~~~~~~~~~~~
/usr/include/glog/logging.h:1228:19: error: variable ‘google::GLOG_EXPORT google::LogMessage’ has initializer but incomplete type
 1228 | class GLOG_EXPORT LogMessage {
      |                   ^~~~~~~~~~
/usr/include/glog/logging.h:1229:2: error: expected primary-expression before ‘public’
 1229 |  public:
      |  ^~~~~~
/usr/include/glog/logging.h:1229:2: error: expected ‘}’ before ‘public’
/usr/include/glog/logging.h:1228:30: note: to match this ‘{’
 1228 | class GLOG_EXPORT LogMessage {
      |                              ^
/usr/include/glog/logging.h:1229:2: error: expected ‘,’ or ‘;’ before ‘public’
 1229 |  public:
      |  ^~~~~~
/usr/include/glog/logging.h:1246:31: error: expected initializer before ‘:’ token
 1246 |   class GLOG_EXPORT LogStream : public std::ostream {
      |                               ^
/usr/include/glog/logging.h:1292:2: error: expected unqualified-id before ‘public’
 1292 |  public:
      |  ^~~~~~
/usr/include/glog/logging.h:1297:14: error: ‘SendMethod’ has not been declared
 1297 |              SendMethod send_method);
      |              ^~~~~~~~~~
/usr/include/glog/logging.h:1297:37: error: expected constructor, destructor, or type conversion before ‘;’ token
 1297 |              SendMethod send_method);
      |                                     ^
/usr/include/glog/logging.h:1307:41: error: expected constructor, destructor, or type conversion before ‘;’ token
 1307 |   LogMessage(const char* file, int line);
      |                                         ^
/usr/include/glog/logging.h:1314:63: error: expected constructor, destructor, or type conversion before ‘;’ token
 1314 |   LogMessage(const char* file, int line, LogSeverity severity);
      |                                                               ^
/usr/include/glog/logging.h:1320:36: error: expected constructor, destructor, or type conversion before ‘;’ token
 1320 |              bool also_send_to_log);
      |                                    ^
/usr/include/glog/logging.h:1326:47: error: expected constructor, destructor, or type conversion before ‘;’ token
 1326 |              std::vector<std::string>* outvec);
      |                                               ^
/usr/include/glog/logging.h:1332:35: error: expected constructor, destructor, or type conversion before ‘;’ token
 1332 |              std::string* message);
      |                                   ^
/usr/include/glog/logging.h:1336:61: error: expected constructor, destructor, or type conversion before ‘;’ token
 1336 |              const logging::internal::CheckOpString& result);
      |                                                             ^
/usr/include/glog/logging.h:1338:32: error: expected constructor, destructor, or type conversion before ‘;’ token
 1338 |   ~LogMessage() noexcept(false);
      |                                ^
/usr/include/glog/logging.h:1347:23: error: uninitialized ‘const google::kMaxLogMessageLen’ [-fpermissive]
 1347 |   static const size_t kMaxLogMessageLen;
      |                       ^~~~~~~~~~~~~~~~~
/usr/include/glog/logging.h:1359:25: error: non-member function ‘int google::preserved_errno()’ cannot have cv-qualifier
 1359 |   int preserved_errno() const;
      |                         ^~~~~
/usr/include/glog/logging.h:1364:59: error: ‘LogMessageTime’ does not name a type; did you mean ‘LogMessage’?
 1364 |   [[deprecated("Use LogMessage::time() instead.")]] const LogMessageTime&
      |                                                           ^~~~~~~~~~~~~~
      |                                                           LogMessage
/usr/include/glog/logging.h:1369:32: error: non-member function ‘google::LogSeverity google::severity()’ cannot have cv-qualifier
 1369 |   LogSeverity severity() const noexcept;
      |                                ^~~~~~~~
/usr/include/glog/logging.h:1370:20: error: non-member function ‘int google::line()’ cannot have cv-qualifier
 1370 |   int line() const noexcept;
      |                    ^~~~~~~~
/usr/include/glog/logging.h:1371:44: error: non-member function ‘const std::thread::id& google::thread_id()’ cannot have cv-qualifier
 1371 |   const std::thread::id& thread_id() const noexcept;
      |                                            ^~~~~~~~
/usr/include/glog/logging.h:1372:32: error: non-member function ‘const char* google::fullname()’ cannot have cv-qualifier
 1372 |   const char* fullname() const noexcept;
      |                                ^~~~~~~~
/usr/include/glog/logging.h:1373:32: error: non-member function ‘const char* google::basename()’ cannot have cv-qualifier
 1373 |   const char* basename() const noexcept;
      |                                ^~~~~~~~
/usr/include/glog/logging.h:1374:9: error: ‘LogMessageTime’ does not name a type; did you mean ‘LogMessage’?
 1374 |   const LogMessageTime& time() const noexcept;
      |         ^~~~~~~~~~~~~~
      |         LogMessage
/usr/include/glog/logging.h:1376:20: error: ‘LogMessage’ does not name a type
 1376 |   LogMessage(const LogMessage&) = delete;
      |                    ^~~~~~~~~~
/usr/include/glog/logging.h:1376:33: error: expected constructor, destructor, or type conversion before ‘=’ token
 1376 |   LogMessage(const LogMessage&) = delete;
      |                                 ^
/usr/include/glog/logging.h:1377:3: error: ‘LogMessage’ does not name a type
 1377 |   LogMessage& operator=(const LogMessage&) = delete;
      |   ^~~~~~~~~~
/usr/include/glog/logging.h:1379:2: error: expected unqualified-id before ‘private’
 1379 |  private:
      |  ^~~~~~~
/usr/include/glog/logging.h:1400:22: error: ‘LogMessageData’ in namespace ‘google::logging::internal’ does not name a type
 1400 |   logging::internal::LogMessageData* allocated_;
      |                      ^~~~~~~~~~~~~~
/usr/include/glog/logging.h:1215:23: note: ‘google::logging::internal::LogMessageData’ declared here
 1215 | struct GLOG_NO_EXPORT LogMessageData;
      |                       ^~~~~~~~~~~~~~
/usr/include/glog/logging.h:1401:22: error: ‘LogMessageData’ in namespace ‘google::logging::internal’ does not name a type
 1401 |   logging::internal::LogMessageData* data_;
      |                      ^~~~~~~~~~~~~~
/usr/include/glog/logging.h:1215:23: note: ‘google::logging::internal::LogMessageData’ declared here
 1215 | struct GLOG_NO_EXPORT LogMessageData;
      |                       ^~~~~~~~~~~~~~
/usr/include/glog/logging.h:1402:3: error: ‘LogMessageTime’ does not name a type; did you mean ‘LogMessage’?
 1402 |   LogMessageTime time_;
      |   ^~~~~~~~~~~~~~
      |   LogMessage
/usr/include/glog/logging.h:1404:3: error: ‘friend’ used outside of class
 1404 |   friend class LogDestination;
      |   ^~~~~~
      |   ------
/usr/include/glog/logging.h:1410:35: error: expected initializer before ‘:’ token
 1410 | class GLOG_EXPORT LogMessageFatal : public LogMessage {
      |                                   ^
/usr/include/glog/logging.h:1420:13: error: variable or field ‘LogAtLevel’ declared void
 1420 | inline void LogAtLevel(LogSeverity severity, std::string const& msg) {
      |             ^~~~~~~~~~
/usr/include/glog/logging.h:1420:24: error: ‘LogSeverity’ was not declared in this scope; did you mean ‘google::LogSeverity’?
 1420 | inline void LogAtLevel(LogSeverity severity, std::string const& msg) {
      |                        ^~~~~~~~~~~
      |                        google::LogSeverity
/usr/include/glog/log_severity.h:62:6: note: ‘google::LogSeverity’ declared here
   62 | enum LogSeverity {
      |      ^~~~~~~~~~~
/usr/include/glog/logging.h:1420:58: error: expected primary-expression before ‘const’
 1420 | inline void LogAtLevel(LogSeverity severity, std::string const& msg) {
      |                                                          ^~~~~
/usr/include/glog/logging.h:1434:25: error: expected initializer before ‘&’ token
 1434 | GLOG_EXPORT std::ostream& operator<<(std::ostream& os, const Counter_t&);
      |                         ^
/usr/include/glog/logging.h:1437:35: error: expected initializer before ‘:’ token
 1437 | class GLOG_EXPORT ErrnoLogMessage : public LogMessage {
      |                                   ^
/usr/include/glog/logging.h: In function ‘T logging::internal::CheckNotNull(const char*, int, const char*, T&&)’:
/usr/include/glog/logging.h:1468:5: error: there are no arguments to ‘LogMessageFatal’ that depend on a template parameter, so a declaration of ‘LogMessageFatal’ must be available [-fpermissive]
 1468 |     LogMessageFatal(file, line, std::make_unique<std::string>(names));
      |     ^~~~~~~~~~~~~~~
/usr/include/glog/logging.h:1468:5: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/usr/include/glog/logging.h: At global scope:
/usr/include/glog/logging.h:1484:1: error: two or more data types in declaration of ‘FlushLogFiles’
 1484 | GLOG_EXPORT void FlushLogFiles(LogSeverity min_severity);
      | ^~~~~~~~~~~
/usr/include/glog/logging.h:1484:32: error: ‘LogSeverity’ was not declared in this scope; did you mean ‘google::LogSeverity’?
 1484 | GLOG_EXPORT void FlushLogFiles(LogSeverity min_severity);
      |                                ^~~~~~~~~~~
      |                                google::LogSeverity
/usr/include/glog/log_severity.h:62:6: note: ‘google::LogSeverity’ declared here
   62 | enum LogSeverity {
      |      ^~~~~~~~~~~
/usr/include/glog/logging.h:1489:1: error: two or more data types in declaration of ‘FlushLogFilesUnsafe’
 1489 | GLOG_EXPORT void FlushLogFilesUnsafe(LogSeverity min_severity);
      | ^~~~~~~~~~~
/usr/include/glog/logging.h:1489:38: error: ‘LogSeverity’ was not declared in this scope; did you mean ‘google::LogSeverity’?
 1489 | GLOG_EXPORT void FlushLogFilesUnsafe(LogSeverity min_severity);
      |                                      ^~~~~~~~~~~
      |                                      google::LogSeverity
/usr/include/glog/log_severity.h:62:6: note: ‘google::LogSeverity’ declared here
   62 | enum LogSeverity {
      |      ^~~~~~~~~~~
/usr/include/glog/logging.h:1496:1: error: two or more data types in declaration of ‘SetLogDestination’
 1496 | GLOG_EXPORT void SetLogDestination(LogSeverity severity,
      | ^~~~~~~~~~~
/usr/include/glog/logging.h:1496:36: error: ‘LogSeverity’ was not declared in this scope; did you mean ‘google::LogSeverity’?
 1496 | GLOG_EXPORT void SetLogDestination(LogSeverity severity,
      |                                    ^~~~~~~~~~~
      |                                    google::LogSeverity
/usr/include/glog/log_severity.h:62:6: note: ‘google::LogSeverity’ declared here
   62 | enum LogSeverity {
      |      ^~~~~~~~~~~
/usr/include/glog/logging.h:1497:36: error: expected primary-expression before ‘const’
 1497 |                                    const char* base_filename);
      |                                    ^~~~~
/usr/include/glog/logging.h:1505:1: error: two or more data types in declaration of ‘SetLogSymlink’
 1505 | GLOG_EXPORT void SetLogSymlink(LogSeverity severity,
      | ^~~~~~~~~~~
/usr/include/glog/logging.h:1505:32: error: ‘LogSeverity’ was not declared in this scope; did you mean ‘google::LogSeverity’?
 1505 | GLOG_EXPORT void SetLogSymlink(LogSeverity severity,
      |                                ^~~~~~~~~~~
      |                                google::LogSeverity
/usr/include/glog/log_severity.h:62:6: note: ‘google::LogSeverity’ declared here
   62 | enum LogSeverity {
      |      ^~~~~~~~~~~
/usr/include/glog/logging.h:1506:32: error: expected primary-expression before ‘const’
 1506 |                                const char* symlink_basename);
      |                                ^~~~~
/usr/include/glog/logging.h:1513:19: error: variable ‘GLOG_EXPORT LogSink’ has initializer but incomplete type
 1513 | class GLOG_EXPORT LogSink {
      |                   ^~~~~~~
/usr/include/glog/logging.h:1514:2: error: expected primary-expression before ‘public’
 1514 |  public:
      |  ^~~~~~
/usr/include/glog/logging.h:1514:2: error: expected ‘}’ before ‘public’
/usr/include/glog/logging.h:1513:27: note: to match this ‘{’
 1513 | class GLOG_EXPORT LogSink {
      |                           ^
/usr/include/glog/logging.h:1514:2: error: expected ‘,’ or ‘;’ before ‘public’
 1514 |  public:
      |  ^~~~~~
/usr/include/glog/logging.h:1520:3: error: ‘virtual’ outside class declaration
 1520 |   virtual void send(LogSeverity severity, const char* full_filename,
      |   ^~~~~~~
/usr/include/glog/logging.h:1520:16: error: variable or field ‘send’ declared void
 1520 |   virtual void send(LogSeverity severity, const char* full_filename,
      |                ^~~~
/usr/include/glog/logging.h:1520:21: error: ‘LogSeverity’ was not declared in this scope; did you mean ‘google::LogSeverity’?
 1520 |   virtual void send(LogSeverity severity, const char* full_filename,
      |                     ^~~~~~~~~~~
      |                     google::LogSeverity
/usr/include/glog/log_severity.h:62:6: note: ‘google::LogSeverity’ declared here
   62 | enum LogSeverity {
      |      ^~~~~~~~~~~
/usr/include/glog/logging.h:1520:43: error: expected primary-expression before ‘const’
 1520 |   virtual void send(LogSeverity severity, const char* full_filename,
      |                                           ^~~~~
/usr/include/glog/logging.h:1521:21: error: expected primary-expression before ‘const’
 1521 |                     const char* base_filename, int line,
      |                     ^~~~~
/usr/include/glog/logging.h:1521:48: error: expected primary-expression before ‘int’
 1521 |                     const char* base_filename, int line,
      |                                                ^~~
/usr/include/glog/logging.h:1522:21: error: expected primary-expression before ‘const’
 1522 |                     const LogMessageTime& time, const char* message,
      |                     ^~~~~
/usr/include/glog/logging.h:1522:49: error: expected primary-expression before ‘const’
 1522 |                     const LogMessageTime& time, const char* message,
      |                                                 ^~~~~
/usr/include/glog/logging.h:1523:28: error: expected primary-expression before ‘message_len’
 1523 |                     size_t message_len);
      |                            ^~~~~~~~~~~
/usr/include/glog/logging.h:1525:3: error: ‘GLOG_DEPRECATED’ does not name a type; did you mean ‘C10_DEPRECATED’?
 1525 |   GLOG_DEPRECATED
      |   ^~~~~~~~~~~~~~~
      |   C10_DEPRECATED
/usr/include/glog/logging.h:1543:3: error: ‘virtual’ outside class declaration
 1543 |   virtual void WaitTillSent();
      |   ^~~~~~~
/usr/include/glog/logging.h:1547:31: error: ‘LogSeverity’ was not declared in this scope; did you mean ‘google::LogSeverity’?
 1547 |   static std::string ToString(LogSeverity severity, const char* file, int line,
      |                               ^~~~~~~~~~~
      |                               google::LogSeverity
/usr/include/glog/log_severity.h:62:6: note: ‘google::LogSeverity’ declared here
   62 | enum LogSeverity {
      |      ^~~~~~~~~~~
/usr/include/glog/logging.h:1547:53: error: expected primary-expression before ‘const’
 1547 |   static std::string ToString(LogSeverity severity, const char* file, int line,
      |                                                     ^~~~~
/usr/include/glog/logging.h:1547:71: error: expected primary-expression before ‘int’
 1547 |   static std::string ToString(LogSeverity severity, const char* file, int line,
      |                                                                       ^~~
/usr/include/glog/logging.h:1548:31: error: expected primary-expression before ‘const’
 1548 |                               const LogMessageTime& time, const char* message,
      |                               ^~~~~
/usr/include/glog/logging.h:1548:59: error: expected primary-expression before ‘const’
 1548 |                               const LogMessageTime& time, const char* message,
      |                                                           ^~~~~
/usr/include/glog/logging.h:1549:38: error: expected primary-expression before ‘message_len’
 1549 |                               size_t message_len);
      |                                      ^~~~~~~~~~~
/usr/include/glog/logging.h:1550:1: error: expected declaration before ‘}’ token
 1550 | };
      | ^
/usr/include/glog/logging.h:1553:1: error: two or more data types in declaration of ‘AddLogSink’
 1553 | GLOG_EXPORT void AddLogSink(LogSink* destination);
      | ^~~~~~~~~~~
/usr/include/glog/logging.h:1553:38: error: ‘destination’ was not declared in this scope
 1553 | GLOG_EXPORT void AddLogSink(LogSink* destination);
      |                                      ^~~~~~~~~~~
/usr/include/glog/logging.h:1554:1: error: two or more data types in declaration of ‘RemoveLogSink’
 1554 | GLOG_EXPORT void RemoveLogSink(LogSink* destination);
      | ^~~~~~~~~~~
/usr/include/glog/logging.h:1554:41: error: ‘destination’ was not declared in this scope
 1554 | GLOG_EXPORT void RemoveLogSink(LogSink* destination);
      |                                         ^~~~~~~~~~~
/usr/include/glog/logging.h:1562:1: error: two or more data types in declaration of ‘SetLogFilenameExtension’
 1562 | GLOG_EXPORT void SetLogFilenameExtension(const char* filename_extension);
      | ^~~~~~~~~~~
/usr/include/glog/logging.h:1569:1: error: two or more data types in declaration of ‘SetStderrLogging’
 1569 | GLOG_EXPORT void SetStderrLogging(LogSeverity min_severity);
      | ^~~~~~~~~~~
/usr/include/glog/logging.h:1569:35: error: ‘LogSeverity’ was not declared in this scope; did you mean ‘google::LogSeverity’?
 1569 | GLOG_EXPORT void SetStderrLogging(LogSeverity min_severity);
      |                                   ^~~~~~~~~~~
      |                                   google::LogSeverity
/usr/include/glog/log_severity.h:62:6: note: ‘google::LogSeverity’ declared here
   62 | enum LogSeverity {
      |      ^~~~~~~~~~~
/usr/include/glog/logging.h:1574:1: error: two or more data types in declaration of ‘LogToStderr’
 1574 | GLOG_EXPORT void LogToStderr();
      | ^~~~~~~~~~~
/usr/include/glog/logging.h:1582:1: error: two or more data types in declaration of ‘SetEmailLogging’
 1582 | GLOG_EXPORT void SetEmailLogging(LogSeverity min_severity,
      | ^~~~~~~~~~~
/usr/include/glog/logging.h:1582:34: error: ‘LogSeverity’ was not declared in this scope; did you mean ‘google::LogSeverity’?
 1582 | GLOG_EXPORT void SetEmailLogging(LogSeverity min_severity,
      |                                  ^~~~~~~~~~~
      |                                  google::LogSeverity
/usr/include/glog/log_severity.h:62:6: note: ‘google::LogSeverity’ declared here
   62 | enum LogSeverity {
      |      ^~~~~~~~~~~
/usr/include/glog/logging.h:1583:34: error: expected primary-expression before ‘const’
 1583 |                                  const char* addresses);
      |                                  ^~~~~
/usr/include/glog/logging.h:1587:1: error: two or more data types in declaration of ‘SendEmail’
 1587 | GLOG_EXPORT bool SendEmail(const char* dest, const char* subject,
      | ^~~~~~~~~~~
/usr/include/glog/logging.h:1590:43: error: invalid declarator before ‘&’ token
 1590 | GLOG_EXPORT const std::vector<std::string>& GetLoggingDirectories();
      |                                           ^
/usr/include/glog/logging.h:1595:1: error: two or more data types in declaration of ‘ReprintFatalMessage’
 1595 | GLOG_EXPORT void ReprintFatalMessage();
      | ^~~~~~~~~~~
/usr/include/glog/logging.h:1604:52: error: ‘uint64’ has not been declared
 1604 | GLOG_EXPORT void TruncateLogFile(const char* path, uint64 limit, uint64 keep);
      |                                                    ^~~~~~
/usr/include/glog/logging.h:1604:66: error: ‘uint64’ has not been declared
 1604 | GLOG_EXPORT void TruncateLogFile(const char* path, uint64 limit, uint64 keep);
      |                                                                  ^~~~~~
/usr/include/glog/logging.h:1604:1: error: two or more data types in declaration of ‘TruncateLogFile’
 1604 | GLOG_EXPORT void TruncateLogFile(const char* path, uint64 limit, uint64 keep);
      | ^~~~~~~~~~~
/usr/include/glog/logging.h:1609:1: error: two or more data types in declaration of ‘TruncateStdoutStderr’
 1609 | GLOG_EXPORT void TruncateStdoutStderr();
      | ^~~~~~~~~~~
/usr/include/glog/logging.h:1613:1: error: two or more data types in declaration of ‘GetLogSeverityName’
 1613 | GLOG_EXPORT const char* GetLogSeverityName(LogSeverity severity);
      | ^~~~~~~~~~~
/usr/include/glog/logging.h:1613:44: error: ‘LogSeverity’ was not declared in this scope; did you mean ‘google::LogSeverity’?
 1613 | GLOG_EXPORT const char* GetLogSeverityName(LogSeverity severity);
      |                                            ^~~~~~~~~~~
      |                                            google::LogSeverity
/usr/include/glog/log_severity.h:62:6: note: ‘google::LogSeverity’ declared here
   62 | enum LogSeverity {
      |      ^~~~~~~~~~~
/usr/include/glog/logging.h:1628:19: error: variable ‘GLOG_EXPORT base::Logger’ has initializer but incomplete type
 1628 | class GLOG_EXPORT Logger {
      |                   ^~~~~~
/usr/include/glog/logging.h:1629:2: error: expected primary-expression before ‘public’
 1629 |  public:
      |  ^~~~~~
/usr/include/glog/logging.h:1629:2: error: expected ‘}’ before ‘public’
/usr/include/glog/logging.h:1628:26: note: to match this ‘{’
 1628 | class GLOG_EXPORT Logger {
      |                          ^
/usr/include/glog/logging.h:1629:2: error: expected ‘,’ or ‘;’ before ‘public’
 1629 |  public:
      |  ^~~~~~
/usr/include/glog/logging.h:1643:60: error: ‘virtual’ outside class declaration
 1643 |       "std::chrono::system_clock::time_point overload.")]] virtual void
      |                                                            ^~~~~~~
/usr/include/glog/logging.h:1646:3: error: ‘virtual’ outside class declaration
 1646 |   virtual void Write(bool force_flush,
      |   ^~~~~~~
/usr/include/glog/logging.h:1651:3: error: ‘virtual’ outside class declaration
 1651 |   virtual void Flush() = 0;
      |   ^~~~~~~
/usr/include/glog/logging.h:1651:16: error: function ‘void base::Flush()’ is initialized like a variable
 1651 |   virtual void Flush() = 0;
      |                ^~~~~
/usr/include/glog/logging.h:1656:11: error: ‘uint32’ does not name a type; did you mean ‘uint32_t’?
 1656 |   virtual uint32 LogSize() = 0;
      |           ^~~~~~
      |           uint32_t
/usr/include/glog/logging.h:1662:26: error: expected initializer before ‘*’ token
 1662 | extern GLOG_EXPORT Logger* GetLogger(LogSeverity level);
      |                          ^
/usr/include/glog/logging.h:1667:8: error: two or more data types in declaration of ‘SetLogger’
 1667 | extern GLOG_EXPORT void SetLogger(LogSeverity level, Logger* logger);
      |        ^~~~~~~~~~~
/usr/include/glog/logging.h:1667:35: error: ‘LogSeverity’ was not declared in this scope; did you mean ‘google::LogSeverity’?
 1667 | extern GLOG_EXPORT void SetLogger(LogSeverity level, Logger* logger);
      |                                   ^~~~~~~~~~~
      |                                   google::LogSeverity
/usr/include/glog/log_severity.h:62:6: note: ‘google::LogSeverity’ declared here
   62 | enum LogSeverity {
      |      ^~~~~~~~~~~
/usr/include/glog/logging.h:1667:54: error: ‘Logger’ was not declared in this scope; did you mean ‘base::Logger’?
 1667 | extern GLOG_EXPORT void SetLogger(LogSeverity level, Logger* logger);
      |                                                      ^~~~~~
      |                                                      base::Logger
/usr/include/glog/logging.h:1628:19: note: ‘base::Logger’ declared here
 1628 | class GLOG_EXPORT Logger {
      |                   ^~~~~~
/usr/include/glog/logging.h:1667:62: error: ‘logger’ was not declared in this scope
 1667 | extern GLOG_EXPORT void SetLogger(LogSeverity level, Logger* logger);
      |                                                              ^~~~~~
/usr/include/glog/logging.h:1669:1: error: expected declaration before ‘}’ token
 1669 | }  // namespace base
      | ^
/usr/include/glog/logging.h:1672:30: error: expected initializer before ‘:’ token
 1672 | class GLOG_EXPORT NullStream : public LogMessage::LogStream {
      |                              ^
/usr/include/glog/logging.h:1697:8: error: ‘NullStream’ does not name a type
 1697 | inline NullStream& operator<<(NullStream& str, const T&) {
      |        ^~~~~~~~~~
/usr/include/glog/logging.h:1703:35: error: expected initializer before ‘:’ token
 1703 | class GLOG_EXPORT NullStreamFatal : public NullStream {
      |                                   ^
/usr/include/glog/logging.h:1727:1: error: two or more data types in declaration of ‘InstallFailureSignalHandler’
 1727 | GLOG_EXPORT void InstallFailureSignalHandler();
      | ^~~~~~~~~~~
/usr/include/glog/logging.h:1730:1: error: two or more data types in declaration of ‘IsFailureSignalHandlerInstalled’
 1730 | GLOG_EXPORT bool IsFailureSignalHandlerInstalled();
      | ^~~~~~~~~~~
/usr/include/glog/logging.h:1736:1: error: two or more data types in declaration of ‘InstallFailureWriter’
 1736 | GLOG_EXPORT void InstallFailureWriter(void (*writer)(const char* data,
      | ^~~~~~~~~~~
/usr/include/glog/logging.h:1740:25: error: expected initializer before ‘GetStackTrace’
 1740 | GLOG_EXPORT std::string GetStackTrace();
      |                         ^~~~~~~~~~~~~
/usr/include/glog/logging.h:1742:1: error: expected declaration before ‘}’ token
 1742 | }  // namespace google
      | ^
/usr/include/glog/logging.h: In instantiation of ‘std::unique_ptr<std::__cxx11::basic_string<char> > google::logging::MakeCheckOpString(const T1&, const T2&, const char*) [with T1 = int; T2 = int]’:
/usr/include/glog/logging.h:737:1:   required from ‘std::unique_ptr<std::__cxx11::basic_string<char> > google::logging::Check_EQImpl(const T1&, const T2&, const char*) [with T1 = int; T2 = int]’
/usr/include/glog/logging.h:737:1:   required from here
/usr/include/glog/logging.h:710:25: error: ‘MakeCheckOpValueString’ was not declared in this scope; did you mean ‘google::logging::internal::MakeCheckOpValueString’?
  710 |   MakeCheckOpValueString(comb.ForVar1(), v1);
      |   ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
      |   google::logging::internal::MakeCheckOpValueString
/usr/include/glog/logging.h:653:13: note: ‘google::logging::internal::MakeCheckOpValueString’ declared here
  653 | inline void MakeCheckOpValueString(std::ostream* os, const T& v) {
      |             ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/glog/logging.h:711:25: error: ‘MakeCheckOpValueString’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation
  711 |   MakeCheckOpValueString(comb.ForVar2(), v2);
      |   ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
/usr/include/glog/logging.h:710:25: note: ‘MakeCheckOpValueString’ declared here, later in the translation unit
  710 |   MakeCheckOpValueString(comb.ForVar1(), v1);
      |   ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/torch/utils/cpp_extension.py", line 2096, in _run_ninja_build
    subprocess.run(
  File "/usr/lib/python3.11/subprocess.py", line 571, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ninja', '-v', '-j', '1']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/tilo/src/Linux/vision/setup.py", line 541, in <module>
    setup(
  File "/home/tilo/src/Linux/vision/venv/lib/python3.11/site-packages/setuptools/__init__.py", line 87, in setup
    return distutils.core.setup(**attrs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/tilo/src/Linux/vision/venv/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup
    return run_commands(dist)
           ^^^^^^^^^^^^^^^^^^
  File "/home/tilo/src/Linux/vision/venv/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
    dist.run_commands()
  File "/home/tilo/src/Linux/vision/venv/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 968, in run_commands
    self.run_command(cmd)
  File "/home/tilo/src/Linux/vision/venv/lib/python3.11/site-packages/setuptools/dist.py", line 1217, in run_command
    super().run_command(command)
  File "/home/tilo/src/Linux/vision/venv/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
    cmd_obj.run()
  File "/home/tilo/src/Linux/vision/venv/lib/python3.11/site-packages/setuptools/command/install.py", line 74, in run
    self.do_egg_install()
  File "/home/tilo/src/Linux/vision/venv/lib/python3.11/site-packages/setuptools/command/install.py", line 123, in do_egg_install
    self.run_command('bdist_egg')
  File "/home/tilo/src/Linux/vision/venv/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 319, in run_command
    self.distribution.run_command(command)
  File "/home/tilo/src/Linux/vision/venv/lib/python3.11/site-packages/setuptools/dist.py", line 1217, in run_command
    super().run_command(command)
  File "/home/tilo/src/Linux/vision/venv/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
    cmd_obj.run()
  File "/home/tilo/src/Linux/vision/venv/lib/python3.11/site-packages/setuptools/command/bdist_egg.py", line 165, in run
    cmd = self.call_command('install_lib', warn_dir=0)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/tilo/src/Linux/vision/venv/lib/python3.11/site-packages/setuptools/command/bdist_egg.py", line 151, in call_command
    self.run_command(cmdname)
  File "/home/tilo/src/Linux/vision/venv/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 319, in run_command
    self.distribution.run_command(command)
  File "/home/tilo/src/Linux/vision/venv/lib/python3.11/site-packages/setuptools/dist.py", line 1217, in run_command
    super().run_command(command)
  File "/home/tilo/src/Linux/vision/venv/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
    cmd_obj.run()
  File "/home/tilo/src/Linux/vision/venv/lib/python3.11/site-packages/setuptools/command/install_lib.py", line 11, in run
    self.build()
  File "/home/tilo/src/Linux/vision/venv/lib/python3.11/site-packages/setuptools/_distutils/command/install_lib.py", line 112, in build
    self.run_command('build_ext')
  File "/home/tilo/src/Linux/vision/venv/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 319, in run_command
    self.distribution.run_command(command)
  File "/home/tilo/src/Linux/vision/venv/lib/python3.11/site-packages/setuptools/dist.py", line 1217, in run_command
    super().run_command(command)
  File "/home/tilo/src/Linux/vision/venv/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
    cmd_obj.run()
  File "/home/tilo/src/Linux/vision/venv/lib/python3.11/site-packages/setuptools/command/build_ext.py", line 84, in run
    _build_ext.run(self)
  File "/home/tilo/src/Linux/vision/venv/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 346, in run
    self.build_extensions()
  File "/usr/lib/python3.11/site-packages/torch/utils/cpp_extension.py", line 871, in build_extensions
    build_ext.build_extensions(self)
  File "/home/tilo/src/Linux/vision/venv/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 466, in build_extensions
    self._build_extensions_serial()
  File "/home/tilo/src/Linux/vision/venv/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 492, in _build_extensions_serial
    self.build_extension(ext)
  File "/home/tilo/src/Linux/vision/venv/lib/python3.11/site-packages/setuptools/command/build_ext.py", line 246, in build_extension
    _build_ext.build_extension(self, ext)
  File "/home/tilo/src/Linux/vision/venv/lib/python3.11/site-packages/setuptools/_distutils/command/build_ext.py", line 547, in build_extension
    objects = self.compiler.compile(
              ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/torch/utils/cpp_extension.py", line 684, in unix_wrap_ninja_compile
    _write_ninja_file_and_compile_objects(
  File "/usr/lib/python3.11/site-packages/torch/utils/cpp_extension.py", line 1774, in _write_ninja_file_and_compile_objects
    _run_ninja_build(
  File "/usr/lib/python3.11/site-packages/torch/utils/cpp_extension.py", line 2112, in _run_ninja_build
    raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension

@binarynoise
Copy link
Author

@NicolasHug Sure, here you go.
It is a bit lengthy, so I though putting it into a separate file was better

@NicolasHug
Copy link
Member

Sorry @binarynoise it's hard to reproduce - our build jobs are running fine on our CI, so I would assume this has something to do with your env.

Have you checked the instructions to build from source?

LANG=C

Curious, why was that set?

@binarynoise
Copy link
Author

binarynoise commented Mar 14, 2024

LANG=C

My system is German and the errors were translated, so I switched back to English.

I suspect a difference in my env too. As others have the same issue, it could be related to arch linux.

I tried building following the instructions you linked.

  • Witout venv, the build fails because it tries to write something to system packages and errors out:
error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

    [Errno 13] Permission denied: '/usr/lib/python3.11/site-packages/test-easy-install-371818.write-test'

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

    /usr/lib/python3.11/site-packages/
  • using python -m venv venv: I need to manually install torch in the venv, then it works.
  • using python -m venv --system-site-packages venv fails with that include error.
    This is a problem because the archlinux package providing torchvision doesn't build uses these system packages.

In what environment do you build in your CI?

@binarynoise binarynoise changed the title Building on archlinux fails with linker error Building on archlinux fails with include error Mar 15, 2024
@JohnDoe02
Copy link

I had the same problem while building for arch linux and was able to work around by patching the setup.py. I have no deeper understanding about the problem, just followed the error message and tried the most straightforward thing.

diff --git a/setup.py b/setup.py
index f101f5d5ad..ec891efcf1 100644
--- a/setup.py
+++ b/setup.py
@@ -202,6 +202,7 @@ def get_extensions():
                 nvcc_flags = nvcc_flags.split(" ")
         else:
             define_macros += [("WITH_HIP", None)]
+            define_macros += [("GLOG_USE_GLOG_EXPORT", None)]
             nvcc_flags = []
         extra_compile_args["nvcc"] = nvcc_flags
     elif torch.backends.mps.is_available() or force_mps:
@@ -257,6 +258,8 @@ def get_extensions():
     if sys.platform == "win32":
         image_macros += [("USE_PYTHON", None)]

+    image_macros += [("GLOG_USE_GLOG_EXPORT", None)]
+
     # Locating libPNG
     libpng = shutil.which("libpng-config")
     pngfix = shutil.which("pngfix")
@@ -449,6 +452,7 @@ def get_extensions():
                 ],
                 extra_compile_args=["-std=c++17"] if os.name != "nt" else ["/std:c++17", "/MP"],
                 extra_link_args=["-std=c++17" if os.name != "nt" else "/std:c++17"],
+                define_macros=[("GLOG_USE_GLOG_EXPORT", None)]
             )
         )

@@ -497,6 +501,7 @@ def get_extensions():
                     "nppicc",
                 ],
                 extra_compile_args=extra_compile_args,
+                define_macros=[("GLOG_USE_GLOG_EXPORT", None)]
             )
         )
     else:

@christian-heusel
Copy link

christian-heusel commented Mar 20, 2024

I have just hit this bug trying to compile v0.17.1 the official package for Arch Linux as part of the abseil-cpp rebuild (which required a newer pytorch version to work) 🤔

It would be awesome to get a fix for this so we could finish the rebuild.

@christian-heusel
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants