Created attachment 189846 [details] renderer/Image_init.cpp (compressed, preprocessed) /usr/bin/c++ -DID_DEDICATED -D__DOOM_DLL__ -I/usr/local/include -I/usr/local/include/AL -I/usr/local/include/SDL2 -I. -O2 -pipe -fstack-protector -fno-strict-aliasing -O3 -ffast-math -fno-unsafe-math-optimizations -fomit-frame-pointer -pipe -Wall -march=pentium3 -fno-strict-aliasing -fvisibility=hidden -Wno-sign-compare -Wno-switch -Wno-format-security -Woverloaded-virtual -MD -MT CMakeFiles/dhewm3ded.dir/renderer/Image_init.cpp.o -MF CMakeFiles/dhewm3ded.dir/renderer/Image_init.cpp.o.d -o CMakeFiles/dhewm3ded.dir/renderer/Image_init.cpp.o -c renderer/Image_init.cpp Not a vector MVT! UNREACHABLE executed at /usr/local/poudriere/jails/head-i386/usr/src/contrib/llvm/include/llvm/CodeGen/MachineValueType.h:417! c++: error: unable to execute command: Abort trap (core dumped) c++: error: clang frontend command failed due to signal (use -v to see invocation) FreeBSD clang version 6.0.0 (branches/release_60 321788) (based on LLVM 6.0.0) Target: i386-unknown-freebsd12.0 Thread model: posix InstalledDir: /usr/bin http://beefy11.nyi.freebsd.org/data/head-i386-default/p459147_s328035/logs/errors/dhewm3-1.4.1.log
Created attachment 189847 [details] command line args (for clang 6.0)
This seems to be https://bugs.llvm.org/show_bug.cgi?id=35865, I'm investigating whether https://reviews.llvm.org/rL322106 helps.
A commit references this bug: Author: dim Date: Thu Jan 18 21:46:10 UTC 2018 New revision: 328146 URL: https://svnweb.freebsd.org/changeset/base/328146 Log: Pull in r322106 from upstream llvm trunk (by Alexey Bataev): [COST]Fix PR35865: Fix cost model evaluation for shuffle on X86. Summary: If the vector type is transformed to non-vector single type, the compile may crash trying to get vector information about non-vector type. Reviewers: RKSimon, spatel, mkuper, hfinkel Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D41862 This should fix "Not a vector MVT!" errors when building the games/dhewm3 port. Reported by: jbeich PR: 225271 Changes: head/contrib/llvm/lib/Target/X86/X86TargetTransformInfo.cpp
I confirm, builds fine now. http://beefy11.nyi.freebsd.org/data/head-i386-default/p459491_s328183/logs/dhewm3-1.4.1.log