[MacPorts] #69699: mozjs115: builds fail for macOS 10.15 [using clang-16]: error: no member named 'aligned_alloc' in the global namespace

MacPorts noreply at macports.org
Tue Apr 9 18:10:41 UTC 2024


#69699: mozjs115: builds fail for macOS 10.15 [using clang-16]: error: no member
named 'aligned_alloc' in the global namespace
---------------------+-------------------------------
 Reporter:  mascguy  |      Owner:  mascguy
     Type:  defect   |     Status:  assigned
 Priority:  Normal   |  Milestone:
Component:  ports    |    Version:  2.9.3
 Keywords:           |       Port:  mozjs115 clang-16
---------------------+-------------------------------
 Could use some help with this one, since `aligned_alloc` should be
 available for 10.14+ ...?

 Note that the failure occurs both on our 10.15 buildbot, as well as
 locally.

 https://build.macports.org/builders/ports-10.15_x86_64-builder/builds/178414/steps
 /install-port/logs/stdio

 {{{
 /opt/local/bin/clang++-mp-16 -isysroot
 /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -mmacosx-version-
 min=10.15
 -stdlib=libc++ -o putil.o -c  -fvisibility=hidden -fvisibility-inlines-
 hidden -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
 -fstack-protector-strong -DNDEBUG=1 -DTRIMMED=1 -DU_COMMON_IMPLEMENTATION
 -DU_USING_ICU_NAMESPACE=0 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1
 -DU_HIDE_OBSOLETE_UTF_OLD_H=1 -DUCONFIG_NO_LEGACY_CONVERSION
 -DUCONFIG_NO_TRANSLITERATION -DUCONFIG_NO_REGULAR_EXPRESSIONS
 -DU_CHARSET_IS_UTF8 -DUNISTR_FROM_CHAR_EXPLICIT=explicit
 -DUNISTR_FROM_STRING_EXPLICIT=explicit -DU_ENABLE_DYLOAD=0
 -I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_mozjs115/mozjs115/work/mozjs-115.2.0/config/external/icu/common
 -I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_mozjs115/mozjs115/work/mozjs-115.2.0/js/src/obj/config/external/icu/common
 -I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_mozjs115/mozjs115/work/mozjs-115.2.0/intl/icu/source/i18n
 -I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_mozjs115/mozjs115/work/mozjs-115.2.0/js/src/obj/dist/include
 -DMOZILLA_CLIENT
 -include
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_mozjs115/mozjs115/work/mozjs-115.2.0/js/src/obj/js/src
 /js-confdefs.h
 -I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -fno-
 sized-deallocation -fno-aligned-new -pipe -Os
 -stdlib=libc++
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -arch
 x86_64 -fPIC -fno-rtti -ffunction-sections
 -fdata-sections -fno-exceptions -fno-math-errno -pthread -pipe -gdwarf-4
 -O3 -fno-omit-frame-pointer -funwind-tables -Wall
 -Wbitfield-enum-conversion -Wdeprecated-this-capture -Wempty-body
 -Wformat-type-confusion -Wignored-qualifiers -Wpointer-arith
 -Wshadow-field-in-constructor-modified -Wsign-compare -Wtautological-
 constant-in-range-compare -Wtype-limits
 -Wno-error=tautological-type-limit-compare -Wunreachable-code
 -Wunreachable-code-return -Wunused-but-set-parameter -Wno-invalid-offsetof
 -Wclass-varargs -Wempty-init-stmt -Wfloat-overflow-conversion -Wfloat-
 zero-conversion -Wloop-analysis -Wno-range-loop-analysis
 -Wc++2a-compat -Wenum-compare-conditional -Wenum-float-conversion -Wno-
 error=deprecated -Wno-error=deprecated-anon-enum-enum-conversion
 -Wno-error=deprecated-enum-enum-conversion -Wno-error=deprecated-pragma
 -Wno-error=deprecated-this-capture -Wcomma -Wimplicit-fallthrough
 -Wduplicate-method-arg -Wduplicate-method-match -Wmissing-method-return-
 type -Wobjc-signed-char-bool -Wsemicolon-before-method-body
 -Wsuper-class-method-mismatch -Wstring-conversion -Wno-inline-new-delete
 -Wno-error=deprecated-declarations -Wno-error=array-bounds
 -Wno-error=free-nonheap-object -Wno-error=atomic-alignment -Wno-error
 =deprecated-builtins -Wformat -Wformat-security -Wno-psabi
 -Wthread-safety -Werror=unguarded-availability-new -Wno-error=builtin-
 macro-redefined -Wno-unknown-warning-option -frtti -Wno-c++20-compat
 -Wno-comma -Wno-implicit-const-int-float-conversion -Wno-macro-redefined
 -Wno-microsoft-include -Wno-tautological-unsigned-enum-zero-compare
 -Wno-unreachable-code-loop-increment -Wno-unreachable-code-return -fno-
 strict-aliasing -ffp-contract=off  -MD -MP -MF
 .deps/putil.o.pp
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_mozjs115/mozjs115/work/mozjs-115.2.0/intl/icu/source/common/putil.cpp

 In file included from
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_mozjs115/mozjs115/work/mozjs-115.2.0/intl/icu/source/common/putil.cpp:68:
 In file included from
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_mozjs115/mozjs115/work/mozjs-115.2.0/intl/icu/source/common/umutex.h:25:
 In file included from
 /opt/local/libexec/llvm-16/bin/../include/c++/v1/condition_variable:111:
 In file included from
 /opt/local/libexec/llvm-16/bin/../include/c++/v1/__memory/shared_ptr.h:22:
 In file included from
 /opt/local/libexec/llvm-16/bin/../include/c++/v1/__memory/allocation_guard.h:14:
 In file included from
 /opt/local/libexec/llvm-16/bin/../include/c++/v1/__memory/allocator_traits.h:14:
 In file included from
 /opt/local/libexec/llvm-16/bin/../include/c++/v1/__memory/construct_at.h:23:
 /opt/local/libexec/llvm-16/bin/../include/c++/v1/new:355:14: error: no
 member named 'aligned_alloc' in the global namespace
     return ::aligned_alloc(__alignment, __size > __rounded_size ? __size :
 __rounded_size);
            ~~^
 }}}

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


More information about the macports-tickets mailing list