BSD Ports

devel/csmith 2.3.0.127 FreeBSD

Generates random C programs that conform to the C99 standard

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
b4850e1583
License
BSD2CLAUSE
Categories
devel
Package size
281.2 KiB, 929.8 KiB installed

Description

Csmith is a tool that can generate random C programs that statically and dynamically conform to the C99 standard. Thus, it is useful for stress-testing compilers, static analyzers, and other tools that process C code. Csmith has found bugs in every tool that it has tested, and over the last several years we have used it to find and report more than 350 previously-unknown compiler bugs.

In the other systems

SystemPortVersion
FreeBSDdevel/csmith2.3.0.127
OpenBSDdevel/csmith2.4.0p0
NetBSDlang/csmith2.3.0nb1
DragonFlydevel/csmith2.3.0

Install

Binary package:

pkg install csmith

From the ports tree:

cd /usr/ports/devel/csmith/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	csmith>0:devel/csmith
LIB_DEPENDS=	libcsmith.so:devel/csmith

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest2.3.0.1272.3.0.1272.3.02.3.0.792.3.0.127
FreeBSD:14:quarterly2.3.0.1272.3.0.127n/a2.3.0.792.3.0.127
FreeBSD:15:latest2.3.0.1272.3.0.127n/a2.3.0.792.3.0.79
FreeBSD:15:quarterly2.3.0.1272.3.0.127n/an/an/a
FreeBSD:16:latest2.3.0.1272.3.0.127n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 15
Run dependencies 1

No port depends on this one.

Configuration

Options name: devel_csmith

OptionDefaultDescription
DOCSoffBuild and/or install documentation
USES
cmake localbase perl5 shebangfix
Service scripts
none

Files

pkg-plist 28
  • bin/compiler_test.in
  • bin/compiler_test.pl
  • bin/csmith
  • bin/launchn.pl
  • include/csmith.h
  • include/csmith_minimal.h
  • include/custom_limits.h
  • include/custom_stdint_x86.h
  • include/platform_avr.h
  • include/platform_generic.h
  • include/platform_msp430.h
  • include/random_inc.h
  • include/safe_abbrev.h
  • include/safe_math.h
  • include/safe_math_macros.h
  • include/safe_math_macros_notmp.h
  • include/stdint_avr.h
  • include/stdint_ia32.h
  • include/stdint_ia64.h
  • include/stdint_msp430.h
  • include/volatile_runtime.c
  • include/volatile_runtime.h
  • include/windows/stdint.h
  • lib/libcsmith.a
  • lib/libcsmith.so
  • lib/libcsmith.so.0
  • lib/libcsmith.so.0.0.0
  • share/doc/csmith/probabilities.txt
distinfo 1
FileSizeSHA256
csmith-project-csmith-csmith-2.3.0-127-g0cdc710_GH0.tar.gz330742bcce0284fa8efa6f1d820523085a54f750169af15198c705b72839f9ae9a4230

Commit history 1

DateCommitCreditsLog message
b4850e1583 Robert Clausecker devel/csmith: update to 2.3.0-127-g0cdc710
This fixes a build error cropping up due to clang getting stricter with enum type checking. Changelog: https://github.com/csmith-project/csmith/commits/0cdc710315cfee9035e22ef4363ca479270d1934 MFH: 2026Q3