GCC Newspaper
JUNE 15, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
ada

Ada: Fix build error with POSIX sed

The Ada compiler now builds correctly when using POSIX sed.

The Ada compiler’s build process, which uses sed to create s-intnam.ads, failed when using POSIX-compliant sed due to incorrect syntax for the a, c, and i commands. This commit corrects the syntax to ensure compatibility with POSIX sed implementations, resolving the build error.

In Details

This commit modifies xsintnam.sed to be POSIX-compliant. The script is used to generate s-intnam.ads, an intermediate file in the Ada compilation process. The a, c, and i commands in sed require a newline delimiter after the command, which was missing.

For Context

The Ada compiler uses the sed stream editor as part of its build process. This commit fixes a build error caused by incompatibility between the sed script used to generate an intermediate file and POSIX-compliant sed implementations. The fix ensures that the Ada compiler can be built successfully using a wider range of environments.

Filed Under: adabuildsedposix