<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/90568>90568</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
apple build 18.1.4 for arm64 error
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
calvin2021y
</td>
</tr>
</table>
<pre>
```sh
llvm/utils/release/test-release.sh \
-release 18.1.4\
-final \
-triple arm64-apple-darwin22 \
-j 4 \
-use-ninja \
-configure-flags "-DLLVM_USE_STATIC_ZSTD=ON" \
-lldb
```
```sh
: && /opt/projects/llvm-project/final/Phase2/Release/llvmCore-18.1.4-final.install/usr/local/bin/clang -fPIC -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -Wall -fcolor-diagnostics -Wcast-qual -Wformat-pedantic -Wimplicit-fallthrough -Wsign-compare -Wno-enum-constexpr-conversion -Wno-extra -Wno-pedantic -fno-semantic-interposition -fdata-sections -O3 -DNDEBUG -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk -mmacosx-version-min=13.6 -dynamiclib -Wl,-headerpad_max_install_names -current_version 5.0 -compatibility_version 5.0 -o lib/libomp.dylib -install_name @rpath/libomp.dylib projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_alloc.cpp.o projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_atomic.cpp.o projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_csupport.cpp.o projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_debug.cpp.o projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_itt.cpp.o projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_environment.cpp.o projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_error.cpp.o projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_global.cpp.o projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_i18n.cpp.o projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_io.cpp.o projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_runtime.cpp.o projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_settings.cpp.o projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_str.cpp.o projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_tasking.cpp.o projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_threadprivate.cpp.o projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_utility.cpp.o projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_barrier.cpp.o projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_wait_release.cpp.o projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_affinity.cpp.o projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_dispatch.cpp.o projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_lock.cpp.o projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_sched.cpp.o projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_collapse.cpp.o projects/openmp/runtime/src/CMakeFiles/omp.dir/z_Linux_util.cpp.o projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_gsupport.cpp.o projects/openmp/runtime/src/CMakeFiles/omp.dir/thirdparty/ittnotify/ittnotify_static.cpp.o projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_taskdeps.cpp.o projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_cancel.cpp.o projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_ftn_cdecl.cpp.o projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_ftn_extra.cpp.o projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_version.cpp.o projects/openmp/runtime/src/CMakeFiles/omp.dir/ompt-general.cpp.o projects/openmp/runtime/src/CMakeFiles/omp.dir/z_Linux_asm.S.o && cd /opt/projects/llvm-project/final/Phase3/Release/llvmCore-18.1.4-final.obj/lib && /Applications/CMake.app/Contents/bin/cmake -E create_symlink libomp.dylib libgomp.dylib && /Applications/CMake.app/Contents/bin/cmake -E create_symlink libomp.dylib libiomp5.dylib
ld: Undefined symbols:
___divdc3, referenced from:
___kmpc_atomic_cmplx8_div in kmp_atomic.cpp.o
___kmpc_atomic_cmplx8_div in kmp_atomic.cpp.o
___kmpc_atomic_cmplx4_div_cmplx8 in kmp_atomic.cpp.o
___kmpc_atomic_cmplx4_div_cmplx8 in kmp_atomic.cpp.o
___kmpc_atomic_cmplx8_div_cpt in kmp_atomic.cpp.o
___kmpc_atomic_cmplx8_div_cpt in kmp_atomic.cpp.o
___kmpc_atomic_cmplx10_div_cpt in kmp_atomic.cpp.o
___kmpc_atomic_cmplx10_div_cpt in kmp_atomic.cpp.o
...
___divsc3, referenced from:
___kmpc_atomic_cmplx4_div in kmp_atomic.cpp.o
___kmpc_atomic_cmplx4_div in kmp_atomic.cpp.o
___kmpc_atomic_cmplx4_div in kmp_atomic.cpp.o
___kmpc_atomic_cmplx4_div_cpt in kmp_atomic.cpp.o
___kmpc_atomic_cmplx4_div_cpt in kmp_atomic.cpp.o
___kmpc_atomic_cmplx4_div_cpt in kmp_atomic.cpp.o
___kmpc_atomic_cmplx4_div_cpt in kmp_atomic.cpp.o
...
clang: error: linker command failed with exit code 1 (use -v to see invocation)
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzMWF9v3LgR_zT0C0FBy_2T9cM-ON7b4tDkEtRJfeiLMCJHq4kpkiWptfc-fUFJPnt9KNrmdIcugsBDzvw08-NwOCTESEeLuGPr92y9v4I-tS7sFJgTWVnKxfmqdvq8Y5ty_BdbVu5ZeW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