This is related to PR 196712 and blocks updating the default version of
GCC from 4.8 to 4.9.
llvm: Compiling MSVCToolChain.cpp for Release build
MSVCToolChain.cpp: In member function 'bool clang::driver::toolchains::MSVCToolChain::getWindowsSDKDir(std::string&, int&, int&) const':
MSVCToolChain.cpp:215:5: error: '::sscanf' has not been declared
::sscanf(sdkVersion.c_str(), "v%d.%d", &major, &minor);
rm: /wrkdirs/usr/ports/lang/clang-devel/work/llvm-3.6.r225991/tools/clang/lib/Driver/Release/MSVCToolChain.d.tmp: No such file or directory
/wrkdirs/usr/ports/lang/clang-devel/work/llvm-3.6.r225991/Makefile.rules:1514: recipe for target '/wrkdirs/usr/ports/lang/clang-devel/work/llvm-3.6.r225991/tools/clang/lib/Driver/Release/MSVCToolChain.o' failed
Auto-assigned to maintainer brooks@FreeBSD.org
Is there an easy way to test this?
I believe USE_GCC=4.9 in Makefile should allow you to simulate this.
Otherwise PR has an updated patch for "the real change".
Make that PR 196712 in the previous comment. Sorry.
A commit references this bug:
Date: Mon Apr 6 21:51:38 UTC 2015
New revision: 383482
Upgrade to r234164.
PR: 197908 (seems to build with gcc 4.9)
I think this should work now. Please re-open if it doesn't.