I have imported recent versions of llvm, clang, compiler-rt, libc++, lld and lldb 5.0.0 (trunk 302069) into the projects/clang500-import branch. This branch has been synchronized with head r317807, as of 2017-05-04. Even though the upstream 5.0.0 release is still a few months off, I would like an exp-run against this branch, to have an early indication of fallout. In my own testing I have built a smallish collection of ~550 ports without any problems, except the one I reported in bug 219126 for devel/gdb. So please apply the fix posted there, too. Obviously, this is not a high priority exp-run request, so put it on the back burner, if there are more interesting ones. :)
Ed, would it make any sense to test this branch using WITH_LLD_IS_LD ?
(In reply to Dimitry Andric from comment #1) Because there's still work that needs to be done on the ports side I think it would introduce too much noise -- perhaps we should just rerun the WITH_LLD_IS_LD exp-run (PR 214864) once the branch merges to head?
(In reply to Ed Maste from comment #2) > Because there's still work that needs to be done on the ports side I think > it would introduce too much noise -- perhaps we should just rerun the > WITH_LLD_IS_LD exp-run (PR 214864) once the branch merges to head? Sure. Let's go for the defaults for now.
Exp-run results on amd64: http://package18.nyi.freebsd.org/build.html?mastername=headamd64PR219139-default&build=2017-05-22_13h01m42s New failures on amd64: + {"origin"=>"archivers/xmill", "phase"=>"build", "errortype"=>"clang"} + {"origin"=>"audio/mac", "phase"=>"build", "errortype"=>"clang"} + {"origin"=>"audio/mous", "phase"=>"build", "errortype"=>"clang"} + {"origin"=>"cad/openvsp", "phase"=>"build", "errortype"=>"bad_C++_code"} + {"origin"=>"devel/codeblocks", "phase"=>"build", "errortype"=>"bad_C++_code"} + {"origin"=>"devel/cpprestsdk", "phase"=>"build", "errortype"=>"clang_werror"} + {"origin"=>"devel/cxxtools", "phase"=>"build", "errortype"=>"???"} + {"origin"=>"devel/gcc-arm-embedded", "phase"=>"build", "errortype"=>"clang"} + {"origin"=>"devel/grpc", "phase"=>"build", "errortype"=>"clang"} + {"origin"=>"devel/liblas12", "phase"=>"build", "errortype"=>"clang"} + {"origin"=>"devel/ppl", "phase"=>"build", "errortype"=>"???"} + {"origin"=>"devel/qt5-script", "phase"=>"build", "errortype"=>"clang"} + {"origin"=>"devel/rapidjson", "phase"=>"build", "errortype"=>"clang_werror"} + {"origin"=>"devel/sdl2pp", "phase"=>"build", "errortype"=>"clang_werror"} + {"origin"=>"devel/sope2", "phase"=>"build", "errortype"=>"configure_error"} + {"origin"=>"devel/sope3", "phase"=>"build", "errortype"=>"configure_error"} + {"origin"=>"devel/valgrind", "phase"=>"configure", "errortype"=>"configure_error"} + {"origin"=>"devel/valgrind-devel", "phase"=>"configure", "errortype"=>"configure_error"} + {"origin"=>"emulators/stella", "phase"=>"configure", "errortype"=>"configure_error"} + {"origin"=>"games/ags", "phase"=>"build", "errortype"=>"???"} + {"origin"=>"games/cataclysm-dda", "phase"=>"build", "errortype"=>"???"} + {"origin"=>"games/nazghul", "phase"=>"build", "errortype"=>"clang"} + {"origin"=>"games/oolite", "phase"=>"build", "errortype"=>"coredump"} + {"origin"=>"games/openttd", "phase"=>"build", "errortype"=>"bad_C++_code"} + {"origin"=>"games/ppracer", "phase"=>"build", "errortype"=>"bad_C++_code"} + {"origin"=>"games/scourge", "phase"=>"build", "errortype"=>"bad_C++_code"} + {"origin"=>"games/simutrans", "phase"=>"build", "errortype"=>"bad_C++_code"} + {"origin"=>"games/supertux2", "phase"=>"build", "errortype"=>"bad_C++_code"} + {"origin"=>"games/xconq", "phase"=>"build", "errortype"=>"clang"} + {"origin"=>"graphics/dspdfviewer", "phase"=>"build", "errortype"=>"clang_werror"} + {"origin"=>"graphics/enblend", "phase"=>"configure", "errortype"=>"configure_error"} + {"origin"=>"graphics/pixie", "phase"=>"build", "errortype"=>"clang"} + {"origin"=>"lang/myrddin", "phase"=>"stage", "errortype"=>"???"} + {"origin"=>"lang/squirrel", "phase"=>"build", "errortype"=>"bad_C++_code"} + {"origin"=>"lang/swift", "phase"=>"build", "errortype"=>"clang"} + {"origin"=>"multimedia/kodi", "phase"=>"build", "errortype"=>"clang"} + {"origin"=>"multimedia/mpeg4ip", "phase"=>"build", "errortype"=>"clang"} + {"origin"=>"net-mgmt/netxms", "phase"=>"build", "errortype"=>"clang"} + {"origin"=>"net/linknx", "phase"=>"build", "errortype"=>"clang"} + {"origin"=>"net/rsplib", "phase"=>"build", "errortype"=>"clang"} + {"origin"=>"sysutils/osquery", "phase"=>"build", "errortype"=>"clang"} + {"origin"=>"x11-toolkits/mygui", "phase"=>"build", "errortype"=>"clang"} Around 75 new ports skipped, mostly due to devel/qt5-script New failure logs on amd64: http://package18.nyi.freebsd.org/data/headamd64PR219139-default/2017-05-22_13h01m42s/logs/errors/xmill-0.8.log http://package18.nyi.freebsd.org/data/headamd64PR219139-default/2017-05-22_13h01m42s/logs/errors/mac-3.99.4.5.7.log http://package18.nyi.freebsd.org/data/headamd64PR219139-default/2017-05-22_13h01m42s/logs/errors/mous-1.1a_5.log http://package18.nyi.freebsd.org/data/headamd64PR219139-default/2017-05-22_13h01m42s/logs/errors/openvsp-3.11.0_1.log http://package18.nyi.freebsd.org/data/headamd64PR219139-default/2017-05-22_13h01m42s/logs/errors/codeblocks-16.01_6.log http://package18.nyi.freebsd.org/data/headamd64PR219139-default/2017-05-22_13h01m42s/logs/errors/cpprestsdk-2.9.1_1.log http://package18.nyi.freebsd.org/data/headamd64PR219139-default/2017-05-22_13h01m42s/logs/errors/cxxtools-2.2.1_3.log http://package18.nyi.freebsd.org/data/headamd64PR219139-default/2017-05-22_13h01m42s/logs/errors/gcc-arm-embedded-6.3.20170223.log http://package18.nyi.freebsd.org/data/headamd64PR219139-default/2017-05-22_13h01m42s/logs/errors/grpc-1.3.2.log http://package18.nyi.freebsd.org/data/headamd64PR219139-default/2017-05-22_13h01m42s/logs/errors/liblas12-1.2.1.log http://package18.nyi.freebsd.org/data/headamd64PR219139-default/2017-05-22_13h01m42s/logs/errors/ppl-1.2.log http://package18.nyi.freebsd.org/data/headamd64PR219139-default/2017-05-22_13h01m42s/logs/errors/qt5-script-5.7.1.log http://package18.nyi.freebsd.org/data/headamd64PR219139-default/2017-05-22_13h01m42s/logs/errors/rapidjson-1.1.0_1.log http://package18.nyi.freebsd.org/data/headamd64PR219139-default/2017-05-22_13h01m42s/logs/errors/sdl2pp-0.13.0_1.log http://package18.nyi.freebsd.org/data/headamd64PR219139-default/2017-05-22_13h01m42s/logs/errors/sope2-2.3.20.log http://package18.nyi.freebsd.org/data/headamd64PR219139-default/2017-05-22_13h01m42s/logs/errors/sope3-3.2.8.log http://package18.nyi.freebsd.org/data/headamd64PR219139-default/2017-05-22_13h01m42s/logs/errors/valgrind-3.10.1.20160113_4,1.log http://package18.nyi.freebsd.org/data/headamd64PR219139-default/2017-05-22_13h01m42s/logs/errors/valgrind-devel-3.10.1.20160113_4,1.log http://package18.nyi.freebsd.org/data/headamd64PR219139-default/2017-05-22_13h01m42s/logs/errors/stella-4.7.3_1.log http://package18.nyi.freebsd.org/data/headamd64PR219139-default/2017-05-22_13h01m42s/logs/errors/ags-3.4.1.1.log http://package18.nyi.freebsd.org/data/headamd64PR219139-default/2017-05-22_13h01m42s/logs/errors/cataclysm-dda-0.C_1,1.log http://package18.nyi.freebsd.org/data/headamd64PR219139-default/2017-05-22_13h01m42s/logs/errors/nazghul-0.7.1_5.log http://package18.nyi.freebsd.org/data/headamd64PR219139-default/2017-05-22_13h01m42s/logs/errors/oolite-1.84_1.log http://package18.nyi.freebsd.org/data/headamd64PR219139-default/2017-05-22_13h01m42s/logs/errors/openttd-1.7.0.log http://package18.nyi.freebsd.org/data/headamd64PR219139-default/2017-05-22_13h01m42s/logs/errors/ppracer-0.5.a_11.log http://package18.nyi.freebsd.org/data/headamd64PR219139-default/2017-05-22_13h01m42s/logs/errors/scourge-0.21.1_12.log http://package18.nyi.freebsd.org/data/headamd64PR219139-default/2017-05-22_13h01m42s/logs/errors/simutrans-120.2.2.log http://package18.nyi.freebsd.org/data/headamd64PR219139-default/2017-05-22_13h01m42s/logs/errors/supertux2-0.4.0_4.log http://package18.nyi.freebsd.org/data/headamd64PR219139-default/2017-05-22_13h01m42s/logs/errors/xconq-7.5.0.0.p.0.20050612_1.log http://package18.nyi.freebsd.org/data/headamd64PR219139-default/2017-05-22_13h01m42s/logs/errors/dspdfviewer-1.15.1_2.log http://package18.nyi.freebsd.org/data/headamd64PR219139-default/2017-05-22_13h01m42s/logs/errors/enblend-4.1.4_7.log http://package18.nyi.freebsd.org/data/headamd64PR219139-default/2017-05-22_13h01m42s/logs/errors/pixie-2.2.6_13.log http://package18.nyi.freebsd.org/data/headamd64PR219139-default/2017-05-22_13h01m42s/logs/errors/myrddin-0.1.1.log http://package18.nyi.freebsd.org/data/headamd64PR219139-default/2017-05-22_13h01m42s/logs/errors/squirrel-3.1.log http://package18.nyi.freebsd.org/data/headamd64PR219139-default/2017-05-22_13h01m42s/logs/errors/swift-3.1.1.log http://package18.nyi.freebsd.org/data/headamd64PR219139-default/2017-05-22_13h01m42s/logs/errors/kodi-17.1_1.log http://package18.nyi.freebsd.org/data/headamd64PR219139-default/2017-05-22_13h01m42s/logs/errors/mpeg4ip-1.6.1_35.log http://package18.nyi.freebsd.org/data/headamd64PR219139-default/2017-05-22_13h01m42s/logs/errors/netxms-2.0.7.log http://package18.nyi.freebsd.org/data/headamd64PR219139-default/2017-05-22_13h01m42s/logs/errors/linknx-0.0.1.32.log http://package18.nyi.freebsd.org/data/headamd64PR219139-default/2017-05-22_13h01m42s/logs/errors/rsplib-3.0.2_2.log http://package18.nyi.freebsd.org/data/headamd64PR219139-default/2017-05-22_13h01m42s/logs/errors/osquery-2.4.4.log http://package18.nyi.freebsd.org/data/headamd64PR219139-default/2017-05-22_13h01m42s/logs/errors/mygui-3.2.2_2.log
Exp-run results on i386: http://package18.nyi.freebsd.org/build.html?mastername=headi386PR219139-default&build=2017-05-24_18h58m04s New failures on i386: + {"origin"=>"archivers/xmill", "phase"=>"build", "errortype"=>"clang"} + {"origin"=>"audio/mac", "phase"=>"build", "errortype"=>"clang"} + {"origin"=>"audio/mous", "phase"=>"build", "errortype"=>"clang"} + {"origin"=>"cad/openvsp", "phase"=>"build", "errortype"=>"bad_C++_code"} + {"origin"=>"devel/codeblocks", "phase"=>"build", "errortype"=>"bad_C++_code"} + {"origin"=>"devel/cpprestsdk", "phase"=>"build", "errortype"=>"clang_werror"} + {"origin"=>"devel/cxxtools", "phase"=>"build", "errortype"=>"???"} + {"origin"=>"devel/gcc-arm-embedded", "phase"=>"build", "errortype"=>"clang"} + {"origin"=>"devel/grpc", "phase"=>"build", "errortype"=>"clang"} + {"origin"=>"devel/liblas12", "phase"=>"build", "errortype"=>"clang"} + {"origin"=>"devel/ppl", "phase"=>"build", "errortype"=>"coredump"} + {"origin"=>"devel/qt5-script", "phase"=>"build", "errortype"=>"clang"} + {"origin"=>"devel/rapidjson", "phase"=>"build", "errortype"=>"clang_werror"} + {"origin"=>"devel/sdl2pp", "phase"=>"build", "errortype"=>"clang_werror"} + {"origin"=>"devel/sope2", "phase"=>"build", "errortype"=>"configure_error"} + {"origin"=>"devel/sope3", "phase"=>"build", "errortype"=>"configure_error"} + {"origin"=>"devel/valgrind", "phase"=>"configure", "errortype"=>"configure_error"} + {"origin"=>"devel/valgrind-devel", "phase"=>"configure", "errortype"=>"configure_error"} + {"origin"=>"emulators/qemu", "phase"=>"build", "errortype"=>"coredump"} + {"origin"=>"emulators/qemu-riscv", "phase"=>"build", "errortype"=>"coredump"} + {"origin"=>"emulators/stella", "phase"=>"configure", "errortype"=>"configure_error"} + {"origin"=>"games/ags", "phase"=>"build", "errortype"=>"???"} + {"origin"=>"games/cataclysm-dda", "phase"=>"build", "errortype"=>"???"} + {"origin"=>"games/nazghul", "phase"=>"build", "errortype"=>"clang"} + {"origin"=>"games/oolite", "phase"=>"build", "errortype"=>"coredump"} + {"origin"=>"games/openttd", "phase"=>"build", "errortype"=>"bad_C++_code"} + {"origin"=>"games/ppracer", "phase"=>"build", "errortype"=>"bad_C++_code"} + {"origin"=>"games/scourge", "phase"=>"build", "errortype"=>"bad_C++_code"} + {"origin"=>"games/simutrans", "phase"=>"build", "errortype"=>"bad_C++_code"} + {"origin"=>"games/supertux2", "phase"=>"build", "errortype"=>"bad_C++_code"} + {"origin"=>"games/xconq", "phase"=>"build", "errortype"=>"clang"} + {"origin"=>"graphics/dspdfviewer", "phase"=>"build", "errortype"=>"clang_werror"} + {"origin"=>"graphics/pixie", "phase"=>"build", "errortype"=>"clang"} + {"origin"=>"lang/squirrel", "phase"=>"build", "errortype"=>"bad_C++_code"} + {"origin"=>"multimedia/kodi", "phase"=>"build", "errortype"=>"clang"} + {"origin"=>"multimedia/mpeg4ip", "phase"=>"build", "errortype"=>"clang"} + {"origin"=>"net-mgmt/netxms", "phase"=>"build", "errortype"=>"clang"} + {"origin"=>"net/linknx", "phase"=>"build", "errortype"=>"clang"} + {"origin"=>"net/rsplib", "phase"=>"build", "errortype"=>"clang"} + {"origin"=>"sysutils/osquery", "phase"=>"build", "errortype"=>"clang"} + {"origin"=>"x11-toolkits/mygui", "phase"=>"build", "errortype"=>"clang"} New failure logs on i386: http://package18.nyi.freebsd.org/data/headi386PR219139-default/2017-05-24_18h58m04s/logs/errors/xmill-0.8.log http://package18.nyi.freebsd.org/data/headi386PR219139-default/2017-05-24_18h58m04s/logs/errors/mac-3.99.4.5.7.log http://package18.nyi.freebsd.org/data/headi386PR219139-default/2017-05-24_18h58m04s/logs/errors/mous-1.1a_5.log http://package18.nyi.freebsd.org/data/headi386PR219139-default/2017-05-24_18h58m04s/logs/errors/openvsp-3.11.0_1.log http://package18.nyi.freebsd.org/data/headi386PR219139-default/2017-05-24_18h58m04s/logs/errors/codeblocks-16.01_6.log http://package18.nyi.freebsd.org/data/headi386PR219139-default/2017-05-24_18h58m04s/logs/errors/cpprestsdk-2.9.1_1.log http://package18.nyi.freebsd.org/data/headi386PR219139-default/2017-05-24_18h58m04s/logs/errors/cxxtools-2.2.1_3.log http://package18.nyi.freebsd.org/data/headi386PR219139-default/2017-05-24_18h58m04s/logs/errors/gcc-arm-embedded-6.3.20170223.log http://package18.nyi.freebsd.org/data/headi386PR219139-default/2017-05-24_18h58m04s/logs/errors/grpc-1.3.2.log http://package18.nyi.freebsd.org/data/headi386PR219139-default/2017-05-24_18h58m04s/logs/errors/liblas12-1.2.1.log http://package18.nyi.freebsd.org/data/headi386PR219139-default/2017-05-24_18h58m04s/logs/errors/ppl-1.2.log http://package18.nyi.freebsd.org/data/headi386PR219139-default/2017-05-24_18h58m04s/logs/errors/qt5-script-5.7.1.log http://package18.nyi.freebsd.org/data/headi386PR219139-default/2017-05-24_18h58m04s/logs/errors/rapidjson-1.1.0_1.log http://package18.nyi.freebsd.org/data/headi386PR219139-default/2017-05-24_18h58m04s/logs/errors/sdl2pp-0.13.0_1.log http://package18.nyi.freebsd.org/data/headi386PR219139-default/2017-05-24_18h58m04s/logs/errors/sope2-2.3.20.log http://package18.nyi.freebsd.org/data/headi386PR219139-default/2017-05-24_18h58m04s/logs/errors/sope3-3.2.8.log http://package18.nyi.freebsd.org/data/headi386PR219139-default/2017-05-24_18h58m04s/logs/errors/valgrind-3.10.1.20160113_4,1.log http://package18.nyi.freebsd.org/data/headi386PR219139-default/2017-05-24_18h58m04s/logs/errors/valgrind-devel-3.10.1.20160113_4,1.log http://package18.nyi.freebsd.org/data/headi386PR219139-default/2017-05-24_18h58m04s/logs/errors/qemu-2.8.1.log http://package18.nyi.freebsd.org/data/headi386PR219139-default/2017-05-24_18h58m04s/logs/errors/qemu-riscv-2.7.50_20170306.log http://package18.nyi.freebsd.org/data/headi386PR219139-default/2017-05-24_18h58m04s/logs/errors/stella-4.7.3_1.log http://package18.nyi.freebsd.org/data/headi386PR219139-default/2017-05-24_18h58m04s/logs/errors/ags-3.4.1.1.log http://package18.nyi.freebsd.org/data/headi386PR219139-default/2017-05-24_18h58m04s/logs/errors/cataclysm-dda-0.C_1,1.log http://package18.nyi.freebsd.org/data/headi386PR219139-default/2017-05-24_18h58m04s/logs/errors/nazghul-0.7.1_5.log http://package18.nyi.freebsd.org/data/headi386PR219139-default/2017-05-24_18h58m04s/logs/errors/oolite-1.84_1.log http://package18.nyi.freebsd.org/data/headi386PR219139-default/2017-05-24_18h58m04s/logs/errors/openttd-1.7.0.log http://package18.nyi.freebsd.org/data/headi386PR219139-default/2017-05-24_18h58m04s/logs/errors/ppracer-0.5.a_11.log http://package18.nyi.freebsd.org/data/headi386PR219139-default/2017-05-24_18h58m04s/logs/errors/scourge-0.21.1_12.log http://package18.nyi.freebsd.org/data/headi386PR219139-default/2017-05-24_18h58m04s/logs/errors/simutrans-120.2.2.log http://package18.nyi.freebsd.org/data/headi386PR219139-default/2017-05-24_18h58m04s/logs/errors/supertux2-0.4.0_4.log http://package18.nyi.freebsd.org/data/headi386PR219139-default/2017-05-24_18h58m04s/logs/errors/xconq-7.5.0.0.p.0.20050612_1.log http://package18.nyi.freebsd.org/data/headi386PR219139-default/2017-05-24_18h58m04s/logs/errors/dspdfviewer-1.15.1_2.log http://package18.nyi.freebsd.org/data/headi386PR219139-default/2017-05-24_18h58m04s/logs/errors/pixie-2.2.6_13.log http://package18.nyi.freebsd.org/data/headi386PR219139-default/2017-05-24_18h58m04s/logs/errors/squirrel-3.1.log http://package18.nyi.freebsd.org/data/headi386PR219139-default/2017-05-24_18h58m04s/logs/errors/kodi-17.1_1.log http://package18.nyi.freebsd.org/data/headi386PR219139-default/2017-05-24_18h58m04s/logs/errors/mpeg4ip-1.6.1_35.log http://package18.nyi.freebsd.org/data/headi386PR219139-default/2017-05-24_18h58m04s/logs/errors/netxms-2.0.7.log http://package18.nyi.freebsd.org/data/headi386PR219139-default/2017-05-24_18h58m04s/logs/errors/linknx-0.0.1.32.log http://package18.nyi.freebsd.org/data/headi386PR219139-default/2017-05-24_18h58m04s/logs/errors/rsplib-3.0.2_2.log http://package18.nyi.freebsd.org/data/headi386PR219139-default/2017-05-24_18h58m04s/logs/errors/osquery-2.4.4.log http://package18.nyi.freebsd.org/data/headi386PR219139-default/2017-05-24_18h58m04s/logs/errors/mygui-3.2.2_2.log Around 75 new ports skipped, mostly due to devel/qt5-script
Submitted bug 220188 for devel/qt5-script.
Submitted bug 220189 for x11-toolkits/mygui.
The following have been fixed in the mean time: archivers/xmill min/max issue, works as of r319479 (libc++ r304460) audio/mac min/max issue, works as of r319479 (libc++ r304460) audio/mous min/max issue, works as of r319479 (libc++ r304460)
The following cause an llvm assertion, this has been submitted upstream as https://bugs.llvm.org/show_bug.cgi?id=33653 : devel/sope2 llvm assertion, upstream bug devel/sope3 llvm assertion, upstream bug
Submitted bug 218856 for devel/valgrind and devel/valgrind-devel.
Submitted bug 220388 for devel/rapidjson.
Submitted bug 220389 for devel/sdl2pp.
It seems /usr/bin/c++ either hangs or loops infinitely while building old versions of llvm: http://gohan2.ysv.freebsd.org/data/head-amd64-default-baseline/p446433_s321376/logs/errors/llvm35-3.5.2_4.log http://gohan2.ysv.freebsd.org/data/head-amd64-default-baseline/p446433_s321376/logs/errors/llvm38-3.8.1_8.log http://gohan2.ysv.freebsd.org/data/head-amd64-default-baseline/p446433_s321376/logs/errors/llvm-cheri-3.8.d20160808_2.log
(In reply to Antoine Brodin from comment #13) > It seems /usr/bin/c++ either hangs or loops infinitely while building old > versions of llvm: > > http://gohan2.ysv.freebsd.org/data/head-amd64-default-baseline/ > p446433_s321376/logs/errors/llvm35-3.5.2_4.log > http://gohan2.ysv.freebsd.org/data/head-amd64-default-baseline/ > p446433_s321376/logs/errors/llvm38-3.8.1_8.log > http://gohan2.ysv.freebsd.org/data/head-amd64-default-baseline/ > p446433_s321376/logs/errors/llvm-cheri-3.8.d20160808_2.log I can reproduce this, bisecting where this got introduced upstream, so I can file a bug there.
There is an assertion failure when building graphics/libchamplain : http://gohan2.ysv.freebsd.org/data/head-amd64-default-baseline/p446433_s321376/logs/errors/libchamplain-0.12.15.log
A commit references this bug: Author: dim Date: Fri Jul 28 20:13:25 UTC 2017 New revision: 321664 URL: https://svnweb.freebsd.org/changeset/base/321664 Log: Pull in r308891 from upstream llvm trunk (by Benjamin Kramer): [CodeGenPrepare] Cut off FindAllMemoryUses if there are too many uses. This avoids excessive compile time. The case I'm looking at is Function.cpp from an old version of LLVM that still had the giant memcmp string matcher in it. Before r308322 this compiled in about 2 minutes, after it, clang takes infinite* time to compile it. With this patch we're at 5 min, which is still bad but this is a pathological case. The cut off at 20 uses was chosen by looking at other cut-offs in LLVM for user scanning. It's probably too high, but does the job and is very unlikely to regress anything. Fixes PR33900. * I'm impatient and aborted after 15 minutes, on the bug report it was killed after 2h. Pull in r308986 from upstream llvm trunk (by Simon Pilgrim): [X86][CGP] Reduce memcmp() expansion to 2 load pairs (PR33914) D35067/rL308322 attempted to support up to 4 load pairs for memcmp inlining which resulted in regressions for some optimized libc memcmp implementations (PR33914). Until we can match these more optimal cases, this patch reduces the memcmp expansion to a maximum of 2 load pairs (which matches what we do for -Os). This patch should be considered for the 5.0.0 release branch as well Differential Revision: https://reviews.llvm.org/D35830 These fix a hang (or extremely long compile time) when building older LLVM ports. Reported by: antoine PR: 219139 Changes: head/contrib/llvm/lib/CodeGen/CodeGenPrepare.cpp head/contrib/llvm/lib/Target/X86/X86ISelLowering.cpp
A commit references this bug: Author: dim Date: Sun Jul 30 11:50:17 UTC 2017 New revision: 321719 URL: https://svnweb.freebsd.org/changeset/base/321719 Log: Pull in r309503 from upstream clang trunk (by Richard Smith): PR33902: Invalidate line number cache when adding more text to existing buffer. This led to crashes as the line number cache would report a bogus line number for a line of code, and we'd try to find a nonexistent column within the line when printing diagnostics. This fixes an assertion when building the graphics/champlain port. Reported by: antoine, kwm PR: 219139 Changes: head/contrib/llvm/tools/clang/lib/Lex/ScratchBuffer.cpp
Landed in base r321369 and MFC'd in base r324023.