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

[libpopt] build failure #42659

Open
jiaolulu666 opened this issue Dec 12, 2024 · 0 comments · May be fixed by #42662
Open

[libpopt] build failure #42659

jiaolulu666 opened this issue Dec 12, 2024 · 0 comments · May be fixed by #42662
Assignees
Labels
category:port-bug The issue is with a library, which is something the port should already support

Comments

@jiaolulu666
Copy link

jiaolulu666 commented Dec 12, 2024

Operating system

ubuntu24

Compiler

gcc

Steps to reproduce the behavior

vcpkg search libpopt

>>libpopt                  1.16#17          Library for parsing command line parameters
>>The result may be outdated. Run `git pull` to get the latest results.
>>If your port is not listed, please open an issue at and/or consider making a pull request.  - https://github.com/Microsoft/vcpkg/issues

vcpkg install libpopt

Failure logs

Computing installation plan...
The following packages will be built and installed:
    libpopt:x64-linux@1.16#17
Detecting compiler hash for triplet x64-linux...
Compiler found: /usr/bin/c++
Restored 0 package(s) from /root/.cache/vcpkg/archives in 7.66 us. Use --debug to see more details.
Installing 1/1 libpopt:x64-linux@1.16#17...
Building libpopt:x64-linux@1.16#17...
-- Using cached popt-1.16.tar.gz.
-- Cleaning sources at /root/vcpkg/buildtrees/libpopt/src/popt-1-cfafdf4397.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /root/vcpkg/downloads/popt-1.16.tar.gz
-- Applying patch 0004-vcpkg-fixmsvc.patch
-- Using source at /root/vcpkg/buildtrees/libpopt/src/popt-1-cfafdf4397.clean
-- Configuring x64-linux
-- Building x64-linux-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: /usr/bin/cmake --build . --config Debug --target install -- -v -j5
    Working Directory: /root/vcpkg/buildtrees/libpopt/x64-linux-dbg
    See logs for more information:
      **

/root/vcpkg/buildtrees/libpopt/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/libpopt/portfile.cmake:27 (vcpkg_cmake_install)
  scripts/ports.cmake:196 (include)


error: building libpopt:x64-linux failed with: BUILD_FAILED
See https://learn.microsoft.com/vcpkg/troubleshoot/build-failures?WT.mc_id=vcpkg_inproduct_cli for more information.
Elapsed time to handle libpopt:x64-linux: 2.2 s
Please ensure you're using the latest port files 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+libpopt
You can submit a new issue at:
  https://github.com/microsoft/vcpkg/issues/new?title=[libpopt]+Build+error+on+x64-linux&body=Copy+issue+body+from+%2Froot%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md

/root/vcpkg/buildtrees/libpopt/install-x64-linux-dbg-out.log content below:

Run Build Command(s): /usr/bin/ninja -v -v -j5 install
[1/7] /usr/bin/cc -DHAVE_CONFIG_H -D_CRT_SECURE_NO_WARNINGS -I/root/vcpkg/buildtrees/libpopt/x64-linux-dbg -fPIC -g -MD -MT CMakeFiles/popt.dir/poptconfig.c.o -MF CMakeFiles/popt.dir/poptconfig.c.o.d -o CMakeFiles/popt.dir/poptconfig.c.o -c /root/vcpkg/buildtrees/libpopt/src/popt-1-cfafdf4397.clean/poptconfig.c
FAILED: CMakeFiles/popt.dir/poptconfig.c.o
/usr/bin/cc -DHAVE_CONFIG_H -D_CRT_SECURE_NO_WARNINGS -I/root/vcpkg/buildtrees/libpopt/x64-linux-dbg -fPIC -g -MD -MT CMakeFiles/popt.dir/poptconfig.c.o -MF CMakeFiles/popt.dir/poptconfig.c.o.d -o CMakeFiles/popt.dir/poptconfig.c.o -c /root/vcpkg/buildtrees/libpopt/src/popt-1-cfafdf4397.clean/poptconfig.c
/root/vcpkg/buildtrees/libpopt/src/popt-1-cfafdf4397.clean/poptconfig.c: In function ‘poptGlob’:
/root/vcpkg/buildtrees/libpopt/src/popt-1-cfafdf4397.clean/poptconfig.c:108:9: error: implicit declaration of function ‘glob_pattern_p’ [-Wimplicit-function-declaration]
  108 |     if (glob_pattern_p(pat, 0)) {
      |         ^~~~~~~~~~~~~~
[2/7] /usr/bin/cc -DHAVE_CONFIG_H -D_CRT_SECURE_NO_WARNINGS -I/root/vcpkg/buildtrees/libpopt/x64-linux-dbg -fPIC -g -MD -MT CMakeFiles/popt.dir/poptint.c.o -MF CMakeFiles/popt.dir/poptint.c.o.d -o CMakeFiles/popt.dir/poptint.c.o -c /root/vcpkg/buildtrees/libpopt/src/popt-1-cfafdf4397.clean/poptint.c
[3/7] /usr/bin/cc -DHAVE_CONFIG_H -D_CRT_SECURE_NO_WARNINGS -I/root/vcpkg/buildtrees/libpopt/x64-linux-dbg -fPIC -g -MD -MT CMakeFiles/popt.dir/poptparse.c.o -MF CMakeFiles/popt.dir/poptparse.c.o.d -o CMakeFiles/popt.dir/poptparse.c.o -c /root/vcpkg/buildtrees/libpopt/src/popt-1-cfafdf4397.clean/poptparse.c
[4/7] /usr/bin/cc -DHAVE_CONFIG_H -D_CRT_SECURE_NO_WARNINGS -I/root/vcpkg/buildtrees/libpopt/x64-linux-dbg -fPIC -g -MD -MT CMakeFiles/popt.dir/popthelp.c.o -MF CMakeFiles/popt.dir/popthelp.c.o.d -o CMakeFiles/popt.dir/popthelp.c.o -c /root/vcpkg/buildtrees/libpopt/src/popt-1-cfafdf4397.clean/popthelp.c
[5/7] /usr/bin/cc -DHAVE_CONFIG_H -D_CRT_SECURE_NO_WARNINGS -I/root/vcpkg/buildtrees/libpopt/x64-linux-dbg -fPIC -g -MD -MT CMakeFiles/popt.dir/popt.c.o -MF CMakeFiles/popt.dir/popt.c.o.d -o CMakeFiles/popt.dir/popt.c.o -c /root/vcpkg/buildtrees/libpopt/src/popt-1-cfafdf4397.clean/popt.c
ninja: build stopped: subcommand failed.

next , use command :

/usr/bin/cc -DHAVE_CONFIG_H -D_CRT_SECURE_NO_WARNINGS -I/root/vcpkg/buildtrees/libpopt/x64-linux-dbg -fPIC -g -MD -MT CMakeFiles/popt.dir/poptconfig.c.o -MF CMakeFiles/popt.dir/poptconfig.c.o.d -o CMakeFiles/popt.dir/poptconfig.c.o -c /root/vcpkg/buildtrees/libpopt/src/popt-1-cfafdf4397.clean/poptconfig.c

error below:

root@jiao-VirtualBox:~# /usr/bin/cc -DHAVE_CONFIG_H -D_CRT_SECURE_NO_WARNINGS -I/root/vcpkg/buildtrees/libpopt/x64-linux-dbg -fPIC -g -MD -MT CMakeFiles/popt.dir/poptconfig.c.o -MF CMakeFiles/popt.dir/poptconfig.c.o.d -o CMakeFiles/popt.dir/poptconfig.c.o -c /root/vcpkg/buildtrees/libpopt/src/popt-1-cfafdf4397.clean/poptconfig.c
/root/vcpkg/buildtrees/libpopt/src/popt-1-cfafdf4397.clean/poptconfig.c: In function ‘poptGlob’:
/root/vcpkg/buildtrees/libpopt/src/popt-1-cfafdf4397.clean/poptconfig.c:108:9: error: implicit declaration of function ‘glob_pattern_p’ [-Wimplicit-function-declaration]
  108 |     if (glob_pattern_p(pat, 0)) {
      |         ^~~~~~~~~~~~~~
/root/vcpkg/buildtrees/libpopt/src/popt-1-cfafdf4397.clean/poptconfig.c: At top level:
/root/vcpkg/buildtrees/libpopt/src/popt-1-cfafdf4397.clean/poptconfig.c:588:1: fatal error: opening dependency file CMakeFiles/popt.dir/poptconfig.c.o.d: No such file or directory
  588 | }
      | ^

next code in the picture,addittionImage
Image
Image

Additional context

No response

@jiaolulu666 jiaolulu666 added the category:port-bug The issue is with a library, which is something the port should already support label Dec 12, 2024
@WangWeiLin-MV WangWeiLin-MV linked a pull request Dec 12, 2024 that will close this issue
7 tasks
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.

2 participants