Coverity 2021.01: Supported Platforms, Languages, and Compilers

Note: Support for all supported Coverity versions was previously represented on a single page. We've simplified by creating a single page for each supported version of Coverity.
Note: Coverity 2021.01 is a special release for Polaris. When consulting Coverity documentation, use the guides for Coverity 2020.12.
Note: Install the latest version of Polaris Scan Client (1.12.X) if you plan to upgrade to Coverity 2021.01. Older CLI versions do not support Coverity 2021.01.

Platforms

Coverity 2021.01 Notes
Linux 64-bit kernel, version 2.6.32 and later with glibc 2.12-2.27

Linux Platform Support Notes

  • Debian GNU/kFreeBSD is not supported.
  • Deprecation notice: Support for glibc versions 2.12-2.16 is deprecated as of Coverity 2021.01 and will be removed in a future release.
macOS OSX 10.13, 10.14 10.15

macOS Platform Support Notes

  • Deprecation notice: Support for macOS 10.13 has been deprecated as of 2020.06.
  • C# support on macOS is limited to Unity 2018.3 projects using the Unity Roslyn compiler

Windows x86_64, Version 8.1 and later and Windows Server 2012 R2 and later

Windows Platform Support Notes

  • Coverity Analysis for C# and Visual Basic supports analysis of programs compiled by the Visual C# compiler (csc.exe) and Visual Basic compiler (vbc.exe) from .NET Framework versions 3.5 SP1 and 4.5.2–4.8.
  • Coverity tools run notably slower on Windows than on other operating systems, such as Linux.

Language Support

Capture mode Platforms Versions Notes
C/C++
  • Build capture

Windows

macOS

Linux

See compiler info below

C++98 C++03 C++11 C++14 C++17 C89 C99 C11
C#
  • Build capture
  • Buildless capture

Windows

LInux

See compiler info below

Up to C# 8
Objective C
  • Build capture

Windows

macOS

Linux

See compiler info below

NA
Go
  • Build capture

Windows

macOS

Linux

See compiler info below

Go 1.13–1.14.x Support for Go 1.13 is deprecated as of Coverity 2021.01 and will be removed in a future release.
Java
  • Build capture
  • Buildless capture
  • Filesystem capture

Windows

macOS

Linux

See compiler info below

Up to Java 14 Although Coverity is able to support compilers spanning multiple JDK versions, Coverity Analysis requires Oracle Java SE Runtime Environment 8 (JRE-8).
JavaScript
  • Buildless capture
  • Filesystem capture

Windows

macOS

Linux

ECMAScript 5–11
  • ECMAScript 11 is also known as ECMAScript 2020.
  • Coverity supports the execution of JSHint analyses (through Coverity Analysis for JavaScript) on platforms supported by Node.js 8.11.1.
Kotlin
  • Build capture

Windows

macOS

Linux

See compiler info below

Kotlin 1.3–1.3.71 Coverity supports the execution of Detekt analysis (through Coverity Analysis for Kotlin) and requires Oracle Java SE Runtime Environment 8 (JRE 8) platform support.
PHP
  • Buildless capture
  • Filesystem capture

Windows

macOS

Linux

PHP 5.5.x PHP 5.6.x PHP 7.0.0 Support for PHP 5.x is deprecated as of Coverity 2021.01 and will be removed in a future release.
Python
  • Buildless capture
  • Filesystem capture

Windows

macOS

Linux

Python 2.7.x and 3.x– 3.8 Support for Python 2.7 is deprecated as of Coverity 2021.01 and will be removed in a future release.
Ruby
  • Buildless capture
  • Filesystem capture

Windows

macOS

Linux

Matz's Reference Impl. (MRI) 1.9.2–2.5.1 and equivalents
Swift
  • Build capture

macOS

See compiler info below

Swift 5.3 Support for Swift 5.2 has been dropped as of Coverity 2021.01. Along with this, support for Xcode 11.4.x has been dropped. (Use Swift 5.3.x. and Xcode 12.0.x)
Visual Basic
  • Build capture

Windows

See compiler info below

Up to Visual Basic 16

C/C++ Compiler Support

Supported Compilers Notes
Linux

LLVM Clang3.7–11.0

Android NDK Clang 3.1–3.4 (NDK revisions r8c-r9d)

FSF GCC4.0–10.1.0

LLVM

  • Clang compilers have various use limitations with Coverity products, which are listed in the Coverity Analysis User and Administrator Guide.
  • Coverity Analysis supports the MISRA C:2004 and MISRA C:2012 compliance standards for Clang compilers.
  • MISRA C:2012 rule 1.1 ensures that the analyzed program is compliant with the C standard. The Clang compiler uses different parse warnings and error messages than cov-emit uses. You might encounter minor discrepancies between the enforcement of rule 1.1 by the Clang compiler and cov-emit.
  • Deprecation Notice: Support for LLVM Clang 3.7 is deprecated as of Coverity 2021.01 and will be removed in a future release.

GCC

  • ISO/IEC TR 18037 fixed point extensions are supported for C (not C++) code.
  • Versions of any of these compilers that are modified to accept non-standard syntax are not supported.
  • GNU GCC compilers distributed with Apple Xcode are not supported.

clang

  • Clang 3.3 with Android NDK r9d is not supported, please use clang 3.4 instead.

MSVC

  • Managed C++ and Common Language Runtime (CLR) are not supported. Compilations with switches beginning with "/CLR" will be skipped.
  • The compiler version can be determined by running the compiler (`cl`) on the command line, which returns detailed information.
macOS

LLVM Clang 3.7–11.0

Android NDK Clang 3.1-3.4 (NDK revisions r8c-r9d)

FSF GCC 4.0–10.1.0

Windows

LLVM Clang 3.7–11.0

Android NDK Clang 3.1–3.4 (NDK revisions r8c-r9d)

FSF GCC 4.0–10.1.0

Microsoft Visual C++ 2013-2019

C# Compiler Support

Coverity 2021.01 Notes
Linux .NET Core 2.1 and 3.1
macOS Not supported
Windows

Visual Studio 2013, 2015, 2017, 2019

.NET Core 2.1 and 3.1

Language version up to C# 8

C# Compiler Support Notes

  • Visual Studio Express editions are not supported.
  • Coverity supports analysis of Windows RT applications.
  • The following KBs must be installed to avoid errors when capturing .NET Core projects or analyzing .NET web applications: For Windows 8.1 or Windows Server 2012, R2 : KB2999226

Objective C Support

Coverity 2021.01 Notes
Linux Not supported
macOS LLVM Clang 3.7–11.0
Windows Not supported

Go Compiler Support

Coverity 2021.01 Notes
Linux Go compiler 1.13-1.14.X
  • Coverity only supports projects that are built with the following commands: go build, go install, go run, and go test. Coverity does not support projects that are built by invoking either go tool compile or gccgo directly.
  • Coverity does not directly recognize custom flags and arguments of go run or go test. In order for Coverity to recognize these custom flags and arguments, you must modify config/templates/ go/go_switches.dat.
  • The cov-emit-go command might have dependencies on external tools, depending on the Go code being compiled. Refer to the cov-emit-go command in the Coverity Command Reference for details.
  • Deprecation Notice: Support for Go 1.13 is deprecated as of Coverity 2021.01 and will be removed in a future release.
macOS Go compiler 1.13-1.14.X
Windows Go compiler 1.13-1.14.X

Java Compiler Support

Coverity 2021.01 Notes
Linux

Sun/Oracle JDK 1.7–1.8, 11, 14

OpenJDK 1.8, 11, 14

  • JDK 1.7 is not supported on Windows 10.
  • Deprecation Notice: Support for Open JDK 14 has been deprecated as of Coverity 2021.01 and will be removed in a future release.
  • Deprecation Notice: Support for Oracle JDK 14 has been deprecated as of Coverity 2021.01 and will be removed in a future release.
  • Coverity does not support Oracle JRockit JDK
macOS Sun/Oracle JDK 1.7–1.8, 11, 14
Windows

Sun/Oracle JDK 1.7–1.8, 11, 14

OpenJDK 1.8, 11, 14

Kotlin Compiler Support

Coverity 2021.01 Notes
Linux Kotlin 1.3 - 1.3.71
  • Coverity only supports Kotlin projects that are targeted to JVM or Android, not other platforms. For multiplatform projects, Coverity only captures Kotlin source files that are targeted to the supported platforms.
macOS Kotlin 1.3 - 1.3.71
Windows Kotlin 1.3 - 1.3.71

Swift Compiler Support

Coverity 2021.01 Notes
Linux Not supported
macOS

Compiler: Swift 5.3.x

IDE: Xcode 12.0.x

Minimum HostOS: 10.15.4

  • Cross-compilation using Mac Catalyst is not supported.
  • Coverity Analysis supports Swift compiler invocations via xcodebuild. Swift Package Manager is not supported.
  • When using xcodebuild - UseModernBuildSystem=NO option must be set to emulate legacy capture behavior.
Windows Not supported

Visual Basic Compiler Support

Coverity 2021.01 Notes
Linux Not Supported
macOS Not Supported
Windows

Visual Studio 2013-2019

Compiler .NET Core 3.1

  • Visual Studio Express editions are not supported.
  • The following KBs must be installed to avoid errors when capturing .NET Core projects or analyzing .NET web applications: For Windows 8.1 or Windows Server 2012 R2: KB2999226

For More Details about Coverity Requirements

To find out more about platform and compiler compatibility, see the Deployment and Installation Guide for this Coverity release (requires login).