Build and distribution contracts
Configuration shall select C++20 for native C++ compilation and C18 for selected C components, and shall check the required compiler/standard-library facilities in those modes. A selected build shall not silently substitute another language edition. GMP shall provide compatible headers, libraries, the C++ interface and at least version 6.3.0.
If a required prerequisite cannot be established by the applicable checks, configuration shall fail with a diagnostic. Build-machine compile/link checks and target-execution checks shall remain distinguishable; an unexecuted target program shall not be recorded as a successful execution. User compiler, include, library and prefix selections shall be applied consistently to probes and the configured build.
A successful configuration must describe the language modes and arithmetic library used by the actual compilation.
LANGUAGE is omitted because this is a language-neutral external protocol and artifact contract; it contains no implementation-language source.
Input: the source distribution's configure command, compiler environment and documented options including --with-cc, --with-cxx and --with-gmp and their documented include/library alternatives. Output on success: configured Makefiles and configuration headers identifying the selected modes, coefficient profile and required dependencies. Failure: unsuccessful configuration with the missing/incompatible prerequisite identified. Configuration is run in a fresh build directory, with documented external tools available.
Configure and compile from a clean source archive, inspect effective language modes and GMP checks, and reject an unusable compiler and missing GMP selection. Inspect cross-execution branches separately; check quoted/prefixed compiler flags through the registered prefix regression.
configure.ac; m4/ac_check_cxx20.m4; m4/ac_check_gmp.m4; m4/check_ppl_prefix_flags.sh; tests/build_contracts.py.
Configuration shall distinguish build-machine generation tools from headers, libraries and runtime facilities required by selected target components. Explicit requests and automatic detection shall follow their documented failure or disabling policies. Diagnostics and the configured interface/tool set shall identify unavailable prerequisites; disabled components shall not be advertised as enabled. If a specifically named interface cannot be built, configuration shall fail. The default and --enable-interfaces=all shall select the available interfaces.
Selected foreign interfaces shall have compatible runtime development facilities and executable generation tools, including the required M4 and Java header-generation facilities. Optional solver input/checking libraries shall follow their declared selection policies. When requirements documentation is selected, a missing or too-old StrictDoc shall disable requirements HTML export with an explanatory warning rather than fail a library build. Unperformed target-execution checks shall remain distinct from successful checks in cross configurations.
A usable generator on the build machine does not by itself establish that a target component can compile, link or run.
LANGUAGE is omitted because this is a language-neutral external protocol and artifact contract; it contains no implementation-language source.
Input: configure optional interface, instantiation, program and documentation/tool selections, including --enable-interfaces, --enable-instantiations, --enable-ppl_lpsol, --enable-ppl_pips and --with-strictdoc. Output: the enabled component list, configured build conditionals and diagnostics identifying unavailable prerequisites. Only supported combinations and documented tool/runtime search options apply.
Exercise explicit and automatic selections with present/missing prerequisites; compare summaries, Makefiles and installed metadata. Check missing StrictDoc is nonfatal with an actionable warning. Review cross-build generation versus target checks and include a build-tool/target-facility mismatch.
configure.ac; optional-tool macros in m4; tests/build_contracts.py; interface generation capability checks.
make install shall install the configured public headers, native libraries, selected foreign-interface artifacts and client metadata into the selected installation directories. DESTDIR shall stage those paths without becoming part of the intended installed prefix. Installed metadata shall identify the version, coefficient configuration, enabled interfaces and configured binding instantiations, and provide the compilation/linking dependencies required by supported clients. Supported C++ template families and numerical-profile restrictions shall remain available in the installed documentation and headers. The application mode of ppl-config shall report the required client flags. The library mode shall retain the library build's own flags.
An independently built supported client shall compile, link or load using only installed artifacts and documented external dependencies, without source- or build-tree files. Runtime library search paths remain deployment prerequisites. Static and shared artifacts shall follow the selected supported build modes.
An installed library is usable only if its public artifacts and dependency metadata are sufficient independently of its originating tree.
LANGUAGE is omitted because this is a language-neutral external protocol and artifact contract; it contains no implementation-language source.
Protocols: make install, make installcheck and make uninstall; standard installation-directory and DESTDIR selections; installed ppl-config and pkg-config modules; installed public headers and configured language packages. Clients select their documented external compiler/runtime and compatible dependencies.
Install into an isolated prefix, compile/load registered installed clients, check version/configuration/instantiation information and inspect paths for source/build dependencies. Check selected static/shared artifacts, staging and removal separately.
src/Makefile.am; interfaces/Makefile.am; language-interface Makefiles; src/ppl-config.cc.in; interfaces/check_installed.sh; interfaces/check_installed_pkgconfig.py; tests/build_contracts.py.
The source archive shall contain the build descriptions, public and internal source/header inputs, interface-generation templates, selected build support and requirements sources needed to configure and build its supported selected components with documented external prerequisites. No undeclared development checkout file shall be required. Generated outputs may be distributed or recreated from distributed inputs using the declared generation tools.
A freshly unpacked archive shall configure, build and install in a separate build directory. External compilers, runtimes and dependencies need not be bundled. Source distribution completeness and installed-client sufficiency are separate obligations.
Building from the archive exposes omissions hidden by files left in a developer checkout.
LANGUAGE is omitted because this is a language-neutral external protocol and artifact contract; it contains no implementation-language source.
Producer: Automake make dist / selected source-archive targets. Consumer: fresh archive extraction, out-of-tree configure, make and make install with supported selections and documented dependencies. The archive is the only project-source input to that build.
Create and unpack a fresh archive, configure/build/install from it and run installed clients. Check required generation inputs and that compilation does not refer back to the development checkout; exercise configured foreign interfaces as available.
Makefile.am; src/Makefile.am; interfaces/Makefile.am; doc/requirements/Makefile.am; tests/build_contracts.py.