[Bug 215566] devel/llvm37: scan-build37 expects to find gcc and fails on 11.0

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Dec 26 03:49:40 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215566

            Bug ID: 215566
           Summary: devel/llvm37: scan-build37 expects to find gcc and
                    fails on 11.0
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: brooks at FreeBSD.org
          Reporter: bruce.cran at gmail.com
             Flags: maintainer-feedback?(brooks at FreeBSD.org)
          Assignee: brooks at FreeBSD.org

Trying to run scan-build37 from the devel/llvm37 port results in an error:

Can't exec "gcc": No such file or directory at
/usr/local/llvm37/bin/../libexec/ccc-analyzer line 459.

Strangely the description at the top of ccc-analyzer says:

> #  A script designed to interpose between the build system and gcc.  It invokes
> #  both gcc and the static analyzer.

I don't know why it doesn't mention clang. But, later on there's:
`
if (`uname -a` =~ m/Darwin/) {
  $DefaultCCompiler = 'clang';
  $DefaultCXXCompiler = 'clang++';
  # Older versions of OSX do not have xcrun to
  # query the SDK location.
  if (-x "/usr/bin/xcrun") {
    $UseXCRUN = 1;
  }
} else {
  $DefaultCCompiler = 'gcc';
  $DefaultCXXCompiler = 'g++';
}
`

Since FreeBSD now uses clang by default too, should the 'if' clause be updated?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list