[libcxx-commits] [PATCH] D82490: [libcxx] Put clang::trivial_abi on std::unique_ptr

David Zarzycki via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sat Jul 4 06:58:53 PDT 2020


davezarzycki added a comment.

What compilers was this tested on? This seems to be failing on clang 10 (Fedora 32 x86-64). Can we revert this or commit a quick fix?

FAIL: libc++ :: libcxx/memory/trivial_abi/unique_ptr_ret.pass.cpp (59754 of 68418)

- TEST 'libc++ :: libcxx/memory/trivial_abi/unique_ptr_ret.pass.cpp' FAILED ********************

Script:
-------

: 'COMPILED WITH';  /usr/bin/clang++ /home/dave/s/lp/libcxx/test/libcxx/memory/trivial_abi/unique_ptr_ret.pass.cpp -v -include /tmp/_update_lc/r/projects/libcxx/__config_site -include /home/dave/s/lp/libcxx/test/support/nasty_macros.h -nostdinc++ -I/home/dave/s/lp/libcxx/include -I/tmp/_update_lc/r/projects/libcxx/include/c++build -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -I/home/dave/s/lp/libcxx/test/support -Werror -Wall -Wextra -D_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER -Wshadow -Wno-unused-command-line-argument -Wno-attributes -Wno-pessimizing-move -Wno-c++11-extensions -Wno-user-defined-literals -Wno-noexcept-type -Wno-atomic-alignment -Wsign-compare -Wunused-variable -Wunused-parameter -Wunreachable-code -Wno-unused-local-typedef -std=c++2a -fcoroutines-ts -Werror=thread-safety -Wuser-defined-warnings -D_LIBCPP_ABI_ENABLE_UNIQUE_PTR_TRIVIAL_ABI -L/tmp/_update_lc/r/./lib64 -Wl,-rpath,/tmp/_update_lc/r/./lib64 -nodefaultlibs -lc++experimental /tmp/_update_lc/r/./lib64/libc++.a -lc++abi -lm -lgcc_s -lgcc -lpthread -lrt -lc -lgcc_s -lgcc -latomic -o /tmp/_update_lc/r/projects/libcxx/test/libcxx/memory/trivial_abi/Output/unique_ptr_ret.pass.cpp.dir/t.tmp.exe

: 'EXECUTED AS';  /usr/bin/python3.8 /home/dave/s/lp/libcxx/test/../utils/run.py --execdir /tmp/_update_lc/r/projects/libcxx/test/libcxx/memory/trivial_abi/Output/unique_ptr_ret.pass.cpp.dir --codesign_identity "" --env  --  /tmp/_update_lc/r/projects/libcxx/test/libcxx/memory/trivial_abi/Output/unique_ptr_ret.pass.cpp.dir/t.tmp.exe
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Exit Code: 1

Command Output (stderr):
------------------------

clang version 10.0.0 (Fedora 10.0.0-2.fc32)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-redhat-linux/10
Found candidate GCC installation: /usr/lib/gcc/x86_64-redhat-linux/10
Selected GCC installation: /usr/bin/../lib/gcc/x86_64-redhat-linux/10
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Selected multilib: .;@m64
 "/usr/bin/clang-10" -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name unique_ptr_ret.pass.cpp -mrelocation-model static -mthread-model posix -mframe-pointer=all -fmath-errno -fno-rounding-math -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -v -nostdinc++ -resource-dir /usr/lib64/clang/10.0.0 -include /tmp/_update_lc/r/projects/libcxx/__config_site -include /home/dave/s/lp/libcxx/test/support/nasty_macros.h -I /home/dave/s/lp/libcxx/include -I /tmp/_update_lc/r/projects/libcxx/include/c++build -D __STDC_FORMAT_MACROS -D __STDC_LIMIT_MACROS -D __STDC_CONSTANT_MACROS -I /home/dave/s/lp/libcxx/test/support -D _LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER -D _LIBCPP_ABI_ENABLE_UNIQUE_PTR_TRIVIAL_ABI -internal-isystem /usr/local/include -internal-isystem /usr/lib64/clang/10.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -Werror -Wall -Wextra -Wshadow -Wno-unused-command-line-argument -Wno-attributes -Wno-pessimizing-move -Wno-c++11-extensions -Wno-user-defined-literals -Wno-noexcept-type -Wno-atomic-alignment -Wsign-compare -Wunused-variable -Wunused-parameter -Wunreachable-code -Wno-unused-local-typedef -Werror=thread-safety -Wuser-defined-warnings -std=c++2a -fdeprecated-macro -fdebug-compilation-dir /tmp/_update_lc/r/projects/libcxx/test/libcxx/memory/trivial_abi -ferror-limit 19 -fmessage-length 0 -fcoroutines-ts -fgnuc-version=4.2.1 -fno-implicit-modules -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -faddrsig -o /tmp/unique_ptr_ret-077a98.o -x c++ /home/dave/s/lp/libcxx/test/libcxx/memory/trivial_abi/unique_ptr_ret.pass.cpp
clang -cc1 version 10.0.0 based upon LLVM 10.0.0 default target x86_64-unknown-linux-gnu
ignoring nonexistent directory "/include"
#include "..." search starts here:
#include <...> search starts here:
 /home/dave/s/lp/libcxx/include
 /tmp/_update_lc/r/projects/libcxx/include/c++build
 /home/dave/s/lp/libcxx/test/support
 /usr/local/include
 /usr/lib64/clang/10.0.0/include
 /usr/include
End of search list.
In file included from /home/dave/s/lp/libcxx/test/libcxx/memory/trivial_abi/unique_ptr_ret.pass.cpp:15:
/home/dave/s/lp/libcxx/include/memory:2326:38: error: '__type_visibility__' attribute only applies to types and namespaces
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr {

  ^

/home/dave/s/lp/libcxx/include/__config:693:52: note: expanded from macro '_LIBCPP_TEMPLATE_VIS'

define _LIBCPP_TEMPLATE_VIS __attribute__ ((__type_visibility__("default")))
============================================================================

  ^

In file included from /home/dave/s/lp/libcxx/test/libcxx/memory/trivial_abi/unique_ptr_ret.pass.cpp:15:
/home/dave/s/lp/libcxx/include/memory:2326:7: error: variable has incomplete type 'class __atribute__'
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr {

  ^

/home/dave/s/lp/libcxx/include/memory:2320:56: note: expanded from macro '_LIBCPP_UNIQUE_PTR_TRIVIAL_ABI'

define _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI __atribute__((trivial_abi))
=================================================================

  ^

/home/dave/s/lp/libcxx/include/memory:2326:7: note: forward declaration of 'std::__1::__atribute__'
/home/dave/s/lp/libcxx/include/memory:2320:42: note: expanded from macro '_LIBCPP_UNIQUE_PTR_TRIVIAL_ABI'

define _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI __atribute__((trivial_abi))
=================================================================

  ^

/home/dave/s/lp/libcxx/include/memory:2326:58: error: expected ';' at end of declaration
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr {

  ^
  ;

/home/dave/s/lp/libcxx/include/memory:2326:59: error: C++ requires a type specifier for all declarations
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr {

  ^

/home/dave/s/lp/libcxx/include/memory:2327:1: error: expected expression
public:
^
/home/dave/s/lp/libcxx/include/memory:2534:38: error: '__type_visibility__' attribute only applies to types and namespaces
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr<_Tp[], _Dp> {

  ^

/home/dave/s/lp/libcxx/include/__config:693:52: note: expanded from macro '_LIBCPP_TEMPLATE_VIS'

define _LIBCPP_TEMPLATE_VIS __attribute__ ((__type_visibility__("default")))
============================================================================

  ^

In file included from /home/dave/s/lp/libcxx/test/libcxx/memory/trivial_abi/unique_ptr_ret.pass.cpp:15:
/home/dave/s/lp/libcxx/include/memory:2534:7: error: redefinition of 'trivial_abi'
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr<_Tp[], _Dp> {

  ^

/home/dave/s/lp/libcxx/include/memory:2320:56: note: expanded from macro '_LIBCPP_UNIQUE_PTR_TRIVIAL_ABI'

define _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI __atribute__((trivial_abi))
=================================================================

  ^

/home/dave/s/lp/libcxx/include/memory:2326:7: note: previous definition is here
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr {

  ^

/home/dave/s/lp/libcxx/include/memory:2320:56: note: expanded from macro '_LIBCPP_UNIQUE_PTR_TRIVIAL_ABI'

define _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI __atribute__((trivial_abi))
=================================================================

  ^

/home/dave/s/lp/libcxx/include/memory:2534:58: error: expected ';' at end of declaration
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr<_Tp[], _Dp> {

  ^
  ;

/home/dave/s/lp/libcxx/include/memory:2534:59: error: no template named 'unique_ptr'
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr<_Tp[], _Dp> {

  ^

/home/dave/s/lp/libcxx/include/memory:2534:70: error: use of undeclared identifier '_Tp'
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr<_Tp[], _Dp> {

  ^

/home/dave/s/lp/libcxx/include/memory:2534:74: error: expected expression
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr<_Tp[], _Dp> {

  ^

/home/dave/s/lp/libcxx/include/memory:2534:82: error: expected unqualified-id
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr<_Tp[], _Dp> {

   ^

/home/dave/s/lp/libcxx/include/memory:2772:1: error: redefinition of 'swap' as different kind of symbol
swap(unique_ptr<_Tp, _Dp>& __x, unique_ptr<_Tp, _Dp>& __y) _NOEXCEPT {__x.swap(__y);}
^
/home/dave/s/lp/libcxx/include/memory:2234:6: note: previous definition is here
void swap(__compressed_pair<_T1, _T2>& __x, __compressed_pair<_T1, _T2>& __y)

  ^

/home/dave/s/lp/libcxx/include/memory:2772:17: error: '_Tp' does not refer to a value
swap(unique_ptr<_Tp, _Dp>& __x, unique_ptr<_Tp, _Dp>& __y) _NOEXCEPT {__x.swap(__y);}

  ^

/home/dave/s/lp/libcxx/include/memory:2766:17: note: declared here
template <class _Tp, class _Dp>

  ^

/home/dave/s/lp/libcxx/include/memory:2772:22: error: '_Dp' does not refer to a value
swap(unique_ptr<_Tp, _Dp>& __x, unique_ptr<_Tp, _Dp>& __y) _NOEXCEPT {__x.swap(__y);}

  ^

/home/dave/s/lp/libcxx/include/memory:2766:28: note: declared here
template <class _Tp, class _Dp>

  ^

/home/dave/s/lp/libcxx/include/memory:2772:28: error: use of undeclared identifier '__x'
swap(unique_ptr<_Tp, _Dp>& __x, unique_ptr<_Tp, _Dp>& __y) _NOEXCEPT {__x.swap(__y);}

  ^

/home/dave/s/lp/libcxx/include/memory:2772:44: error: '_Tp' does not refer to a value
swap(unique_ptr<_Tp, _Dp>& __x, unique_ptr<_Tp, _Dp>& __y) _NOEXCEPT {__x.swap(__y);}

  ^

/home/dave/s/lp/libcxx/include/memory:2766:17: note: declared here
template <class _Tp, class _Dp>

  ^

/home/dave/s/lp/libcxx/include/memory:2772:49: error: '_Dp' does not refer to a value
swap(unique_ptr<_Tp, _Dp>& __x, unique_ptr<_Tp, _Dp>& __y) _NOEXCEPT {__x.swap(__y);}

  ^

/home/dave/s/lp/libcxx/include/memory:2766:28: note: declared here
template <class _Tp, class _Dp>

  ^

/home/dave/s/lp/libcxx/include/memory:2772:55: error: use of undeclared identifier '__y'
swap(unique_ptr<_Tp, _Dp>& __x, unique_ptr<_Tp, _Dp>& __y) _NOEXCEPT {__x.swap(__y);}

  ^

fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.

-

********************

FAIL: libc++ :: libcxx/memory/trivial_abi/unique_ptr_array.pass.cpp (59755 of 68418)

- TEST 'libc++ :: libcxx/memory/trivial_abi/unique_ptr_array.pass.cpp' FAILED ********************

Script:
-------

: 'COMPILED WITH';  /usr/bin/clang++ /home/dave/s/lp/libcxx/test/libcxx/memory/trivial_abi/unique_ptr_array.pass.cpp -v -include /tmp/_update_lc/r/projects/libcxx/__config_site -include /home/dave/s/lp/libcxx/test/support/nasty_macros.h -nostdinc++ -I/home/dave/s/lp/libcxx/include -I/tmp/_update_lc/r/projects/libcxx/include/c++build -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -I/home/dave/s/lp/libcxx/test/support -Werror -Wall -Wextra -D_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER -Wshadow -Wno-unused-command-line-argument -Wno-attributes -Wno-pessimizing-move -Wno-c++11-extensions -Wno-user-defined-literals -Wno-noexcept-type -Wno-atomic-alignment -Wsign-compare -Wunused-variable -Wunused-parameter -Wunreachable-code -Wno-unused-local-typedef -std=c++2a -fcoroutines-ts -Werror=thread-safety -Wuser-defined-warnings -D_LIBCPP_ABI_ENABLE_UNIQUE_PTR_TRIVIAL_ABI -L/tmp/_update_lc/r/./lib64 -Wl,-rpath,/tmp/_update_lc/r/./lib64 -nodefaultlibs -lc++experimental /tmp/_update_lc/r/./lib64/libc++.a -lc++abi -lm -lgcc_s -lgcc -lpthread -lrt -lc -lgcc_s -lgcc -latomic -o /tmp/_update_lc/r/projects/libcxx/test/libcxx/memory/trivial_abi/Output/unique_ptr_array.pass.cpp.dir/t.tmp.exe

: 'EXECUTED AS';  /usr/bin/python3.8 /home/dave/s/lp/libcxx/test/../utils/run.py --execdir /tmp/_update_lc/r/projects/libcxx/test/libcxx/memory/trivial_abi/Output/unique_ptr_array.pass.cpp.dir --codesign_identity "" --env  --  /tmp/_update_lc/r/projects/libcxx/test/libcxx/memory/trivial_abi/Output/unique_ptr_array.pass.cpp.dir/t.tmp.exe
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Exit Code: 1

Command Output (stderr):
------------------------

clang version 10.0.0 (Fedora 10.0.0-2.fc32)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-redhat-linux/10
Found candidate GCC installation: /usr/lib/gcc/x86_64-redhat-linux/10
Selected GCC installation: /usr/bin/../lib/gcc/x86_64-redhat-linux/10
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Selected multilib: .;@m64
 "/usr/bin/clang-10" -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name unique_ptr_array.pass.cpp -mrelocation-model static -mthread-model posix -mframe-pointer=all -fmath-errno -fno-rounding-math -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -v -nostdinc++ -resource-dir /usr/lib64/clang/10.0.0 -include /tmp/_update_lc/r/projects/libcxx/__config_site -include /home/dave/s/lp/libcxx/test/support/nasty_macros.h -I /home/dave/s/lp/libcxx/include -I /tmp/_update_lc/r/projects/libcxx/include/c++build -D __STDC_FORMAT_MACROS -D __STDC_LIMIT_MACROS -D __STDC_CONSTANT_MACROS -I /home/dave/s/lp/libcxx/test/support -D _LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER -D _LIBCPP_ABI_ENABLE_UNIQUE_PTR_TRIVIAL_ABI -internal-isystem /usr/local/include -internal-isystem /usr/lib64/clang/10.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -Werror -Wall -Wextra -Wshadow -Wno-unused-command-line-argument -Wno-attributes -Wno-pessimizing-move -Wno-c++11-extensions -Wno-user-defined-literals -Wno-noexcept-type -Wno-atomic-alignment -Wsign-compare -Wunused-variable -Wunused-parameter -Wunreachable-code -Wno-unused-local-typedef -Werror=thread-safety -Wuser-defined-warnings -std=c++2a -fdeprecated-macro -fdebug-compilation-dir /tmp/_update_lc/r/projects/libcxx/test/libcxx/memory/trivial_abi -ferror-limit 19 -fmessage-length 0 -fcoroutines-ts -fgnuc-version=4.2.1 -fno-implicit-modules -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -faddrsig -o /tmp/unique_ptr_array-6e8676.o -x c++ /home/dave/s/lp/libcxx/test/libcxx/memory/trivial_abi/unique_ptr_array.pass.cpp
clang -cc1 version 10.0.0 based upon LLVM 10.0.0 default target x86_64-unknown-linux-gnu
ignoring nonexistent directory "/include"
#include "..." search starts here:
#include <...> search starts here:
 /home/dave/s/lp/libcxx/include
 /tmp/_update_lc/r/projects/libcxx/include/c++build
 /home/dave/s/lp/libcxx/test/support
 /usr/local/include
 /usr/lib64/clang/10.0.0/include
 /usr/include
End of search list.
In file included from /home/dave/s/lp/libcxx/test/libcxx/memory/trivial_abi/unique_ptr_array.pass.cpp:15:
/home/dave/s/lp/libcxx/include/memory:2326:38: error: '__type_visibility__' attribute only applies to types and namespaces
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr {

  ^

/home/dave/s/lp/libcxx/include/__config:693:52: note: expanded from macro '_LIBCPP_TEMPLATE_VIS'

define _LIBCPP_TEMPLATE_VIS __attribute__ ((__type_visibility__("default")))
============================================================================

  ^

In file included from /home/dave/s/lp/libcxx/test/libcxx/memory/trivial_abi/unique_ptr_array.pass.cpp:15:
/home/dave/s/lp/libcxx/include/memory:2326:7: error: variable has incomplete type 'class __atribute__'
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr {

  ^

/home/dave/s/lp/libcxx/include/memory:2320:56: note: expanded from macro '_LIBCPP_UNIQUE_PTR_TRIVIAL_ABI'

define _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI __atribute__((trivial_abi))
=================================================================

  ^

/home/dave/s/lp/libcxx/include/memory:2326:7: note: forward declaration of 'std::__1::__atribute__'
/home/dave/s/lp/libcxx/include/memory:2320:42: note: expanded from macro '_LIBCPP_UNIQUE_PTR_TRIVIAL_ABI'

define _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI __atribute__((trivial_abi))
=================================================================

  ^

/home/dave/s/lp/libcxx/include/memory:2326:58: error: expected ';' at end of declaration
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr {

  ^
  ;

/home/dave/s/lp/libcxx/include/memory:2326:59: error: C++ requires a type specifier for all declarations
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr {

  ^

/home/dave/s/lp/libcxx/include/memory:2327:1: error: expected expression
public:
^
/home/dave/s/lp/libcxx/include/memory:2534:38: error: '__type_visibility__' attribute only applies to types and namespaces
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr<_Tp[], _Dp> {

  ^

/home/dave/s/lp/libcxx/include/__config:693:52: note: expanded from macro '_LIBCPP_TEMPLATE_VIS'

define _LIBCPP_TEMPLATE_VIS __attribute__ ((__type_visibility__("default")))
============================================================================

  ^

In file included from /home/dave/s/lp/libcxx/test/libcxx/memory/trivial_abi/unique_ptr_array.pass.cpp:15:
/home/dave/s/lp/libcxx/include/memory:2534:7: error: redefinition of 'trivial_abi'
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr<_Tp[], _Dp> {

  ^

/home/dave/s/lp/libcxx/include/memory:2320:56: note: expanded from macro '_LIBCPP_UNIQUE_PTR_TRIVIAL_ABI'

define _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI __atribute__((trivial_abi))
=================================================================

  ^

/home/dave/s/lp/libcxx/include/memory:2326:7: note: previous definition is here
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr {

  ^

/home/dave/s/lp/libcxx/include/memory:2320:56: note: expanded from macro '_LIBCPP_UNIQUE_PTR_TRIVIAL_ABI'

define _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI __atribute__((trivial_abi))
=================================================================

  ^

/home/dave/s/lp/libcxx/include/memory:2534:58: error: expected ';' at end of declaration
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr<_Tp[], _Dp> {

  ^
  ;

/home/dave/s/lp/libcxx/include/memory:2534:59: error: no template named 'unique_ptr'
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr<_Tp[], _Dp> {

  ^

/home/dave/s/lp/libcxx/include/memory:2534:70: error: use of undeclared identifier '_Tp'
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr<_Tp[], _Dp> {

  ^

/home/dave/s/lp/libcxx/include/memory:2534:74: error: expected expression
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr<_Tp[], _Dp> {

  ^

/home/dave/s/lp/libcxx/include/memory:2534:82: error: expected unqualified-id
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr<_Tp[], _Dp> {

   ^

/home/dave/s/lp/libcxx/include/memory:2772:1: error: redefinition of 'swap' as different kind of symbol
swap(unique_ptr<_Tp, _Dp>& __x, unique_ptr<_Tp, _Dp>& __y) _NOEXCEPT {__x.swap(__y);}
^
/home/dave/s/lp/libcxx/include/memory:2234:6: note: previous definition is here
void swap(__compressed_pair<_T1, _T2>& __x, __compressed_pair<_T1, _T2>& __y)

  ^

/home/dave/s/lp/libcxx/include/memory:2772:17: error: '_Tp' does not refer to a value
swap(unique_ptr<_Tp, _Dp>& __x, unique_ptr<_Tp, _Dp>& __y) _NOEXCEPT {__x.swap(__y);}

  ^

/home/dave/s/lp/libcxx/include/memory:2766:17: note: declared here
template <class _Tp, class _Dp>

  ^

/home/dave/s/lp/libcxx/include/memory:2772:22: error: '_Dp' does not refer to a value
swap(unique_ptr<_Tp, _Dp>& __x, unique_ptr<_Tp, _Dp>& __y) _NOEXCEPT {__x.swap(__y);}

  ^

/home/dave/s/lp/libcxx/include/memory:2766:28: note: declared here
template <class _Tp, class _Dp>

  ^

/home/dave/s/lp/libcxx/include/memory:2772:28: error: use of undeclared identifier '__x'
swap(unique_ptr<_Tp, _Dp>& __x, unique_ptr<_Tp, _Dp>& __y) _NOEXCEPT {__x.swap(__y);}

  ^

/home/dave/s/lp/libcxx/include/memory:2772:44: error: '_Tp' does not refer to a value
swap(unique_ptr<_Tp, _Dp>& __x, unique_ptr<_Tp, _Dp>& __y) _NOEXCEPT {__x.swap(__y);}

  ^

/home/dave/s/lp/libcxx/include/memory:2766:17: note: declared here
template <class _Tp, class _Dp>

  ^

/home/dave/s/lp/libcxx/include/memory:2772:49: error: '_Dp' does not refer to a value
swap(unique_ptr<_Tp, _Dp>& __x, unique_ptr<_Tp, _Dp>& __y) _NOEXCEPT {__x.swap(__y);}

  ^

/home/dave/s/lp/libcxx/include/memory:2766:28: note: declared here
template <class _Tp, class _Dp>

  ^

/home/dave/s/lp/libcxx/include/memory:2772:55: error: use of undeclared identifier '__y'
swap(unique_ptr<_Tp, _Dp>& __x, unique_ptr<_Tp, _Dp>& __y) _NOEXCEPT {__x.swap(__y);}

  ^

fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.

-

********************

FAIL: libc++ :: libcxx/memory/trivial_abi/unique_ptr_destruction_order.pass.cpp (59764 of 68418)

- TEST 'libc++ :: libcxx/memory/trivial_abi/unique_ptr_destruction_order.pass.cpp' FAILED ********************

Script:
-------

: 'COMPILED WITH';  /usr/bin/clang++ /home/dave/s/lp/libcxx/test/libcxx/memory/trivial_abi/unique_ptr_destruction_order.pass.cpp -v -include /tmp/_update_lc/r/projects/libcxx/__config_site -include /home/dave/s/lp/libcxx/test/support/nasty_macros.h -nostdinc++ -I/home/dave/s/lp/libcxx/include -I/tmp/_update_lc/r/projects/libcxx/include/c++build -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -I/home/dave/s/lp/libcxx/test/support -Werror -Wall -Wextra -D_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER -Wshadow -Wno-unused-command-line-argument -Wno-attributes -Wno-pessimizing-move -Wno-c++11-extensions -Wno-user-defined-literals -Wno-noexcept-type -Wno-atomic-alignment -Wsign-compare -Wunused-variable -Wunused-parameter -Wunreachable-code -Wno-unused-local-typedef -std=c++2a -fcoroutines-ts -Werror=thread-safety -Wuser-defined-warnings -D_LIBCPP_ABI_ENABLE_UNIQUE_PTR_TRIVIAL_ABI -L/tmp/_update_lc/r/./lib64 -Wl,-rpath,/tmp/_update_lc/r/./lib64 -nodefaultlibs -lc++experimental /tmp/_update_lc/r/./lib64/libc++.a -lc++abi -lm -lgcc_s -lgcc -lpthread -lrt -lc -lgcc_s -lgcc -latomic -o /tmp/_update_lc/r/projects/libcxx/test/libcxx/memory/trivial_abi/Output/unique_ptr_destruction_order.pass.cpp.dir/t.tmp.exe

: 'EXECUTED AS';  /usr/bin/python3.8 /home/dave/s/lp/libcxx/test/../utils/run.py --execdir /tmp/_update_lc/r/projects/libcxx/test/libcxx/memory/trivial_abi/Output/unique_ptr_destruction_order.pass.cpp.dir --codesign_identity "" --env  --  /tmp/_update_lc/r/projects/libcxx/test/libcxx/memory/trivial_abi/Output/unique_ptr_destruction_order.pass.cpp.dir/t.tmp.exe
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Exit Code: 1

Command Output (stderr):
------------------------

clang version 10.0.0 (Fedora 10.0.0-2.fc32)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-redhat-linux/10
Found candidate GCC installation: /usr/lib/gcc/x86_64-redhat-linux/10
Selected GCC installation: /usr/bin/../lib/gcc/x86_64-redhat-linux/10
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Selected multilib: .;@m64
 "/usr/bin/clang-10" -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name unique_ptr_destruction_order.pass.cpp -mrelocation-model static -mthread-model posix -mframe-pointer=all -fmath-errno -fno-rounding-math -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -v -nostdinc++ -resource-dir /usr/lib64/clang/10.0.0 -include /tmp/_update_lc/r/projects/libcxx/__config_site -include /home/dave/s/lp/libcxx/test/support/nasty_macros.h -I /home/dave/s/lp/libcxx/include -I /tmp/_update_lc/r/projects/libcxx/include/c++build -D __STDC_FORMAT_MACROS -D __STDC_LIMIT_MACROS -D __STDC_CONSTANT_MACROS -I /home/dave/s/lp/libcxx/test/support -D _LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER -D _LIBCPP_ABI_ENABLE_UNIQUE_PTR_TRIVIAL_ABI -internal-isystem /usr/local/include -internal-isystem /usr/lib64/clang/10.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -Werror -Wall -Wextra -Wshadow -Wno-unused-command-line-argument -Wno-attributes -Wno-pessimizing-move -Wno-c++11-extensions -Wno-user-defined-literals -Wno-noexcept-type -Wno-atomic-alignment -Wsign-compare -Wunused-variable -Wunused-parameter -Wunreachable-code -Wno-unused-local-typedef -Werror=thread-safety -Wuser-defined-warnings -std=c++2a -fdeprecated-macro -fdebug-compilation-dir /tmp/_update_lc/r/projects/libcxx/test/libcxx/memory/trivial_abi -ferror-limit 19 -fmessage-length 0 -fcoroutines-ts -fgnuc-version=4.2.1 -fno-implicit-modules -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -faddrsig -o /tmp/unique_ptr_destruction_order-12e1b5.o -x c++ /home/dave/s/lp/libcxx/test/libcxx/memory/trivial_abi/unique_ptr_destruction_order.pass.cpp
clang -cc1 version 10.0.0 based upon LLVM 10.0.0 default target x86_64-unknown-linux-gnu
ignoring nonexistent directory "/include"
#include "..." search starts here:
#include <...> search starts here:
 /home/dave/s/lp/libcxx/include
 /tmp/_update_lc/r/projects/libcxx/include/c++build
 /home/dave/s/lp/libcxx/test/support
 /usr/local/include
 /usr/lib64/clang/10.0.0/include
 /usr/include
End of search list.
In file included from /home/dave/s/lp/libcxx/test/libcxx/memory/trivial_abi/unique_ptr_destruction_order.pass.cpp:17:
/home/dave/s/lp/libcxx/include/memory:2326:38: error: '__type_visibility__' attribute only applies to types and namespaces
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr {

  ^

/home/dave/s/lp/libcxx/include/__config:693:52: note: expanded from macro '_LIBCPP_TEMPLATE_VIS'

define _LIBCPP_TEMPLATE_VIS __attribute__ ((__type_visibility__("default")))
============================================================================

  ^

In file included from /home/dave/s/lp/libcxx/test/libcxx/memory/trivial_abi/unique_ptr_destruction_order.pass.cpp:17:
/home/dave/s/lp/libcxx/include/memory:2326:7: error: variable has incomplete type 'class __atribute__'
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr {

  ^

/home/dave/s/lp/libcxx/include/memory:2320:56: note: expanded from macro '_LIBCPP_UNIQUE_PTR_TRIVIAL_ABI'

define _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI __atribute__((trivial_abi))
=================================================================

  ^

/home/dave/s/lp/libcxx/include/memory:2326:7: note: forward declaration of 'std::__1::__atribute__'
/home/dave/s/lp/libcxx/include/memory:2320:42: note: expanded from macro '_LIBCPP_UNIQUE_PTR_TRIVIAL_ABI'

define _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI __atribute__((trivial_abi))
=================================================================

  ^

/home/dave/s/lp/libcxx/include/memory:2326:58: error: expected ';' at end of declaration
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr {

  ^
  ;

/home/dave/s/lp/libcxx/include/memory:2326:59: error: C++ requires a type specifier for all declarations
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr {

  ^

/home/dave/s/lp/libcxx/include/memory:2327:1: error: expected expression
public:
^
/home/dave/s/lp/libcxx/include/memory:2534:38: error: '__type_visibility__' attribute only applies to types and namespaces
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr<_Tp[], _Dp> {

  ^

/home/dave/s/lp/libcxx/include/__config:693:52: note: expanded from macro '_LIBCPP_TEMPLATE_VIS'

define _LIBCPP_TEMPLATE_VIS __attribute__ ((__type_visibility__("default")))
============================================================================

  ^

In file included from /home/dave/s/lp/libcxx/test/libcxx/memory/trivial_abi/unique_ptr_destruction_order.pass.cpp:17:
/home/dave/s/lp/libcxx/include/memory:2534:7: error: redefinition of 'trivial_abi'
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr<_Tp[], _Dp> {

  ^

/home/dave/s/lp/libcxx/include/memory:2320:56: note: expanded from macro '_LIBCPP_UNIQUE_PTR_TRIVIAL_ABI'

define _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI __atribute__((trivial_abi))
=================================================================

  ^

/home/dave/s/lp/libcxx/include/memory:2326:7: note: previous definition is here
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr {

  ^

/home/dave/s/lp/libcxx/include/memory:2320:56: note: expanded from macro '_LIBCPP_UNIQUE_PTR_TRIVIAL_ABI'

define _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI __atribute__((trivial_abi))
=================================================================

  ^

/home/dave/s/lp/libcxx/include/memory:2534:58: error: expected ';' at end of declaration
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr<_Tp[], _Dp> {

  ^
  ;

/home/dave/s/lp/libcxx/include/memory:2534:59: error: no template named 'unique_ptr'
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr<_Tp[], _Dp> {

  ^

/home/dave/s/lp/libcxx/include/memory:2534:70: error: use of undeclared identifier '_Tp'
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr<_Tp[], _Dp> {

  ^

/home/dave/s/lp/libcxx/include/memory:2534:74: error: expected expression
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr<_Tp[], _Dp> {

  ^

/home/dave/s/lp/libcxx/include/memory:2534:82: error: expected unqualified-id
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr<_Tp[], _Dp> {

   ^

/home/dave/s/lp/libcxx/include/memory:2772:1: error: redefinition of 'swap' as different kind of symbol
swap(unique_ptr<_Tp, _Dp>& __x, unique_ptr<_Tp, _Dp>& __y) _NOEXCEPT {__x.swap(__y);}
^
/home/dave/s/lp/libcxx/include/memory:2234:6: note: previous definition is here
void swap(__compressed_pair<_T1, _T2>& __x, __compressed_pair<_T1, _T2>& __y)

  ^

/home/dave/s/lp/libcxx/include/memory:2772:17: error: '_Tp' does not refer to a value
swap(unique_ptr<_Tp, _Dp>& __x, unique_ptr<_Tp, _Dp>& __y) _NOEXCEPT {__x.swap(__y);}

  ^

/home/dave/s/lp/libcxx/include/memory:2766:17: note: declared here
template <class _Tp, class _Dp>

  ^

/home/dave/s/lp/libcxx/include/memory:2772:22: error: '_Dp' does not refer to a value
swap(unique_ptr<_Tp, _Dp>& __x, unique_ptr<_Tp, _Dp>& __y) _NOEXCEPT {__x.swap(__y);}

  ^

/home/dave/s/lp/libcxx/include/memory:2766:28: note: declared here
template <class _Tp, class _Dp>

  ^

/home/dave/s/lp/libcxx/include/memory:2772:28: error: use of undeclared identifier '__x'
swap(unique_ptr<_Tp, _Dp>& __x, unique_ptr<_Tp, _Dp>& __y) _NOEXCEPT {__x.swap(__y);}

  ^

/home/dave/s/lp/libcxx/include/memory:2772:44: error: '_Tp' does not refer to a value
swap(unique_ptr<_Tp, _Dp>& __x, unique_ptr<_Tp, _Dp>& __y) _NOEXCEPT {__x.swap(__y);}

  ^

/home/dave/s/lp/libcxx/include/memory:2766:17: note: declared here
template <class _Tp, class _Dp>

  ^

/home/dave/s/lp/libcxx/include/memory:2772:49: error: '_Dp' does not refer to a value
swap(unique_ptr<_Tp, _Dp>& __x, unique_ptr<_Tp, _Dp>& __y) _NOEXCEPT {__x.swap(__y);}

  ^

/home/dave/s/lp/libcxx/include/memory:2766:28: note: declared here
template <class _Tp, class _Dp>

  ^

/home/dave/s/lp/libcxx/include/memory:2772:55: error: use of undeclared identifier '__y'
swap(unique_ptr<_Tp, _Dp>& __x, unique_ptr<_Tp, _Dp>& __y) _NOEXCEPT {__x.swap(__y);}

  ^

fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.

-

********************

FAIL: libc++ :: libcxx/memory/trivial_abi/weak_ptr_ret.pass.cpp (59768 of 68418)

- TEST 'libc++ :: libcxx/memory/trivial_abi/weak_ptr_ret.pass.cpp' FAILED ********************

Script:
-------

: 'COMPILED WITH';  /usr/bin/clang++ /home/dave/s/lp/libcxx/test/libcxx/memory/trivial_abi/weak_ptr_ret.pass.cpp -v -include /tmp/_update_lc/r/projects/libcxx/__config_site -include /home/dave/s/lp/libcxx/test/support/nasty_macros.h -nostdinc++ -I/home/dave/s/lp/libcxx/include -I/tmp/_update_lc/r/projects/libcxx/include/c++build -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -I/home/dave/s/lp/libcxx/test/support -Werror -Wall -Wextra -D_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER -Wshadow -Wno-unused-command-line-argument -Wno-attributes -Wno-pessimizing-move -Wno-c++11-extensions -Wno-user-defined-literals -Wno-noexcept-type -Wno-atomic-alignment -Wsign-compare -Wunused-variable -Wunused-parameter -Wunreachable-code -Wno-unused-local-typedef -std=c++2a -fcoroutines-ts -Werror=thread-safety -Wuser-defined-warnings -D_LIBCPP_ABI_ENABLE_SHARED_PTR_TRIVIAL_ABI -L/tmp/_update_lc/r/./lib64 -Wl,-rpath,/tmp/_update_lc/r/./lib64 -nodefaultlibs -lc++experimental /tmp/_update_lc/r/./lib64/libc++.a -lc++abi -lm -lgcc_s -lgcc -lpthread -lrt -lc -lgcc_s -lgcc -latomic -o /tmp/_update_lc/r/projects/libcxx/test/libcxx/memory/trivial_abi/Output/weak_ptr_ret.pass.cpp.dir/t.tmp.exe

: 'EXECUTED AS';  /usr/bin/python3.8 /home/dave/s/lp/libcxx/test/../utils/run.py --execdir /tmp/_update_lc/r/projects/libcxx/test/libcxx/memory/trivial_abi/Output/weak_ptr_ret.pass.cpp.dir --codesign_identity "" --env  --  /tmp/_update_lc/r/projects/libcxx/test/libcxx/memory/trivial_abi/Output/weak_ptr_ret.pass.cpp.dir/t.tmp.exe
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Exit Code: 1

Command Output (stderr):
------------------------

clang version 10.0.0 (Fedora 10.0.0-2.fc32)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-redhat-linux/10
Found candidate GCC installation: /usr/lib/gcc/x86_64-redhat-linux/10
Selected GCC installation: /usr/bin/../lib/gcc/x86_64-redhat-linux/10
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Selected multilib: .;@m64
 "/usr/bin/clang-10" -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name weak_ptr_ret.pass.cpp -mrelocation-model static -mthread-model posix -mframe-pointer=all -fmath-errno -fno-rounding-math -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -v -nostdinc++ -resource-dir /usr/lib64/clang/10.0.0 -include /tmp/_update_lc/r/projects/libcxx/__config_site -include /home/dave/s/lp/libcxx/test/support/nasty_macros.h -I /home/dave/s/lp/libcxx/include -I /tmp/_update_lc/r/projects/libcxx/include/c++build -D __STDC_FORMAT_MACROS -D __STDC_LIMIT_MACROS -D __STDC_CONSTANT_MACROS -I /home/dave/s/lp/libcxx/test/support -D _LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER -D _LIBCPP_ABI_ENABLE_SHARED_PTR_TRIVIAL_ABI -internal-isystem /usr/local/include -internal-isystem /usr/lib64/clang/10.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -Werror -Wall -Wextra -Wshadow -Wno-unused-command-line-argument -Wno-attributes -Wno-pessimizing-move -Wno-c++11-extensions -Wno-user-defined-literals -Wno-noexcept-type -Wno-atomic-alignment -Wsign-compare -Wunused-variable -Wunused-parameter -Wunreachable-code -Wno-unused-local-typedef -Werror=thread-safety -Wuser-defined-warnings -std=c++2a -fdeprecated-macro -fdebug-compilation-dir /tmp/_update_lc/r/projects/libcxx/test/libcxx/memory/trivial_abi -ferror-limit 19 -fmessage-length 0 -fcoroutines-ts -fgnuc-version=4.2.1 -fno-implicit-modules -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -faddrsig -o /tmp/weak_ptr_ret-b44766.o -x c++ /home/dave/s/lp/libcxx/test/libcxx/memory/trivial_abi/weak_ptr_ret.pass.cpp
clang -cc1 version 10.0.0 based upon LLVM 10.0.0 default target x86_64-unknown-linux-gnu
ignoring nonexistent directory "/include"
#include "..." search starts here:
#include <...> search starts here:
 /home/dave/s/lp/libcxx/include
 /tmp/_update_lc/r/projects/libcxx/include/c++build
 /home/dave/s/lp/libcxx/test/support
 /usr/local/include
 /usr/lib64/clang/10.0.0/include
 /usr/include
End of search list.
/home/dave/s/lp/libcxx/test/libcxx/memory/trivial_abi/weak_ptr_ret.pass.cpp:40:39: error: use of undeclared identifier 'shared'

  auto sptr = std::make_shared<Node>(&shared);
                                      ^

1 error generated.

-

********************

FAIL: libc++ :: libcxx/memory/trivial_abi/unique_ptr_arg.pass.cpp (59769 of 68418)

- TEST 'libc++ :: libcxx/memory/trivial_abi/unique_ptr_arg.pass.cpp' FAILED ********************

Script:
-------

: 'COMPILED WITH';  /usr/bin/clang++ /home/dave/s/lp/libcxx/test/libcxx/memory/trivial_abi/unique_ptr_arg.pass.cpp -v -include /tmp/_update_lc/r/projects/libcxx/__config_site -include /home/dave/s/lp/libcxx/test/support/nasty_macros.h -nostdinc++ -I/home/dave/s/lp/libcxx/include -I/tmp/_update_lc/r/projects/libcxx/include/c++build -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -I/home/dave/s/lp/libcxx/test/support -Werror -Wall -Wextra -D_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER -Wshadow -Wno-unused-command-line-argument -Wno-attributes -Wno-pessimizing-move -Wno-c++11-extensions -Wno-user-defined-literals -Wno-noexcept-type -Wno-atomic-alignment -Wsign-compare -Wunused-variable -Wunused-parameter -Wunreachable-code -Wno-unused-local-typedef -std=c++2a -fcoroutines-ts -Werror=thread-safety -Wuser-defined-warnings -D_LIBCPP_ABI_ENABLE_UNIQUE_PTR_TRIVIAL_ABI -L/tmp/_update_lc/r/./lib64 -Wl,-rpath,/tmp/_update_lc/r/./lib64 -nodefaultlibs -lc++experimental /tmp/_update_lc/r/./lib64/libc++.a -lc++abi -lm -lgcc_s -lgcc -lpthread -lrt -lc -lgcc_s -lgcc -latomic -o /tmp/_update_lc/r/projects/libcxx/test/libcxx/memory/trivial_abi/Output/unique_ptr_arg.pass.cpp.dir/t.tmp.exe

: 'EXECUTED AS';  /usr/bin/python3.8 /home/dave/s/lp/libcxx/test/../utils/run.py --execdir /tmp/_update_lc/r/projects/libcxx/test/libcxx/memory/trivial_abi/Output/unique_ptr_arg.pass.cpp.dir --codesign_identity "" --env  --  /tmp/_update_lc/r/projects/libcxx/test/libcxx/memory/trivial_abi/Output/unique_ptr_arg.pass.cpp.dir/t.tmp.exe
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Exit Code: 1

Command Output (stderr):
------------------------

clang version 10.0.0 (Fedora 10.0.0-2.fc32)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-redhat-linux/10
Found candidate GCC installation: /usr/lib/gcc/x86_64-redhat-linux/10
Selected GCC installation: /usr/bin/../lib/gcc/x86_64-redhat-linux/10
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Selected multilib: .;@m64
 "/usr/bin/clang-10" -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name unique_ptr_arg.pass.cpp -mrelocation-model static -mthread-model posix -mframe-pointer=all -fmath-errno -fno-rounding-math -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -v -nostdinc++ -resource-dir /usr/lib64/clang/10.0.0 -include /tmp/_update_lc/r/projects/libcxx/__config_site -include /home/dave/s/lp/libcxx/test/support/nasty_macros.h -I /home/dave/s/lp/libcxx/include -I /tmp/_update_lc/r/projects/libcxx/include/c++build -D __STDC_FORMAT_MACROS -D __STDC_LIMIT_MACROS -D __STDC_CONSTANT_MACROS -I /home/dave/s/lp/libcxx/test/support -D _LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER -D _LIBCPP_ABI_ENABLE_UNIQUE_PTR_TRIVIAL_ABI -internal-isystem /usr/local/include -internal-isystem /usr/lib64/clang/10.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -Werror -Wall -Wextra -Wshadow -Wno-unused-command-line-argument -Wno-attributes -Wno-pessimizing-move -Wno-c++11-extensions -Wno-user-defined-literals -Wno-noexcept-type -Wno-atomic-alignment -Wsign-compare -Wunused-variable -Wunused-parameter -Wunreachable-code -Wno-unused-local-typedef -Werror=thread-safety -Wuser-defined-warnings -std=c++2a -fdeprecated-macro -fdebug-compilation-dir /tmp/_update_lc/r/projects/libcxx/test/libcxx/memory/trivial_abi -ferror-limit 19 -fmessage-length 0 -fcoroutines-ts -fgnuc-version=4.2.1 -fno-implicit-modules -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -faddrsig -o /tmp/unique_ptr_arg-2e4cf3.o -x c++ /home/dave/s/lp/libcxx/test/libcxx/memory/trivial_abi/unique_ptr_arg.pass.cpp
clang -cc1 version 10.0.0 based upon LLVM 10.0.0 default target x86_64-unknown-linux-gnu
ignoring nonexistent directory "/include"
#include "..." search starts here:
#include <...> search starts here:
 /home/dave/s/lp/libcxx/include
 /tmp/_update_lc/r/projects/libcxx/include/c++build
 /home/dave/s/lp/libcxx/test/support
 /usr/local/include
 /usr/lib64/clang/10.0.0/include
 /usr/include
End of search list.
In file included from /home/dave/s/lp/libcxx/test/libcxx/memory/trivial_abi/unique_ptr_arg.pass.cpp:15:
/home/dave/s/lp/libcxx/include/memory:2326:38: error: '__type_visibility__' attribute only applies to types and namespaces
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr {

  ^

/home/dave/s/lp/libcxx/include/__config:693:52: note: expanded from macro '_LIBCPP_TEMPLATE_VIS'

define _LIBCPP_TEMPLATE_VIS __attribute__ ((__type_visibility__("default")))
============================================================================

  ^

In file included from /home/dave/s/lp/libcxx/test/libcxx/memory/trivial_abi/unique_ptr_arg.pass.cpp:15:
/home/dave/s/lp/libcxx/include/memory:2326:7: error: variable has incomplete type 'class __atribute__'
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr {

  ^

/home/dave/s/lp/libcxx/include/memory:2320:56: note: expanded from macro '_LIBCPP_UNIQUE_PTR_TRIVIAL_ABI'

define _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI __atribute__((trivial_abi))
=================================================================

  ^

/home/dave/s/lp/libcxx/include/memory:2326:7: note: forward declaration of 'std::__1::__atribute__'
/home/dave/s/lp/libcxx/include/memory:2320:42: note: expanded from macro '_LIBCPP_UNIQUE_PTR_TRIVIAL_ABI'

define _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI __atribute__((trivial_abi))
=================================================================

  ^

/home/dave/s/lp/libcxx/include/memory:2326:58: error: expected ';' at end of declaration
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr {

  ^
  ;

/home/dave/s/lp/libcxx/include/memory:2326:59: error: C++ requires a type specifier for all declarations
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr {

  ^

/home/dave/s/lp/libcxx/include/memory:2327:1: error: expected expression
public:
^
/home/dave/s/lp/libcxx/include/memory:2534:38: error: '__type_visibility__' attribute only applies to types and namespaces
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr<_Tp[], _Dp> {

  ^

/home/dave/s/lp/libcxx/include/__config:693:52: note: expanded from macro '_LIBCPP_TEMPLATE_VIS'

define _LIBCPP_TEMPLATE_VIS __attribute__ ((__type_visibility__("default")))
============================================================================

  ^

In file included from /home/dave/s/lp/libcxx/test/libcxx/memory/trivial_abi/unique_ptr_arg.pass.cpp:15:
/home/dave/s/lp/libcxx/include/memory:2534:7: error: redefinition of 'trivial_abi'
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr<_Tp[], _Dp> {

  ^

/home/dave/s/lp/libcxx/include/memory:2320:56: note: expanded from macro '_LIBCPP_UNIQUE_PTR_TRIVIAL_ABI'

define _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI __atribute__((trivial_abi))
=================================================================

  ^

/home/dave/s/lp/libcxx/include/memory:2326:7: note: previous definition is here
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr {

  ^

/home/dave/s/lp/libcxx/include/memory:2320:56: note: expanded from macro '_LIBCPP_UNIQUE_PTR_TRIVIAL_ABI'

define _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI __atribute__((trivial_abi))
=================================================================

  ^

/home/dave/s/lp/libcxx/include/memory:2534:58: error: expected ';' at end of declaration
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr<_Tp[], _Dp> {

  ^
  ;

/home/dave/s/lp/libcxx/include/memory:2534:59: error: no template named 'unique_ptr'
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr<_Tp[], _Dp> {

  ^

/home/dave/s/lp/libcxx/include/memory:2534:70: error: use of undeclared identifier '_Tp'
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr<_Tp[], _Dp> {

  ^

/home/dave/s/lp/libcxx/include/memory:2534:74: error: expected expression
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr<_Tp[], _Dp> {

  ^

/home/dave/s/lp/libcxx/include/memory:2534:82: error: expected unqualified-id
class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr<_Tp[], _Dp> {

   ^

/home/dave/s/lp/libcxx/include/memory:2772:1: error: redefinition of 'swap' as different kind of symbol
swap(unique_ptr<_Tp, _Dp>& __x, unique_ptr<_Tp, _Dp>& __y) _NOEXCEPT {__x.swap(__y);}
^
/home/dave/s/lp/libcxx/include/memory:2234:6: note: previous definition is here
void swap(__compressed_pair<_T1, _T2>& __x, __compressed_pair<_T1, _T2>& __y)

  ^

/home/dave/s/lp/libcxx/include/memory:2772:17: error: '_Tp' does not refer to a value
swap(unique_ptr<_Tp, _Dp>& __x, unique_ptr<_Tp, _Dp>& __y) _NOEXCEPT {__x.swap(__y);}

  ^

/home/dave/s/lp/libcxx/include/memory:2766:17: note: declared here
template <class _Tp, class _Dp>

  ^

/home/dave/s/lp/libcxx/include/memory:2772:22: error: '_Dp' does not refer to a value
swap(unique_ptr<_Tp, _Dp>& __x, unique_ptr<_Tp, _Dp>& __y) _NOEXCEPT {__x.swap(__y);}

  ^

/home/dave/s/lp/libcxx/include/memory:2766:28: note: declared here
template <class _Tp, class _Dp>

  ^

/home/dave/s/lp/libcxx/include/memory:2772:28: error: use of undeclared identifier '__x'
swap(unique_ptr<_Tp, _Dp>& __x, unique_ptr<_Tp, _Dp>& __y) _NOEXCEPT {__x.swap(__y);}

  ^

/home/dave/s/lp/libcxx/include/memory:2772:44: error: '_Tp' does not refer to a value
swap(unique_ptr<_Tp, _Dp>& __x, unique_ptr<_Tp, _Dp>& __y) _NOEXCEPT {__x.swap(__y);}

  ^

/home/dave/s/lp/libcxx/include/memory:2766:17: note: declared here
template <class _Tp, class _Dp>

  ^

/home/dave/s/lp/libcxx/include/memory:2772:49: error: '_Dp' does not refer to a value
swap(unique_ptr<_Tp, _Dp>& __x, unique_ptr<_Tp, _Dp>& __y) _NOEXCEPT {__x.swap(__y);}

  ^

/home/dave/s/lp/libcxx/include/memory:2766:28: note: declared here
template <class _Tp, class _Dp>

  ^

/home/dave/s/lp/libcxx/include/memory:2772:55: error: use of undeclared identifier '__y'
swap(unique_ptr<_Tp, _Dp>& __x, unique_ptr<_Tp, _Dp>& __y) _NOEXCEPT {__x.swap(__y);}

  ^

fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.

-

********************

FAIL: libc++ :: libcxx/memory/trivial_abi/shared_ptr_arg.pass.cpp (59774 of 68418)

- TEST 'libc++ :: libcxx/memory/trivial_abi/shared_ptr_arg.pass.cpp' FAILED ********************

Script:
-------

: 'COMPILED WITH';  /usr/bin/clang++ /home/dave/s/lp/libcxx/test/libcxx/memory/trivial_abi/shared_ptr_arg.pass.cpp -v -include /tmp/_update_lc/r/projects/libcxx/__config_site -include /home/dave/s/lp/libcxx/test/support/nasty_macros.h -nostdinc++ -I/home/dave/s/lp/libcxx/include -I/tmp/_update_lc/r/projects/libcxx/include/c++build -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -I/home/dave/s/lp/libcxx/test/support -Werror -Wall -Wextra -D_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER -Wshadow -Wno-unused-command-line-argument -Wno-attributes -Wno-pessimizing-move -Wno-c++11-extensions -Wno-user-defined-literals -Wno-noexcept-type -Wno-atomic-alignment -Wsign-compare -Wunused-variable -Wunused-parameter -Wunreachable-code -Wno-unused-local-typedef -std=c++2a -fcoroutines-ts -Werror=thread-safety -Wuser-defined-warnings -D_LIBCPP_ABI_ENABLE_SHARED_PTR_TRIVIAL_ABI -L/tmp/_update_lc/r/./lib64 -Wl,-rpath,/tmp/_update_lc/r/./lib64 -nodefaultlibs -lc++experimental /tmp/_update_lc/r/./lib64/libc++.a -lc++abi -lm -lgcc_s -lgcc -lpthread -lrt -lc -lgcc_s -lgcc -latomic -o /tmp/_update_lc/r/projects/libcxx/test/libcxx/memory/trivial_abi/Output/shared_ptr_arg.pass.cpp.dir/t.tmp.exe

: 'EXECUTED AS';  /usr/bin/python3.8 /home/dave/s/lp/libcxx/test/../utils/run.py --execdir /tmp/_update_lc/r/projects/libcxx/test/libcxx/memory/trivial_abi/Output/shared_ptr_arg.pass.cpp.dir --codesign_identity "" --env  --  /tmp/_update_lc/r/projects/libcxx/test/libcxx/memory/trivial_abi/Output/shared_ptr_arg.pass.cpp.dir/t.tmp.exe
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Exit Code: 1

Command Output (stderr):
------------------------

clang version 10.0.0 (Fedora 10.0.0-2.fc32)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-redhat-linux/10
Found candidate GCC installation: /usr/lib/gcc/x86_64-redhat-linux/10
Selected GCC installation: /usr/bin/../lib/gcc/x86_64-redhat-linux/10
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Selected multilib: .;@m64
 "/usr/bin/clang-10" -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name shared_ptr_arg.pass.cpp -mrelocation-model static -mthread-model posix -mframe-pointer=all -fmath-errno -fno-rounding-math -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -v -nostdinc++ -resource-dir /usr/lib64/clang/10.0.0 -include /tmp/_update_lc/r/projects/libcxx/__config_site -include /home/dave/s/lp/libcxx/test/support/nasty_macros.h -I /home/dave/s/lp/libcxx/include -I /tmp/_update_lc/r/projects/libcxx/include/c++build -D __STDC_FORMAT_MACROS -D __STDC_LIMIT_MACROS -D __STDC_CONSTANT_MACROS -I /home/dave/s/lp/libcxx/test/support -D _LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER -D _LIBCPP_ABI_ENABLE_SHARED_PTR_TRIVIAL_ABI -internal-isystem /usr/local/include -internal-isystem /usr/lib64/clang/10.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -Werror -Wall -Wextra -Wshadow -Wno-unused-command-line-argument -Wno-attributes -Wno-pessimizing-move -Wno-c++11-extensions -Wno-user-defined-literals -Wno-noexcept-type -Wno-atomic-alignment -Wsign-compare -Wunused-variable -Wunused-parameter -Wunreachable-code -Wno-unused-local-typedef -Werror=thread-safety -Wuser-defined-warnings -std=c++2a -fdeprecated-macro -fdebug-compilation-dir /tmp/_update_lc/r/projects/libcxx/test/libcxx/memory/trivial_abi -ferror-limit 19 -fmessage-length 0 -fcoroutines-ts -fgnuc-version=4.2.1 -fno-implicit-modules -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -faddrsig -o /tmp/shared_ptr_arg-ab833e.o -x c++ /home/dave/s/lp/libcxx/test/libcxx/memory/trivial_abi/shared_ptr_arg.pass.cpp
clang -cc1 version 10.0.0 based upon LLVM 10.0.0 default target x86_64-unknown-linux-gnu
ignoring nonexistent directory "/include"
#include "..." search starts here:
#include <...> search starts here:
 /home/dave/s/lp/libcxx/include
 /tmp/_update_lc/r/projects/libcxx/include/c++build
 /home/dave/s/lp/libcxx/test/support
 /usr/local/include
 /usr/lib64/clang/10.0.0/include
 /usr/include
End of search list.
/home/dave/s/lp/libcxx/test/libcxx/memory/trivial_abi/shared_ptr_arg.pass.cpp:27:62: error: unused parameter 'node' [-Werror,-Wunused-parameter]
__attribute__((noinline)) bool get_val(std::shared_ptr<Node> node) {

  ^

1 error generated.

-

********************

********************

Failed Tests (6):

  libc++ :: libcxx/memory/trivial_abi/shared_ptr_arg.pass.cpp
  libc++ :: libcxx/memory/trivial_abi/unique_ptr_arg.pass.cpp
  libc++ :: libcxx/memory/trivial_abi/unique_ptr_array.pass.cpp
  libc++ :: libcxx/memory/trivial_abi/unique_ptr_destruction_order.pass.cpp
  libc++ :: libcxx/memory/trivial_abi/unique_ptr_ret.pass.cpp
  libc++ :: libcxx/memory/trivial_abi/weak_ptr_ret.pass.cpp

Testing Time: 155.37s

  Unsupported      : 12664
  Passed           : 55604
  Expectedly Failed:   144
  Failed           :     6

FAILED: CMakeFiles/check-all


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D82490/new/

https://reviews.llvm.org/D82490





More information about the libcxx-commits mailing list