microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
23.07k stars 6.36k forks source link

[Libpng] fail to install #23133

Closed Caoang327 closed 2 years ago

Caoang327 commented 2 years ago

Host Environment

To Reproduce Steps to reproduce the behavior: ./vcpkg install libpng

Failure logs -Cut and paste the appropriate build messages from the console output. -Please attach any additional failure logs mentioned in the console output.

CMake Warning at installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:487 (message):
  The following variables are not used in CMakeLists.txt:

      PNG_ARM_NEON

  Please recheck them and remove the unnecessary options from the
  `vcpkg_cmake_configure` call.

  If these options should still be passed for whatever reason, please use the
  `MAYBE_UNUSED_VARIABLES` argument.
Call Stack (most recent call first):
  ports/libpng/portfile.cmake:71 (vcpkg_cmake_configure)
  scripts/ports.cmake:145 (include)

-- Building x64-linux-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:158 (message):
    Command failed: /sw/arcts/centos7/cmake/3.21.3/bin/cmake --build . --config Debug --target install -- -v -j33
    Working Directory: /nfs/turbo/justincj-turbo/ancao/vcpkg/buildtrees/libpng/x64-linux-dbg
    See logs for more information:
      /nfs/turbo/justincj-turbo/ancao/vcpkg/buildtrees/libpng/install-x64-linux-dbg-out.log

Call Stack (most recent call first):
  installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_build.cmake:111 (vcpkg_execute_build_process)
  installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_install.cmake:41 (vcpkg_cmake_build)
  ports/libpng/portfile.cmake:87 (vcpkg_cmake_install)
  scripts/ports.cmake:145 (include)

Error: Building package libpng:x64-linux failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `git pull` and `./vcpkg update`.
Then check for known issues at:
  https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+libpng
You can submit a new issue at:
  https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[libpng]+Build+error
including:
  package: libpng[core]:x64-linux -> 1.6.37#16
    vcpkg-tool version: 2022-02-11-dac008bf9b55ef48e10bcc81e273b97a82bbf72d
    vcpkg-scripts version: 18e6e8855 2022-02-15 (10 hours ago)

Failure log:

[30/32] /usr/bin/cc -DPNG_INTEL_SSE_OPT=1 -I/nfs/turbo/justincj-turbo/ancao/vcpkg/buildtrees/libpng/x64-linux-dbg -I/nfs/turbo/justincj-turbo/ancao/vcpkg/buildtrees/libpng/src/v1.6.37-05658d6f1a.clean -isystem /nfs/turbo/justincj-turbo/ancao/vcpkg/installed/x64-linux/include -fPIC -g -MD -MT CMakeFiles/png_static.dir/intel/filter_sse2_intrinsics.c.o -MF CMakeFiles/png_static.dir/intel/filter_sse2_intrinsics.c.o.d -o CMakeFiles/png_static.dir/intel/filter_sse2_intrinsics.c.o -c /nfs/turbo/justincj-turbo/ancao/vcpkg/buildtrees/libpng/src/v1.6.37-05658d6f1a.clean/intel/filter_sse2_intrinsics.c
FAILED: CMakeFiles/png_static.dir/intel/filter_sse2_intrinsics.c.o
/usr/bin/cc -DPNG_INTEL_SSE_OPT=1 -I/nfs/turbo/justincj-turbo/ancao/vcpkg/buildtrees/libpng/x64-linux-dbg -I/nfs/turbo/justincj-turbo/ancao/vcpkg/buildtrees/libpng/src/v1.6.37-05658d6f1a.clean -isystem /nfs/turbo/justincj-turbo/ancao/vcpkg/installed/x64-linux/include -fPIC -g -MD -MT CMakeFiles/png_static.dir/intel/filter_sse2_intrinsics.c.o -MF CMakeFiles/png_static.dir/intel/filter_sse2_intrinsics.c.o.d -o CMakeFiles/png_static.dir/intel/filter_sse2_intrinsics.c.o -c /nfs/turbo/justincj-turbo/ancao/vcpkg/buildtrees/libpng/src/v1.6.37-05658d6f1a.clean/intel/filter_sse2_intrinsics.c
In file included from /sw/arcts/centos7/gcc/8.2.0/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/immintrin.h:45:0,
                 from /nfs/turbo/justincj-turbo/ancao/vcpkg/buildtrees/libpng/src/v1.6.37-05658d6f1a.clean/intel/filter_sse2_intrinsics.c:20:
/sw/arcts/centos7/gcc/8.2.0/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/avx512fintrin.h:33:9: error: attribute(target("avx512f")) is unknown
 #pragma GCC target("avx512f")
         ^
/sw/arcts/centos7/gcc/8.2.0/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/avx512fintrin.h:33: confused by earlier errors, bailing out
Preprocessed source stored into /tmp/ccrYC3Om.out file, please attach this to your bugreport.
ninja: build stopped: subcommand failed.

Thanks!

FrankXie05 commented 2 years ago

@Caoang327 Thanks for posting this issue, this may your setup was using another version of g++ than ROOT was compiled with, causing the error.

Caoang327 commented 2 years ago

@FrankXie05 Thanks for your response. How can I see the GCC version of ROOT?

FrankXie05 commented 2 years ago

@Caoang327 Sorry for the late reply, you can run gcc --version to check your gccversion, but it looks like a gcc bug, you might consider reinstalling gccand try again. :)

JackBoosY commented 2 years ago

I think it's a bug, but we couldn't reproduce this locally now.

FrankXie05 commented 2 years ago

@Caoang327 does the issue still occur?

JackBoosY commented 2 years ago

We haven't been able to repro this; if more information comes up, or this issue appears again, please reopen.