[MacPorts] #74033: Poppler -- Unable to Configure -- unrecognized argument in option '-stdlib=macports-libstdc++'

MacPorts noreply at macports.org
Sun May 24 21:40:37 UTC 2026


#74033: Poppler -- Unable to Configure -- unrecognized argument in option '-stdlib
=macports-libstdc++'
------------------------+---------------------
 Reporter:  RobK88      |      Owner:  (none)
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.12.5
 Keywords:  highsierra  |       Port:  poppler
------------------------+---------------------
 `poppler` fails to configure on High Sierra.

 It fails with the following error:

 {{{
 g++-mp-15: error: unrecognized argument in option '-stdlib=macports-
 libstdc++'
 g++-mp-15: note: valid arguments to '-stdlib=' are: libc++ libstdc++
 }}}


 Here is the complete error message:
 {{{
 -- Checking whether CXX compiler supports OSX deployment target flag
 -- Checking whether CXX compiler supports OSX deployment target flag - yes
 -- Detecting CXX compiler ABI info
 -- Detecting CXX compiler ABI info - failed
 -- Check for working CXX compiler: /opt/local/bin/g++-mp-15
 -- Check for working CXX compiler: /opt/local/bin/g++-mp-15 - broken
 CMake Error at
 /opt/local/share/cmake-3.31/Modules/CMakeTestCXXCompiler.cmake:73
 (message):
   The C++ compiler

     "/opt/local/bin/g++-mp-15"

   is not able to compile a simple test program.

   It fails with the following output:

     Change Dir: '/opt/local/var/macports/build/poppler-
 06287f0b/work/build/CMakeFiles/CMakeScratch/TryCompile-ao7Xg8'

     Run Build Command(s): /opt/local/bin/cmake -E env VERBOSE=1
 /usr/bin/make -f Makefile cmTC_88f20/fast
     /Library/Developer/CommandLineTools/usr/bin/make  -f
 CMakeFiles/cmTC_88f20.dir/build.make CMakeFiles/cmTC_88f20.dir/build
     Building CXX object CMakeFiles/cmTC_88f20.dir/testCXXCompiler.cxx.o
     /opt/local/bin/g++-mp-15   -pipe
 -I/opt/local/libexec/boost/1.88/include -Os -DNDEBUG
 -I/opt/local/libexec/boost/1.88/include
 -isystem/opt/local/include/LegacySupport -stdlib=macports-libstdc++  -arch
 x86_64 -mmacosx-version-min=10.13 -o
 CMakeFiles/cmTC_88f20.dir/testCXXCompiler.cxx.o -c
 /opt/local/var/macports/build/poppler-
 06287f0b/work/build/CMakeFiles/CMakeScratch/TryCompile-
 ao7Xg8/testCXXCompiler.cxx
     g++-mp-15: error: unrecognized argument in option '-stdlib=macports-
 libstdc++'
     g++-mp-15: note: valid arguments to '-stdlib=' are: libc++ libstdc++
     make[1]: *** [CMakeFiles/cmTC_88f20.dir/testCXXCompiler.cxx.o] Error 1
     make: *** [cmTC_88f20/fast] Error 2
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/74033>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list