Ubuntu 23.04 - 在编译程序(gpx2video)时,链接器给出各种库错误(不兼容、未找到......)

Ubuntu 23.04 - 在编译程序(gpx2video)时,链接器给出各种库错误(不兼容、未找到......)

在编译程序(gpx2video)时,链接器给出各种库错误(不兼容、未找到)

CMake Error at /usr/share/cmake-3.25/Modules/CMakeTestCCompiler.cmake:70 (message):
   The C compiler

     "/usr/bin/cc"

   is not able to compile a simple test program.

   It fails with the following output:

     Change Dir: /media/DATA_G_Ext4/Gopro/gpx2video/gpx2video/build/CMakeFiles/CMakeScratch/TryCompile-lKh0gb
    
     Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_f5b91/fast && /usr/bin/gmake -f CMakeFiles/cmTC_f5b91.dir/build.make CMakeFiles/cmTC_f5b91.dir/build
     gmake[1]: entry into directory «/media/DATI_G_Ext4/Gopro/gpx2video/gpx2video/build/CMakeFiles/CMakeScratch/TryCompile-lKh0gb»
     Building C object CMakeFiles/cmTC_f5b91.dir/testCCompiler.c.o
     /usr/bin/cc -o CMakeFiles/cmTC_f5b91.dir/testCCompiler.c.o -c /media/DATA_G_Ext4/Gopro/gpx2video/gpx2video/build/CMakeFiles/CMakeScratch/TryCompile-lKh0gb/testCCompiler.c
     Linking C executable cmTC_f5b91
     /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_f5b91.dir/link.txt --verbose=1
     /usr/bin/cc -rdynamic CMakeFiles/cmTC_f5b91.dir/testCCompiler.c.o -o cmTC_f5b91
     /usr/local/bin/ld: warning: /usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu/Scrt1.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0008002
     /usr/local/bin/ld: warning: /lib/x86_64-linux-gnu/libc.so.6: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0008002
     /usr/local/bin/ld: /lib/x86_64-linux-gnu/libc.so.6: unknown type [0x13] section `.relr.dyn'
     /usr/local/bin/ld: skipped incompatible /lib/x86_64-linux-gnu/libc.so.6 when searching for /lib/x86_64-linux-gnu/libc.so.6
     /usr/local/bin/ld: cannot find /lib/x86_64-linux-gnu/libc.so.6
     /usr/local/bin/ld: /lib64/ld-linux-x86-64.so.2: unknown type [0x13] section `.relr.dyn'
     /usr/local/bin/ld: skipped incompatible /lib64/ld-linux-x86-64.so.2 when searching for /lib64/ld-linux-x86-64.so.2
     /usr/local/bin/ld: cannot find /lib64/ld-linux-x86-64.so.2
     collect2: error: ld returned 1 exit status
     gmake[1]: *** [CMakeFiles/cmTC_f5b91.dir/build.make:99: cmTC_f5b91] Error 1
     gmake[1]: output from directory «/media/DATA_G_Ext4/Gopro/gpx2video/gpx2video/build/CMakeFiles/CMakeScratch/TryCompile-lKh0gb»
     gmake: *** [Makefile:127: cmTC_f5b91/fast] Error 2

相关内容