<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/62216>62216</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Multiple tests fail with clang 16 under aarch64
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
fundawang
</td>
</tr>
</table>
<pre>
Hello,
When building clang 16 under anolis os aarch64 (fedora rawhide based), 58 tests failed:
```
Failed Tests (58):
Clang :: AST/ast-dump-openmp-begin-declare-variant_11.c
Clang :: AST/ast-dump-openmp-begin-declare-variant_template_3.cpp
Clang :: AST/sourceranges.cpp
Clang :: CXX/basic/basic.stc/basic.stc.dynamic/p2.cpp
Clang :: CXX/except/except.spec/p9-dynamic.cpp
Clang :: CXX/stmt.stmt/stmt.select/p3.cpp
Clang :: CXX/temp/temp.arg/temp.arg.nontype/p1.cpp
Clang :: CXX/temp/temp.res/temp.local/p3.cpp
Clang :: CodeGen/2007-06-18-SextAttrAggregate.c
Clang :: CodeGen/typedef_alignment_mismatch_warning.cpp
Clang :: CodeGenCXX/align-avx-complete-objects.cpp
Clang :: CodeGenCXX/copy-constructor-elim-2.cpp
Clang :: CodeGenCXX/debug-info-template-parameter.cpp
Clang :: CodeGenCXX/debug-info-template-partial-specialization.cpp
Clang :: CodeGenCXX/exception-spec-decay.cpp
Clang :: CodeGenCXX/exceptions-cxx-ehsc.cpp
Clang :: CodeGenCXX/exceptions-no-rtti.cpp
Clang :: CodeGenCXX/global-init.cpp
Clang :: CodeGenCXX/no-exceptions.cpp
Clang :: CodeGenCXX/override-bit-field-layout.cpp
Clang :: CodeGenCXX/override-layout.cpp
Clang :: CodeGenCXX/reference-temporary-ms.cpp
Clang :: CodeGenCXX/rtti-linkage.cpp
Clang :: Driver/dxc_D.hlsl
Clang :: Driver/dxc_E.hlsl
Clang :: Driver/dxc_Fo.hlsl
Clang :: Driver/dxc_I.hlsl
Clang :: Driver/dxc_O.hlsl
Clang :: Driver/dxc_fcgl.hlsl
Clang :: Driver/hlsl_no_stdinc.hlsl
Clang :: Driver/ps4-ps5-visibility-dllstorageclass.c
Clang :: Modules/compare-record.c
Clang :: Modules/update-exception-spec.cpp
Clang :: OpenMP/declare_mapper_messages.cpp
Clang :: PCH/cxx-functions.cpp
Clang :: SemaCXX/altivec.cpp
Clang :: SemaCXX/bool.cpp
Clang :: SemaCXX/default2.cpp
Clang :: SemaCXX/exception-spec-no-exceptions.cpp
Clang :: SemaCXX/exceptions.cpp
Clang :: SemaCXX/libstdcxx_is_pod_hack.cpp
Clang :: SemaCXX/member-pointer.cpp
Clang :: SemaCXX/new-delete.cpp
Clang :: SemaCXX/static-data-member.cpp
Clang :: SemaCXX/type-definition-in-specifier.cpp
Clang :: SemaCXX/user-defined-conversions.cpp
Clang :: SemaCXX/warn-new-overaligned-3.cpp
Clang :: SemaCXX/warn-new-overaligned.cpp
Clang :: SemaCXX/writable-strings-deprecated.cpp
Clang :: SemaTemplate/class-template-id.cpp
Clang :: SemaTemplate/constructor-template.cpp
Clang :: SemaTemplate/explicit-instantiation.cpp
Clang :: SemaTemplate/instantiate-exception-spec.cpp
Clang :: SemaTemplate/instantiate-non-dependent-types.cpp
Clang :: SemaTemplate/instantiation-default-2.cpp
Clang :: SemaTemplate/temp_arg.cpp
Clang :: SemaTemplate/temp_arg_template.cpp
Clang :: SemaTemplate/typename-specifier-3.cpp
```
AST/ast-dump-openmp-begin-declare-variant_11 log here:
```
******************** TEST 'Clang :: AST/ast-dump-openmp-begin-declare-variant_11.c' FAILED ********************
Script:
--
: 'RUN: at line 1'; /builddir/build/BUILD/clang-16.0.1.src/anolis-linux-build/bin/clang -cc1 -internal-isystem /builddir/build/BUILD/clang-16.0.1.src/anolis-linux-build/lib64/clang/16/include -nostdsysteminc -triple x86_64-unknown-unknown -fopenmp -verify=c_mode -ast-dump /builddir/build/BUILD/clang-16.0.1.src/test/AST/ast-dump-openmp-begin-declare-variant_11.c | /usr/bin/FileCheck /builddir/build/BUILD/clang-16.0.1.src/test/AST/ast-dump-openmp-begin-declare-variant_11.c --check-prefix=C
: 'RUN: at line 2'; /builddir/build/BUILD/clang-16.0.1.src/anolis-linux-build/bin/clang -cc1 -internal-isystem /builddir/build/BUILD/clang-16.0.1.src/anolis-linux-build/lib64/clang/16/include -nostdsysteminc -triple x86_64-unknown-unknown -fopenmp -verify=cxx_mode -ast-dump /builddir/build/BUILD/clang-16.0.1.src/test/AST/ast-dump-openmp-begin-declare-variant_11.c -x c++ /builddir/build/BUILD/clang-16.0.1.src/test/AST/ast-dump-openmp-begin-declare-variant_11.ctd_cxx11-14 | /usr/bin/FileCheck /builddir/build/BUILD/clang-16.0.1.src/test/AST/ast-dump-openmp-begin-declare-variant_11.c --check-prefix=CXX
: 'RUN: at line 3'; /builddir/build/BUILD/clang-16.0.1.src/anolis-linux-build/bin/clang -cc1 -internal-isystem /builddir/build/BUILD/clang-16.0.1.src/anolis-linux-build/lib64/clang/16/include -nostdsysteminc -triple x86_64-unknown-unknown -fopenmp -verify=cxx_mode,cxx17 -ast-dump /builddir/build/BUILD/clang-16.0.1.src/test/AST/ast-dump-openmp-begin-declare-variant_11.c -x c++ /builddir/build/BUILD/clang-16.0.1.src/test/AST/ast-dump-openmp-begin-declare-variant_11.ctd_cxx17- | /usr/bin/FileCheck /builddir/build/BUILD/clang-16.0.1.src/test/AST/ast-dump-openmp-begin-declare-variant_11.c --check-prefix=CXX
--
Exit Code: 1
Command Output (stderr):
--
+ : 'RUN: at line 1'
+ /builddir/build/BUILD/clang-16.0.1.src/anolis-linux-build/bin/clang -cc1 -internal-isystem /builddir/build/BUILD/clang-16.0.1.src/anolis-linux-build/lib64/clang/16/include -nostdsysteminc -triple x86_64-unknown-unknown -fopenmp -verify=c_mode -ast-dump /builddir/build/BUILD/clang-16.0.1.src/test/AST/ast-dump-openmp-begin-declare-variant_11.c
+ /usr/bin/FileCheck /builddir/build/BUILD/clang-16.0.1.src/test/AST/ast-dump-openmp-begin-declare-variant_11.c --check-prefix=C
+ : 'RUN: at line 2'
+ /builddir/build/BUILD/clang-16.0.1.src/anolis-linux-build/bin/clang -cc1 -internal-isystem /builddir/build/BUILD/clang-16.0.1.src/anolis-linux-build/lib64/clang/16/include -nostdsysteminc -triple x86_64-unknown-unknown -fopenmp -verify=cxx_mode -ast-dump /builddir/build/BUILD/clang-16.0.1.src/test/AST/ast-dump-openmp-begin-declare-variant_11.c -x c++ /builddir/build/BUILD/clang-16.0.1.src/test/AST/ast-dump-openmp-begin-declare-variant_11.ctd_cxx11-14
+ /usr/bin/FileCheck /builddir/build/BUILD/clang-16.0.1.src/test/AST/ast-dump-openmp-begin-declare-variant_11.c --check-prefix=CXX
error: 'warning' diagnostics seen but not expected:
File /builddir/build/BUILD/clang-16.0.1.src/test/AST/ast-dump-openmp-begin-declare-variant_11.c Line 33: 'also_after3' is missing exception specification '__attribute__((nothrow))'
File /builddir/build/BUILD/clang-16.0.1.src/test/AST/ast-dump-openmp-begin-declare-variant_11.c Line 36: 'also_after4' is missing exception specification '__attribute__((nothrow))'
error: 'note' diagnostics seen but not expected:
File /builddir/build/BUILD/clang-16.0.1.src/test/AST/ast-dump-openmp-begin-declare-variant_11.c Line 19: previous declaration is here
File /builddir/build/BUILD/clang-16.0.1.src/test/AST/ast-dump-openmp-begin-declare-variant_11.c Line 22: previous declaration is here
error: 'error' diagnostics seen but not expected:
(frontend): error reading '/builddir/build/BUILD/clang-16.0.1.src/test/AST/ast-dump-openmp-begin-declare-variant_11.ctd_cxx11-14'
5 errors generated.
--
********************
```
Detailed log here:
http://build.openanolis.cn/taskinfo?taskID=602905
Are there some options need to be tweak? Thanks.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsWl9v2zgS_zTMC0HDomLHefBDate3Bdrr4prF9U2gyJHMDUUK5MiR79MfKPlPmta20t5te7gAhkVb8xsOOT_ODCmJEHRpAeZk8oZMlleiwbXz86KxS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