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

build failed: :error: use of undeclared identifier 'WIFEXITED' #41640

Open
Martinfx opened this issue Oct 18, 2024 · 0 comments
Open

build failed: :error: use of undeclared identifier 'WIFEXITED' #41640

Martinfx opened this issue Oct 18, 2024 · 0 comments
Assignees
Labels
category:vcpkg-bug The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`)

Comments

@Martinfx
Copy link

Describe the bug

FAILED: CMakeFiles/vcpkg-test.dir/src/vcpkg-test/system.process.cpp.o 
/usr/bin/c++ -DVCPKG_BASE_VERSION=2999-12-31 -DVCPKG_VERSION=unknownhash -D_FILE_OFFSET_BITS=64 -I/usr/home/maxfx/Documents/FreeBSD-Ports/vcpkg/work/vcpkg-2024.09.30/buildtrees/_vcpkg/src/vcpkg-tool-2024-09-30/include -I/usr/home/maxfx/Documents/FreeBSD-Ports/vcpkg/work/vcpkg-2024.09.30/buildtrees/_vcpkg/build/_deps/fmt-src/include -I/usr/home/maxfx/Documents/FreeBSD-Ports/vcpkg/work/vcpkg-2024.09.30/buildtrees/_vcpkg/build/_cmrc/include -O3 -DNDEBUG -std=c++17 -pthread -Winvalid-pch -Xclang -include-pch -Xclang /usr/home/maxfx/Documents/FreeBSD-Ports/vcpkg/work/vcpkg-2024.09.30/buildtrees/_vcpkg/build/CMakeFiles/vcpkglib.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /usr/home/maxfx/Documents/FreeBSD-Ports/vcpkg/work/vcpkg-2024.09.30/buildtrees/_vcpkg/build/CMakeFiles/vcpkglib.dir/cmake_pch.hxx -MD -MT CMakeFiles/vcpkg-test.dir/src/vcpkg-test/system.process.cpp.o -MF CMakeFiles/vcpkg-test.dir/src/vcpkg-test/system.process.cpp.o.d -o CMakeFiles/vcpkg-test.dir/src/vcpkg-test/system.process.cpp.o -c /usr/home/maxfx/Documents/FreeBSD-Ports/vcpkg/work/vcpkg-2024.09.30/buildtrees/_vcpkg/src/vcpkg-tool-2024-09-30/src/vcpkg-test/system.process.cpp
/usr/home/maxfx/Documents/FreeBSD-Ports/vcpkg/work/vcpkg-2024.09.30/buildtrees/_vcpkg/src/vcpkg-tool-2024-09-30/src/vcpkg-test/system.process.cpp:52:9: error: use of undeclared identifier 'WIFEXITED'
   52 |     if (WIFEXITED(return_value))
      |         ^
/usr/home/maxfx/Documents/FreeBSD-Ports/vcpkg/work/vcpkg-2024.09.30/buildtrees/_vcpkg/src/vcpkg-tool-2024-09-30/src/vcpkg-test/system.process.cpp:54:17: error: use of undeclared identifier 'WEXITSTATUS'
   54 |         REQUIRE(WEXITSTATUS(return_value) == 0x000000FFul);
      |                 ^
/usr/home/maxfx/Documents/FreeBSD-Ports/vcpkg/work/vcpkg-2024.09.30/buildtrees/_vcpkg/src/vcpkg-tool-2024-09-30/src/vcpkg-test/system.process.cpp:54:17: error: use of undeclared identifier 'WEXITSTATUS'
/usr/home/maxfx/Documents/FreeBSD-Ports/vcpkg/work/vcpkg-2024.09.30/buildtrees/_vcpkg/src/vcpkg-tool-2024-09-30/src/vcpkg-test/system.process.cpp:54:17: error: use of undeclared identifier 'WEXITSTATUS'
4 errors generated.

Environment

To Reproduce
Steps to reproduce the behavior:

  1. git clone https://github.com/Martinfx/FreeBSD-Ports/blob/4c18c9684bd53d11085297f6d7ab24056e531ae0/vcpkg/Makefile
  2. make

Expected behavior
A clear and concise description of what you expected to happen.

Failure logs
make.log

Additional context
Add any other context about the problem here.

@jimwang118 jimwang118 added the category:vcpkg-bug The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`) label Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:vcpkg-bug The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`)
Projects
None yet
Development

No branches or pull requests

2 participants