Skip to content

CBMC does not build with clang on ubuntu 22.04 #7366

@esteffin

Description

@esteffin

Building CBMC with clang on ubuntu 22.04 fails.

The issue is that during the compilation of target library-check.stamp at step Checking /root/cbmc/src/ansi-c/library/stdio.c there is an error:

__libcheck.c:859:5: error: definition with same mangled name '__isoc99_fscanf' as another definition
int __isoc99_fscanf

The issue happens with clang-11, clang-12 and clang-13.

The build using gcc instead works.

CBMC version: commit d932d6f
Operating system: Ubuntu 22.04
Exact command line resulting in the issue: make
What behaviour did you expect: A correct build
What happened instead: Error during build

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions