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

[libdeflate] Build error on x64-linux #39207

Closed
AdamHzami-Bernard opened this issue Jun 10, 2024 · 5 comments · Fixed by #39237
Closed

[libdeflate] Build error on x64-linux #39207

AdamHzami-Bernard opened this issue Jun 10, 2024 · 5 comments · Fixed by #39237
Assignees
Labels
category:port-bug The issue is with a library, which is something the port should already support

Comments

@AdamHzami-Bernard
Copy link

AdamHzami-Bernard commented Jun 10, 2024

I have a fresh updated rocky 9 install and i'am encountering an error installing libdeflate from vcpkg
libdeflate compiles just fine when i build from sources

Package: libdeflate[compression,core,decompression,gzip,zlib]:x64-linux@1.20

Host Environment

  • Host: x64-linux
  • Compiler: GNU 11.4.1
  • vcpkg-tool version: 2024-04-23-d6945642ee5c3076addd1a42c331bbf4cfc97457
    vcpkg-scripts version: ad25766 2024-06-08 (2 days ago)

To Reproduce

vcpkg install libdeflate[compression,core,decompression,gzip,zlib]

Failure logs

-- Using cached ebiggers-libdeflate-v1.20.tar.gz.
-- Cleaning sources at /home/adam/Bernard/BernardClient/Src/BuildInstall/vcpkg/buildtrees/libdeflate/src/v1.20-714b5d593b.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /home/adam/Bernard/BernardClient/Src/BuildInstall/vcpkg/downloads/ebiggers-libdeflate-v1.20.tar.gz
-- Applying patch remove_wrong_c_flags_modification.diff
-- Using source at /home/adam/Bernard/BernardClient/Src/BuildInstall/vcpkg/buildtrees/libdeflate/src/v1.20-714b5d593b.clean
-- Configuring x64-linux
-- Building x64-linux-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: /home/adam/Bernard/BernardClient/Src/BuildInstall/vcpkg/downloads/tools/cmake-3.29.2-linux/cmake-3.29.2-linux-x86_64/bin/cmake --build . --config Debug --target install -- -v -j13
    Working Directory: /home/adam/Bernard/BernardClient/Src/BuildInstall/vcpkg/buildtrees/libdeflate/x64-linux-dbg
    See logs for more information:
      /home/adam/Bernard/BernardClient/Src/BuildInstall/vcpkg/buildtrees/libdeflate/install-x64-linux-dbg-out.log

Call Stack (most recent call first):
  installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  ports/libdeflate/portfile.cmake:31 (vcpkg_cmake_install)
  scripts/ports.cmake:175 (include)



/home/adam/Bernard/BernardClient/Src/BuildInstall/vcpkg/buildtrees/libdeflate/install-x64-linux-dbg-out.log
Change Dir: '/home/adam/Bernard/BernardClient/Src/BuildInstall/vcpkg/buildtrees/libdeflate/x64-linux-dbg'

Run Build Command(s): /home/adam/Bernard/BernardClient/Src/BuildInstall/vcpkg/downloads/tools/ninja/1.10.2-linux/ninja -v -v -j13 install
[1/13] /bin/cc  -I/home/adam/Bernard/BernardClient/Src/BuildInstall/vcpkg/buildtrees/libdeflate/src/v1.20-714b5d593b.clean -fPIC -g -std=gnu99 -Wall -Wdeclaration-after-statement -Wimplicit-fallthrough -Wmissing-field-initializers -Wmissing-prototypes -Wpedantic -Wshadow -Wstrict-prototypes -Wundef -Wvla -MD -MT CMakeFiles/libdeflate_static.dir/lib/zlib_decompress.c.o -MF CMakeFiles/libdeflate_static.dir/lib/zlib_decompress.c.o.d -o CMakeFiles/libdeflate_static.dir/lib/zlib_decompress.c.o -c /home/adam/Bernard/BernardClient/Src/BuildInstall/vcpkg/buildtrees/libdeflate/src/v1.20-714b5d593b.clean/lib/zlib_decompress.c
[2/13] /bin/cc  -I/home/adam/Bernard/BernardClient/Src/BuildInstall/vcpkg/buildtrees/libdeflate/src/v1.20-714b5d593b.clean -fPIC -g -std=gnu99 -Wall -Wdeclaration-after-statement -Wimplicit-fallthrough -Wmissing-field-initializers -Wmissing-prototypes -Wpedantic -Wshadow -Wstrict-prototypes -Wundef -Wvla -MD -MT CMakeFiles/libdeflate_static.dir/lib/utils.c.o -MF CMakeFiles/libdeflate_static.dir/lib/utils.c.o.d -o CMakeFiles/libdeflate_static.dir/lib/utils.c.o -c /home/adam/Bernard/BernardClient/Src/BuildInstall/vcpkg/buildtrees/libdeflate/src/v1.20-714b5d593b.clean/lib/utils.c
[3/13] /bin/cc  -I/home/adam/Bernard/BernardClient/Src/BuildInstall/vcpkg/buildtrees/libdeflate/src/v1.20-714b5d593b.clean -fPIC -g -std=gnu99 -Wall -Wdeclaration-after-statement -Wimplicit-fallthrough -Wmissing-field-initializers -Wmissing-prototypes -Wpedantic -Wshadow -Wstrict-prototypes -Wundef -Wvla -MD -MT CMakeFiles/libdeflate_static.dir/lib/arm/cpu_features.c.o -MF CMakeFiles/libdeflate_static.dir/lib/arm/cpu_features.c.o.d -o CMakeFiles/libdeflate_static.dir/lib/arm/cpu_features.c.o -c /home/adam/Bernard/BernardClient/Src/BuildInstall/vcpkg/buildtrees/libdeflate/src/v1.20-714b5d593b.clean/lib/arm/cpu_features.c
[4/13] /bin/cc  -I/home/adam/Bernard/BernardClient/Src/BuildInstall/vcpkg/buildtrees/libdeflate/src/v1.20-714b5d593b.clean -fPIC -g -std=gnu99 -Wall -Wdeclaration-after-statement -Wimplicit-fallthrough -Wmissing-field-initializers -Wmissing-prototypes -Wpedantic -Wshadow -Wstrict-prototypes -Wundef -Wvla -MD -MT CMakeFiles/libdeflate_static.dir/lib/zlib_compress.c.o -MF CMakeFiles/libdeflate_static.dir/lib/zlib_compress.c.o.d -o CMakeFiles/libdeflate_static.dir/lib/zlib_compress.c.o -c /home/adam/Bernard/BernardClient/Src/BuildInstall/vcpkg/buildtrees/libdeflate/src/v1.20-714b5d593b.clean/lib/zlib_compress.c
[5/13] /bin/cc  -I/home/adam/Bernard/BernardClient/Src/BuildInstall/vcpkg/buildtrees/libdeflate/src/v1.20-714b5d593b.clean -fPIC -g -std=gnu99 -Wall -Wdeclaration-after-statement -Wimplicit-fallthrough -Wmissing-field-initializers -Wmissing-prototypes -Wpedantic -Wshadow -Wstrict-prototypes -Wundef -Wvla -MD -MT CMakeFiles/libdeflate_static.dir/lib/gzip_decompress.c.o -MF CMakeFiles/libdeflate_static.dir/lib/gzip_decompress.c.o.d -o CMakeFiles/libdeflate_static.dir/lib/gzip_decompress.c.o -c /home/adam/Bernard/BernardClient/Src/BuildInstall/vcpkg/buildtrees/libdeflate/src/v1.20-714b5d593b.clean/lib/gzip_decompress.c
[6/13] /bin/cc  -I/home/adam/Bernard/BernardClient/Src/BuildInstall/vcpkg/buildtrees/libdeflate/src/v1.20-714b5d593b.clean -fPIC -g -std=gnu99 -Wall -Wdeclaration-after-statement -Wimplicit-fallthrough -Wmissing-field-initializers -Wmissing-prototypes -Wpedantic -Wshadow -Wstrict-prototypes -Wundef -Wvla -MD -MT CMakeFiles/libdeflate_static.dir/lib/gzip_compress.c.o -MF CMakeFiles/libdeflate_static.dir/lib/gzip_compress.c.o.d -o CMakeFiles/libdeflate_static.dir/lib/gzip_compress.c.o -c /home/adam/Bernard/BernardClient/Src/BuildInstall/vcpkg/buildtrees/libdeflate/src/v1.20-714b5d593b.clean/lib/gzip_compress.c
[7/13] /bin/cc  -I/home/adam/Bernard/BernardClient/Src/BuildInstall/vcpkg/buildtrees/libdeflate/src/v1.20-714b5d593b.clean -fPIC -g -std=gnu99 -Wall -Wdeclaration-after-statement -Wimplicit-fallthrough -Wmissing-field-initializers -Wmissing-prototypes -Wpedantic -Wshadow -Wstrict-prototypes -Wundef -Wvla -MD -MT CMakeFiles/libdeflate_static.dir/lib/x86/cpu_features.c.o -MF CMakeFiles/libdeflate_static.dir/lib/x86/cpu_features.c.o.d -o CMakeFiles/libdeflate_static.dir/lib/x86/cpu_features.c.o -c /home/adam/Bernard/BernardClient/Src/BuildInstall/vcpkg/buildtrees/libdeflate/src/v1.20-714b5d593b.clean/lib/x86/cpu_features.c
[8/13] /bin/cc  -I/home/adam/Bernard/BernardClient/Src/BuildInstall/vcpkg/buildtrees/libdeflate/src/v1.20-714b5d593b.clean -fPIC -g -std=gnu99 -Wall -Wdeclaration-after-statement -Wimplicit-fallthrough -Wmissing-field-initializers -Wmissing-prototypes -Wpedantic -Wshadow -Wstrict-prototypes -Wundef -Wvla -MD -MT CMakeFiles/libdeflate_static.dir/lib/deflate_decompress.c.o -MF CMakeFiles/libdeflate_static.dir/lib/deflate_decompress.c.o.d -o CMakeFiles/libdeflate_static.dir/lib/deflate_decompress.c.o -c /home/adam/Bernard/BernardClient/Src/BuildInstall/vcpkg/buildtrees/libdeflate/src/v1.20-714b5d593b.clean/lib/deflate_decompress.c
[9/13] /bin/cc  -I/home/adam/Bernard/BernardClient/Src/BuildInstall/vcpkg/buildtrees/libdeflate/src/v1.20-714b5d593b.clean -fPIC -g -std=gnu99 -Wall -Wdeclaration-after-statement -Wimplicit-fallthrough -Wmissing-field-initializers -Wmissing-prototypes -Wpedantic -Wshadow -Wstrict-prototypes -Wundef -Wvla -MD -MT CMakeFiles/libdeflate_static.dir/lib/adler32.c.o -MF CMakeFiles/libdeflate_static.dir/lib/adler32.c.o.d -o CMakeFiles/libdeflate_static.dir/lib/adler32.c.o -c /home/adam/Bernard/BernardClient/Src/BuildInstall/vcpkg/buildtrees/libdeflate/src/v1.20-714b5d593b.clean/lib/adler32.c
FAILED: CMakeFiles/libdeflate_static.dir/lib/adler32.c.o 
/bin/cc  -I/home/adam/Bernard/BernardClient/Src/BuildInstall/vcpkg/buildtrees/libdeflate/src/v1.20-714b5d593b.clean -fPIC -g -std=gnu99 -Wall -Wdeclaration-after-statement -Wimplicit-fallthrough -Wmissing-field-initializers -Wmissing-prototypes -Wpedantic -Wshadow -Wstrict-prototypes -Wundef -Wvla -MD -MT CMakeFiles/libdeflate_static.dir/lib/adler32.c.o -MF CMakeFiles/libdeflate_static.dir/lib/adler32.c.o.d -o CMakeFiles/libdeflate_static.dir/lib/adler32.c.o -c /home/adam/Bernard/BernardClient/Src/BuildInstall/vcpkg/buildtrees/libdeflate/src/v1.20-714b5d593b.clean/lib/adler32.c
/tmp/ccvi5riH.s: Assembler messages:
/tmp/ccvi5riH.s:2297: Error: unsupported instruction `vpdpbusd'
/tmp/ccvi5riH.s:2314: Error: unsupported instruction `vpdpbusd'
/tmp/ccvi5riH.s:2331: Error: unsupported instruction `vpdpbusd'
/tmp/ccvi5riH.s:2348: Error: unsupported instruction `vpdpbusd'
/tmp/ccvi5riH.s:2429: Error: unsupported instruction `vpdpbusd'
/tmp/ccvi5riH.s:2446: Error: unsupported instruction `vpdpbusd'
/tmp/ccvi5riH.s:2463: Error: unsupported instruction `vpdpbusd'
/tmp/ccvi5riH.s:2480: Error: unsupported instruction `vpdpbusd'
/tmp/ccvi5riH.s:2814: Error: unsupported instruction `vpdpbusd'
/tmp/ccvi5riH.s:2831: Error: unsupported instruction `vpdpbusd'
/tmp/ccvi5riH.s:3068: Error: unsupported instruction `vpdpbusd'
/tmp/ccvi5riH.s:3085: Error: unsupported instruction `vpdpbusd'
/tmp/ccvi5riH.s:3102: Error: unsupported instruction `vpdpbusd'
/tmp/ccvi5riH.s:3425: Error: unsupported instruction `vpdpbusd'
/tmp/ccvi5riH.s:3443: Error: unsupported instruction `vpdpbusd'
/tmp/ccvi5riH.s:3712: Error: unsupported instruction `vpdpbusd'
/tmp/ccvi5riH.s:3730: Error: unsupported instruction `vpdpbusd'
[10/13] /bin/cc  -I/home/adam/Bernard/BernardClient/Src/BuildInstall/vcpkg/buildtrees/libdeflate/src/v1.20-714b5d593b.clean -fPIC -g -std=gnu99 -Wall -Wdeclaration-after-statement -Wimplicit-fallthrough -Wmissing-field-initializers -Wmissing-prototypes -Wpedantic -Wshadow -Wstrict-prototypes -Wundef -Wvla -MD -MT CMakeFiles/libdeflate_static.dir/lib/crc32.c.o -MF CMakeFiles/libdeflate_static.dir/lib/crc32.c.o.d -o CMakeFiles/libdeflate_static.dir/lib/crc32.c.o -c /home/adam/Bernard/BernardClient/Src/BuildInstall/vcpkg/buildtrees/libdeflate/src/v1.20-714b5d593b.clean/lib/crc32.c
[11/13] /bin/cc  -I/home/adam/Bernard/BernardClient/Src/BuildInstall/vcpkg/buildtrees/libdeflate/src/v1.20-714b5d593b.clean -fPIC -g -std=gnu99 -Wall -Wdeclaration-after-statement -Wimplicit-fallthrough -Wmissing-field-initializers -Wmissing-prototypes -Wpedantic -Wshadow -Wstrict-prototypes -Wundef -Wvla -MD -MT CMakeFiles/libdeflate_static.dir/lib/deflate_compress.c.o -MF CMakeFiles/libdeflate_static.dir/lib/deflate_compress.c.o.d -o CMakeFiles/libdeflate_static.dir/lib/deflate_compress.c.o -c /home/adam/Bernard/BernardClient/Src/BuildInstall/vcpkg/buildtrees/libdeflate/src/v1.20-714b5d593b.clean/lib/deflate_compress.c
ninja: build stopped: subcommand failed.
@MarkLeone
Copy link

I am also encountering this issue with gcc 11.4.0 under Ubuntu 20.04. I think it's because gcc 11.4 does not support the AVX-VNNI extension. gcc 12 might work.

  • Host: x64-linux
  • Compiler: GNU 11.4.0
  • vcpkg-tool version: 2024-04-23-d6945642ee5c3076addd1a42c331bbf4cfc97457
    vcpkg-scripts version: ad25766 2024-06-08 (2 days ago)

@jimwang118
Copy link
Contributor

Sorry, I can't reproduce this problem locally.
image

@jimwang118 jimwang118 added the requires:repro The issue is not currently repro-able label Jun 11, 2024
@AdamHzami-Bernard
Copy link
Author

@MarkLeone Thanks, seems like the issues got fixed here
thus vcpkg install libdeflate[compression,core,decompression,gzip,zlib] --head solves it for me until they make a new release

@dg0yt
Copy link
Contributor

dg0yt commented Jun 11, 2024

Leave this open until it is fixed (patch or new release).

@jimwang118 jimwang118 reopened this Jun 12, 2024
@jimwang118 jimwang118 added category:port-bug The issue is with a library, which is something the port should already support and removed requires:repro The issue is not currently repro-able labels Jun 12, 2024
BillyONeal pushed a commit that referenced this issue Jun 12, 2024
Fixes #39207
Call upstream PR [366](ebiggers/libdeflate#366)
to complete the fix.
@MarkLeone
Copy link

Fix confirmed, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants