<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - libc++ tests fail with "aligned allocation function of type 'void *(std::size_t, std::align_val_t)' is only available on macOS 10.14 or newer""
   href="https://bugs.llvm.org/show_bug.cgi?id=40354">40354</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>libc++ tests fail with "aligned allocation function of type 'void *(std::size_t, std::align_val_t)' is only available on macOS 10.14 or newer"
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libc++
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>8.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>hans@chromium.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, mclow.lists@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I assume this is due to <a href="https://reviews.llvm.org/D56445">https://reviews.llvm.org/D56445</a>

This came up while testing the new 8.0 branch on mac. Please see the example
failure below. The full build log is attached.

********************
Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 
FAIL: libc++ ::
std/language.support/support.dynamic/new.delete/new.delete.array/new_align_val_t_nothrow.pass.cpp
(51761 of 57410)
******************** TEST 'libc++ ::
std/language.support/support.dynamic/new.delete/new.delete.array/new_align_val_t_nothrow.pass.cpp'
FAILED ********************
Command:
['/work/llvm-release-test/branches_release_80/Phase2/Release/llvmCore-test-branches_release_80.install/usr/local/bin/clang++',
'-o',
'/work/llvm-release-test/branches_release_80/Phase3/Release/llvmCore-test-branches_release_80.obj/projects/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/Output/new_align_val_t_nothrow.pass.cpp.o',
'-x', 'c++',
'/work/llvm-release-test/branches_release_80/llvm.src/projects/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/new_align_val_t_nothrow.pass.cpp',
'-c', '-v', '-arch', 'x86_64', '-mmacosx-version-min=10.13',
'-ftemplate-depth=270', '-Werror=thread-safety', '-std=c++2a', '-include',
'/work/llvm-release-test/branches_release_80/llvm.src/projects/libcxx/test/support/nasty_macros.hpp',
'-nostdinc++',
'-I/work/llvm-release-test/branches_release_80/llvm.src/projects/libcxx/include',
'-I/work/llvm-release-test/branches_release_80/Phase3/Release/llvmCore-test-branches_release_80.obj/projects/libcxx/include/c++build',
'-isysroot',
'/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk',
'-I/work/llvm-release-test/branches_release_80/llvm.src/projects/libcxx/test/support',
'-DLIBCXX_FILESYSTEM_STATIC_TEST_ROOT="/work/llvm-release-test/branches_release_80/llvm.src/projects/libcxx/test/std/input.output/filesystems/Inputs/static_test_env"',
'-DLIBCXX_FILESYSTEM_DYNAMIC_TEST_ROOT="/work/llvm-release-test/branches_release_80/Phase3/Release/llvmCore-test-branches_release_80.obj/projects/libcxx/test/filesystem/Output/dynamic_env"',
'-DLIBCXX_FILESYSTEM_DYNAMIC_TEST_HELPER="/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
/work/llvm-release-test/branches_release_80/llvm.src/projects/libcxx/test/support/filesystem_dynamic_test_helper.py"',
'-D_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER', '-Wall', '-Wextra', '-Werror',
'-Wuser-defined-warnings', '-Wshadow', '-Wno-unused-command-line-argument',
'-Wno-attributes', '-Wno-pessimizing-move', '-Wno-c++11-extensions',
'-Wno-user-defined-literals', '-Wno-noexcept-type', '-Wsign-compare',
'-Wunused-variable', '-Wunused-parameter', '-Wunreachable-code', '-c']
Exit Code: 1
Standard Error:
--
clang version 8.0.0 (branches/release_80)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir:
/work/llvm-release-test/branches_release_80/Phase2/Release/llvmCore-test-branches_release_80.install/usr/local/bin

"/work/llvm-release-test/branches_release_80/Phase2/Release/llvmCore-test-branches_release_80.install/usr/local/bin/clang-8"
-cc1 -triple x86_64-apple-macosx10.13.0 -Wdeprecated-objc-isa-usage
-Werror=deprecated-objc-isa-usage -emit-obj -mrelax-all -disable-free
-disable-llvm-verifier -discard-value-names -main-file-name
new_align_val_t_nothrow.pass.cpp -mrelocation-model pic -pic-level 2
-mthread-model posix -mdisable-fp-elim -masm-verbose -munwind-tables
-faligned-alloc-unavailable -target-cpu penryn -dwarf-column-info
-debugger-tuning=lldb -ggnu-pubnames -target-linker-version 305 -v
-coverage-notes-file
/work/llvm-release-test/branches_release_80/Phase3/Release/llvmCore-test-branches_release_80.obj/projects/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/Output/new_align_val_t_nothrow.pass.cpp.gcno
-nostdinc++ -resource-dir
/work/llvm-release-test/branches_release_80/Phase2/Release/llvmCore-test-branches_release_80.install/usr/local/lib/clang/8.0.0
-include
/work/llvm-release-test/branches_release_80/llvm.src/projects/libcxx/test/support/nasty_macros.hpp
-isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk
-I /work/llvm-release-test/branches_release_80/llvm.src/projects/libcxx/include
-I
/work/llvm-release-test/branches_release_80/Phase3/Release/llvmCore-test-branches_release_80.obj/projects/libcxx/include/c++build
-I
/work/llvm-release-test/branches_release_80/llvm.src/projects/libcxx/test/support
-D
"LIBCXX_FILESYSTEM_STATIC_TEST_ROOT=\"/work/llvm-release-test/branches_release_80/llvm.src/projects/libcxx/test/std/input.output/filesystems/Inputs/static_test_env\""
-D
"LIBCXX_FILESYSTEM_DYNAMIC_TEST_ROOT=\"/work/llvm-release-test/branches_release_80/Phase3/Release/llvmCore-test-branches_release_80.obj/projects/libcxx/test/filesystem/Output/dynamic_env\""
-D
"LIBCXX_FILESYSTEM_DYNAMIC_TEST_HELPER=\"/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
/work/llvm-release-test/branches_release_80/llvm.src/projects/libcxx/test/support/filesystem_dynamic_test_helper.py\""
-D _LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER -stdlib=libc++ -Werror=thread-safety
-Wall -Wextra -Werror -Wuser-defined-warnings -Wshadow
-Wno-unused-command-line-argument -Wno-attributes -Wno-pessimizing-move
-Wno-c++11-extensions -Wno-user-defined-literals -Wno-noexcept-type
-Wsign-compare -Wunused-variable -Wunused-parameter -Wunreachable-code
-std=c++2a -fdeprecated-macro -fdebug-compilation-dir
/work/llvm-release-test/branches_release_80/Phase3/Release/llvmCore-test-branches_release_80.obj/projects/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array
-ftemplate-depth 270 -ferror-limit 19 -fmessage-length 0 -stack-protector 1
-fblocks -fencode-extended-block-signature -fregister-global-dtors-with-atexit
-fobjc-runtime=macosx-10.13.0 -fcxx-exceptions -fexceptions -fmax-type-align=16
-fdiagnostics-show-option -o
/work/llvm-release-test/branches_release_80/Phase3/Release/llvmCore-test-branches_release_80.obj/projects/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/Output/new_align_val_t_nothrow.pass.cpp.o
-x c++
/work/llvm-release-test/branches_release_80/llvm.src/projects/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/new_align_val_t_nothrow.pass.cpp
clang -cc1 version 8.0.0 based upon LLVM 8.0.0 default target
x86_64-apple-darwin17.7.0
ignoring nonexistent directory
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/local/include"
ignoring nonexistent directory
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/Library/Frameworks"
#include "..." search starts here:
#include <...> search starts here:
 /work/llvm-release-test/branches_release_80/llvm.src/projects/libcxx/include

/work/llvm-release-test/branches_release_80/Phase3/Release/llvmCore-test-branches_release_80.obj/projects/libcxx/include/c++build

/work/llvm-release-test/branches_release_80/llvm.src/projects/libcxx/test/support

/work/llvm-release-test/branches_release_80/Phase2/Release/llvmCore-test-branches_release_80.install/usr/local/lib/clang/8.0.0/include

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks
(framework directory)
End of search list.
/work/llvm-release-test/branches_release_80/llvm.src/projects/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/new_align_val_t_nothrow.pass.cpp:74:20:
error: aligned allocation function of type 'void *(std::size_t,
std::align_val_t, const std::nothrow_t &) noexcept' is only available on macOS
10.14 or newer
        void* vp = operator new [](std::numeric_limits<std::size_t>::max(),
                   ^
/work/llvm-release-test/branches_release_80/llvm.src/projects/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/new_align_val_t_nothrow.pass.cpp:74:20:
note: if you supply your own aligned allocation functions, use
-faligned-allocation to silence this diagnostic
/work/llvm-release-test/branches_release_80/llvm.src/projects/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/new_align_val_t_nothrow.pass.cpp:97:17:
error: aligned allocation function of type 'void *(std::size_t,
std::align_val_t, const std::nothrow_t &) noexcept' is only available on macOS
10.14 or newer
        A* ap = new(std::nothrow) A[3];
                ^
/work/llvm-release-test/branches_release_80/llvm.src/projects/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/new_align_val_t_nothrow.pass.cpp:97:17:
note: if you supply your own aligned allocation functions, use
-faligned-allocation to silence this diagnostic
/work/llvm-release-test/branches_release_80/llvm.src/projects/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/new_align_val_t_nothrow.pass.cpp:97:17:
error: aligned deallocation function of type 'void (void *, std::align_val_t,
const std::nothrow_t &) noexcept' is only available on macOS 10.14 or newer
        A* ap = new(std::nothrow) A[3];
                ^
/work/llvm-release-test/branches_release_80/llvm.src/projects/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/new_align_val_t_nothrow.pass.cpp:97:17:
note: if you supply your own aligned allocation functions, use
-faligned-allocation to silence this diagnostic
/work/llvm-release-test/branches_release_80/llvm.src/projects/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/new_align_val_t_nothrow.pass.cpp:101:9:
error: aligned deallocation function of type 'void (void *, std::align_val_t)
noexcept' is only available on macOS 10.14 or newer
        delete [] ap;
        ^
/work/llvm-release-test/branches_release_80/llvm.src/projects/libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/new_align_val_t_nothrow.pass.cpp:101:9:
note: if you supply your own aligned allocation functions, use
-faligned-allocation to silence this diagnostic
4 errors generated.
--

Compilation failed unexpectedly!</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>