Low-Level Requirements: Build and Distribution
|
Type
|
Level
|
MID
|
UID
|
REFS
|
Title
|
Statement
|
Rationale
|
Comment
|
BIBLIOGRAPHY
|
STATUS
|
COMPONENT
|
APPLICABILITY
|
VERIFICATION_METHODS
|
VERIFICATION_CRITERIA
|
SOURCE
|
LANGUAGE
|
VISIBILITY
|
INTERFACE
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
LLR
|
1 |
|
|
Incoming links from:
4. Optional-component prerequisite identification
10. C++ language baseline
12. C language baseline
3 |
The configuration process shall select and verify C++20 language mode for PPL C++ compilation and, when selected components require C compilation, C18 language mode for those components. It shall establish that the selected compilers and standard libraries support the facilities required by those components, and that a compatible GMP installation provides the required C++ interface and documented minimum supported library version. It shall report an error when a required prerequisite cannot be established by the applicable configuration checks, without silently substituting a different language edition. |
The selected production-language baselines and exact arithmetic depend on explicitly checked compiler modes, required language and standard-library facilities, and a compatible GMP installation. Compiler acceptance of some language constructs alone cannot establish the mode used for the selected build components. |
The documented GMP minimum is version 6.3.0. Cross-compilation does not by itself establish that the target library version matches the headers. Production-language obligations are defined by ๐ 10. C++ language baseline and ๐ 12. C language baseline; they do not automatically define an additional minimum client compilation-language promise. Verification covers compiler-mode selection, required-facility and GMP prerequisite checks, and their failure behavior. Inspection of configuration results, compilation commands and dependency evidence verifies those checks; optional-component prerequisites are covered by ๐ 4. Optional-component prerequisite identification. |
|
|
|
|
|
For supported selections, inspect configuration results and actual compilation commands across the selected components, including generated native bindings, to establish C++20 mode for C++ compilation and C18 mode wherever C compilation is required. Check the required compiler and standard-library facilities, GMP C++ interface, compatibility and documented minimum version. Configuration tests reject unavailable required modes or facilities, missing GMP C++ support and insufficient GMP versions, without silently falling back to another language edition. Cross-compilation evidence distinguishes compile and link checks from checks requiring target execution; an unexecuted target check is not recorded as passed. Review the configuration's error reporting when a required prerequisite cannot be established. |
The sections โUsing the Right Version of GMPโ and โUsing the Right C and C++ Compilersโ in README.configure.md. The language-mode and GMP checks are in configure.ac, m4/ac_check_cxx20.m4 and m4/ac_check_gmp.m4. |
||||
|
LLR
|
2 |
|
|
|
The installation process shall install the public headers, libraries and selected language-interface artifacts needed by a client of the configured build into the selected installation directories. The installed distribution shall make available authoritative information identifying the library version, coefficient configuration, enabled interfaces, configured non-C++ binding instantiations, supported C++ template families and applicable numerical-profile restrictions, and the compilation, linking and runtime dependencies required by its supported clients. A supported client shall be usable without files left in the originating source or build directory. |
Clients must be able to use the installed build without depending on files left in its source or build directory. |
Verification covers installation outputs, installed configuration identification and client compilation, linking and runtime dependency information. Staged-installation client checks verify behavior; direct artifact and metadata inspection verifies completeness and consistency. Runtime search paths and compatible third-party dependencies remain client deployment prerequisites. ๐ 1. Public C++ access to supported facilities owns public C++ facility exposure, not installation packaging. Source-archive completeness is governed by ๐ 3. Source distribution build completeness. |
|
|
|
|
|
Check a staged installation for the selected public artifacts and published configuration information, including version, coefficients, enabled interfaces and configured non-C++ binding instantiations. Review the supported C++ template families and numerical-profile restrictions without requiring enumeration of arbitrary client-created template instances. Compile, link or load representative clients using only the installed artifacts and their documented external dependencies. Check that client compilation and linking information and runtime dependency descriptions match the installed configuration, including static and shared artifacts where supported. |
INSTALL, Installation Names; src/Makefile.am, installed public header and library; interfaces/C/Makefile.am; interfaces/Java/README.java.md; interfaces/OCaml/README.ocaml.md; src/ppl-config.cc.in; interfaces/C/ppl_c_header.h, version and coefficient queries. |
||||
|
LLR
|
3 |
|
|
Incoming link from:
2. Installation of configured public artifacts
1 |
A PPL source distribution shall contain the build descriptions, distributed interface-generation inputs, headers and implementation sources needed to build its selected components with the documented external prerequisites. Its build shall not depend on undistributed files from the development checkout. |
A released archive must be independently buildable rather than relying on the originating developer's workspace. |
Verification covers the source-archive composition and build inputs. Direct distribution-input inspection and builds from independently unpacked archives verify completeness, with evidence identifying selected components and external prerequisites. Third-party compilers, runtimes and arithmetic libraries need not be bundled. Installed-client behavior is governed separately by ๐ 2. Installation of configured public artifacts. |
|
|
|
|
|
Build and installation checks succeed from a freshly unpacked distribution in a separate directory with only the documented external prerequisites; review covers the distributed inputs of generated interfaces. |
README.configure.md, The Standard Thing and Using the Git Sources; Makefile.am, distribution inputs; interfaces/Makefile.am; interfaces/C/Makefile.am; src/Makefile.am. |
||||
|
LLR
|
4 |
|
|
Incoming links from:
3. Consistent binding type dependencies
1. Core build prerequisite validation
2 |
For each selected optional component, configuration shall establish the required generation tools executable on the build machine, and runtime development facilities, headers and libraries compatible with the component's execution environment. During cross-compilation, build-machine tool checks shall remain distinct from target-facility checks, and an unperformed target-execution check shall not be treated as successful. When prerequisites are unavailable, the configuration process shall follow its declared rejection or automatic-disabling policy and identify which components are enabled or disabled and why. It shall not silently advertise a component set different from the one it actually configures. |
Core compiler and GMP validation alone cannot establish that optional language interfaces or distributed tools can be generated, built and used. A generation tool running on the build machine and a runtime library for the target component serve different roles; availability of one does not establish compatibility of the other. |
Verification covers optional-component selection, prerequisite checks, unavailable-component diagnostics and resulting feature identification. Configuration scenario checks verify behavior; direct review of dependency checks and selection records verifies coverage. ๐ 1. Core build prerequisite validation owns core language and GMP prerequisites, ๐ 3. Consistent binding type dependencies owns generated-type dependencies, and ๐ 2. Installation of configured public artifacts owns installed-client information. No additional runtime or generation dependency is required for a component that is not selected. |
|
|
|
|
|
Exercise representative explicit selections and automatic detection with available and missing prerequisites, including non-C++ binding generation tools, Java native-header generation, selected OCaml and Prolog runtime dependencies, and optional tool input libraries. Inspect diagnostics and the resulting enabled component set. During cross-compilation, distinguish generation-tool execution on the build machine from target header, link and runtime checks; check that target execution not performed is recorded as unresolved rather than passed. Include a case with usable build tools but incompatible target development facilities. Compare published installation metadata with the actual configured result. |
README.configure.md: Configuring the Language Interfaces and Programs that Come with the Library; configure.ac: optional interface, M4, runtime and tool selection; interfaces/Java/README.java.md; interfaces/OCaml/README.ocaml.md; interfaces/Prolog/Prolog_interface.dox; demos/ppl_lpsol/Makefile.am: optional input-library linkage. |