Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

I was wondering if lsif-clang supports cross-compiled projects #92

Open
honghao12 opened this issue Mar 14, 2023 · 0 comments
Open

I was wondering if lsif-clang supports cross-compiled projects #92

honghao12 opened this issue Mar 14, 2023 · 0 comments

Comments

@honghao12
Copy link

honghao12 commented Mar 14, 2023

1.My system is x86_64, I want to compile the file for arm system

image

2.use cmake, and my toolchain.cmake file looks like this:

set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR aarch64)

set(CMAKE_C_COMPILER /usr/bin/aarch64-linux-gnu-gcc)
set(CMAKE_CXX_COMPILER /usr/bin/aarch64-linux-gnu-g++)
set(CMAKE_ASM_COMPILER /usr/bin/aarch64-linux-gnu-as)

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=armv8-a")
    
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)

3.exectue

cmake -DCMAKE_TOOLCHAIN_FILE=/root/OSS/arm_3/toolchain.cmake -DREQUIRE_SIMD=1 ..

result:

9:44 arm_3/build$ cmake -DCMAKE_TOOLCHAIN_FILE=/root/OSS/arm_3/toolchain.cmake -DREQUIRE_SIMD=1 ..                                   
-- The C compiler identification is GNU 12.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/aarch64-linux-gnu-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- CMAKE_BUILD_TYPE = Release
-- VERSION = 2.1.91, BUILD = 20230314
-- 64-bit build (arm64)
-- CMAKE_INSTALL_PREFIX = /opt/libjpeg-turbo
-- CMAKE_INSTALL_BINDIR = bin (/opt/libjpeg-turbo/bin)
-- CMAKE_INSTALL_DATAROOTDIR =  (/opt/libjpeg-turbo)
-- CMAKE_INSTALL_DOCDIR = doc (/opt/libjpeg-turbo/doc)
-- CMAKE_INSTALL_INCLUDEDIR = include (/opt/libjpeg-turbo/include)
-- CMAKE_INSTALL_LIBDIR = lib64 (/opt/libjpeg-turbo/lib64)
-- CMAKE_INSTALL_MANDIR = man (/opt/libjpeg-turbo/man)
-- Shared libraries enabled (ENABLE_SHARED = 1)
-- Static libraries enabled (ENABLE_STATIC = 1)
-- Arithmetic decoding support enabled (WITH_ARITH_DEC = 1)
-- Arithmetic encoding support enabled (WITH_ARITH_ENC = 1)
-- TurboJPEG API library enabled (WITH_TURBOJPEG = 1)
-- TurboJPEG Java wrapper disabled (WITH_JAVA = 0)
-- Emulating libjpeg API/ABI v6.2 (WITH_JPEG7 = 0, WITH_JPEG8 = 0)
-- libjpeg API shared library version = 62.4.0
-- Compiler flags =  -march=armv8-a -march=armv8-a -O3 -DNDEBUG
-- Linker flags =  
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of size_t
-- Check size of size_t - done
-- Check size of unsigned long
-- Check size of unsigned long - done
-- Performing Test HAVE_BUILTIN_CTZL
-- Performing Test HAVE_BUILTIN_CTZL - Success
-- Performing Test INLINE_WORKS
-- Performing Test INLINE_WORKS - Success
-- INLINE = __inline__ __attribute__((always_inline)) (FORCE_INLINE = 1)
-- Performing Test HAVE_THREAD_LOCAL
-- Performing Test HAVE_THREAD_LOCAL - Success
-- THREAD_LOCAL = __thread
-- Performing Test HAVE_VERSION_SCRIPT
-- Performing Test HAVE_VERSION_SCRIPT - Success
-- Linker supports GNU-style version scripts
-- CMAKE_EXECUTABLE_SUFFIX = 
-- Performing Test HAVE_VLD1_S16_X3
-- Performing Test HAVE_VLD1_S16_X3 - Success
-- Performing Test HAVE_VLD1_U16_X2
-- Performing Test HAVE_VLD1_U16_X2 - Success
-- Performing Test HAVE_VLD1Q_U8_X4
-- Performing Test HAVE_VLD1Q_U8_X4 - Success
-- Use full Neon SIMD intrinsics implementation (NEON_INTRINSICS = ON)
-- SIMD extensions: arm64 (WITH_SIMD = 1)
-- FLOATTEST8 = fp-contract
-- FLOATTEST12 = fp-contract
-- RPM architecture = aarch64, DEB architecture = arm64
-- Configuring done
-- Generating done
-- Build files have been written to: /root/OSS/arm_3/build
  1. excute bear -- make
    result:
10:13 arm_3/build$ bear -- make                                                                                                       
[  1%] Building C object CMakeFiles/jpeg12.dir/jcapistd.c.o
[  1%] Building C object CMakeFiles/jpeg12.dir/jccoefct.c.o
[  1%] Building C object CMakeFiles/jpeg12.dir/jccolor.c.o
[  1%] Building C object CMakeFiles/jpeg12.dir/jcdctmgr.c.o
[  2%] Building C object CMakeFiles/jpeg12.dir/jcdiffct.c.o
[  2%] Building C object CMakeFiles/jpeg12.dir/jclossls.c.o
[  2%] Building C object CMakeFiles/jpeg12.dir/jcmainct.c.o
[  2%] Building C object CMakeFiles/jpeg12.dir/jcprepct.c.o
[  3%] Building C object CMakeFiles/jpeg12.dir/jcsample.c.o
[  3%] Building C object CMakeFiles/jpeg12.dir/jdapistd.c.o
[  3%] Building C object CMakeFiles/jpeg12.dir/jdcoefct.c.o
[  3%] Building C object CMakeFiles/jpeg12.dir/jdcolor.c.o
[  4%] Building C object CMakeFiles/jpeg12.dir/jddctmgr.c.o
[  4%] Building C object CMakeFiles/jpeg12.dir/jddiffct.c.o
[  4%] Building C object CMakeFiles/jpeg12.dir/jdlossls.c.o
[  4%] Building C object CMakeFiles/jpeg12.dir/jdmainct.c.o
[  5%] Building C object CMakeFiles/jpeg12.dir/jdmerge.c.o
[  5%] Building C object CMakeFiles/jpeg12.dir/jdpostct.c.o
[  5%] Building C object CMakeFiles/jpeg12.dir/jdsample.c.o
[  5%] Building C object CMakeFiles/jpeg12.dir/jfdctfst.c.o
[  6%] Building C object CMakeFiles/jpeg12.dir/jfdctint.c.o
[  6%] Building C object CMakeFiles/jpeg12.dir/jidctflt.c.o
[  6%] Building C object CMakeFiles/jpeg12.dir/jidctfst.c.o
[  6%] Building C object CMakeFiles/jpeg12.dir/jidctint.c.o
[  7%] Building C object CMakeFiles/jpeg12.dir/jidctred.c.o
[  7%] Building C object CMakeFiles/jpeg12.dir/jquant1.c.o
[  7%] Building C object CMakeFiles/jpeg12.dir/jquant2.c.o
[  7%] Building C object CMakeFiles/jpeg12.dir/jutils.c.o
[  7%] Built target jpeg12
[  8%] Building C object CMakeFiles/jpeg16.dir/jcapistd.c.o
[  8%] Building C object CMakeFiles/jpeg16.dir/jccolor.c.o
[  8%] Building C object CMakeFiles/jpeg16.dir/jcdiffct.c.o
[  8%] Building C object CMakeFiles/jpeg16.dir/jclossls.c.o
[  8%] Building C object CMakeFiles/jpeg16.dir/jcmainct.c.o
[  9%] Building C object CMakeFiles/jpeg16.dir/jcprepct.c.o
[  9%] Building C object CMakeFiles/jpeg16.dir/jcsample.c.o
[  9%] Building C object CMakeFiles/jpeg16.dir/jdapistd.c.o
[  9%] Building C object CMakeFiles/jpeg16.dir/jdcolor.c.o
[ 10%] Building C object CMakeFiles/jpeg16.dir/jddiffct.c.o
[ 10%] Building C object CMakeFiles/jpeg16.dir/jdlossls.c.o
[ 10%] Building C object CMakeFiles/jpeg16.dir/jdmainct.c.o
[ 10%] Building C object CMakeFiles/jpeg16.dir/jdpostct.c.o
[ 11%] Building C object CMakeFiles/jpeg16.dir/jdsample.c.o
[ 11%] Building C object CMakeFiles/jpeg16.dir/jquant1.c.o
[ 11%] Building C object CMakeFiles/jpeg16.dir/jquant2.c.o
[ 11%] Building C object CMakeFiles/jpeg16.dir/jutils.c.o
[ 11%] Built target jpeg16
[ 12%] Building C object simd/CMakeFiles/simd.dir/arm/jcgray-neon.c.o
[ 12%] Building C object simd/CMakeFiles/simd.dir/arm/jcphuff-neon.c.o
[ 12%] Building C object simd/CMakeFiles/simd.dir/arm/jcsample-neon.c.o
[ 12%] Building C object simd/CMakeFiles/simd.dir/arm/jdmerge-neon.c.o
[ 13%] Building C object simd/CMakeFiles/simd.dir/arm/jdsample-neon.c.o
[ 13%] Building C object simd/CMakeFiles/simd.dir/arm/jfdctfst-neon.c.o
[ 13%] Building C object simd/CMakeFiles/simd.dir/arm/jidctred-neon.c.o
[ 13%] Building C object simd/CMakeFiles/simd.dir/arm/jquanti-neon.c.o
[ 14%] Building C object simd/CMakeFiles/simd.dir/arm/jccolor-neon.c.o
[ 14%] Building C object simd/CMakeFiles/simd.dir/arm/jidctint-neon.c.o
[ 14%] Building C object simd/CMakeFiles/simd.dir/arm/jidctfst-neon.c.o
[ 14%] Building C object simd/CMakeFiles/simd.dir/arm/aarch64/jchuff-neon.c.o
[ 14%] Building C object simd/CMakeFiles/simd.dir/arm/jdcolor-neon.c.o
[ 15%] Building C object simd/CMakeFiles/simd.dir/arm/jfdctint-neon.c.o
[ 15%] Building C object simd/CMakeFiles/simd.dir/arm/aarch64/jsimd.c.o
[ 15%] Built target simd
[ 16%] Building C object CMakeFiles/jpeg-static.dir/jcapimin.c.o
[ 16%] Building C object CMakeFiles/jpeg-static.dir/jcapistd.c.o
[ 16%] Building C object CMakeFiles/jpeg-static.dir/jccoefct.c.o
[ 16%] Building C object CMakeFiles/jpeg-static.dir/jccolor.c.o
[ 17%] Building C object CMakeFiles/jpeg-static.dir/jcdctmgr.c.o
[ 17%] Building C object CMakeFiles/jpeg-static.dir/jcdiffct.c.o
[ 17%] Building C object CMakeFiles/jpeg-static.dir/jchuff.c.o
/root/OSS/arm_3/jchuff.c: In function ‘jpeg_gen_optimal_table’:
/root/OSS/arm_3/jchuff.c:1051:22: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
 1051 |     bits[codesize[i]]++;
      |     ~~~~~~~~~~~~~~~~~^~
/root/OSS/arm_3/jchuff.c:954:9: note: at offset 33 into destination object ‘bits’ of size 33
  954 |   UINT8 bits[MAX_CLEN + 1];     /* bits[k] = # of symbols with code length k */
      |         ^~~~
[ 17%] Building C object CMakeFiles/jpeg-static.dir/jcicc.c.o
[ 17%] Building C object CMakeFiles/jpeg-static.dir/jcinit.c.o
[ 18%] Building C object CMakeFiles/jpeg-static.dir/jclhuff.c.o
[ 18%] Building C object CMakeFiles/jpeg-static.dir/jclossls.c.o
[ 18%] Building C object CMakeFiles/jpeg-static.dir/jcmainct.c.o
[ 18%] Building C object CMakeFiles/jpeg-static.dir/jcmarker.c.o
[ 19%] Building C object CMakeFiles/jpeg-static.dir/jcmaster.c.o
[ 19%] Building C object CMakeFiles/jpeg-static.dir/jcomapi.c.o
[ 19%] Building C object CMakeFiles/jpeg-static.dir/jcparam.c.o
[ 19%] Building C object CMakeFiles/jpeg-static.dir/jcphuff.c.o
[ 20%] Building C object CMakeFiles/jpeg-static.dir/jcprepct.c.o
[ 20%] Building C object CMakeFiles/jpeg-static.dir/jcsample.c.o
[ 20%] Building C object CMakeFiles/jpeg-static.dir/jctrans.c.o
[ 20%] Building C object CMakeFiles/jpeg-static.dir/jdapimin.c.o
[ 21%] Building C object CMakeFiles/jpeg-static.dir/jdapistd.c.o
[ 21%] Building C object CMakeFiles/jpeg-static.dir/jdatadst.c.o
[ 21%] Building C object CMakeFiles/jpeg-static.dir/jdatasrc.c.o
[ 21%] Building C object CMakeFiles/jpeg-static.dir/jdcoefct.c.o
[ 22%] Building C object CMakeFiles/jpeg-static.dir/jdcolor.c.o
[ 22%] Building C object CMakeFiles/jpeg-static.dir/jddctmgr.c.o
[ 22%] Building C object CMakeFiles/jpeg-static.dir/jddiffct.c.o
[ 22%] Building C object CMakeFiles/jpeg-static.dir/jdhuff.c.o
[ 23%] Building C object CMakeFiles/jpeg-static.dir/jdicc.c.o
[ 23%] Building C object CMakeFiles/jpeg-static.dir/jdinput.c.o
[ 23%] Building C object CMakeFiles/jpeg-static.dir/jdlhuff.c.o
[ 23%] Building C object CMakeFiles/jpeg-static.dir/jdlossls.c.o
[ 24%] Building C object CMakeFiles/jpeg-static.dir/jdmainct.c.o
[ 24%] Building C object CMakeFiles/jpeg-static.dir/jdmarker.c.o
[ 24%] Building C object CMakeFiles/jpeg-static.dir/jdmaster.c.o
[ 24%] Building C object CMakeFiles/jpeg-static.dir/jdmerge.c.o
[ 25%] Building C object CMakeFiles/jpeg-static.dir/jdphuff.c.o
[ 25%] Building C object CMakeFiles/jpeg-static.dir/jdpostct.c.o
[ 25%] Building C object CMakeFiles/jpeg-static.dir/jdsample.c.o
[ 25%] Building C object CMakeFiles/jpeg-static.dir/jdtrans.c.o
[ 26%] Building C object CMakeFiles/jpeg-static.dir/jerror.c.o
[ 26%] Building C object CMakeFiles/jpeg-static.dir/jfdctflt.c.o
[ 26%] Building C object CMakeFiles/jpeg-static.dir/jfdctfst.c.o
[ 26%] Building C object CMakeFiles/jpeg-static.dir/jfdctint.c.o
[ 27%] Building C object CMakeFiles/jpeg-static.dir/jidctflt.c.o
[ 27%] Building C object CMakeFiles/jpeg-static.dir/jidctfst.c.o
[ 27%] Building C object CMakeFiles/jpeg-static.dir/jidctint.c.o
[ 27%] Building C object CMakeFiles/jpeg-static.dir/jidctred.c.o
[ 27%] Building C object CMakeFiles/jpeg-static.dir/jquant1.c.o
[ 28%] Building C object CMakeFiles/jpeg-static.dir/jquant2.c.o
[ 28%] Building C object CMakeFiles/jpeg-static.dir/jutils.c.o
[ 28%] Building C object CMakeFiles/jpeg-static.dir/jmemmgr.c.o
[ 28%] Building C object CMakeFiles/jpeg-static.dir/jmemnobs.c.o
[ 29%] Building C object CMakeFiles/jpeg-static.dir/jaricom.c.o
[ 29%] Building C object CMakeFiles/jpeg-static.dir/jcarith.c.o
[ 29%] Building C object CMakeFiles/jpeg-static.dir/jdarith.c.o
[ 29%] Linking C static library libjpeg.a
[ 29%] Built target jpeg-static
[ 29%] Building C object CMakeFiles/turbojpeg12.dir/rdppm.c.o
[ 30%] Building C object CMakeFiles/turbojpeg12.dir/wrppm.c.o
[ 30%] Built target turbojpeg12
[ 30%] Building C object CMakeFiles/turbojpeg16.dir/rdppm.c.o
[ 30%] Building C object CMakeFiles/turbojpeg16.dir/wrppm.c.o
[ 30%] Built target turbojpeg16
[ 30%] Building C object CMakeFiles/turbojpeg.dir/jcapimin.c.o
[ 30%] Building C object CMakeFiles/turbojpeg.dir/jcapistd.c.o
[ 31%] Building C object CMakeFiles/turbojpeg.dir/jccoefct.c.o
[ 31%] Building C object CMakeFiles/turbojpeg.dir/jccolor.c.o
[ 31%] Building C object CMakeFiles/turbojpeg.dir/jcdctmgr.c.o
[ 31%] Building C object CMakeFiles/turbojpeg.dir/jcdiffct.c.o
[ 32%] Building C object CMakeFiles/turbojpeg.dir/jchuff.c.o
/root/OSS/arm_3/jchuff.c: In function ‘jpeg_gen_optimal_table’:
/root/OSS/arm_3/jchuff.c:1051:22: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
 1051 |     bits[codesize[i]]++;
      |     ~~~~~~~~~~~~~~~~~^~
/root/OSS/arm_3/jchuff.c:954:9: note: at offset 33 into destination object ‘bits’ of size 33
  954 |   UINT8 bits[MAX_CLEN + 1];     /* bits[k] = # of symbols with code length k */
      |         ^~~~
[ 32%] Building C object CMakeFiles/turbojpeg.dir/jcicc.c.o
[ 32%] Building C object CMakeFiles/turbojpeg.dir/jcinit.c.o
[ 32%] Building C object CMakeFiles/turbojpeg.dir/jclhuff.c.o
[ 33%] Building C object CMakeFiles/turbojpeg.dir/jclossls.c.o
[ 33%] Building C object CMakeFiles/turbojpeg.dir/jcmainct.c.o
[ 33%] Building C object CMakeFiles/turbojpeg.dir/jcmarker.c.o
[ 33%] Building C object CMakeFiles/turbojpeg.dir/jcmaster.c.o
[ 34%] Building C object CMakeFiles/turbojpeg.dir/jcomapi.c.o
[ 34%] Building C object CMakeFiles/turbojpeg.dir/jcparam.c.o
[ 34%] Building C object CMakeFiles/turbojpeg.dir/jcphuff.c.o
[ 34%] Building C object CMakeFiles/turbojpeg.dir/jcprepct.c.o
[ 34%] Building C object CMakeFiles/turbojpeg.dir/jcsample.c.o
[ 35%] Building C object CMakeFiles/turbojpeg.dir/jctrans.c.o
[ 35%] Building C object CMakeFiles/turbojpeg.dir/jdapimin.c.o
[ 35%] Building C object CMakeFiles/turbojpeg.dir/jdapistd.c.o
[ 35%] Building C object CMakeFiles/turbojpeg.dir/jdatadst.c.o
[ 36%] Building C object CMakeFiles/turbojpeg.dir/jdatasrc.c.o
[ 36%] Building C object CMakeFiles/turbojpeg.dir/jdcoefct.c.o
[ 36%] Building C object CMakeFiles/turbojpeg.dir/jdcolor.c.o
[ 36%] Building C object CMakeFiles/turbojpeg.dir/jddctmgr.c.o
[ 37%] Building C object CMakeFiles/turbojpeg.dir/jddiffct.c.o
[ 37%] Building C object CMakeFiles/turbojpeg.dir/jdhuff.c.o
[ 37%] Building C object CMakeFiles/turbojpeg.dir/jdicc.c.o
[ 37%] Building C object CMakeFiles/turbojpeg.dir/jdinput.c.o
[ 38%] Building C object CMakeFiles/turbojpeg.dir/jdlhuff.c.o
[ 38%] Building C object CMakeFiles/turbojpeg.dir/jdlossls.c.o
[ 38%] Building C object CMakeFiles/turbojpeg.dir/jdmainct.c.o
[ 38%] Building C object CMakeFiles/turbojpeg.dir/jdmarker.c.o
[ 39%] Building C object CMakeFiles/turbojpeg.dir/jdmaster.c.o
[ 39%] Building C object CMakeFiles/turbojpeg.dir/jdmerge.c.o
[ 39%] Building C object CMakeFiles/turbojpeg.dir/jdphuff.c.o
[ 39%] Building C object CMakeFiles/turbojpeg.dir/jdpostct.c.o
[ 40%] Building C object CMakeFiles/turbojpeg.dir/jdsample.c.o
[ 40%] Building C object CMakeFiles/turbojpeg.dir/jdtrans.c.o
[ 40%] Building C object CMakeFiles/turbojpeg.dir/jerror.c.o
[ 40%] Building C object CMakeFiles/turbojpeg.dir/jfdctflt.c.o
[ 41%] Building C object CMakeFiles/turbojpeg.dir/jfdctfst.c.o
[ 41%] Building C object CMakeFiles/turbojpeg.dir/jfdctint.c.o
[ 41%] Building C object CMakeFiles/turbojpeg.dir/jidctflt.c.o
[ 41%] Building C object CMakeFiles/turbojpeg.dir/jidctfst.c.o
[ 42%] Building C object CMakeFiles/turbojpeg.dir/jidctint.c.o
[ 42%] Building C object CMakeFiles/turbojpeg.dir/jidctred.c.o
[ 42%] Building C object CMakeFiles/turbojpeg.dir/jquant1.c.o
[ 42%] Building C object CMakeFiles/turbojpeg.dir/jquant2.c.o
[ 43%] Building C object CMakeFiles/turbojpeg.dir/jutils.c.o
[ 43%] Building C object CMakeFiles/turbojpeg.dir/jmemmgr.c.o
[ 43%] Building C object CMakeFiles/turbojpeg.dir/jmemnobs.c.o
[ 43%] Building C object CMakeFiles/turbojpeg.dir/jaricom.c.o
[ 44%] Building C object CMakeFiles/turbojpeg.dir/jcarith.c.o
[ 44%] Building C object CMakeFiles/turbojpeg.dir/jdarith.c.o
[ 44%] Building C object CMakeFiles/turbojpeg.dir/turbojpeg.c.o
[ 44%] Building C object CMakeFiles/turbojpeg.dir/transupp.c.o
[ 44%] Building C object CMakeFiles/turbojpeg.dir/jdatadst-tj.c.o
[ 45%] Building C object CMakeFiles/turbojpeg.dir/jdatasrc-tj.c.o
[ 45%] Building C object CMakeFiles/turbojpeg.dir/rdbmp.c.o
[ 45%] Building C object CMakeFiles/turbojpeg.dir/rdppm.c.o
[ 45%] Building C object CMakeFiles/turbojpeg.dir/wrbmp.c.o
[ 46%] Building C object CMakeFiles/turbojpeg.dir/wrppm.c.o
[ 46%] Linking C shared library libturbojpeg.so
[ 46%] Built target turbojpeg
[ 47%] Building C object CMakeFiles/tjunittest.dir/tjunittest.c.o
[ 47%] Building C object CMakeFiles/tjunittest.dir/tjutil.c.o
[ 47%] Building C object CMakeFiles/tjunittest.dir/md5/md5.c.o
[ 47%] Building C object CMakeFiles/tjunittest.dir/md5/md5hl.c.o
[ 48%] Linking C executable tjunittest
[ 48%] Built target tjunittest
[ 49%] Building C object CMakeFiles/tjbench.dir/tjbench.c.o
[ 49%] Building C object CMakeFiles/tjbench.dir/tjutil.c.o
[ 49%] Linking C executable tjbench
[ 49%] Built target tjbench
[ 49%] Building C object CMakeFiles/tjexample.dir/tjexample.c.o
[ 49%] Linking C executable tjexample
[ 49%] Built target tjexample
[ 49%] Building C object CMakeFiles/turbojpeg-static.dir/jcapimin.c.o
[ 49%] Building C object CMakeFiles/turbojpeg-static.dir/jcapistd.c.o
[ 50%] Building C object CMakeFiles/turbojpeg-static.dir/jccoefct.c.o
[ 50%] Building C object CMakeFiles/turbojpeg-static.dir/jccolor.c.o
[ 50%] Building C object CMakeFiles/turbojpeg-static.dir/jcdctmgr.c.o
[ 50%] Building C object CMakeFiles/turbojpeg-static.dir/jcdiffct.c.o
[ 51%] Building C object CMakeFiles/turbojpeg-static.dir/jchuff.c.o
/root/OSS/arm_3/jchuff.c: In function ‘jpeg_gen_optimal_table’:
/root/OSS/arm_3/jchuff.c:1051:22: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
 1051 |     bits[codesize[i]]++;
      |     ~~~~~~~~~~~~~~~~~^~
/root/OSS/arm_3/jchuff.c:954:9: note: at offset 33 into destination object ‘bits’ of size 33
  954 |   UINT8 bits[MAX_CLEN + 1];     /* bits[k] = # of symbols with code length k */
      |         ^~~~
[ 51%] Building C object CMakeFiles/turbojpeg-static.dir/jcicc.c.o
[ 51%] Building C object CMakeFiles/turbojpeg-static.dir/jcinit.c.o
[ 51%] Building C object CMakeFiles/turbojpeg-static.dir/jclhuff.c.o
[ 52%] Building C object CMakeFiles/turbojpeg-static.dir/jclossls.c.o
[ 52%] Building C object CMakeFiles/turbojpeg-static.dir/jcmainct.c.o
[ 52%] Building C object CMakeFiles/turbojpeg-static.dir/jcmarker.c.o
[ 52%] Building C object CMakeFiles/turbojpeg-static.dir/jcmaster.c.o
[ 53%] Building C object CMakeFiles/turbojpeg-static.dir/jcomapi.c.o
[ 53%] Building C object CMakeFiles/turbojpeg-static.dir/jcparam.c.o
[ 53%] Building C object CMakeFiles/turbojpeg-static.dir/jcphuff.c.o
[ 53%] Building C object CMakeFiles/turbojpeg-static.dir/jcprepct.c.o
[ 54%] Building C object CMakeFiles/turbojpeg-static.dir/jcsample.c.o
[ 54%] Building C object CMakeFiles/turbojpeg-static.dir/jctrans.c.o
[ 54%] Building C object CMakeFiles/turbojpeg-static.dir/jdapimin.c.o
[ 54%] Building C object CMakeFiles/turbojpeg-static.dir/jdapistd.c.o
[ 55%] Building C object CMakeFiles/turbojpeg-static.dir/jdatadst.c.o
[ 55%] Building C object CMakeFiles/turbojpeg-static.dir/jdatasrc.c.o
[ 55%] Building C object CMakeFiles/turbojpeg-static.dir/jdcoefct.c.o
[ 55%] Building C object CMakeFiles/turbojpeg-static.dir/jdcolor.c.o
[ 56%] Building C object CMakeFiles/turbojpeg-static.dir/jddctmgr.c.o
[ 56%] Building C object CMakeFiles/turbojpeg-static.dir/jddiffct.c.o
[ 56%] Building C object CMakeFiles/turbojpeg-static.dir/jdhuff.c.o
[ 56%] Building C object CMakeFiles/turbojpeg-static.dir/jdicc.c.o
[ 57%] Building C object CMakeFiles/turbojpeg-static.dir/jdinput.c.o
[ 57%] Building C object CMakeFiles/turbojpeg-static.dir/jdlhuff.c.o
[ 57%] Building C object CMakeFiles/turbojpeg-static.dir/jdlossls.c.o
[ 57%] Building C object CMakeFiles/turbojpeg-static.dir/jdmainct.c.o
[ 57%] Building C object CMakeFiles/turbojpeg-static.dir/jdmarker.c.o
[ 58%] Building C object CMakeFiles/turbojpeg-static.dir/jdmaster.c.o
[ 58%] Building C object CMakeFiles/turbojpeg-static.dir/jdmerge.c.o
[ 58%] Building C object CMakeFiles/turbojpeg-static.dir/jdphuff.c.o
[ 58%] Building C object CMakeFiles/turbojpeg-static.dir/jdpostct.c.o
[ 59%] Building C object CMakeFiles/turbojpeg-static.dir/jdsample.c.o
[ 59%] Building C object CMakeFiles/turbojpeg-static.dir/jdtrans.c.o
[ 59%] Building C object CMakeFiles/turbojpeg-static.dir/jerror.c.o
[ 59%] Building C object CMakeFiles/turbojpeg-static.dir/jfdctflt.c.o
[ 60%] Building C object CMakeFiles/turbojpeg-static.dir/jfdctfst.c.o
[ 60%] Building C object CMakeFiles/turbojpeg-static.dir/jfdctint.c.o
[ 60%] Building C object CMakeFiles/turbojpeg-static.dir/jidctflt.c.o
[ 60%] Building C object CMakeFiles/turbojpeg-static.dir/jidctfst.c.o
[ 61%] Building C object CMakeFiles/turbojpeg-static.dir/jidctint.c.o
[ 61%] Building C object CMakeFiles/turbojpeg-static.dir/jidctred.c.o
[ 61%] Building C object CMakeFiles/turbojpeg-static.dir/jquant1.c.o
[ 61%] Building C object CMakeFiles/turbojpeg-static.dir/jquant2.c.o
[ 62%] Building C object CMakeFiles/turbojpeg-static.dir/jutils.c.o
[ 62%] Building C object CMakeFiles/turbojpeg-static.dir/jmemmgr.c.o
[ 62%] Building C object CMakeFiles/turbojpeg-static.dir/jmemnobs.c.o
[ 62%] Building C object CMakeFiles/turbojpeg-static.dir/jaricom.c.o
[ 63%] Building C object CMakeFiles/turbojpeg-static.dir/jcarith.c.o
[ 63%] Building C object CMakeFiles/turbojpeg-static.dir/jdarith.c.o
[ 63%] Building C object CMakeFiles/turbojpeg-static.dir/turbojpeg.c.o
[ 63%] Building C object CMakeFiles/turbojpeg-static.dir/transupp.c.o
[ 64%] Building C object CMakeFiles/turbojpeg-static.dir/jdatadst-tj.c.o
[ 64%] Building C object CMakeFiles/turbojpeg-static.dir/jdatasrc-tj.c.o
[ 64%] Building C object CMakeFiles/turbojpeg-static.dir/rdbmp.c.o
[ 64%] Building C object CMakeFiles/turbojpeg-static.dir/rdppm.c.o
[ 65%] Building C object CMakeFiles/turbojpeg-static.dir/wrbmp.c.o
[ 65%] Building C object CMakeFiles/turbojpeg-static.dir/wrppm.c.o
[ 65%] Linking C static library libturbojpeg.a
[ 65%] Built target turbojpeg-static
[ 65%] Building C object CMakeFiles/tjunittest-static.dir/tjunittest.c.o
[ 65%] Building C object CMakeFiles/tjunittest-static.dir/tjutil.c.o
[ 65%] Building C object CMakeFiles/tjunittest-static.dir/md5/md5.c.o
[ 66%] Building C object CMakeFiles/tjunittest-static.dir/md5/md5hl.c.o
[ 66%] Linking C executable tjunittest-static
[ 66%] Built target tjunittest-static
[ 66%] Building C object CMakeFiles/tjbench-static.dir/tjbench.c.o
[ 67%] Building C object CMakeFiles/tjbench-static.dir/tjutil.c.o
[ 67%] Linking C executable tjbench-static
[ 67%] Built target tjbench-static
[ 67%] Building C object CMakeFiles/cjpeg12-static.dir/rdgif.c.o
[ 67%] Building C object CMakeFiles/cjpeg12-static.dir/rdppm.c.o
[ 67%] Built target cjpeg12-static
[ 67%] Building C object CMakeFiles/cjpeg16-static.dir/rdgif.c.o
[ 67%] Building C object CMakeFiles/cjpeg16-static.dir/rdppm.c.o
[ 67%] Built target cjpeg16-static
[ 68%] Building C object CMakeFiles/cjpeg-static.dir/cjpeg.c.o
[ 68%] Building C object CMakeFiles/cjpeg-static.dir/cdjpeg.c.o
[ 68%] Building C object CMakeFiles/cjpeg-static.dir/rdbmp.c.o
[ 68%] Building C object CMakeFiles/cjpeg-static.dir/rdgif.c.o
[ 69%] Building C object CMakeFiles/cjpeg-static.dir/rdppm.c.o
[ 69%] Building C object CMakeFiles/cjpeg-static.dir/rdswitch.c.o
[ 69%] Building C object CMakeFiles/cjpeg-static.dir/rdtarga.c.o
[ 69%] Linking C executable cjpeg-static
[ 69%] Built target cjpeg-static
[ 70%] Building C object CMakeFiles/djpeg12-static.dir/rdcolmap.c.o
[ 70%] Building C object CMakeFiles/djpeg12-static.dir/wrgif.c.o
[ 70%] Building C object CMakeFiles/djpeg12-static.dir/wrppm.c.o
[ 70%] Built target djpeg12-static
[ 70%] Building C object CMakeFiles/djpeg16-static.dir/rdcolmap.c.o
[ 70%] Building C object CMakeFiles/djpeg16-static.dir/wrgif.c.o
[ 71%] Building C object CMakeFiles/djpeg16-static.dir/wrppm.c.o
[ 71%] Built target djpeg16-static
[ 71%] Building C object CMakeFiles/djpeg-static.dir/djpeg.c.o
[ 71%] Building C object CMakeFiles/djpeg-static.dir/cdjpeg.c.o
[ 71%] Building C object CMakeFiles/djpeg-static.dir/rdcolmap.c.o
[ 72%] Building C object CMakeFiles/djpeg-static.dir/rdswitch.c.o
[ 72%] Building C object CMakeFiles/djpeg-static.dir/wrbmp.c.o
[ 72%] Building C object CMakeFiles/djpeg-static.dir/wrgif.c.o
[ 72%] Building C object CMakeFiles/djpeg-static.dir/wrppm.c.o
[ 73%] Building C object CMakeFiles/djpeg-static.dir/wrtarga.c.o
[ 73%] Linking C executable djpeg-static
[ 73%] Built target djpeg-static
[ 73%] Building C object CMakeFiles/jpegtran-static.dir/jpegtran.c.o
[ 73%] Building C object CMakeFiles/jpegtran-static.dir/cdjpeg.c.o
[ 73%] Building C object CMakeFiles/jpegtran-static.dir/rdswitch.c.o
[ 74%] Building C object CMakeFiles/jpegtran-static.dir/transupp.c.o
[ 74%] Linking C executable jpegtran-static
[ 74%] Built target jpegtran-static
[ 74%] Building C object CMakeFiles/example-static.dir/example.c.o
[ 75%] Linking C executable example-static
[ 75%] Built target example-static
[ 75%] Building C object CMakeFiles/rdjpgcom.dir/rdjpgcom.c.o
[ 75%] Linking C executable rdjpgcom
[ 75%] Built target rdjpgcom
[ 75%] Building C object CMakeFiles/wrjpgcom.dir/wrjpgcom.c.o
[ 76%] Linking C executable wrjpgcom
[ 76%] Built target wrjpgcom
[ 76%] Building C object CMakeFiles/strtest.dir/strtest.c.o
[ 76%] Linking C executable strtest
[ 76%] Built target strtest
[ 76%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jcapimin.c.o
[ 77%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jcapistd.c.o
[ 77%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jccoefct.c.o
[ 77%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jccolor.c.o
[ 77%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jcdctmgr.c.o
[ 78%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jcdiffct.c.o
[ 78%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jchuff.c.o
/root/OSS/arm_3/jchuff.c: In function ‘jpeg_gen_optimal_table’:
/root/OSS/arm_3/jchuff.c:1051:22: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
 1051 |     bits[codesize[i]]++;
      |     ~~~~~~~~~~~~~~~~~^~
/root/OSS/arm_3/jchuff.c:954:9: note: at offset 33 into destination object ‘bits’ of size 33
  954 |   UINT8 bits[MAX_CLEN + 1];     /* bits[k] = # of symbols with code length k */
      |         ^~~~
[ 78%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jcicc.c.o
[ 78%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jcinit.c.o
[ 79%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jclhuff.c.o
[ 79%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jclossls.c.o
[ 79%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jcmainct.c.o
[ 79%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jcmarker.c.o
[ 80%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jcmaster.c.o
[ 80%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jcomapi.c.o
[ 80%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jcparam.c.o
[ 80%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jcphuff.c.o
[ 81%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jcprepct.c.o
[ 81%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jcsample.c.o
[ 81%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jctrans.c.o
[ 81%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jdapimin.c.o
[ 82%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jdapistd.c.o
[ 82%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jdatadst.c.o
[ 82%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jdatasrc.c.o
[ 82%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jdcoefct.c.o
[ 82%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jdcolor.c.o
[ 83%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jddctmgr.c.o
[ 83%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jddiffct.c.o
[ 83%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jdhuff.c.o
[ 83%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jdicc.c.o
[ 84%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jdinput.c.o
[ 84%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jdlhuff.c.o
[ 84%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jdlossls.c.o
[ 84%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jdmainct.c.o
[ 85%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jdmarker.c.o
[ 85%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jdmaster.c.o
[ 85%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jdmerge.c.o
[ 85%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jdphuff.c.o
[ 86%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jdpostct.c.o
[ 86%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jdsample.c.o
[ 86%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jdtrans.c.o
[ 86%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jerror.c.o
[ 87%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jfdctflt.c.o
[ 87%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jfdctfst.c.o
[ 87%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jfdctint.c.o
[ 87%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jidctflt.c.o
[ 88%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jidctfst.c.o
[ 88%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jidctint.c.o
[ 88%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jidctred.c.o
[ 88%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jquant1.c.o
[ 89%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jquant2.c.o
[ 89%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jutils.c.o
[ 89%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jmemmgr.c.o
[ 89%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jmemnobs.c.o
[ 90%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jaricom.c.o
[ 90%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jcarith.c.o
[ 90%] Building C object sharedlib/CMakeFiles/jpeg.dir/__/jdarith.c.o
[ 90%] Linking C shared library ../libjpeg.so
[ 90%] Built target jpeg
[ 91%] Building C object sharedlib/CMakeFiles/cjpeg12.dir/__/rdgif.c.o
[ 91%] Building C object sharedlib/CMakeFiles/cjpeg12.dir/__/rdppm.c.o
[ 91%] Built target cjpeg12
[ 92%] Building C object sharedlib/CMakeFiles/cjpeg16.dir/__/rdgif.c.o
[ 92%] Building C object sharedlib/CMakeFiles/cjpeg16.dir/__/rdppm.c.o
[ 92%] Built target cjpeg16
[ 92%] Building C object sharedlib/CMakeFiles/cjpeg.dir/__/cjpeg.c.o
[ 92%] Building C object sharedlib/CMakeFiles/cjpeg.dir/__/cdjpeg.c.o
[ 92%] Building C object sharedlib/CMakeFiles/cjpeg.dir/__/rdbmp.c.o
[ 92%] Building C object sharedlib/CMakeFiles/cjpeg.dir/__/rdgif.c.o
[ 93%] Building C object sharedlib/CMakeFiles/cjpeg.dir/__/rdppm.c.o
[ 93%] Building C object sharedlib/CMakeFiles/cjpeg.dir/__/rdswitch.c.o
[ 93%] Building C object sharedlib/CMakeFiles/cjpeg.dir/__/rdtarga.c.o
[ 93%] Linking C executable ../cjpeg
[ 93%] Built target cjpeg
[ 93%] Building C object sharedlib/CMakeFiles/djpeg12.dir/__/rdcolmap.c.o
[ 93%] Building C object sharedlib/CMakeFiles/djpeg12.dir/__/wrgif.c.o
[ 93%] Building C object sharedlib/CMakeFiles/djpeg12.dir/__/wrppm.c.o
[ 93%] Built target djpeg12
[ 93%] Building C object sharedlib/CMakeFiles/djpeg16.dir/__/rdcolmap.c.o
[ 94%] Building C object sharedlib/CMakeFiles/djpeg16.dir/__/wrgif.c.o
[ 94%] Building C object sharedlib/CMakeFiles/djpeg16.dir/__/wrppm.c.o
[ 94%] Built target djpeg16
[ 95%] Building C object sharedlib/CMakeFiles/djpeg.dir/__/djpeg.c.o
[ 95%] Building C object sharedlib/CMakeFiles/djpeg.dir/__/cdjpeg.c.o
[ 95%] Building C object sharedlib/CMakeFiles/djpeg.dir/__/rdcolmap.c.o
[ 95%] Building C object sharedlib/CMakeFiles/djpeg.dir/__/rdswitch.c.o
[ 96%] Building C object sharedlib/CMakeFiles/djpeg.dir/__/wrbmp.c.o
[ 96%] Building C object sharedlib/CMakeFiles/djpeg.dir/__/wrgif.c.o
[ 96%] Building C object sharedlib/CMakeFiles/djpeg.dir/__/wrppm.c.o
[ 96%] Building C object sharedlib/CMakeFiles/djpeg.dir/__/wrtarga.c.o
[ 97%] Linking C executable ../djpeg
[ 97%] Built target djpeg
[ 98%] Building C object sharedlib/CMakeFiles/jpegtran.dir/__/jpegtran.c.o
[ 98%] Building C object sharedlib/CMakeFiles/jpegtran.dir/__/cdjpeg.c.o
[ 98%] Building C object sharedlib/CMakeFiles/jpegtran.dir/__/rdswitch.c.o
[ 98%] Building C object sharedlib/CMakeFiles/jpegtran.dir/__/transupp.c.o
[ 99%] Linking C executable ../jpegtran
[ 99%] Built target jpegtran
[ 99%] Building C object sharedlib/CMakeFiles/example.dir/__/example.c.o
[ 99%] Linking C executable ../example
[ 99%] Built target example
[ 99%] Building C object sharedlib/CMakeFiles/jcstest.dir/__/jcstest.c.o
[ 99%] Linking C executable ../jcstest
[ 99%] Built target jcstest
[ 99%] Building C object md5/CMakeFiles/md5cmp.dir/md5cmp.c.o
[ 99%] Building C object md5/CMakeFiles/md5cmp.dir/md5.c.o
[100%] Building C object md5/CMakeFiles/md5cmp.dir/md5hl.c.o
[100%] Linking C executable md5cmp
[100%] Built target md5cmp

5.excetu lsif-clang -p /root/OSS/arm_3/build --project-root=/root/OSS/arm_3 compile_commands.json
error:
image

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

No branches or pull requests

1 participant