Skip to content

extra/gflags: Alpine package ported to QNX#63

Open
nnarayanamurthy wants to merge 3 commits into803from
nnarayanamurthy/gflags
Open

extra/gflags: Alpine package ported to QNX#63
nnarayanamurthy wants to merge 3 commits into803from
nnarayanamurthy/gflags

Conversation

@nnarayanamurthy
Copy link

No description provided.

Copy link
Contributor

@taang-qnx taang-qnx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

x86_64 min image dated 8-Dec-2025 had the following error. Need to add libc++-dev

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

    "/usr/bin/c++"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: '/var/home/qnx/aports/extra/gflags/src/gflags-2.2.2/build/CMakeFiles/CMakeScratch/TryCompile-1fPIAX'
    
    Run Build Command(s): /usr/bin/ninja -v cmTC_ba033
    [1/2] /usr/bin/c++   -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -MD -MT CMakeFiles/cmTC_ba033.dir/testCXXCompiler.cxx.o -MF CMakeFiles/cmTC_ba033.dir/testCXXCompiler.cxx.o.d -o CMakeFiles/cmTC_ba033.dir/testCXXCompiler.cxx.o -c /var/home/qnx/aports/extra/gflags/src/gflags-2.2.2/build/CMakeFiles/CMakeScratch/TryCompile-1fPIAX/testCXXCompiler.cxx
    c++: warning: argument unused during compilation: '-fstack-clash-protection' [-Wunused-command-line-argument]
    [2/2] : && /usr/bin/c++ -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -Wl,--as-needed,-O1,--sort-common CMakeFiles/cmTC_ba033.dir/testCXXCompiler.cxx.o -o cmTC_ba033   && :
    FAILED: [code=1] cmTC_ba033 
    : && /usr/bin/c++ -Os -fstack-clash-protection -Wformat -Werror=format-security -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_FAST -Wl,--as-needed,-O1,--sort-common CMakeFiles/cmTC_ba033.dir/testCXXCompiler.cxx.o -o cmTC_ba033   && :
    /usr/bin/ld: cannot find -lc++: No such file or directory
    c++: 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:97 (project)


-- Configuring incomplete, errors occurred!
>>> ERROR: gflags: build failed

url="https://gflags.github.io/gflags/"
arch="all"
license="BSD-3-Clause"
makedepends="cmake ninja"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
makedepends="cmake ninja"
makedepends="cmake ninja libc++-dev"

@felixlionardo-qnx felixlionardo-qnx mentioned this pull request Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants