[MacPorts] #63038: clang12: please re-enable the +analyzer as a default variant
MacPorts
noreply at macports.org
Sun Jun 6 20:01:42 UTC 2021
#63038: clang12: please re-enable the +analyzer as a default variant
-------------------------+----------------------
Reporter: mouse07410 | Owner: kencu
Type: request | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: clang-12 |
-------------------------+----------------------
Comment (by kencu):
your compiler-rt build failure is something different, by the way:
{{{
:info:build CMake Error: failed to create symbolic link
'/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-12/clang-12/work/build/projects
/compiler-
rt/lib/builtins/outline_atomic_helpers.dir/outline_atomic_ldclr1_3.S':
file already exists
:info:build cd
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-12/clang-12/work/build/projects
/compiler-rt/lib/builtins &&
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-12/clang-12/work/build/projects
/compiler-rt/lib/builtins
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-12/clang-12/work
/llvm-project-12.0.0.src/compiler-rt/lib/builtins
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-12/clang-12/work/build/include
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-12/clang-12/work
/llvm-project-12.0.0.src/llvm/include -O3 -DNDEBUG -arch armv7em -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk
-isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk
-Oz -Wall -fomit-frame-pointer -ffreestanding -arch armv7em -fPIC -mfloat-
abi=soft -o
CMakeFiles/clang_rt.soft_pic_armv7em_macho_embedded.dir/arm/sync_fetch_and_sub_4.S.o
-c
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-12/clang-12/work
/llvm-project-12.0.0.src/compiler-
rt/lib/builtins/arm/sync_fetch_and_sub_4.S
:info:build make[2]: *** [projects/compiler-
rt/lib/builtins/outline_atomic_helpers.dir/outline_atomic_ldclr1_3.S]
Error 1
}}}
there seems to be a race condition in some build attempts for clang.
Marcus disabled parallel_building one time to get past this -- but as it
only happens to me 1 / 100 times I build clang, and because building
clang-12 without parallel building takes about 1.2 years, I re-enabled it
again.
If you know how to properly fix the race condition, I'm sure upstream
would be delighted. I have no idea, myself.
If it really bugs you, you can disable parallel building in your clang
Portfile.
If it happens a lot, on the buildbots and elsewhere, and there is no
choice left but to disable parallel_buildling, so be it, we'll disable it
and it can take 1.2 years to build clang.
--
Ticket URL: <https://trac.macports.org/ticket/63038#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list