[MacPorts] #69812: cmake-bootstrap @3.9.6 does not compile under rosetta2

MacPorts noreply at macports.org
Sun Jun 9 15:48:02 UTC 2024


#69812: cmake-bootstrap @3.9.6 does not compile under rosetta2
------------------------------+--------------------
  Reporter:  lukaso           |      Owner:  (none)
      Type:  defect           |     Status:  new
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:
Resolution:                   |   Keywords:
      Port:  cmake-bootstrap  |
------------------------------+--------------------

Comment (by kencu):

 OK -- I install the 10.13 SDK, and get this too...

 {{{
 % /usr/bin/clang++ -pipe -Os -isysroot
 /Library/Developer/CommandLineTools/SDKs/MacOSX10.13.sdk hello.cpp
 hello.cpp:3:10: fatal error: 'iostream' file not found
 #include <iostream>
          ^~~~~~~~~~
 1 error generated.


 % /usr/bin/clang++ -v -pipe -Os -isysroot
 /Library/Developer/CommandLineTools/SDKs/MacOSX10.13.sdk hello.cpp
 Apple clang version 15.0.0 (clang-1500.3.9.4)
 Target: x86_64-apple-darwin23.5.0
 Thread model: posix
 InstalledDir:
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
 ignoring nonexistent directory
 "/Library/Developer/CommandLineTools/SDKs/MacOSX10.13.sdk/usr/include/c++/v1"
 ignoring nonexistent directory
 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1"
 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"
 -cc1 -triple x86_64-apple-macosx10.13.0 -Wdeprecated-objc-isa-usage
 -Werror=deprecated-objc-isa-usage -Werror=implicit-function-declaration
 -emit-obj --mrelax-relocations -disable-free -clear-ast-before-backend
 -disable-llvm-verifier -discard-value-names -main-file-name hello.cpp
 -mrelocation-model pic -pic-level 2 -mframe-pointer=all -fno-strict-return
 -ffp-contract=on -fno-rounding-math -funwind-tables=2 -target-sdk-
 version=10.13 -fcompatibility-qualified-id-block-type-checking
 -fvisibility-inlines-hidden-static-local-var -target-cpu penryn -tune-cpu
 generic -debugger-tuning=lldb -target-linker-version 1053.12 -v
 -fcoverage-compilation-dir=/Users/cunningh -resource-dir
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0
 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.13.sdk
 -internal-isystem
 /Library/Developer/CommandLineTools/SDKs/MacOSX10.13.sdk/usr/local/include
 -internal-isystem
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include
 -internal-externc-isystem
 /Library/Developer/CommandLineTools/SDKs/MacOSX10.13.sdk/usr/include
 -internal-externc-isystem
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
 -Os -Wno-reorder-init-list -Wno-implicit-int-float-conversion
 -Wno-c99-designator -Wno-final-dtor-non-final-class -Wno-extra-semi-stmt
 -Wno-misleading-indentation -Wno-quoted-include-in-framework-header -Wno-
 implicit-fallthrough -Wno-enum-enum-conversion -Wno-enum-float-conversion
 -Wno-elaborated-enum-base -Wno-reserved-identifier -Wno-gnu-folding-
 constant -fdeprecated-macro -fdebug-compilation-dir=/Users/cunningh
 -ferror-limit 19 -stack-protector 1 -mdarwin-stkchk-strong-link -fblocks
 -fencode-extended-block-signature -fregister-global-dtors-with-atexit
 -fgnuc-version=4.2.1 -fno-cxx-modules -fcxx-exceptions -fexceptions -fmax-
 type-align=16 -fcommon -fcolor-diagnostics -vectorize-loops -vectorize-slp
 -clang-vendor-feature=+disableNonDependentMemberExprInCurrentInstantiation
 -fno-odr-hash-protocols -clang-vendor-feature=+enableAggressiveVLAFolding
 -clang-vendor-feature=+revert09abecef7bbf -clang-vendor-
 feature=+thisNoAlignAttr -clang-vendor-feature=+thisNoNullAttr -mllvm
 -disable-aligned-alloc-awareness=1 -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o
 /var/folders/97/nn3swcb52bg003_4bctdbyd80000gn/T/hello-42630f.o -x c++
 hello.cpp
 clang -cc1 version 15.0.0 (clang-1500.3.9.4) default target x86_64-apple-
 darwin23.5.0
 ignoring nonexistent directory
 "/Library/Developer/CommandLineTools/SDKs/MacOSX10.13.sdk/usr/local/include"
 ignoring nonexistent directory
 "/Library/Developer/CommandLineTools/SDKs/MacOSX10.13.sdk/Library/Frameworks"
 #include "..." search starts here:
 #include <...> search starts here:
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include
  /Library/Developer/CommandLineTools/SDKs/MacOSX10.13.sdk/usr/include
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
 /Library/Developer/CommandLineTools/SDKs/MacOSX10.13.sdk/System/Library/Frameworks
 (framework directory)
 End of search list.
 hello.cpp:3:10: fatal error: 'iostream' file not found
 #include <iostream>
          ^~~~~~~~~~
 1 error generated.
 }}}

 so this has nothing to do with cmake-bootstrap, or MacPorts.

 The compiler simply doesn't work. Let's see if there is some way to make
 it work.... I will try some things. No promises.

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


More information about the macports-tickets mailing list