[MacPorts] #70331: gcc14 (c++) can not compile trivial program

MacPorts noreply at macports.org
Sat Jul 6 09:56:59 UTC 2024


#70331: gcc14 (c++) can not compile trivial program
----------------------+--------------------
  Reporter:  acmaggs  |      Owner:  (none)
      Type:  defect   |     Status:  new
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:
Resolution:           |   Keywords:
      Port:  gcc14    |
----------------------+--------------------

Comment (by cjones051073):

 works fine here (and with a lot more complicated test cases which I always
 test with before pushing a new release).

 Please build with

 {{{
 g++-mp-14 -H -v ./test.cc
 }}}

 and compare to what I post below.

 {{{
 Larissa ~/Downloads > g++-mp-14 -H -v ./test.cc
 Using built-in specs.
 COLLECT_GCC=g++-mp-14
 COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/arm64-apple-darwin23/14.1.0
 /lto-wrapper
 Target: arm64-apple-darwin23
 Configured with:
 /opt/local/var/macports/build/_Users_chris_Projects_MacPorts_ports_lang_gcc14/gcc14/work/gcc-14.1.0/configure
 --prefix=/opt/local --build=arm64-apple-darwin23 --enable-
 languages=c,c++,objc,obj-c++,lto,fortran,jit --libdir=/opt/local/lib/gcc14
 --infodir=/opt/local/share/info --mandir=/opt/local/share/man
 --datarootdir=/opt/local/share/gcc-14 --with-local-prefix=/opt/local
 --with-system-zlib --disable-nls --program-suffix=-mp-14 --with-gxx-
 include-dir=/opt/local/include/gcc14/c++/ --with-gmp=/opt/local --with-
 mpfr=/opt/local --with-mpc=/opt/local --with-isl=/opt/local --with-
 zstd=/opt/local --enable-checking=release --disable-multilib --enable-lto
 --enable-libstdcxx-time --with-build-config=bootstrap-debug --with-
 as=/opt/local/bin/as --with-ld=/opt/local/bin/ld-classic --with-
 ar=/opt/local/bin/ar --with-bugurl=https://trac.macports.org/newticket
 --enable-host-shared --with-darwin-extra-rpath=/opt/local/lib/libgcc
 --with-libiconv-prefix=/opt/local --disable-tls --with-gxx-libcxx-include-
 dir=/opt/local/libexec/gcc14/libc++/include/c++/v1 --with-
 pkgversion='MacPorts gcc14 14.1.0_0+stdlib_flag' --with-
 sysroot=/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk
 Thread model: posix
 Supported LTO compression algorithms: zlib zstd
 gcc version 14.1.0 (MacPorts gcc14 14.1.0_0+stdlib_flag)
 COLLECT_GCC_OPTIONS='-H' '-v' '--
 sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk'
 '-mmacosx-version-min=14.0.0' '-asm_macosx_version_min=14.0'
 '-nodefaultexport' '-mcpu=apple-m1' '-mlittle-endian' '-mabi=lp64'
 '-dumpdir' 'a-'
  /opt/local/libexec/gcc/arm64-apple-darwin23/14.1.0/cc1plus -quiet -v
 -isysroot
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
 -H -D__DYNAMIC__ ./test.cc -fPIC -quiet -dumpdir a- -dumpbase test.cc
 -dumpbase-ext .cc -mmacosx-version-min=14.0.0 -mcpu=apple-m1 -mlittle-
 endian -mabi=lp64 -version -o
 /var/folders/97/z7_b52957j36mhz075gflttr0000gn/T//ccshuOxY.s
 GNU C++17 (MacPorts gcc14 14.1.0_0+stdlib_flag) version 14.1.0 (arm64
 -apple-darwin23)
         compiled by GNU C version 14.1.0, GMP version 6.3.0, MPFR version
 4.2.1, MPC version 1.3.1, isl version isl-0.24-GMP

 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
 ignoring nonexistent directory
 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/opt/local/include"
 ignoring nonexistent directory "/opt/local/lib/gcc14/gcc/arm64-apple-
 darwin23/14.1.0/../../../../../arm64-apple-darwin23/include"
 ignoring nonexistent directory
 "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/Library/Frameworks"
 #include "..." search starts here:
 #include <...> search starts here:
  /opt/local/include/gcc14/c++/
  /opt/local/include/gcc14/c++//arm64-apple-darwin23
  /opt/local/include/gcc14/c++//backward
  /opt/local/lib/gcc14/gcc/arm64-apple-darwin23/14.1.0/include
  /opt/local/lib/gcc14/gcc/arm64-apple-darwin23/14.1.0/include-fixed
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks
 End of search list.
 Compiler executable checksum: fbabe9d2e25ee51696a211228ff00565
 . /opt/local/include/gcc14/c++/iostream
 .. /opt/local/include/gcc14/c++/bits/requires_hosted.h
 ... /opt/local/include/gcc14/c++/arm64-apple-darwin23/bits/c++config.h
 .... /opt/local/include/gcc14/c++/arm64-apple-darwin23/bits/os_defines.h
 .... /opt/local/include/gcc14/c++/arm64-apple-darwin23/bits/cpu_defines.h
 .... /opt/local/include/gcc14/c++/pstl/pstl_config.h
 .. /opt/local/include/gcc14/c++/ostream
 ... /opt/local/include/gcc14/c++/ios
 .... /opt/local/include/gcc14/c++/iosfwd
 ..... /opt/local/include/gcc14/c++/bits/stringfwd.h
 ...... /opt/local/include/gcc14/c++/bits/memoryfwd.h
 ..... /opt/local/include/gcc14/c++/bits/postypes.h
 ...... /opt/local/include/gcc14/c++/cwchar
 .......
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/wchar.h
 ........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_types.h
 .........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types.h
 ..........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h
 ...........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_symbol_aliasing.h
 ...........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_posix_availability.h
 ..........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/machine/_types.h
 ...........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/arm/_types.h
 ..........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_pthread/_pthread_types.h
 ........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/Availability.h
 .........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/AvailabilityVersions.h
 ......... /opt/local/lib/gcc14/gcc/arm64-apple-darwin23/14.1.0/include-
 fixed/AvailabilityInternal.h
 ..........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/AvailabilityInternalLegacy.h
 ........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_null.h
 ........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_size_t.h
 ........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_mbstate_t.h
 .........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/machine/types.h
 ..........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/arm/types.h
 ...........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_int8_t.h
 ...........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_int16_t.h
 ...........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_int32_t.h
 ...........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_int64_t.h
 ...........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_u_int8_t.h
 ...........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_u_int16_t.h
 ...........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_u_int32_t.h
 ...........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_u_int64_t.h
 ...........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_intptr_t.h
 ............
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/machine/types.h
 ...........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_uintptr_t.h
 ........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_ct_rune_t.h
 ........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_rune_t.h
 ........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_wchar_t.h
 ........ /opt/local/lib/gcc14/gcc/arm64-apple-
 darwin23/14.1.0/include/stdarg.h
 ........ /opt/local/lib/gcc14/gcc/arm64-apple-darwin23/14.1.0/include-
 fixed/stdio.h
 .........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_stdio.h
 ..........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_va_list.h
 ..........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/stdio.h
 .........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_seek_set.h
 .........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_ctermid.h
 .........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_off_t.h
 .........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_ssize_t.h
 ........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/time.h
 .........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_clock_t.h
 .........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_time_t.h
 .........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_timespec.h
 ........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_wctype.h
 .........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/__wctype.h
 ..........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_wint_t.h
 ..........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_types/_wctype_t.h
 ..........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/ctype.h
 ...........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_ctype.h
 ............
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/runetype.h
 .... /opt/local/include/gcc14/c++/exception
 ..... /opt/local/include/gcc14/c++/bits/exception.h
 ..... /opt/local/include/gcc14/c++/bits/version.h
 ..... /opt/local/include/gcc14/c++/bits/exception_ptr.h
 ...... /opt/local/include/gcc14/c++/bits/exception_defines.h
 ...... /opt/local/include/gcc14/c++/bits/cxxabi_init_exception.h
 ....... /opt/local/lib/gcc14/gcc/arm64-apple-
 darwin23/14.1.0/include/stddef.h
 ...... /opt/local/include/gcc14/c++/typeinfo
 ....... /opt/local/include/gcc14/c++/bits/hash_bytes.h
 ....... /opt/local/include/gcc14/c++/bits/version.h
 ...... /opt/local/include/gcc14/c++/new
 ....... /opt/local/include/gcc14/c++/bits/version.h
 ...... /opt/local/include/gcc14/c++/bits/move.h
 ....... /opt/local/include/gcc14/c++/type_traits
 ........ /opt/local/include/gcc14/c++/bits/version.h
 ..... /opt/local/include/gcc14/c++/bits/nested_exception.h
 .... /opt/local/include/gcc14/c++/bits/char_traits.h
 ..... /opt/local/include/gcc14/c++/cwchar
 .... /opt/local/include/gcc14/c++/bits/localefwd.h
 ..... /opt/local/include/gcc14/c++/arm64-apple-darwin23/bits/c++locale.h
 ...... /opt/local/include/gcc14/c++/clocale
 .......
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/locale.h
 ........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_locale.h
 ..... /opt/local/include/gcc14/c++/cctype
 .... /opt/local/include/gcc14/c++/bits/ios_base.h
 ..... /opt/local/include/gcc14/c++/ext/atomicity.h
 ...... /opt/local/include/gcc14/c++/arm64-apple-darwin23/bits/gthr.h
 ....... /opt/local/include/gcc14/c++/arm64-apple-darwin23/bits/gthr-
 default.h
 ........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/pthread.h
 .........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/pthread/sched.h
 ..........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/pthread/pthread_impl.h
 .........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_pthread/_pthread_attr_t.h
 .........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_pthread/_pthread_cond_t.h
 .........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_pthread/_pthread_condattr_t.h
 .........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_pthread/_pthread_key_t.h
 .........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_pthread/_pthread_mutex_t.h
 .........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_pthread/_pthread_mutexattr_t.h
 .........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_pthread/_pthread_once_t.h
 .........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_pthread/_pthread_rwlock_t.h
 .........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_pthread/_pthread_rwlockattr_t.h
 .........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_pthread/_pthread_t.h
 .........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/pthread/qos.h
 ..........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/qos.h
 .........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_mach_port_t.h
 .........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_sigset_t.h
 ...... /opt/local/include/gcc14/c++/arm64-apple-
 darwin23/bits/atomic_word.h
 ..... /opt/local/include/gcc14/c++/bits/locale_classes.h
 ...... /opt/local/include/gcc14/c++/string
 ....... /opt/local/include/gcc14/c++/bits/allocator.h
 ........ /opt/local/include/gcc14/c++/arm64-apple-
 darwin23/bits/c++allocator.h
 ......... /opt/local/include/gcc14/c++/bits/new_allocator.h
 .......... /opt/local/include/gcc14/c++/bits/functexcept.h
 ....... /opt/local/include/gcc14/c++/bits/cpp_type_traits.h
 ....... /opt/local/include/gcc14/c++/bits/ostream_insert.h
 ........ /opt/local/include/gcc14/c++/bits/cxxabi_forced.h
 ....... /opt/local/include/gcc14/c++/bits/stl_iterator_base_funcs.h
 ........ /opt/local/include/gcc14/c++/bits/concept_check.h
 ........ /opt/local/include/gcc14/c++/debug/assertions.h
 ........ /opt/local/include/gcc14/c++/bits/stl_iterator_base_types.h
 ....... /opt/local/include/gcc14/c++/bits/stl_iterator.h
 ........ /opt/local/include/gcc14/c++/ext/type_traits.h
 ........ /opt/local/include/gcc14/c++/bits/ptr_traits.h
 ....... /opt/local/include/gcc14/c++/bits/stl_function.h
 ........ /opt/local/include/gcc14/c++/backward/binders.h
 ....... /opt/local/include/gcc14/c++/ext/numeric_traits.h
 ....... /opt/local/include/gcc14/c++/bits/stl_algobase.h
 ........ /opt/local/include/gcc14/c++/bits/stl_pair.h
 ......... /opt/local/include/gcc14/c++/bits/utility.h
 ........ /opt/local/include/gcc14/c++/debug/debug.h
 ........ /opt/local/include/gcc14/c++/bits/predefined_ops.h
 ........ /opt/local/include/gcc14/c++/bit
 ......... /opt/local/include/gcc14/c++/concepts
 .......... /opt/local/include/gcc14/c++/bits/version.h
 ......... /opt/local/include/gcc14/c++/bits/version.h
 ....... /opt/local/include/gcc14/c++/bits/refwrap.h
 ........ /opt/local/include/gcc14/c++/bits/invoke.h
 ....... /opt/local/include/gcc14/c++/bits/range_access.h
 ........ /opt/local/include/gcc14/c++/initializer_list
 ....... /opt/local/include/gcc14/c++/bits/basic_string.h
 ........ /opt/local/include/gcc14/c++/ext/alloc_traits.h
 ......... /opt/local/include/gcc14/c++/bits/alloc_traits.h
 .......... /opt/local/include/gcc14/c++/bits/stl_construct.h
 ........ /opt/local/include/gcc14/c++/string_view
 ......... /opt/local/include/gcc14/c++/bits/version.h
 ......... /opt/local/include/gcc14/c++/bits/functional_hash.h
 ......... /opt/local/include/gcc14/c++/bits/string_view.tcc
 ........ /opt/local/include/gcc14/c++/bits/version.h
 ........ /opt/local/include/gcc14/c++/ext/string_conversions.h
 ......... /opt/local/include/gcc14/c++/cstdlib
 ..........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdlib.h
 ...........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/wait.h
 ............
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_pid_t.h
 ............
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_id_t.h
 ............
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/signal.h
 .............
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/appleapiopts.h
 .............
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/machine/signal.h
 ..............
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/arm/signal.h
 .............
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/machine/_mcontext.h
 ..............
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/arm/_mcontext.h
 ...............
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/mach/machine/_structs.h
 ................
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/mach/arm/_structs.h
 .............
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_sigaltstack.h
 .............
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_ucontext.h
 .............
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_uid_t.h
 ............
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/resource.h
 ............. /opt/local/lib/gcc14/gcc/arm64-apple-
 darwin23/14.1.0/include/stdint.h
 .............. /opt/local/lib/gcc14/gcc/arm64-apple-darwin23/14.1.0
 /include-fixed/stdint.h
 ...............
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_types/_uint8_t.h
 ...............
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_types/_uint16_t.h
 ...............
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_types/_uint32_t.h
 ...............
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_types/_uint64_t.h
 ...............
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_types/_intmax_t.h
 ...............
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_types/_uintmax_t.h
 .............
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_timeval.h
 ............
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/machine/endian.h
 .............
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/arm/endian.h
 ..............
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_endian.h
 ...............
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/machine/endian.h
 ...............
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/libkern/_OSByteOrder.h
 ................
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/libkern/arm/OSByteOrder.h
 .................
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/arm/arch.h
 ...........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/alloca.h
 ...........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/malloc/_malloc.h
 ............
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/malloc/_malloc_type.h
 .............
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/malloc/_ptrcheck.h
 ...........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_dev_t.h
 ...........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_mode_t.h
 .......... /opt/local/include/gcc14/c++/bits/std_abs.h
 ......... /opt/local/include/gcc14/c++/cwchar
 ......... /opt/local/include/gcc14/c++/cstdio
 ......... /opt/local/include/gcc14/c++/cerrno
 ..........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/errno.h
 ...........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/errno.h
 ............
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_errno_t.h
 ........ /opt/local/include/gcc14/c++/bits/charconv.h
 ....... /opt/local/include/gcc14/c++/bits/basic_string.tcc
 ....... /opt/local/include/gcc14/c++/bits/version.h
 ....... /opt/local/include/gcc14/c++/bits/memory_resource.h
 ........ /opt/local/include/gcc14/c++/cstddef
 ......... /opt/local/lib/gcc14/gcc/arm64-apple-
 darwin23/14.1.0/include/stddef.h
 ......... /opt/local/include/gcc14/c++/bits/version.h
 ........ /opt/local/include/gcc14/c++/bits/uses_allocator.h
 ........ /opt/local/include/gcc14/c++/bits/uses_allocator_args.h
 ......... /opt/local/include/gcc14/c++/bits/version.h
 ........ /opt/local/include/gcc14/c++/tuple
 ......... /opt/local/include/gcc14/c++/bits/version.h
 ...... /opt/local/include/gcc14/c++/bits/locale_classes.tcc
 ..... /opt/local/include/gcc14/c++/system_error
 ...... /opt/local/include/gcc14/c++/arm64-apple-
 darwin23/bits/error_constants.h
 ....... /opt/local/include/gcc14/c++/cerrno
 ........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/errno.h
 ...... /opt/local/include/gcc14/c++/stdexcept
 .... /opt/local/include/gcc14/c++/streambuf
 ..... /opt/local/include/gcc14/c++/bits/streambuf.tcc
 .... /opt/local/include/gcc14/c++/bits/basic_ios.h
 ..... /opt/local/include/gcc14/c++/bits/locale_facets.h
 ...... /opt/local/include/gcc14/c++/cwctype
 .......
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/wctype.h
 ........
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/_types/_wctrans_t.h
 ...... /opt/local/include/gcc14/c++/cctype
 ...... /opt/local/include/gcc14/c++/arm64-apple-darwin23/bits/ctype_base.h
 ...... /opt/local/include/gcc14/c++/bits/streambuf_iterator.h
 ...... /opt/local/include/gcc14/c++/arm64-apple-
 darwin23/bits/ctype_inline.h
 ...... /opt/local/include/gcc14/c++/bits/locale_facets.tcc
 ..... /opt/local/include/gcc14/c++/bits/basic_ios.tcc
 .... /opt/local/include/gcc14/c++/bits/version.h
 ... /opt/local/include/gcc14/c++/bits/version.h
 ... /opt/local/include/gcc14/c++/bits/ostream.tcc
 .. /opt/local/include/gcc14/c++/istream
 ... /opt/local/include/gcc14/c++/bits/istream.tcc
 Multiple include guards may be useful for:
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_posix_availability.h
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_symbol_aliasing.h
 /opt/local/include/gcc14/c++/arm64-apple-darwin23/bits/ctype_base.h
 /opt/local/include/gcc14/c++/arm64-apple-darwin23/bits/ctype_inline.h
 /opt/local/include/gcc14/c++/clocale
 /opt/local/include/gcc14/c++/cstdio
 /opt/local/include/gcc14/c++/cstdlib
 /opt/local/include/gcc14/c++/cwctype
 COLLECT_GCC_OPTIONS='-H' '-v' '--
 sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk'
 '-mmacosx-version-min=14.0.0'  '-nodefaultexport' '-mcpu=apple-m1'
 '-mlittle-endian' '-mabi=lp64' '-dumpdir' 'a-'
  /opt/local/bin/as -arch arm64 -v -mmacosx-version-min=14.0 -o
 /var/folders/97/z7_b52957j36mhz075gflttr0000gn/T//cccd9INN.o
 /var/folders/97/z7_b52957j36mhz075gflttr0000gn/T//ccshuOxY.s
 Apple clang version 15.0.0 (clang-1500.3.9.4)
 Target: arm64-apple-darwin23.5.0
 Thread model: posix
 InstalledDir:
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"
 -cc1as -triple arm64-apple-macosx14.0.0 -filetype obj -main-file-name
 ccshuOxY.s -target-cpu apple-m1 -target-feature +v8.5a -target-feature
 +crc -target-feature +lse -target-feature +rdm -target-feature +crypto
 -target-feature +dotprod -target-feature +fp-armv8 -target-feature +neon
 -target-feature +fp16fml -target-feature +ras -target-feature +rcpc
 -target-feature +zcm -target-feature +zcz -target-feature +fullfp16
 -target-feature +sm4 -target-feature +sha3 -target-feature +sha2 -target-
 feature +aes -fdebug-compilation-dir=/Users/chris/Downloads -dwarf-debug-
 producer "Apple clang version 15.0.0 (clang-1500.3.9.4)" -dwarf-version=4
 -mrelocation-model pic --mrelax-relocations -mllvm -disable-aligned-alloc-
 awareness=1 -o
 /var/folders/97/z7_b52957j36mhz075gflttr0000gn/T//cccd9INN.o
 /var/folders/97/z7_b52957j36mhz075gflttr0000gn/T//ccshuOxY.s
 COMPILER_PATH=/opt/local/libexec/gcc/arm64-apple-
 darwin23/14.1.0/:/opt/local/libexec/gcc/arm64-apple-
 darwin23/14.1.0/:/opt/local/libexec/gcc/arm64-apple-
 darwin23/:/opt/local/lib/gcc14/gcc/arm64-apple-
 darwin23/14.1.0/:/opt/local/lib/gcc14/gcc/arm64-apple-darwin23/
 LIBRARY_PATH=/opt/local/lib/gcc14/gcc/arm64-apple-
 darwin23/14.1.0/:/opt/local/lib/gcc14/gcc/arm64-apple-
 darwin23/14.1.0/../../../
 COLLECT_GCC_OPTIONS='-H' '-v' '--
 sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk'
 '-mmacosx-version-min=14.0.0'  '-nodefaultexport' '-mcpu=apple-m1'
 '-mlittle-endian' '-mabi=lp64' '-dumpdir' 'a.'
  /opt/local/libexec/gcc/arm64-apple-darwin23/14.1.0/collect2 -demangle
 -syslibroot
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/
 -dynamic -arch arm64 -platform_version macos 14.0.0 0.0 -o a.out
 -L/opt/local/lib/gcc14/gcc/arm64-apple-darwin23/14.1.0
 -L/opt/local/lib/gcc14/gcc/arm64-apple-darwin23/14.1.0/../../.. -lemutls_w
 -lheapt_w /var/folders/97/z7_b52957j36mhz075gflttr0000gn/T//cccd9INN.o
 -lstdc++ -lgcc -lSystem -no_compact_unwind -rpath /opt/local/lib/libgcc
 -rpath @loader_path -rpath /opt/local/lib/gcc14/gcc/arm64-apple-
 darwin23/14.1.0 -rpath /opt/local/lib/gcc14
 }}}

 Also, what, if anything, do you have SDKROOT set to ? GCC respects this
 (just like clang) to define the SDK to build against.

 {{{
 Larissa ~/Downloads > echo $SDKROOT
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
 }}}

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


More information about the macports-tickets mailing list