#67999 closed defect (worksforme)

llvm-16 @16.0.6_2 fails to build on MacOS 12.6.8

Reported by: josephsacco Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: llvm Cc: mascguy (Christopher Nielsen)
Port: llvm-16

Description

llvm-16 @16.0.6_2 fails to build on an intel-based iMac running MacOS 12.6.8. See attached log file.

-Joseph

Attachments (1)

main.log.bz2 (99.2 KB) - added by jmroot (Joshua Root) 15 months ago.

Download all attachments as: .zip

Change History (10)

Changed 15 months ago by jmroot (Joshua Root)

Attachment: main.log.bz2 added

comment:1 Changed 15 months ago by kencu (Ken)

you have:

:info:configure -- The C compiler identification is AppleClang 14.0.0.14000029
:info:configure -- The CXX compiler identification is AppleClang 14.0.0.14000029

and the error is:

:info:build clang: error: unable to execute command: Segmentation fault: 11
:info:build clang: error: clang frontend command failed due to signal (use -v to see invocation)
:info:build Apple clang version 14.0.0 (clang-1400.0.29.202)
:info:build Target: x86_64-apple-darwin21.6.0
:info:build Thread model: posix
:info:build InstalledDir: /Library/Developer/CommandLineTools/usr/bin
:info:build /Library/Developer/CommandLineTools/usr/bin/make  -f lib/Target/ARM/CMakeFiles/LLVMARMCodeGen.dir/build.make lib/Target/ARM/CMakeFiles/LLVMARMCodeGen.dir/depend
:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-16/llvm-16/work/build'
:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-16/llvm-16/work/build && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-16/llvm-16/work/llvm-project-16.0.6.src/llvm /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-16/llvm-16/work/llvm-project-16.0.6.src/llvm/lib/Target/ARM /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-16/llvm-16/work/build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-16/llvm-16/work/build/lib/Target/ARM /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-16/llvm-16/work/build/lib/Target/ARM/CMakeFiles/LLVMARMCodeGen.dir/DependInfo.cmake --color=
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-16/llvm-16/work/build'
:info:build /Library/Developer/CommandLineTools/usr/bin/make  -f lib/Target/ARM/CMakeFiles/LLVMARMCodeGen.dir/build.make lib/Target/ARM/CMakeFiles/LLVMARMCodeGen.dir/build
:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-16/llvm-16/work/build'
:info:build [ 77%] Building CXX object lib/Target/ARM/CMakeFiles/LLVMARMCodeGen.dir/A15SDOptimizer.cpp.o
:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-16/llvm-16/work/build/lib/Target/ARM && /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-16/llvm-16/work/build/lib/Target/ARM -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-16/llvm-16/work/llvm-project-16.0.6.src/llvm/lib/Target/ARM -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-16/llvm-16/work/build/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-16/llvm-16/work/llvm-project-16.0.6.src/llvm/include -isystem /opt/local/include -pipe -Os -DNDEBUG -I/opt/local/include -stdlib=libc++ -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -fPIC -fvisibility-inlines-hidden -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 -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -O3 -DNDEBUG -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -mmacosx-version-min=12.0  -fno-exceptions -std=c++17 -MD -MT lib/Target/ARM/CMakeFiles/LLVMARMCodeGen.dir/A15SDOptimizer.cpp.o -MF CMakeFiles/LLVMARMCodeGen.dir/A15SDOptimizer.cpp.o.d -o CMakeFiles/LLVMARMCodeGen.dir/A15SDOptimizer.cpp.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-16/llvm-16/work/llvm-project-16.0.6.src/llvm/lib/Target/ARM/A15SDOptimizer.cpp
:info:build clang: note: diagnostic msg: 
:info:build ********************
:info:build PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
:info:build Preprocessed source(s) and associated run script(s) are located at:
:info:build clang: note: diagnostic msg: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-16/llvm-16/work/.tmp/WebAssemblyInstrInfo-1f0797.cpp
:info:build clang: note: diagnostic msg: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-16/llvm-16/work/.tmp/WebAssemblyInstrInfo-1f0797.sh
:info:build clang: note: diagnostic msg: Crash backtrace is located in
:info:build clang: note: diagnostic msg: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-16/llvm-16/work/.home/Library/Logs/DiagnosticReports/clang_<YYYY-MM-DD-HHMMSS>_<hostname>.crash
:info:build clang: note: diagnostic msg: (choose the .crash file that corresponds to your crash)
:info:build clang: note: diagnostic msg: 
:info:build ********************
:info:build make[2]: *** [lib/Target/WebAssembly/CMakeFiles/LLVMWebAssemblyCodeGen.dir/WebAssemblyInstrInfo.cpp.o] Error 254
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-16/llvm-16/work/build'
:info:build make[1]: *** [lib/Target/WebAssembly/CMakeFiles/LLVMWebAssemblyCodeGen.dir/all] Error 2
:info:build make[1]: *** Waiting for unfinished jobs....

comment:2 Changed 15 months ago by kencu (Ken)

the buildbot hasn't had a run at this yet, so let's see what happens there before we put too much effort into this....

comment:3 Changed 15 months ago by josephsacco

OK...

Also... You probably noticed that I "fat fingered" the version number for llvm-16.

clang-16                       16.0.6_1 < 16.0.6_2
llvm-16                        16.0.6_0 < 16.0.6_1

The version of llvm-16 under consideration is 16.0.6_1,

-Joseph

comment:5 Changed 15 months ago by josephsacco

Ken,

Thanks for the update. I suspect that my veritable late-2015 iMac may have acquired some cruft after many OS updates.

Hmmm... Time to consider reinstalling the OS.

Be well,

-Joseph

comment:6 Changed 15 months ago by mascguy (Christopher Nielsen)

Cc: mascguy added

comment:7 in reply to:  5 Changed 15 months ago by mascguy (Christopher Nielsen)

Joseph, are you able to successfully update this port, now that buildbot binaries are available for it?

comment:8 Changed 15 months ago by josephsacco

Yes...

$ port installed llvm-16 clang-16
The following ports are currently installed:
  clang-16 @16.0.6_2+analyzer (active)
  llvm-16 @16.0.6_1 (active)

All is well.

-Joseph

comment:9 in reply to:  8 Changed 15 months ago by mascguy (Christopher Nielsen)

Resolution: worksforme
Status: newclosed

Replying to josephsacco:

Yes...

$ port installed llvm-16 clang-16
The following ports are currently installed:
  clang-16 @16.0.6_2+analyzer (active)
  llvm-16 @16.0.6_1 (active)

All is well.

Great, glad this is resolved!

Note: See TracTickets for help on using tickets.