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
URL:
Keywords:
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)


Attachments

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.

http://package18.nyi.freebsd.org/data/93i386-default-PR196712/2015-01-18_16h49m19s/logs/errors/clang-devel-3.6.r225991.log

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

Log:
  Upgrade to r234164.

  PR:		197908 (seems to build with gcc 4.9)

Changes:
  head/devel/llvm-devel/Makefile
  head/devel/llvm-devel/Makefile.svn_rev
  head/devel/llvm-devel/distinfo
  head/devel/llvm-devel/pkg-plist
  head/lang/clang-devel/Makefile
  head/lang/clang-devel/distinfo
  head/lang/clang-devel/files/patch-tools_clang_lib_Analysis_PrintfFormatString.cpp
  head/lang/clang-devel/pkg-plist
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.