Bug 197908 - lang/clang-devel fails to build when we default to GCC 4.9
Summary: lang/clang-devel fails to build when we default to GCC 4.9
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Brooks Davis
Depends on:
Blocks: 196712
  Show dependency treegraph
Reported: 2015-02-22 01:59 UTC by Gerald Pfeifer
Modified: 2015-04-06 21:53 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (brooks)


Note You need to log in before you can comment on or make changes to this bug.
Description Gerald Pfeifer freebsd_committer 2015-02-22 01:59:36 UTC
This is related to PR 196712 and blocks updating the default version of
GCC from 4.8 to 4.9.


llvm[2]: 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
Comment 1 Bugzilla Automation freebsd_committer 2015-02-22 01:59:36 UTC
Auto-assigned to maintainer brooks@FreeBSD.org
Comment 2 Brooks Davis freebsd_committer 2015-02-23 19:31:05 UTC
Is there an easy way to test this?
Comment 3 Gerald Pfeifer freebsd_committer 2015-02-23 21:06:15 UTC
I believe USE_GCC=4.9 in Makefile should allow you to simulate this.

Otherwise PR has an updated patch for "the real change".
Comment 4 Gerald Pfeifer freebsd_committer 2015-02-23 21:10:21 UTC
Make that PR 196712 in the previous comment.  Sorry.
Comment 5 commit-hook freebsd_committer 2015-04-06 21:52:32 UTC
A commit references this bug:

Author: brooks
Date: Mon Apr  6 21:51:38 UTC 2015
New revision: 383482
URL: https://svnweb.freebsd.org/changeset/ports/383482

  Upgrade to r234164.

  PR:		197908 (seems to build with gcc 4.9)

Comment 6 Brooks Davis freebsd_committer 2015-04-06 21:53:06 UTC
I think this should work now.  Please re-open if it doesn't.