Created attachment 195658 [details] fix /etc/make.conf # Retpoline speculative execution vulnerability mitigation (CVE-2017-5715) CFLAGS+=-mretpoline CXXFLAGS+=-mretpoline COPTFLAGS+=-mretpoline Now all ports with USE_GCC fail. Patch fix it.
Got it, and thanks for proposing a patch. I'm looking into putting this at a slightly different location of bsd.port.mk since at one point in the future we may need to make this (and similar ones) specific to the version of GCC chosen. For now I have improved the debugging output provided by `make test-gcc` and plan on committing your patch, which I already tested, only later in the flow of bsd.gcc.mk.
A commit references this bug: Author: gerald Date: Sun Aug 5 13:30:30 UTC 2018 New revision: 476413 URL: https://svnweb.freebsd.org/changeset/ports/476413 Log: Filter -mretpoline, which is specific to clang and not supported by GCC, from CFLAGS and CXXFLAGS. This also establishes a good place where to add any additional such cases in the future. PR: 230200 Submitted by: rozhuk.im@gmail.com Changes: head/Mk/bsd.gcc.mk
This commit should do the job. Please advise if you see anything we should look into still. Thank you for the solid report and patch!
Thanks, looks works fine.