Can't compile aseprite on Xubuntu 22.04 LTS - Cmake error

I downloaded the source code of the latest release from Github and I’m using Skia-m102 precompiled binaries. When I run the command from INSTALL.md I get this error:

CMake Error at /usr/share/cmake-3.22/Modules/CMakeTestCXXCompiler.cmake:62 (message):
  The C++ compiler

    "/usr/bin/clang++"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /home/gabriele/aseprite/build/CMakeFiles/CMakeTmp
    
    Run Build Command(s):/usr/bin/ninja cmTC_8308e && [1/2] Building CXX object CMakeFiles/cmTC_8308e.dir/testCXXCompiler.cxx.o
    [2/2] Linking CXX executable cmTC_8308e
    FAILED: cmTC_8308e 
    : && /usr/bin/clang++ -stdlib=libc++ -stdlib=libc++ CMakeFiles/cmTC_8308e.dir/testCXXCompiler.cxx.o -o cmTC_8308e   && :
    /usr/bin/ld: cannot find -lc++abi: No such file or directory
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    ninja: build stopped: subcommand failed.
    
    

  

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:32 (project)

I’m fairly new to Linux so I don’t really know what to do.

Hi @Gabbinetto, it’s probable that you need libc++abi-10-dev package installed.

Hi, thanks for answering. How do I install this? If I do sudo apt-get install libc++abi-10-dev it says it can’t locate it.

Try with libc++abi-dev (not sure about the specific -10 version)

Sorry for the late answer, it worked and started compiling, but at the very last step ninja gave a long error.
Here’s the error:

[1574/1574] Linking CXX executable bin/aseprite
FAILED: bin/aseprite 
: && /usr/bin/clang++ -stdlib=libc++ -Wall -Wno-switch -O2 -g -DNDEBUG -stdlib=libc++ src/CMakeFiles/aseprite.dir/main/main.cpp.o -o bin/aseprite  lib/libapp-lib.a  lib/libcfg-lib.a  lib/libclip.a  -lxcb  lib/libdio-lib.a  lib/libfilters-lib.a  lib/libflic-lib.a  lib/libtga-lib.a  lib/librender-lib.a  lib/libdoc-lib.a  lib/libfixmath-lib.a  lib/libcityhash.a  lib/libui-lib.a  lib/liblaf-os.a  lib/liblaf-gfx.a  lib/liblaf-ft.a  /home/gabriele/deps/skia/out/Release-x64/libfreetype2.a  /home/gabriele/deps/skia/out/Release-x64/libharfbuzz.a  /home/gabriele/deps/skia/out/Release-x64/libskia.a  /usr/lib/x86_64-linux-gnu/libGL.so  /usr/lib/x86_64-linux-gnu/libfontconfig.so  /usr/lib/x86_64-linux-gnu/libX11.so  /usr/lib/x86_64-linux-gnu/libXext.so  /usr/lib/x86_64-linux-gnu/libXcursor.so  /home/gabriele/deps/skia/out/Release-x64/libskshaper.a  lib/libobs.a  lib/libundo.a  lib/libcmark.a  lib/libjpeg.a  lib/libgiflib.a  lib/libpng16.a  -lm  lib/libwebpdemux.a  lib/libwebpmux.a  lib/libwebp.a  -lm  lib/libjson11.a  lib/libarchive.a  /usr/lib/x86_64-linux-gnu/libcrypto.so  /usr/lib/x86_64-linux-gnu/libssl.so  lib/libfmt.a  lib/libtinyexpr.a  lib/liblauxlib.a  lib/liblua.a  lib/liblualib.a  lib/libixwebsocket.a  lib/libz.a  lib/libupdater-lib.a  lib/libver-lib.a  lib/libtinyxml.a  lib/libnet-lib.a  lib/liblaf-base.a  lib/libmodpbase64.a  -lpthread  /usr/lib/x86_64-linux-gnu/libdl.a  lib/libcurl.a  -ldl && :
/usr/bin/ld: lib/libwebp.a(alpha_processing.c.o): in function `WebPMultARGBRow_C':
alpha_processing.c:(.text+0x0): multiple definition of `WebPMultARGBRow_C'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.alpha_processing.o):alpha_processing.c:(.text.WebPMultARGBRow_C+0x0): first defined here
/usr/bin/ld: /usr/bin/ld: DWARF error: invalid or unhandled FORM value: 0x22
lib/libwebp.a(alpha_processing.c.o): in function `WebPMultRow_C':
alpha_processing.c:(.text+0xa0): multiple definition of `WebPMultRow_C'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.alpha_processing.o):alpha_processing.c:(.text.WebPMultRow_C+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(alpha_processing.c.o): in function `WebPMultARGBRows':
alpha_processing.c:(.text+0x100): multiple definition of `WebPMultARGBRows'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.alpha_processing.o):alpha_processing.c:(.text.WebPMultARGBRows+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(alpha_processing.c.o): in function `WebPMultRows':
alpha_processing.c:(.text+0x160): multiple definition of `WebPMultRows'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.alpha_processing.o):alpha_processing.c:(.text.WebPMultRows+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(alpha_processing.c.o): in function `WebPInitAlphaProcessing':
alpha_processing.c:(.text+0x1d0): multiple definition of `WebPInitAlphaProcessing'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.alpha_processing.o):alpha_processing.c:(.text.WebPInitAlphaProcessing+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(dec.c.o): in function `VP8DspInit':
dec.c:(.text+0x0): multiple definition of `VP8DspInit'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.dec.o):dec.c:(.text.VP8DspInit+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(filters.c.o): in function `VP8FiltersInit':
filters.c:(.text+0x0): multiple definition of `VP8FiltersInit'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.filters.o):filters.c:(.text.VP8FiltersInit+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(lossless.c.o): in function `VP8LPredictor0_C':
lossless.c:(.text+0x0): multiple definition of `VP8LPredictor0_C'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.lossless.o):lossless.c:(.text.VP8LPredictor0_C+0x0): first defined here
/usr/bin/ld: /usr/bin/ld: DWARF error: invalid or unhandled FORM value: 0x22
lib/libwebp.a(lossless.c.o): in function `VP8LPredictor1_C':
lossless.c:(.text+0x10): multiple definition of `VP8LPredictor1_C'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.lossless.o):lossless.c:(.text.VP8LPredictor1_C+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(lossless.c.o): in function `VP8LPredictor2_C':
lossless.c:(.text+0x20): multiple definition of `VP8LPredictor2_C'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.lossless.o):lossless.c:(.text.VP8LPredictor2_C+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(lossless.c.o): in function `VP8LPredictor3_C':
lossless.c:(.text+0x30): multiple definition of `VP8LPredictor3_C'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.lossless.o):lossless.c:(.text.VP8LPredictor3_C+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(lossless.c.o): in function `VP8LPredictor4_C':
lossless.c:(.text+0x40): multiple definition of `VP8LPredictor4_C'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.lossless.o):lossless.c:(.text.VP8LPredictor4_C+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(lossless.c.o): in function `VP8LPredictor5_C':
lossless.c:(.text+0x50): multiple definition of `VP8LPredictor5_C'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.lossless.o):lossless.c:(.text.VP8LPredictor5_C+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(lossless.c.o): in function `VP8LPredictor6_C':
lossless.c:(.text+0x80): multiple definition of `VP8LPredictor6_C'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.lossless.o):lossless.c:(.text.VP8LPredictor6_C+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(lossless.c.o): in function `VP8LPredictor7_C':
lossless.c:(.text+0xa0): multiple definition of `VP8LPredictor7_C'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.lossless.o):lossless.c:(.text.VP8LPredictor7_C+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(lossless.c.o): in function `VP8LPredictor8_C':
lossless.c:(.text+0xc0): multiple definition of `VP8LPredictor8_C'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.lossless.o):lossless.c:(.text.VP8LPredictor8_C+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(lossless.c.o): in function `VP8LPredictor9_C':
lossless.c:(.text+0xe0): multiple definition of `VP8LPredictor9_C'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.lossless.o):lossless.c:(.text.VP8LPredictor9_C+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(lossless.c.o): in function `VP8LPredictor10_C':
lossless.c:(.text+0x100): multiple definition of `VP8LPredictor10_C'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.lossless.o):lossless.c:(.text.VP8LPredictor10_C+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(lossless.c.o): in function `VP8LPredictor11_C':
lossless.c:(.text+0x140): multiple definition of `VP8LPredictor11_C'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.lossless.o):lossless.c:(.text.VP8LPredictor11_C+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(lossless.c.o): in function `VP8LPredictor12_C':
lossless.c:(.text+0x200): multiple definition of `VP8LPredictor12_C'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.lossless.o):lossless.c:(.text.VP8LPredictor12_C+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(lossless.c.o): in function `VP8LPredictor13_C':
lossless.c:(.text+0x2c0): multiple definition of `VP8LPredictor13_C'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.lossless.o):lossless.c:(.text.VP8LPredictor13_C+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(lossless.c.o): in function `VP8LAddGreenToBlueAndRed_C':
lossless.c:(.text+0x3a0): multiple definition of `VP8LAddGreenToBlueAndRed_C'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.lossless.o):lossless.c:(.text.VP8LAddGreenToBlueAndRed_C+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(lossless.c.o): in function `VP8LTransformColorInverse_C':
lossless.c:(.text+0x520): multiple definition of `VP8LTransformColorInverse_C'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.lossless.o):lossless.c:(.text.VP8LTransformColorInverse_C+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(lossless.c.o): in function `VP8LColorIndexInverseTransformAlpha':
lossless.c:(.text+0x700): multiple definition of `VP8LColorIndexInverseTransformAlpha'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.lossless.o):lossless.c:(.text.VP8LColorIndexInverseTransformAlpha+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(lossless.c.o): in function `VP8LInverseTransform':
lossless.c:(.text+0x870): multiple definition of `VP8LInverseTransform'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.lossless.o):lossless.c:(.text.VP8LInverseTransform+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(lossless.c.o): in function `VP8LConvertBGRAToRGB_C':
lossless.c:(.text+0x1000): multiple definition of `VP8LConvertBGRAToRGB_C'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.lossless.o):lossless.c:(.text.VP8LConvertBGRAToRGB_C+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(lossless.c.o): in function `VP8LConvertBGRAToRGBA_C':
lossless.c:(.text+0x1030): multiple definition of `VP8LConvertBGRAToRGBA_C'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.lossless.o):lossless.c:(.text.VP8LConvertBGRAToRGBA_C+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(lossless.c.o): in function `VP8LConvertBGRAToRGBA4444_C':
lossless.c:(.text+0x1070): multiple definition of `VP8LConvertBGRAToRGBA4444_C'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.lossless.o):lossless.c:(.text.VP8LConvertBGRAToRGBA4444_C+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(lossless.c.o): in function `VP8LConvertBGRAToRGB565_C':
lossless.c:(.text+0x1200): multiple definition of `VP8LConvertBGRAToRGB565_C'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.lossless.o):lossless.c:(.text.VP8LConvertBGRAToRGB565_C+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(lossless.c.o): in function `VP8LConvertBGRAToBGR_C':
lossless.c:(.text+0x1350): multiple definition of `VP8LConvertBGRAToBGR_C'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.lossless.o):lossless.c:(.text.VP8LConvertBGRAToBGR_C+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(lossless.c.o): in function `VP8LConvertFromBGRA':
lossless.c:(.text+0x1380): multiple definition of `VP8LConvertFromBGRA'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.lossless.o):lossless.c:(.text.VP8LConvertFromBGRA+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(lossless.c.o): in function `VP8LDspInit':
lossless.c:(.text+0x16e0): multiple definition of `VP8LDspInit'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.lossless.o):lossless.c:(.text.VP8LDspInit+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(rescaler.c.o): in function `WebPRescalerImportRowExpand_C':
rescaler.c:(.text+0x0): multiple definition of `WebPRescalerImportRowExpand_C'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.rescaler.o):rescaler.c:(.text.WebPRescalerImportRowExpand_C+0x0): first defined here
/usr/bin/ld: /usr/bin/ld: DWARF error: invalid or unhandled FORM value: 0x22
lib/libwebp.a(rescaler.c.o): in function `WebPRescalerImportRowShrink_C':
rescaler.c:(.text+0xb0): multiple definition of `WebPRescalerImportRowShrink_C'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.rescaler.o):rescaler.c:(.text.WebPRescalerImportRowShrink_C+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(rescaler.c.o): in function `WebPRescalerExportRowExpand_C':
rescaler.c:(.text+0x160): multiple definition of `WebPRescalerExportRowExpand_C'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.rescaler.o):rescaler.c:(.text.WebPRescalerExportRowExpand_C+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(rescaler.c.o): in function `WebPRescalerExportRowShrink_C':
rescaler.c:(.text+0x400): multiple definition of `WebPRescalerExportRowShrink_C'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.rescaler.o):rescaler.c:(.text.WebPRescalerExportRowShrink_C+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(rescaler.c.o): in function `WebPRescalerImportRow':
rescaler.c:(.text+0x690): multiple definition of `WebPRescalerImportRow'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.rescaler.o):rescaler.c:(.text.WebPRescalerImportRow+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(rescaler.c.o): in function `WebPRescalerExportRow':
rescaler.c:(.text+0x6b0): multiple definition of `WebPRescalerExportRow'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.rescaler.o):rescaler.c:(.text.WebPRescalerExportRow+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(rescaler.c.o): in function `WebPRescalerDspInit':
rescaler.c:(.text+0x740): multiple definition of `WebPRescalerDspInit'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.rescaler.o):rescaler.c:(.text.WebPRescalerDspInit+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(upsampling.c.o): in function `WebPGetLinePairConverter':
upsampling.c:(.text+0x0): multiple definition of `WebPGetLinePairConverter'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.upsampling.o):upsampling.c:(.text.WebPGetLinePairConverter+0x0): first defined here
/usr/bin/ld: /usr/bin/ld: DWARF error: invalid or unhandled FORM value: 0x22
lib/libwebp.a(upsampling.c.o): in function `WebPInitUpsamplers':
upsampling.c:(.text+0x20): multiple definition of `WebPInitUpsamplers'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.upsampling.o):upsampling.c:(.text.WebPInitUpsamplers+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(upsampling.c.o): in function `WebPYuv444ToRgba_C':
upsampling.c:(.text+0xf0): multiple definition of `WebPYuv444ToRgba_C'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.upsampling.o):upsampling.c:(.text.WebPYuv444ToRgba_C+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(upsampling.c.o): in function `WebPYuv444ToBgra_C':
upsampling.c:(.text+0xfb0): multiple definition of `WebPYuv444ToBgra_C'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.upsampling.o):upsampling.c:(.text.WebPYuv444ToBgra_C+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(upsampling.c.o): in function `WebPYuv444ToRgb_C':
upsampling.c:(.text+0x1e60): multiple definition of `WebPYuv444ToRgb_C'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.upsampling.o):upsampling.c:(.text.WebPYuv444ToRgb_C+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(upsampling.c.o): in function `WebPYuv444ToBgr_C':
upsampling.c:(.text+0x2b60): multiple definition of `WebPYuv444ToBgr_C'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.upsampling.o):upsampling.c:(.text.WebPYuv444ToBgr_C+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(upsampling.c.o): in function `WebPYuv444ToArgb_C':
upsampling.c:(.text+0x3870): multiple definition of `WebPYuv444ToArgb_C'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.upsampling.o):upsampling.c:(.text.WebPYuv444ToArgb_C+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(upsampling.c.o): in function `WebPYuv444ToRgba4444_C':
upsampling.c:(.text+0x4770): multiple definition of `WebPYuv444ToRgba4444_C'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.upsampling.o):upsampling.c:(.text.WebPYuv444ToRgba4444_C+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(upsampling.c.o): in function `WebPYuv444ToRgb565_C':
upsampling.c:(.text+0x4c20): multiple definition of `WebPYuv444ToRgb565_C'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.upsampling.o):upsampling.c:(.text.WebPYuv444ToRgb565_C+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(upsampling.c.o): in function `WebPInitYUV444Converters':
upsampling.c:(.text+0x50f0): multiple definition of `WebPInitYUV444Converters'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.upsampling.o):upsampling.c:(.text.WebPInitYUV444Converters+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(yuv.c.o): in function `WebPSamplerProcessPlane':
yuv.c:(.text+0x0): multiple definition of `WebPSamplerProcessPlane'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.yuv.o):yuv.c:(.text.WebPSamplerProcessPlane+0x0): first defined here
/usr/bin/ld: /usr/bin/ld: DWARF error: invalid or unhandled FORM value: 0x22
lib/libwebp.a(yuv.c.o): in function `WebPInitSamplers':
yuv.c:(.text+0x90): multiple definition of `WebPInitSamplers'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.yuv.o):yuv.c:(.text.WebPInitSamplers+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(yuv.c.o): in function `WebPConvertARGBToUV_C':
yuv.c:(.text+0x170): multiple definition of `WebPConvertARGBToUV_C'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.yuv.o):yuv.c:(.text.WebPConvertARGBToUV_C+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(yuv.c.o): in function `WebPConvertRGBA32ToUV_C':
yuv.c:(.text+0x310): multiple definition of `WebPConvertRGBA32ToUV_C'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.yuv.o):yuv.c:(.text.WebPConvertRGBA32ToUV_C+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(yuv.c.o): in function `WebPInitConvertARGBToYUV':
yuv.c:(.text+0x870): multiple definition of `WebPInitConvertARGBToYUV'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.yuv.o):yuv.c:(.text.WebPInitConvertARGBToYUV+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(cost.c.o): in function `VP8EncDspCostInit':
cost.c:(.text+0x0): multiple definition of `VP8EncDspCostInit'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.cost.o):cost.c:(.text.VP8EncDspCostInit+0x0): first defined here
/usr/bin/ld: /usr/bin/ld: DWARF error: invalid or unhandled FORM value: 0x22
lib/libwebp.a(cost.c.o):(.rodata+0x0): multiple definition of `VP8EntropyCost'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.cost.o):(.rodata.VP8EntropyCost+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(cost.c.o):(.rodata+0x200): multiple definition of `VP8LevelFixedCosts'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.cost.o):(.rodata.VP8LevelFixedCosts+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(cost.c.o):(.rodata+0x1200): multiple definition of `VP8EncBands'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.cost.o):(.rodata.VP8EncBands+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(enc.c.o): in function `VP8SetHistogramData':
enc.c:(.text+0x0): multiple definition of `VP8SetHistogramData'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.enc.o):enc.c:(.text.VP8SetHistogramData+0x0): first defined here
/usr/bin/ld: /usr/bin/ld: DWARF error: invalid or unhandled FORM value: 0x22
lib/libwebp.a(enc.c.o): in function `VP8EncDspInit':
enc.c:(.text+0x60): multiple definition of `VP8EncDspInit'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.enc.o):enc.c:(.text.VP8EncDspInit+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(enc.c.o):(.rodata+0x0): multiple definition of `VP8DspScan'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.enc.o):(.rodata.VP8DspScan+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(lossless_enc.c.o): in function `VP8LBitEntropyInit':
lossless_enc.c:(.text+0x0): multiple definition of `VP8LBitEntropyInit'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.lossless_enc.o):lossless_enc.c:(.text.VP8LBitEntropyInit+0x0): first defined here
/usr/bin/ld: /usr/bin/ld: DWARF error: invalid or unhandled FORM value: 0x22
lib/libwebp.a(lossless_enc.c.o): in function `VP8LBitsEntropyUnrefined':
lossless_enc.c:(.text+0x20): multiple definition of `VP8LBitsEntropyUnrefined'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.lossless_enc.o):lossless_enc.c:(.text.VP8LBitsEntropyUnrefined+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(lossless_enc.c.o):(.rodata+0x400): multiple definition of `kSLog2Table'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.lossless_enc.o):(.rodata.kSLog2Table+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(lossless_enc.c.o): in function `VP8LSubtractGreenFromBlueAndRed_C':
lossless_enc.c:(.text+0x120): multiple definition of `VP8LSubtractGreenFromBlueAndRed_C'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.lossless_enc.o):lossless_enc.c:(.text.VP8LSubtractGreenFromBlueAndRed_C+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(lossless_enc.c.o): in function `VP8LTransformColor_C':
lossless_enc.c:(.text+0x240): multiple definition of `VP8LTransformColor_C'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.lossless_enc.o):lossless_enc.c:(.text.VP8LTransformColor_C+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(lossless_enc.c.o): in function `VP8LCollectColorRedTransforms_C':
lossless_enc.c:(.text+0x410): multiple definition of `VP8LCollectColorRedTransforms_C'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.lossless_enc.o):lossless_enc.c:(.text.VP8LCollectColorRedTransforms_C+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(lossless_enc.c.o): in function `VP8LCollectColorBlueTransforms_C':
lossless_enc.c:(.text+0x4e0): multiple definition of `VP8LCollectColorBlueTransforms_C'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.lossless_enc.o):lossless_enc.c:(.text.VP8LCollectColorBlueTransforms_C+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(lossless_enc.c.o): in function `VP8LBundleColorMap_C':
lossless_enc.c:(.text+0x570): multiple definition of `VP8LBundleColorMap_C'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.lossless_enc.o):lossless_enc.c:(.text.VP8LBundleColorMap_C+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(lossless_enc.c.o): in function `VP8LHistogramAdd':
lossless_enc.c:(.text+0x860): multiple definition of `VP8LHistogramAdd'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.lossless_enc.o):lossless_enc.c:(.text.VP8LHistogramAdd+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(lossless_enc.c.o): in function `VP8LEncDspInit':
lossless_enc.c:(.text+0xd10): multiple definition of `VP8LEncDspInit'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.lossless_enc.o):lossless_enc.c:(.text.VP8LEncDspInit+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(lossless_enc.c.o):(.rodata+0x0): multiple definition of `kLog2Table'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.lossless_enc.o):(.rodata.kLog2Table+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(lossless_enc.c.o):(.rodata+0x800): multiple definition of `kPrefixEncodeCode'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.lossless_enc.o):(.rodata.kPrefixEncodeCode+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(lossless_enc.c.o):(.rodata+0xc00): multiple definition of `kPrefixEncodeExtraBitsValue'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.lossless_enc.o):(.rodata.kPrefixEncodeExtraBitsValue+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(ssim.c.o): in function `VP8SSIMFromStats':
ssim.c:(.text+0x0): multiple definition of `VP8SSIMFromStats'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.ssim.o):ssim.c:(.text.VP8SSIMFromStats+0x0): first defined here
/usr/bin/ld: /usr/bin/ld: DWARF error: invalid or unhandled FORM value: 0x22
lib/libwebp.a(ssim.c.o): in function `VP8SSIMFromStatsClipped':
ssim.c:(.text+0xd0): multiple definition of `VP8SSIMFromStatsClipped'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.ssim.o):ssim.c:(.text.VP8SSIMFromStatsClipped+0x0): first defined here
/usr/bin/ld: lib/libwebp.a(ssim.c.o): in function `VP8SSIMDspInit':
ssim.c:(.text+0x1a0): multiple definition of `VP8SSIMDspInit'; /home/gabriele/deps/skia/out/Release-x64/libskia.a(libwebp.ssim.o):ssim.c:(.text.VP8SSIMDspInit+0x0): first defined here
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.

@Gabbinetto kinda late, but you should be able to compile the latest versions (1.2.39 and 1.3 beta 20) now.

1 Like

It did work, thanks for letting me know!

2 Likes