$ poudriere jail -cj clang7 -a amd64 -v projects/clang700-import -m svn+https $ poudriere testport -j clang7 math/vtk8 [...] /usr/bin/c++ -DVTK_IN_VTK -DvtkFiltersCore_EXPORTS -IFilters/Core -I/wrkdirs/usr/ports/math/vtk8/work/VTK-8.1.1/Filters/Core -ICommon/Core -I/wrkdirs/usr/ports/math/vtk8/work/VTK-8.1.1/Common/Core -IUtilities/KWIML -I/wrkdirs/usr/ports/math/vtk8/work/VTK-8.1.1/Utilities/KWIML -IUtilities/KWSys -I/wrkdirs/usr/ports/math/vtk8/work/VTK-8.1.1/Utilities/KWSys -ICommon/DataModel -I/wrkdirs/usr/ports/math/vtk8/work/VTK-8.1.1/Common/DataModel -ICommon/Math -I/wrkdirs/usr/ports/math/vtk8/work/VTK-8.1.1/Common/Math -ICommon/Misc -I/wrkdirs/usr/ports/math/vtk8/work/VTK-8.1.1/Common/Misc -ICommon/System -I/wrkdirs/usr/ports/math/vtk8/work/VTK-8.1.1/Common/System -ICommon/Transforms -I/wrkdirs/usr/ports/math/vtk8/work/VTK-8.1.1/Common/Transforms -ICommon/ExecutionModel -I/wrkdirs/usr/ports/math/vtk8/work/VTK-8.1.1/Common/ExecutionModel -O2 -pipe -fstack-protector -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -O2 -pipe -fstack-protector -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -fPIC -fvisibility=hidden -std=c++11 -MD -MT Filters/Core/CMakeFiles/vtkFiltersCore.dir/vtkUnstructuredGridQuadricDecimation.cxx.o -MF Filters/Core/CMakeFiles/vtkFiltersCore.dir/vtkUnstructuredGridQuadricDecimation.cxx.o.d -o Filters/Core/CMakeFiles/vtkFiltersCore.dir/vtkUnstructuredGridQuadricDecimation.cxx.o -c /wrkdirs/usr/ports/math/vtk8/work/VTK-8.1.1/Filters/Core/vtkUnstructuredGridQuadricDecimation.cxx PHI nodes not grouped at top of basic block! %e1.sroa.20.0 = phi <2 x float> [ %29, %if.then.i ], [ %11, %entry ] label %_ZN40vtkUnstructuredGridQuadricDecimationVec49NormalizeEv.exit PHI nodes not grouped at top of basic block! %e2.sroa.21.0 = phi <2 x float> [ %53, %if.then.i160 ], [ %42, %_ZN40vtkUnstructuredGridQuadricDecimationVec49NormalizeEv.exit ] label %_ZN40vtkUnstructuredGridQuadricDecimationVec49NormalizeEv.exit161 fatal error: error in backend: Broken function found, compilation aborted! c++: error: clang frontend command failed with exit code 70 (use -v to see invocation) FreeBSD clang version 7.0.0 (branches/release_70 339355) (based on LLVM 7.0.0svn) Target: x86_64-unknown-freebsd12.0 Thread model: posix InstalledDir: /usr/bin http://package18.nyi.freebsd.org/data/headamd64PR230355-default/2018-08-11_19h01m06s/logs/errors/vtk8-8.1.1.log
Created attachment 196176 [details] Filters/Core/vtkUnstructuredGridQuadricDecimation.cxx (compressed, preprocessed)
Created attachment 196177 [details] command line args (for clang 7)
This looks like a clang/llvm internal failure to me: > PHI nodes not grouped at top of basic block! > %e1.sroa.20.0 = phi <2 x float> [ %29, %if.then.i ], [ %11, %entry ] It should be reported to the llvm project as a regression.
Another port bundles VTK, so Clang crashes pretty much the same way. $ poudriere jail -cj clang7 -a amd64 -v projects/clang700-import -m svn+https $ poudriere testport -j clang7 science/paraview [...] PHI nodes not grouped at top of basic block! %e1.sroa.20.0 = phi <2 x float> [ %29, %if.then.i ], [ %11, %entry ] label %_ZN40vtkUnstructuredGridQuadricDecimationVec49NormalizeEv.exit PHI nodes not grouped at top of basic block! %e2.sroa.21.0 = phi <2 x float> [ %53, %if.then.i160 ], [ %42, %_ZN40vtkUnstructuredGridQuadricDecimationVec49NormalizeEv.exit ] label %_ZN40vtkUnstructuredGridQuadricDecimationVec49NormalizeEv.exit161 fatal error: error in backend: Broken function found, compilation aborted! c++: error: clang frontend command failed with exit code 70 (use -v to see invocation) FreeBSD clang version 7.0.0 (branches/release_70 339355) (based on LLVM 7.0.0svn) Target: x86_64-unknown-freebsd12.0 Thread model: posix InstalledDir: /usr/bin http://package18.nyi.freebsd.org/data/headamd64PR230355-default/2018-08-11_19h01m06s/logs/errors/paraview-5.5.1_2.log
This was fixed upstream in https://reviews.llvm.org/rL339853, for https://bugs.llvm.org/show_bug.cgi?id=38418, and merged to the release_70 branch in https://reviews.llvm.org/rL339853. So the fix came in with base 338014, where I merged upstream release_70 r339999.