Files
RedBear-OS/local/recipes/dev/libclc/source/flang/docs/RuntimeEnvironment.md
T
vasilito cb424d7448 build: static patch-sanity linter (shift-left the malformed-patch class)
verify-patch-sanity.py validates every active recipe .patch has internally-
consistent hunk line counts — catching the 'malformed patch at line N' failure
at commit/CI/preflight time instead of hours into a cook. This cycle hit that
class three times (qtwaylandscanner, sddm, xwayland), each only discovered when
cookbook tried to apply the patch.

Running it across the repo found 29 latent malformed patches (validated against
GNU patch: e.g. relibc/P3-sysv-ipc reproduces 'malformed patch at line 22').
They were harmless only because they sit in vendored recipes (baked, not re-
applied) — but would fail on any version-bump re-derivation. --fix recounts the
hunk headers (body untouched) and repaired all 29.

Wired into build-preflight.sh (Phase 1.0D) and redbear-ci.yml, with a unit test
(test-patch-sanity.sh). Skips archived/legacy trees and unvalidatable formats
(empty placeholders, bare-@@ git hunks).
2026-08-01 05:13:02 +03:00

1.7 KiB

---
local:
---

Environment variables of significance to Fortran execution

A few environment variables are queried by the Fortran runtime support library.

The following environment variables can affect the behavior of Fortran programs during execution.

DEFAULT_UTF8=1

Set DEFAULT_UTF8 to cause formatted external input to assume UTF-8 encoding on input and use UTF-8 encoding on formatted external output.

FORT_CONVERT

Determines data conversions applied to unformatted I/O.

  • NATIVE: no conversions (default)
  • LITTLE_ENDIAN: assume input is little-endian; emit little-endian output
  • BIG_ENDIAN: assume input is big-endian; emit big-endian output
  • SWAP: reverse endianness (always convert)

FORT_CHECK_POINTER_DEALLOCATION

Fortran requires that a pointer that appears in a DEALLOCATE statement must have been allocated in an ALLOCATE statement with the same declared type. The runtime support library validates this requirement by checking the size of the allocated data, and will fail with an error message if the deallocated pointer is not valid. Set FORT_CHECK_POINTER_DEALLOCATION=0 to disable this check.

FORT_FMT_RECL

Set to an integer value to specify the record length for list-directed and NAMELIST output. The default is 72.

NO_STOP_MESSAGE

Set NO_STOP_MESSAGE=1 to disable the extra information about IEEE floating-point exception flags that the Fortran language standard requires for STOP and ERROR STOP statements.