[MacPorts] #59832: cmake 3.16.0: does not build on PPC Mac OS X 10.5.8, "Bus Error"

MacPorts noreply at macports.org
Mon Mar 9 15:46:42 UTC 2020


#59832: cmake 3.16.0: does not build on PPC Mac OS X 10.5.8, "Bus Error"
--------------------------+-----------------------
  Reporter:  timishimuni  |      Owner:  michaelld
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.6.2
Resolution:               |   Keywords:  leopard
      Port:  cmake        |
--------------------------+-----------------------

Comment (by ggaussling):

 Hi, I got a similiar issue, but no fallback gcc7.4.x, because I just
 installed macports 2.6.2 on a 10.5.8 powerbook G4 12".

 I try to install macosxfuse and encfs.I eventually need exfat for an
 external wd book hdd.

 I didn't do anything with macports for years, and I'm only a user.

 Here is my output:

 {{{

 ggaussling-Computer:~ ggaussling$ sudo port activate libgcc7
 Password:
 --->  Computing dependencies for libgcc7
 --->  Cleaning libgcc7
 ggaussling-Computer:~ ggaussling$ sudo port install -d encfs--->
 Computing dependencies for encfsThe following dependencies will be
 installed:
  cmake
  osxfuse
  rlog
 Continue? [Y/n]:
 --->  Fetching archive for cmake
 --->  Attempting to fetch cmake-3.16.5_0.darwin_9.ppc.tbz2 from
 http://packages.macports.org/cmake
 --->  Attempting to fetch cmake-3.16.5_0.darwin_9.ppc.tbz2 from
 http://lil.fr.packages.macports.org/cmake
 --->  Attempting to fetch cmake-3.16.5_0.darwin_9.ppc.tbz2 from
 http://mse.uk.packages.macports.org/sites/packages.macports.org/cmake
 --->  Configuring cmake
 Error: Failed to configure cmake: configure failure: command execution
 failed
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/main.log
 for details.
 Error: Follow https://guide.macports.org/#project.tickets to report a bug.
 Error: Processing of port encfs failed
 ggaussling-Computer:~ ggaussling$ tail -n30
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/main.log
 :info:configure ---------------------------------------------
 :info:configure CMake 3.16.5, Copyright 2000-2019 Kitware, Inc. and
 Contributors
 :info:configure C compiler on this system is: /opt/local/bin/gcc-mp-7
 -pipe -Os -I/opt/local/include/LegacySupport -arch ppc
 :info:configure C++ compiler on this system is: /opt/local/bin/g++-mp-7
 -pipe -Os -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc
 :info:configure Makefile processor on this system is: make
 :info:configure /opt/local/bin/g++-mp-7 has setenv
 :info:configure /opt/local/bin/g++-mp-7 has unsetenv
 :info:configure /opt/local/bin/g++-mp-7 does not have environ in stdlib.h
 :info:configure /opt/local/bin/g++-mp-7 has stl wstring
 :info:configure /opt/local/bin/g++-mp-7 has <ext/stdio_filebuf.h>
 :info:configure ---------------------------------------------
 :info:configure make: `cmake' is up to date.
 :info:configure cmake(96461) malloc: *** error for object 0xa0a653dc: Non-
 aligned pointer being freed
 :info:configure *** set a breakpoint in malloc_error_break to debug
 :info:configure cmake(96461) malloc: *** error for object 0xa0a6536c: Non-
 aligned pointer being freed
 :info:configure *** set a breakpoint in malloc_error_break to debug
 :info:configure loading initial cache file
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.16.5/Bootstrap.cmk/InitialCacheFlags.cmake
 :info:configure ./bootstrap: line 1676: 96461 Bus error
 "${cmake_bootstrap_dir}/cmake" "${cmake_source_dir}"
 "-C${cmake_bootstrap_dir}/InitialCacheFlags.cmake"
 "-G${cmake_bootstrap_generator}" ${cmake_options}
 ${cmake_bootstrap_system_libs} "$@"
 :info:configure ---------------------------------------------
 :info:configure Error when bootstrapping CMake:
 :info:configure Problem while running initial CMake
 :info:configure ---------------------------------------------
 :info:configure Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.16.5"
 && ./bootstrap --prefix=/opt/local --docdir=share/doc/cmake --parallel=1
 --init=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.16.5/macports.cmake
 --system-libs --no-system-jsoncpp --no-system-librhash --no-qt-gui --
 :info:configure Exit code: 11
 :error:configure Failed to configure cmake: configure failure: command
 execution failed
 :debug:configure Error code: NONE
 :debug:configure Backtrace: configure failure: command execution failed
 :debug:configure     while executing
 :debug:configure "$procedure $targetname"
 :error:configure See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/main.log
 for details.
 ggaussling-Computer:~ ggaussling$
 }}}


 {{{
 ggausslings-Computer:cmake-3.16.5 ggaussling$ cat -n ./bootstrap | grep
 -C10 1676
   1666  export MAKE
   1667  export CFLAGS
   1668  export CXXFLAGS
   1669  export LDFLAGS
   1670
   1671  # Run bootstrap CMake to configure real CMake
   1672  cmake_options="-DCMAKE_BOOTSTRAP=1"
   1673  if [ -n "${cmake_verbose}" ]; then
   1674    cmake_options="${cmake_options} -DCMAKE_VERBOSE_MAKEFILE=1"
   1675  fi
   1676  "${cmake_bootstrap_dir}/cmake" "${cmake_source_dir}"
 "-C${cmake_bootstrap_dir}/InitialCacheFlags.cmake"
 "-G${cmake_bootstrap_generator}" ${cmake_options}
 ${cmake_bootstrap_system_libs} "$@"
   1677  RES=$?
   1678  if [ "${RES}" -ne "0" ]; then
   1679    cmake_error 11 "Problem while running initial CMake"
   1680  fi
   1681
   1682  echo "---------------------------------------------"
   1683
   1684  # And we are done. Now just run make
   1685  echo "CMake has bootstrapped.  Now run ${cmake_make_processor}."
 ggausslings-Computer:cmake-3.16.5 ggaussling$ head  ./bootstrap #!/bin/sh
 # Distributed under the OSI-approved BSD 3-Clause License.  See
 accompanying
 # file Copyright.txt or https://cmake.org/licensing for details.

 die() {
   echo "$@" 1>&2 ; exit 1
 }

 # Compile flag extraction function.

 }}}


 {{{
 ggausslings-Computer:cmake-3.16.5 ggaussling$ sudo cp -p
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.16.5/Bootstrap.cmk/cmake_bootstrap.log
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.16.5/Bootstrap.cmk/cmake_bootstrap_bak.log



 ggausslings-Computer:cmake-3.16.5 ggaussling$ sudo ./bootstrap
 ---------------------------------------------
 CMake 3.16.5, Copyright 2000-2019 Kitware, Inc. and ContributorsFound GNU
 toolchainC compiler on this system is: gcc
 ---------------------------------------------
 Error when bootstrapping CMake:
 Cannot find a C++ compiler that supports both C++11 and the specified C++
 flags.
 Please specify one using environment variable CXX.
 The C++ flags are "".
 They can be changed using the environment variable CXXFLAGS.
 See cmake_bootstrap.log for compilers attempted.
 ---------------------------------------------
 Log of errors:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.16.5/Bootstrap.cmk/cmake_bootstrap.log
 ---------------------------------------------




 ggausslings-Computer:cmake-3.16.5 ggaussling$ sudo bash -x  ./bootstrap
 + LC_NUMERIC=C
 + LC_COLLATE=C
 + export 'PS4=\010$(printf "% 4d" $LINENO)\011-> '
 + PS4='\010$(printf "% 4d" $LINENO)\011-> '
   17    -> Ldbg=true
   67    -> uname
   67    -> cmake_system=Darwin
   68    -> dirname ./bootstrap
   68    -> cd .
   68    -> pwd
   68    ->
 cmake_source_dir=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.16.5
   69    -> pwd
   69    ->
 cmake_binary_dir=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.16.5
   72    -> cmake_version_component MAJOR
   41    -> sed -n '
 /^set(CMake_VERSION_MAJOR/ {s/set(CMake_VERSION_MAJOR *\([0-9]*\))/\1/;p;}
 '
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.16.5/Source/CMakeVersion.cmake
   72    -> cmake_version_major=3
   73    -> cmake_version_component MINOR
   41    -> sed -n '
 /^set(CMake_VERSION_MINOR/ {s/set(CMake_VERSION_MINOR *\([0-9]*\))/\1/;p;}
 '
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.16.5/Source/CMakeVersion.cmake
   73    -> cmake_version_minor=16
   74    -> cmake_version_component PATCH
   41    -> sed -n '
 /^set(CMake_VERSION_PATCH/ {s/set(CMake_VERSION_PATCH *\([0-9]*\))/\1/;p;}
 '
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.16.5/Source/CMakeVersion.cmake
   74    -> cmake_version_patch=5
   75    -> cmake_version=3.16.5
   76    -> cmake_version_component RC
   41    -> sed -n '
 /^set(CMake_VERSION_RC/ {s/set(CMake_VERSION_RC *\([0-9]*\))/\1/;p;}
 '
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.16.5/Source/CMakeVersion.cmake
   76    -> cmake_version_rc=
   77    -> '[' '' '!=' '' ']'
   81    -> grep '^Copyright .* Kitware'
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.16.5/Copyright.txt
   81    -> cmake_copyright='Copyright 2000-2019 Kitware, Inc. and
 Contributors'
   83    -> cmake_bin_dir_keyword=OTHER
   84    -> cmake_data_dir_keyword=OTHER
   85    -> cmake_doc_dir_keyword=OTHER
   86    -> cmake_man_dir_keyword=OTHER
   87    -> cmake_xdgdata_dir_keyword=OTHER
   88    -> cmake_bin_dir=
   89    -> cmake_data_dir=
   90    -> cmake_doc_dir=
   91    -> cmake_man_dir=
   92    -> cmake_xdgdata_dir=
   93    -> cmake_init_file=
   94    -> cmake_bootstrap_system_libs=
   95    -> cmake_bootstrap_qt_gui=
   96    -> cmake_bootstrap_qt_qmake=
   97    -> cmake_sphinx_info=
   98    -> cmake_sphinx_man=
   99    -> cmake_sphinx_html=
  100    -> cmake_sphinx_qthelp=
  101    -> cmake_sphinx_build=
  102    -> cmake_sphinx_flags=
  105    -> echo Darwin
  105    -> grep CYGWIN
  110    -> cmake_system_cygwin=false
  114    -> echo Darwin
  114    -> grep 'MINGW\|MSYS'
  117    -> cmake_system_mingw=false
  121    -> echo Darwin
  121    -> grep Darwin
  122    -> cmake_system_darwin=true
  128    -> echo Darwin
  128    -> grep BeOS
  133    -> cmake_system_beos=false
  137    -> echo Darwin
  137    -> grep Haiku
  142    -> cmake_system_haiku=false
  146    -> echo Darwin
  146    -> grep OpenVMS
  149    -> cmake_system_openvms=false
  153    -> echo Darwin
  153    -> grep HP-UX
  161    -> cmake_system_hpux=false
  165    -> echo Darwin
  165    -> grep Linux
  168    -> cmake_system_linux=false
  174    -> cmake_machine_parisc=false
  175    -> false
  179    -> false
  186    -> false
  191    -> cmake_bootstrap_generator='Unix Makefiles'
  195    -> false
  200    -> _tmp=.tmp
  201    -> _cmk=.cmk
  202    -> _diff=diff
  206    ->
 cmake_bootstrap_dir=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.16.5/Bootstrap.cmk
  209    -> case "${cmake_system}" in
  225    -> false
  237    -> false
  240    -> cmake_default_prefix=/usr/local
  244    -> cmake_install_dest_default BIN OTHER
   49    -> sed -n '
 /^ *set(CMAKE_BIN_DIR_DEFAULT.*) # OTHER$/ {
   s/^ *set(CMAKE_BIN_DIR_DEFAULT *"\([^"]*\)").*$/\1/
   s/${CMake_VERSION_MAJOR}/3/
   s/${CMake_VERSION_MINOR}/16/
   s/${CMake_VERSION_PATCH}/5/
   p
   q
 }
 '
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.16.5/Source/CMakeInstallDestinations.cmake
  244    -> cmake_bin_dir_default=bin
  245    -> cmake_install_dest_default DATA OTHER
   49    -> sed -n '
 /^ *set(CMAKE_DATA_DIR_DEFAULT.*) # OTHER$/ {
   s/^ *set(CMAKE_DATA_DIR_DEFAULT *"\([^"]*\)").*$/\1/
   s/${CMake_VERSION_MAJOR}/3/
   s/${CMake_VERSION_MINOR}/16/
   s/${CMake_VERSION_PATCH}/5/
   p
   q
 }
 '
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.16.5/Source/CMakeInstallDestinations.cmake
  245    -> cmake_data_dir_default=share/cmake-3.16
  246    -> cmake_install_dest_default DOC OTHER
   49    -> sed -n '
 /^ *set(CMAKE_DOC_DIR_DEFAULT.*) # OTHER$/ {
   s/^ *set(CMAKE_DOC_DIR_DEFAULT *"\([^"]*\)").*$/\1/
   s/${CMake_VERSION_MAJOR}/3/
   s/${CMake_VERSION_MINOR}/16/
   s/${CMake_VERSION_PATCH}/5/
   p
   q
 }
 '
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.16.5/Source/CMakeInstallDestinations.cmake
  246    -> cmake_doc_dir_default=doc/cmake-3.16
  247    -> cmake_install_dest_default MAN OTHER
   49    -> sed -n '
 /^ *set(CMAKE_MAN_DIR_DEFAULT.*) # OTHER$/ {
   s/^ *set(CMAKE_MAN_DIR_DEFAULT *"\([^"]*\)").*$/\1/
   s/${CMake_VERSION_MAJOR}/3/
   s/${CMake_VERSION_MINOR}/16/
   s/${CMake_VERSION_PATCH}/5/
   p
   q
 }
 '
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.16.5/Source/CMakeInstallDestinations.cmake
  247    -> cmake_man_dir_default=man
  248    -> cmake_install_dest_default XDGDATA OTHER
   49    -> sed -n '
 /^ *set(CMAKE_XDGDATA_DIR_DEFAULT.*) # OTHER$/ {
   s/^ *set(CMAKE_XDGDATA_DIR_DEFAULT *"\([^"]*\)").*$/\1/
   s/${CMake_VERSION_MAJOR}/3/
   s/${CMake_VERSION_MINOR}/16/
   s/${CMake_VERSION_PATCH}/5/
   p
   q
 }
 '
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.16.5/Source/CMakeInstallDestinations.cmake
  248    -> cmake_xdgdata_dir_default=share
  250    -> CMAKE_KNOWN_C_COMPILERS='cc gcc clang xlc icc tcc'
  251    -> CMAKE_KNOWN_CXX_COMPILERS='aCC xlC CC g++ clang++ c++ icc como
 '
  252    -> CMAKE_KNOWN_MAKE_PROCESSORS='gmake make'
  266    -> CMAKE_PROBLEMATIC_FILES='  CMakeCache.txt   CMakeSystem.cmake
 CMakeCCompiler.cmake   CMakeCXXCompiler.cmake   */CMakeSystem.cmake
 */CMakeCCompiler.cmake   */CMakeCXXCompiler.cmake   Source/cmConfigure.h
 Source/CTest/Curl/config.h   Utilities/cmexpat/expatConfig.h
 Utilities/cmexpat/expatDllConfig.h   '
  274    -> CMAKE_UNUSED_SOURCES='  cmGlobalXCodeGenerator
 cmLocalXCodeGenerator   cmXCodeObject   cmXCode21Object   cmSourceGroup '
  479    -> CMAKE_CXX_SOURCES='  cmAddCustomCommandCommand
 cmAddCustomTargetCommand   cmAddDefinitionsCommand
 cmAddDependenciesCommand   cmAddExecutableCommand   cmAddLibraryCommand
 cmAddSubDirectoryCommand   cmAddTestCommand   cmArgumentParser
 cmBinUtilsLinker   cmBinUtilsLinuxELFGetRuntimeDependenciesTool
 cmBinUtilsLinuxELFLinker
 cmBinUtilsLinuxELFObjdumpGetRuntimeDependenciesTool
 cmBinUtilsMacOSMachOGetRuntimeDependenciesTool
 cmBinUtilsMacOSMachOLinker
 cmBinUtilsMacOSMachOOToolGetRuntimeDependenciesTool
 cmBinUtilsWindowsPEGetRuntimeDependenciesTool
 cmBinUtilsWindowsPEDumpbinGetRuntimeDependenciesTool
 cmBinUtilsWindowsPELinker
 cmBinUtilsWindowsPEObjdumpGetRuntimeDependenciesTool   cmBreakCommand
 cmBuildCommand   cmCMakeMinimumRequired   cmCMakePolicyCommand
 cmCPackPropertiesGenerator   cmCacheManager   cmCheckCustomOutputs
 cmCommand   cmCommandArgumentParserHelper   cmCommands
 cmCommonTargetGenerator   cmComputeComponentGraph   cmComputeLinkDepends
 cmComputeLinkInformation   cmComputeTargetDepends   cmConditionEvaluator
 cmConfigureFileCommand   cmContinueCommand   cmCoreTryCompile
 cmCreateTestSourceList   cmCustomCommand   cmCustomCommandGenerator
 cmDefinePropertyCommand   cmDefinitions   cmDepends   cmDependsC
 cmDocumentationFormatter   cmEnableLanguageCommand
 cmEnableTestingCommand   cmExecProgramCommand   cmExecuteProcessCommand
 cmExpandedCommandArgument   cmExportBuildFileGenerator
 cmExportFileGenerator   cmExportInstallFileGenerator   cmExportSet
 cmExportTryCompileFileGenerator   cmExprParserHelper
 cmExternalMakefileProjectGenerator   cmFileCommand   cmFileCopier
 cmFileInstaller   cmFileTime   cmFileTimeCache   cmFileTimes   cmFindBase
 cmFindCommon   cmFindFileCommand   cmFindLibraryCommand
 cmFindPackageCommand   cmFindPathCommand   cmFindProgramCommand
 cmForEachCommand   cmFunctionBlocker   cmFunctionCommand   cmFSPermissions
 cmGeneratedFileStream   cmGeneratorExpression
 cmGeneratorExpressionContext   cmGeneratorExpressionDAGChecker
 cmGeneratorExpressionEvaluationFile   cmGeneratorExpressionEvaluator
 cmGeneratorExpressionLexer   cmGeneratorExpressionNode
 cmGeneratorExpressionParser   cmGeneratorTarget
 cmGetCMakePropertyCommand   cmGetDirectoryPropertyCommand
 cmGetFilenameComponentCommand   cmGetPipes   cmGetPropertyCommand
 cmGetSourceFilePropertyCommand   cmGetTargetPropertyCommand
 cmGetTestPropertyCommand   cmGlobalCommonGenerator   cmGlobalGenerator
 cmGlobalUnixMakefileGenerator3   cmGlobVerificationManager
 cmHexFileConverter   cmIfCommand   cmIncludeCommand
 cmIncludeGuardCommand   cmIncludeDirectoryCommand
 cmIncludeRegularExpressionCommand   cmInstallCommand
 cmInstallCommandArguments   cmInstallDirectoryGenerator
 cmInstallExportGenerator   cmInstallFilesCommand   cmInstallFilesGenerator
 cmInstallGenerator   cmInstallScriptGenerator
 cmInstallSubdirectoryGenerator   cmInstallTargetGenerator
 cmInstallTargetsCommand   cmInstalledFile   cmLDConfigLDConfigTool
 cmLDConfigTool   cmLinkDirectoriesCommand   cmLinkItem
 cmLinkLineComputer   cmLinkLineDeviceComputer   cmListCommand
 cmListFileCache   cmLocalCommonGenerator   cmLocalGenerator
 cmLocalUnixMakefileGenerator3   cmMSVC60LinkLineComputer   cmMacroCommand
 cmMakeDirectoryCommand   cmMakefile   cmMakefileExecutableTargetGenerator
 cmMakefileLibraryTargetGenerator   cmMakefileTargetGenerator
 cmMakefileUtilityTargetGenerator   cmMarkAsAdvancedCommand   cmMathCommand
 cmMessageCommand   cmMessenger   cmNewLineStyle   cmOSXBundleGenerator
 cmOptionCommand   cmOrderDirectories   cmOutputConverter
 cmParseArgumentsCommand   cmPathLabel   cmPolicies   cmProcessOutput
 cmProjectCommand   cmPropertyDefinition   cmPropertyDefinitionMap
 cmPropertyMap   cmReturnCommand   cmRulePlaceholderExpander
 cmRuntimeDependencyArchive   cmScriptGenerator   cmSearchPath
 cmSeparateArgumentsCommand   cmSetCommand
 cmSetDirectoryPropertiesCommand   cmSetPropertyCommand
 cmSetSourceFilesPropertiesCommand   cmSetTargetPropertiesCommand
 cmSetTestsPropertiesCommand   cmSiteNameCommand   cmSourceFile
 cmSourceFileLocation   cmState   cmStateDirectory   cmStateSnapshot
 cmString   cmStringAlgorithms   cmStringReplaceHelper   cmStringCommand
 cmSubcommandTable   cmSubdirCommand   cmSystemTools   cmTarget
 cmTargetCompileDefinitionsCommand   cmTargetCompileFeaturesCommand
 cmTargetCompileOptionsCommand   cmTargetIncludeDirectoriesCommand
 cmTargetLinkLibrariesCommand   cmTargetLinkOptionsCommand
 cmTargetPrecompileHeadersCommand   cmTargetPropCommandBase
 cmTargetPropertyComputer   cmTargetSourcesCommand   cmTest
 cmTestGenerator   cmTimestamp   cmTryCompileCommand   cmTryRunCommand
 cmUnsetCommand   cmUVHandlePtr   cmUVProcessChain   cmVersion
 cmWhileCommand   cmWorkingDirectory   cmake    cmakemain   cmcmd  '
  481    -> false
  495    -> CMAKE_STD_CXX_HEADERS='  memory   optional   shared_mutex
 string_view   utility '
  498    -> CMAKE_STD_CXX_SOURCES='  string_view '
  505    -> LexerParser_CXX_SOURCES='  cmCommandArgumentLexer
 cmCommandArgumentParser   cmExprLexer   cmExprParser '
  509    -> LexerParser_C_SOURCES='  cmListFileLexer '
  511    -> false
  524    -> KWSYS_C_SOURCES='    EncodingC     ProcessUNIX     String
 System     Terminal'
  533    -> KWSYS_CXX_SOURCES='  Directory   EncodingCXX   FStream   Glob
 RegularExpression   SystemTools'
  547    -> KWSYS_FILES='  Directory.hxx   Encoding.h   Encoding.hxx
 FStream.hxx   Glob.hxx   Process.h   RegularExpression.hxx   String.h
 String.hxx   System.h   SystemTools.hxx   Terminal.h'
  549    -> false
  601    -> LIBUV_C_SOURCES='    src/strscpy.c     src/timer.c     src/uv-
 common.c     src/unix/cmake-bootstrap.c     src/unix/core.c
 src/unix/fs.c     src/unix/loop.c     src/unix/loop-watcher.c     src/unix
 /no-fsevents.c     src/unix/pipe.c     src/unix/poll.c     src/unix/posix-
 hrtime.c     src/unix/posix-poll.c     src/unix/process.c
 src/unix/signal.c     src/unix/stream.c     '
  861    -> cmake_verbose=
  862    -> cmake_parallel_make=
  863    -> cmake_ccache_enabled=
  864    -> cmake_prefix_dir=/usr/local
  865    -> test 0 '!=' 0
  909    -> '[' -n '' ']'
  921    -> echo ---------------------------------------------
 ---------------------------------------------
  923    -> cmake_version_display
  674    -> echo 'CMake 3.16.5, Copyright 2000-2019 Kitware, Inc. and
 Contributors'
  923    -> echo 'CMake 3.16.5, Copyright 2000-2019 Kitware, Inc. and
 Contributors'
 CMake 3.16.5, Copyright 2000-2019 Kitware, Inc. and Contributors
  926    -> cmake_in_source_build=
  927    -> '[' -f
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.16.5/Source/cmake.cxx
 -a -f
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.16.5/Source/cmake.h
 ']'
  929    -> '[' -n '' ']'
  932    -> cmake_in_source_build=TRUE
  936    -> '[' -z TRUE ']'
  956    -> '[' -d
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.16.5/Bootstrap.cmk
 ']'
  957    -> '[' '!' -d
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.16.5/Bootstrap.cmk
 ']'
  960    -> cd
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.16.5/Bootstrap.cmk
  962    -> '[' -d cmsys ']'
  963    -> '[' '!' -d cmsys ']'
  968    -> rm -f
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.16.5/Bootstrap.cmk/cmake_bootstrap.log
  969    -> rm -f
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.16.5/Bootstrap.cmk/cmConfigure.h.tmp
  970    -> rm -f
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.16.5/Bootstrap.cmk/cmVersionConfig.h.tmp
  974    -> '[' -n TRUE ']'
  975    -> rm -f
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.16.5/Source/cmConfigure.h
  979    -> cmake_c_flags=
  980    -> cmake_cxx_flags=
  981    -> cmake_ld_flags=
  984    -> false
  989    -> true
  990    -> cmake_ld_flags=' -framework CoreFoundation'
  994    -> false
  999    -> false
  1005   -> cmake_toolchains=
  1006   -> case "${cmake_system}" in
  1009   -> cmake_toolchains='Clang GNU'
  1015   -> cmake_toolchain_Clang_CC=clang
  1016   -> cmake_toolchain_Clang_CXX=clang++
  1017   -> cmake_toolchain_GNU_CC=gcc
  1018   -> cmake_toolchain_GNU_CXX=g++
  1019   -> cmake_toolchain_PGI_CC=pgcc
  1020   -> cmake_toolchain_PGI_CXX=pgCC
  1021   -> cmake_toolchain_PathScale_CC=pathcc
  1022   -> cmake_toolchain_PathScale_CXX=pathCC
  1023   -> cmake_toolchain_XL_CC=xlc
  1024   -> cmake_toolchain_XL_CXX=xlC
  1059   -> '[' -z '' -a -z '' ']'
  1060   -> cmake_toolchain_detect
  1050   -> cmake_toolchain=
  1051   -> for tc in '${cmake_toolchains}'
  1052   -> echo 'Checking for Clang toolchain'
  1053   -> cmake_toolchain_try Clang
  1028   -> tc=Clang
  1029   -> cmake_tmp_file
  792    -> echo cmake_bootstrap_1077_test
  1029   -> TMPFILE=cmake_bootstrap_1077_test
  1031   -> eval 'tc_CC=${cmake_toolchain_Clang_CC}'
  1031   -> tc_CC=clang
  1032   -> echo 'int main() { return 0; }'
  1033   -> cmake_try_run clang '' cmake_bootstrap_1077_test.c
  1034   -> tc_result_CC=1
  1035   -> rm -f cmake_bootstrap_1077_test.c
  1036   -> test 1 = 0
  1036   -> return 1
  1051   -> for tc in '${cmake_toolchains}'
  1052   -> echo 'Checking for GNU toolchain'
  1053   -> cmake_toolchain_try GNU
  1028   -> tc=GNU
  1029   -> cmake_tmp_file
  792    -> echo cmake_bootstrap_1077_test
  1029   -> TMPFILE=cmake_bootstrap_1077_test
  1031   -> eval 'tc_CC=${cmake_toolchain_GNU_CC}'
  1031   -> tc_CC=gcc
  1032   -> echo 'int main() { return 0; }'
  1033   -> cmake_try_run gcc '' cmake_bootstrap_1077_test.c
  1034   -> tc_result_CC=0
  1035   -> rm -f cmake_bootstrap_1077_test.c
  1036   -> test 0 = 0
  1038   -> eval 'tc_CXX=${cmake_toolchain_GNU_CXX}'
  1038   -> tc_CXX=g++
  1039   -> echo 'int main() { return 0; }'
  1040   -> cmake_try_run g++ '' cmake_bootstrap_1077_test.cpp
  1041   -> tc_result_CXX=0
  1042   -> rm -f cmake_bootstrap_1077_test.cpp
  1043   -> test 0 = 0
  1045   -> cmake_toolchain=GNU
  1054   -> echo 'Found GNU toolchain'
 Found GNU toolchain
  1055   -> break
  1063   -> thread_flags=
  1064   -> case "${cmake_system}" in
  1070   -> cmake_c_compiler=
  1073   -> '[' -n GNU ']'
  1074   -> eval 'cmake_c_compilers=${cmake_toolchain_GNU_CC}'
  1074   -> cmake_c_compilers=gcc
  1082   -> cmake_tmp_file
  792    -> echo cmake_bootstrap_1077_test
  1082   -> TMPFILE=cmake_bootstrap_1077_test
  1107   -> echo '
 #ifdef __cplusplus
 # error "The CMAKE_C_COMPILER is set to a C++ compiler"
 #endif

 #if defined(_AIX) && defined(__GNUC__) && !defined(_THREAD_SAFE)
 #error "On AIX with GNU we need the -pthread flag."
 #endif

 #if defined(__sun) && __STDC_VERSION__ < 199901L
 #error "On Solaris we need C99."
 #endif

 #if defined(__hpux) && !(defined(__GNUC__) && ((__GNUC__ * 100) +
 __GNUC_MINOR__) >= 409)
 #error "On HP-UX we need GCC 4.9 or higher."
 #endif

 #include <stdio.h>

 int main(int argc, char* argv[])
 {
   printf("%d%c", (argv != 0), (char)0x0a);
   return argc - 1;
 }
 '
  1108   -> for std in 11 99 90
  1109   -> cmake_extract_standard_flags GNU C 11
   34    -> sed -n 's/ *set *( *CMAKE_C11_EXTENSION_COMPILE_OPTION
 *"\{0,1\}\([^")]*\).*/\1/p'
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.16.5/Modules/Compiler/GNU-C.cmake
   35    -> tr ';' ' '
  1109   -> std_flags='-std=gnu11
 -std=gnu1x'
  1110   -> for compiler in '${cmake_c_compilers}'
  1111   -> for std_flag in ''\'''\''' '$std_flags'
  1112   -> for thread_flag in ''\'''\''' '$thread_flags'
  1113   -> echo 'Checking whether '\''gcc   '\'' works.'
  1114   -> cmake_try_run gcc '  ' cmake_bootstrap_1077_test.c
  1116   -> cmake_c_compiler=gcc
  1117   -> cmake_c_flags='  '
  1118   -> break 4
  1124   -> rm -f cmake_bootstrap_1077_test.c
  1126   -> '[' -z gcc ']'
  1132   -> echo 'C compiler on this system is: gcc   '
 C compiler on this system is: gcc
  1136   -> cmake_cxx_compiler=
  1141   -> '[' -n GNU ']'
  1142   -> eval 'cmake_cxx_compilers=${cmake_toolchain_GNU_CXX}'
  1142   -> cmake_cxx_compilers=g++
  1150   -> cmake_tmp_file
  792    -> echo cmake_bootstrap_1077_test
  1150   -> TMPFILE=cmake_bootstrap_1077_test
  1218   -> echo '
 #include <iostream>
 #include <memory>
 #include <unordered_map>

 #if __cplusplus < 201103L
 #error "Compiler is not in a mode aware of C++11."
 #endif

 #if defined(_AIX) && defined(__GNUC__) && !defined(_THREAD_SAFE)
 #error "On AIX with GNU we need the -pthread flag."
 #endif

 #if defined(__SUNPRO_CC) && __SUNPRO_CC < 0x5140
 #error "SunPro <= 5.13 mode not supported due to bug in move semantics."
 #endif

 #if defined(__hpux) && !(defined(__GNUC__) && ((__GNUC__ * 100) +
 __GNUC_MINOR__) >= 409)
 #error "On HP-UX we need GCC 4.9 or higher."
 #endif

 #if __cplusplus > 201103L
 #include <iterator>
 int check_cxx14()
 {
   int a[] = { 0, 1, 2 };
   auto ai = std::cbegin(a);

   int b[] = { 2, 1, 0 };
   auto bi = std::cend(b);

   return *ai + *(bi - 1);
 }
 #else
 int check_cxx14()
 {
   return 0;
 }
 #endif

 #if __cplusplus >= 201703L
 #include <optional>
 int check_cxx17()
 {
   std::optional<int> oi = 0;
   return oi.value();
 }
 #else
 int check_cxx17()
 {
   return 0;
 }
 #endif

 class Class
 {
 public:
   int Get() const { return this->Member; }
 private:
   int Member = 1;
 };
 int main()
 {
   auto const c = std::unique_ptr<Class>(new Class);
   std::cout << c->Get() << check_cxx14() << check_cxx17() << std::endl;
   return 0;
 }
 '
  1219   -> for std in 17 14 11
  1220   -> cmake_extract_standard_flags GNU CXX 17
   34    -> sed -n 's/ *set *( *CMAKE_CXX17_EXTENSION_COMPILE_OPTION
 *"\{0,1\}\([^")]*\).*/\1/p'
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.16.5/Modules/Compiler
 /GNU-CXX.cmake
   35    -> tr ';' ' '
  1220   -> std_flags='-std=gnu++17
 -std=gnu++1z'
  1221   -> for compiler in '${cmake_cxx_compilers}'
  1222   -> for std_flag in ''\'''\''' '$std_flags'
  1223   -> for thread_flag in ''\'''\''' '$thread_flags'
  1224   -> echo 'Checking whether '\''g++   '\'' works.'
  1225   -> cmake_try_run g++ '  ' cmake_bootstrap_1077_test.cxx
  1222   -> for std_flag in ''\'''\''' '$std_flags'
  1223   -> for thread_flag in ''\'''\''' '$thread_flags'
  1224   -> echo 'Checking whether '\''g++  -std=gnu++17 '\'' works.'
  1225   -> cmake_try_run g++ ' -std=gnu++17 '
 cmake_bootstrap_1077_test.cxx
  1222   -> for std_flag in ''\'''\''' '$std_flags'
  1223   -> for thread_flag in ''\'''\''' '$thread_flags'
  1224   -> echo 'Checking whether '\''g++  -std=gnu++1z '\'' works.'
  1225   -> cmake_try_run g++ ' -std=gnu++1z '
 cmake_bootstrap_1077_test.cxx
  1219   -> for std in 17 14 11
  1220   -> cmake_extract_standard_flags GNU CXX 14
   34    -> sed -n 's/ *set *( *CMAKE_CXX14_EXTENSION_COMPILE_OPTION
 *"\{0,1\}\([^")]*\).*/\1/p'
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.16.5/Modules/Compiler
 /GNU-CXX.cmake
   35    -> tr ';' ' '
  1220   -> std_flags='-std=gnu++14
 -std=gnu++1y'
  1221   -> for compiler in '${cmake_cxx_compilers}'
  1222   -> for std_flag in ''\'''\''' '$std_flags'
  1223   -> for thread_flag in ''\'''\''' '$thread_flags'
  1224   -> echo 'Checking whether '\''g++   '\'' works.'
  1225   -> cmake_try_run g++ '  ' cmake_bootstrap_1077_test.cxx
  1222   -> for std_flag in ''\'''\''' '$std_flags'
  1223   -> for thread_flag in ''\'''\''' '$thread_flags'
  1224   -> echo 'Checking whether '\''g++  -std=gnu++14 '\'' works.'
  1225   -> cmake_try_run g++ ' -std=gnu++14 '
 cmake_bootstrap_1077_test.cxx
  1222   -> for std_flag in ''\'''\''' '$std_flags'
  1223   -> for thread_flag in ''\'''\''' '$thread_flags'
  1224   -> echo 'Checking whether '\''g++  -std=gnu++1y '\'' works.'
  1225   -> cmake_try_run g++ ' -std=gnu++1y '
 cmake_bootstrap_1077_test.cxx
  1219   -> for std in 17 14 11
  1220   -> cmake_extract_standard_flags GNU CXX 11
   34    -> sed -n 's/ *set *( *CMAKE_CXX11_EXTENSION_COMPILE_OPTION
 *"\{0,1\}\([^")]*\).*/\1/p'
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.16.5/Modules/Compiler
 /GNU-CXX.cmake
   35    -> tr ';' ' '
  1220   -> std_flags='-std=gnu++11
 -std=gnu++0x'
  1221   -> for compiler in '${cmake_cxx_compilers}'
  1222   -> for std_flag in ''\'''\''' '$std_flags'
  1223   -> for thread_flag in ''\'''\''' '$thread_flags'
  1224   -> echo 'Checking whether '\''g++   '\'' works.'
  1225   -> cmake_try_run g++ '  ' cmake_bootstrap_1077_test.cxx
  1222   -> for std_flag in ''\'''\''' '$std_flags'
  1223   -> for thread_flag in ''\'''\''' '$thread_flags'
  1224   -> echo 'Checking whether '\''g++  -std=gnu++11 '\'' works.'
  1225   -> cmake_try_run g++ ' -std=gnu++11 '
 cmake_bootstrap_1077_test.cxx
  1222   -> for std_flag in ''\'''\''' '$std_flags'
  1223   -> for thread_flag in ''\'''\''' '$thread_flags'
  1224   -> echo 'Checking whether '\''g++  -std=gnu++0x '\'' works.'
  1225   -> cmake_try_run g++ ' -std=gnu++0x '
 cmake_bootstrap_1077_test.cxx
  1235   -> rm -f cmake_bootstrap_1077_test.cxx
  1237   -> '[' -z '' ']'
  1238   -> cmake_error 7 'Cannot find a C++ compiler that supports both
 C++11 and the specified C++ flags.
 Please specify one using environment variable CXX.
 The C++ flags are "".
 They can be changed using the environment variable CXXFLAGS.
 See cmake_bootstrap.log for compilers attempted.'
  680    -> res=7
  681    -> shift 1
  682    -> echo ---------------------------------------------
 ---------------------------------------------
  683    -> echo 'Error when bootstrapping CMake:'
 Error when bootstrapping CMake:
  684    -> echo 'Cannot find a C++ compiler that supports both C++11 and
 the specified C++ flags.
 Please specify one using environment variable CXX.
 The C++ flags are "".
 They can be changed using the environment variable CXXFLAGS.
 See cmake_bootstrap.log for compilers attempted.'
 Cannot find a C++ compiler that supports both C++11 and the specified C++
 flags.
 Please specify one using environment variable CXX.
 The C++ flags are "".
 They can be changed using the environment variable CXXFLAGS.
 See cmake_bootstrap.log for compilers attempted.
  685    -> echo ---------------------------------------------
 ---------------------------------------------
  686    -> '[' -f cmake_bootstrap.log ']'
  687    -> pwd
  687    -> echo 'Log of errors:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.16.5/Bootstrap.cmk/cmake_bootstrap.log'
 Log of errors:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.16.5/Bootstrap.cmk/cmake_bootstrap.log
  689    -> echo ---------------------------------------------
 ---------------------------------------------
  691    -> exit 7



 ggausslings-Computer:cmake-3.16.5 ggaussling$ less
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.16.5/Bootstrap.cmk/cmake_bootstrap.log



 ggausslings-Computer:cmake-3.16.5 ggaussling$ grep -C3 err
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_cmake/cmake/work/cmake-3.16.5/Bootstrap.cmk/cmake_bootstrap.log
  810    -> cat cmake_bootstrap_1077_test.c

 #ifdef __cplusplus
 # error "The CMAKE_C_COMPILER is set to a C++ compiler"
 #endif

 #if defined(_AIX) && defined(__GNUC__) && !defined(_THREAD_SAFE)
 #error "On AIX with GNU we need the -pthread flag."
 #endif

 #if defined(__sun) && __STDC_VERSION__ < 199901L
 #error "On Solaris we need C99."
 #endif

 #if defined(__hpux) && !(defined(__GNUC__) && ((__GNUC__ * 100) +
 __GNUC_MINOR__) >= 409)
 #error "On HP-UX we need GCC 4.9 or higher."
 #endif

 #include <stdio.h>
 --
 #include <unordered_map>

 #if __cplusplus < 201103L
 #error "Compiler is not in a mode aware of C++11."
 #endif

 #if defined(_AIX) && defined(__GNUC__) && !defined(_THREAD_SAFE)
 #error "On AIX with GNU we need the -pthread flag."
 #endif

 #if defined(__SUNPRO_CC) && __SUNPRO_CC < 0x5140
 #error "SunPro <= 5.13 mode not supported due to bug in move semantics."
 #endif

 #if defined(__hpux) && !(defined(__GNUC__) && ((__GNUC__ * 100) +
 __GNUC_MINOR__) >= 409)
 #error "On HP-UX we need GCC 4.9 or higher."
 #endif

 #if __cplusplus > 201103L
 --
  811    -> echo ------------------------------------------
 ------------------------------------------
  812    -> g++ cmake_bootstrap_1077_test.cxx -o cmake_bootstrap_1077_test
 cmake_bootstrap_1077_test.cxx:4:25: error: unordered_map: No such file or
 directory
 cmake_bootstrap_1077_test.cxx:7:2: error: #error "Compiler is not in a
 mode aware of C++11."
 cmake_bootstrap_1077_test.cxx:60: error: ISO C++ forbids initialization of
 member ‘Member’
 cmake_bootstrap_1077_test.cxx:60: error: making ‘Member’ static
 cmake_bootstrap_1077_test.cxx:60: error: ISO C++ forbids in-class
 initialization of non-const static member ‘Member’
 cmake_bootstrap_1077_test.cxx: In function ‘int main()’:
 cmake_bootstrap_1077_test.cxx:64: error: ISO C++ forbids declaration of
 ‘c’ with no type
 cmake_bootstrap_1077_test.cxx:64: error: ‘unique_ptr’ is not a member of
 ‘std’
 cmake_bootstrap_1077_test.cxx:64: error: expected primary-expression
 before ‘>’ token
 cmake_bootstrap_1077_test.cxx:65: error: base operand of ‘->’ is not a
 pointer
  813    -> RES=1
  814    -> '[' 1 -ne 0 ']'
  815    -> echo 'Test failed to compile'
 --
 #include <unordered_map>

 #if __cplusplus < 201103L
 #error "Compiler is not in a mode aware of C++11."
 #endif

 #if defined(_AIX) && defined(__GNUC__) && !defined(_THREAD_SAFE)
 #error "On AIX with GNU we need the -pthread flag."
 #endif

 #if defined(__SUNPRO_CC) && __SUNPRO_CC < 0x5140
 #error "SunPro <= 5.13 mode not supported due to bug in move semantics."
 #endif

 #if defined(__hpux) && !(defined(__GNUC__) && ((__GNUC__ * 100) +
 __GNUC_MINOR__) >= 409)
 #error "On HP-UX we need GCC 4.9 or higher."
 #endif

 #if __cplusplus > 201103L
 --
  811    -> echo ------------------------------------------
 ------------------------------------------
  812    -> g++ -std=gnu++17 cmake_bootstrap_1077_test.cxx -o
 cmake_bootstrap_1077_test
 cc1plus: error: unrecognized command line option "-std=gnu++17"
  813    -> RES=1
  814    -> '[' 1 -ne 0 ']'
  815    -> echo 'Test failed to compile'
 --
 #include <unordered_map>

 #if __cplusplus < 201103L
 #error "Compiler is not in a mode aware of C++11."
 #endif

 #if defined(_AIX) && defined(__GNUC__) && !defined(_THREAD_SAFE)
 #error "On AIX with GNU we need the -pthread flag."
 #endif

 #if defined(__SUNPRO_CC) && __SUNPRO_CC < 0x5140
 #error "SunPro <= 5.13 mode not supported due to bug in move semantics."
 #endif

 #if defined(__hpux) && !(defined(__GNUC__) && ((__GNUC__ * 100) +
 __GNUC_MINOR__) >= 409)
 #error "On HP-UX we need GCC 4.9 or higher."
 #endif

 #if __cplusplus > 201103L
 --
  811    -> echo ------------------------------------------
 ------------------------------------------
  812    -> g++ -std=gnu++1z cmake_bootstrap_1077_test.cxx -o
 cmake_bootstrap_1077_test
 cc1plus: error: unrecognized command line option "-std=gnu++1z"
  813    -> RES=1
  814    -> '[' 1 -ne 0 ']'
  815    -> echo 'Test failed to compile'
 --
 #include <unordered_map>

 #if __cplusplus < 201103L
 #error "Compiler is not in a mode aware of C++11."
 #endif

 #if defined(_AIX) && defined(__GNUC__) && !defined(_THREAD_SAFE)
 #error "On AIX with GNU we need the -pthread flag."
 #endif

 #if defined(__SUNPRO_CC) && __SUNPRO_CC < 0x5140
 #error "SunPro <= 5.13 mode not supported due to bug in move semantics."
 #endif

 #if defined(__hpux) && !(defined(__GNUC__) && ((__GNUC__ * 100) +
 __GNUC_MINOR__) >= 409)
 #error "On HP-UX we need GCC 4.9 or higher."
 #endif

 #if __cplusplus > 201103L
 --
  811    -> echo ------------------------------------------
 ------------------------------------------
  812    -> g++ cmake_bootstrap_1077_test.cxx -o cmake_bootstrap_1077_test
 cmake_bootstrap_1077_test.cxx:4:25: error: unordered_map: No such file or
 directory
 cmake_bootstrap_1077_test.cxx:7:2: error: #error "Compiler is not in a
 mode aware of C++11."
 cmake_bootstrap_1077_test.cxx:60: error: ISO C++ forbids initialization of
 member ‘Member’
 cmake_bootstrap_1077_test.cxx:60: error: making ‘Member’ static
 cmake_bootstrap_1077_test.cxx:60: error: ISO C++ forbids in-class
 initialization of non-const static member ‘Member’
 cmake_bootstrap_1077_test.cxx: In function ‘int main()’:
 cmake_bootstrap_1077_test.cxx:64: error: ISO C++ forbids declaration of
 ‘c’ with no type
 cmake_bootstrap_1077_test.cxx:64: error: ‘unique_ptr’ is not a member of
 ‘std’
 cmake_bootstrap_1077_test.cxx:64: error: expected primary-expression
 before ‘>’ token
 cmake_bootstrap_1077_test.cxx:65: error: base operand of ‘->’ is not a
 pointer
  813    -> RES=1
  814    -> '[' 1 -ne 0 ']'
  815    -> echo 'Test failed to compile'
 --
 #include <unordered_map>

 #if __cplusplus < 201103L
 #error "Compiler is not in a mode aware of C++11."
 #endif

 #if defined(_AIX) && defined(__GNUC__) && !defined(_THREAD_SAFE)
 #error "On AIX with GNU we need the -pthread flag."
 #endif

 #if defined(__SUNPRO_CC) && __SUNPRO_CC < 0x5140
 #error "SunPro <= 5.13 mode not supported due to bug in move semantics."
 #endif

 #if defined(__hpux) && !(defined(__GNUC__) && ((__GNUC__ * 100) +
 __GNUC_MINOR__) >= 409)
 #error "On HP-UX we need GCC 4.9 or higher."
 #endif

 #if __cplusplus > 201103L
 --
  811    -> echo ------------------------------------------
 ------------------------------------------
  812    -> g++ -std=gnu++14 cmake_bootstrap_1077_test.cxx -o
 cmake_bootstrap_1077_test
 cc1plus: error: unrecognized command line option "-std=gnu++14"
  813    -> RES=1
  814    -> '[' 1 -ne 0 ']'
  815    -> echo 'Test failed to compile'
 --
 #include <unordered_map>

 #if __cplusplus < 201103L
 #error "Compiler is not in a mode aware of C++11."
 #endif

 #if defined(_AIX) && defined(__GNUC__) && !defined(_THREAD_SAFE)
 #error "On AIX with GNU we need the -pthread flag."
 #endif

 #if defined(__SUNPRO_CC) && __SUNPRO_CC < 0x5140
 #error "SunPro <= 5.13 mode not supported due to bug in move semantics."
 #endif

 #if defined(__hpux) && !(defined(__GNUC__) && ((__GNUC__ * 100) +
 __GNUC_MINOR__) >= 409)
 #error "On HP-UX we need GCC 4.9 or higher."
 #endif

 #if __cplusplus > 201103L
 --
  811    -> echo ------------------------------------------
 ------------------------------------------
  812    -> g++ -std=gnu++1y cmake_bootstrap_1077_test.cxx -o
 cmake_bootstrap_1077_test
 cc1plus: error: unrecognized command line option "-std=gnu++1y"
  813    -> RES=1
  814    -> '[' 1 -ne 0 ']'
  815    -> echo 'Test failed to compile'
 --
 #include <unordered_map>

 #if __cplusplus < 201103L
 #error "Compiler is not in a mode aware of C++11."
 #endif

 #if defined(_AIX) && defined(__GNUC__) && !defined(_THREAD_SAFE)
 #error "On AIX with GNU we need the -pthread flag."
 #endif

 #if defined(__SUNPRO_CC) && __SUNPRO_CC < 0x5140
 #error "SunPro <= 5.13 mode not supported due to bug in move semantics."
 #endif

 #if defined(__hpux) && !(defined(__GNUC__) && ((__GNUC__ * 100) +
 __GNUC_MINOR__) >= 409)
 #error "On HP-UX we need GCC 4.9 or higher."
 #endif

 #if __cplusplus > 201103L
 --
  811    -> echo ------------------------------------------
 ------------------------------------------
  812    -> g++ cmake_bootstrap_1077_test.cxx -o cmake_bootstrap_1077_test
 cmake_bootstrap_1077_test.cxx:4:25: error: unordered_map: No such file or
 directory
 cmake_bootstrap_1077_test.cxx:7:2: error: #error "Compiler is not in a
 mode aware of C++11."
 cmake_bootstrap_1077_test.cxx:60: error: ISO C++ forbids initialization of
 member ‘Member’
 cmake_bootstrap_1077_test.cxx:60: error: making ‘Member’ static
 cmake_bootstrap_1077_test.cxx:60: error: ISO C++ forbids in-class
 initialization of non-const static member ‘Member’
 cmake_bootstrap_1077_test.cxx: In function ‘int main()’:
 cmake_bootstrap_1077_test.cxx:64: error: ISO C++ forbids declaration of
 ‘c’ with no type
 cmake_bootstrap_1077_test.cxx:64: error: ‘unique_ptr’ is not a member of
 ‘std’
 cmake_bootstrap_1077_test.cxx:64: error: expected primary-expression
 before ‘>’ token
 cmake_bootstrap_1077_test.cxx:65: error: base operand of ‘->’ is not a
 pointer
  813    -> RES=1
  814    -> '[' 1 -ne 0 ']'
  815    -> echo 'Test failed to compile'
 --
 #include <unordered_map>

 #if __cplusplus < 201103L
 #error "Compiler is not in a mode aware of C++11."
 #endif

 #if defined(_AIX) && defined(__GNUC__) && !defined(_THREAD_SAFE)
 #error "On AIX with GNU we need the -pthread flag."
 #endif

 #if defined(__SUNPRO_CC) && __SUNPRO_CC < 0x5140
 #error "SunPro <= 5.13 mode not supported due to bug in move semantics."
 #endif

 #if defined(__hpux) && !(defined(__GNUC__) && ((__GNUC__ * 100) +
 __GNUC_MINOR__) >= 409)
 #error "On HP-UX we need GCC 4.9 or higher."
 #endif

 #if __cplusplus > 201103L
 --
  811    -> echo ------------------------------------------
 ------------------------------------------
  812    -> g++ -std=gnu++11 cmake_bootstrap_1077_test.cxx -o
 cmake_bootstrap_1077_test
 cc1plus: error: unrecognized command line option "-std=gnu++11"
  813    -> RES=1
  814    -> '[' 1 -ne 0 ']'
  815    -> echo 'Test failed to compile'
 --
 #include <unordered_map>

 #if __cplusplus < 201103L
 #error "Compiler is not in a mode aware of C++11."
 #endif

 #if defined(_AIX) && defined(__GNUC__) && !defined(_THREAD_SAFE)
 #error "On AIX with GNU we need the -pthread flag."
 #endif

 #if defined(__SUNPRO_CC) && __SUNPRO_CC < 0x5140
 #error "SunPro <= 5.13 mode not supported due to bug in move semantics."
 #endif

 #if defined(__hpux) && !(defined(__GNUC__) && ((__GNUC__ * 100) +
 __GNUC_MINOR__) >= 409)
 #error "On HP-UX we need GCC 4.9 or higher."
 #endif

 #if __cplusplus > 201103L
 --
  811    -> echo ------------------------------------------
 ------------------------------------------
  812    -> g++ -std=gnu++0x cmake_bootstrap_1077_test.cxx -o
 cmake_bootstrap_1077_test
 cc1plus: error: unrecognized command line option "-std=gnu++0x"
  813    -> RES=1
  814    -> '[' 1 -ne 0 ']'
  815    -> echo 'Test failed to compile'




 ggausslings-Computer:cmake-3.16.5 ggaussling$ head -n30 ./bootstrap
 #!/bin/sh
 # Distributed under the OSI-approved BSD 3-Clause License.  See
 accompanying
 # file Copyright.txt or https://cmake.org/licensing for details.

 die() {
   echo "$@" 1>&2 ; exit 1
 }


 #-------------------------------------------------
 # DEBUG
 #-------------------------------------------------


 LC_NUMERIC=C LC_COLLATE=C
 export PS4='\010$(printf "% 4d" $LINENO)\011-> ' #debug
 Ldbg=true
 ldbg() {
 if [ "$Ldbg" == "true" ];then
 printf "$1"
 fi
 }

 dbgStep() {
 trap '(read -p "[$BASH_SOURCE:$LINENO] $BASH_COMMAND?")' DEBUG
 }
 # /DEBUG



 ggausslings-Computer:cmake-3.16.5 ggaussling$

 }}}


 with the debug section for $LINENO the baffected line has no 1698:
 {{{
 $ cat -n ./bootstrap | grep -C10 '"${cmake_bootstrap_dir}/cmake"
 "${cmake_source_dir}" "-C${cmake_bootstrap_dir}/InitialCacheFlags.cmake"
 "-G${cmake_bootstrap_generator}" ${cmake_options}
 ${cmake_bootstrap_system_libs} "$@"'
   1688  export MAKE
   1689  export CFLAGS
   1690  export CXXFLAGS
   1691  export LDFLAGS
   1692
   1693  # Run bootstrap CMake to configure real CMake
   1694  cmake_options="-DCMAKE_BOOTSTRAP=1"
   1695  if [ -n "${cmake_verbose}" ]; then
   1696    cmake_options="${cmake_options} -DCMAKE_VERBOSE_MAKEFILE=1"
   1697  fi
   1698  "${cmake_bootstrap_dir}/cmake" "${cmake_source_dir}"
 "-C${cmake_bootstrap_dir}/InitialCacheFlags.cmake"
 "-G${cmake_bootstrap_generator}" ${cmake_options}
 ${cmake_bootstrap_system_libs} "$@"
   1699  RES=$?
   1700  if [ "${RES}" -ne "0" ]; then
   1701    cmake_error 11 "Problem while running initial CMake"
   1702  fi
   1703
   1704  echo "---------------------------------------------"
   1705
   1706  # And we are done. Now just run make
   1707  echo "CMake has bootstrapped.  Now run ${cmake_make_processor}."

 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/59832#comment:10>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list