Skip to content

Conversation

@octo-sts
Copy link
Contributor

@octo-sts octo-sts bot commented Dec 25, 2025

Commit: 3820c34dfc2db888fb805244b855c70b6f842977

Note: If you need to make manual changes to this PR, apply the skip:staging-update-bot label so the reconciler won't overwrite them.

@octo-sts octo-sts bot added automated pr request-version-update request for a newer version of a package execline labels Dec 25, 2025
@octo-sts
Copy link
Contributor Author

octo-sts bot commented Dec 25, 2025

📦 Build Failed: Missing Dependency

src/execline/emptyenv.c:9:10: fatal error: skalibs/prog.h: No such file or directory

Build Details

Category Details
Build System make
Failure Point Compilation of src/execline/emptyenv.c

Root Cause Analysis 🔍

The skalibs header file 'skalibs/prog.h' cannot be found during compilation. While skalibs and skalibs-dev packages are installed, the header files are not accessible to the compiler, likely due to incorrect include paths or incomplete installation of the skalibs development headers.


🔍 Build failure fix suggestions

Found similar build failures that have been fixed in the past and analyzed them to suggest a fix:

Suggested Changes

File: execline.yaml

  • modification at line line containing skalibs-dev (environment.contents.packages section)
    Original:
      - skalibs-dev

Replacement:

      - skalibs
      - skalibs-dev

Content:

Add skalibs runtime package alongside skalibs-dev
  • addition at line before ./configure line (Configure step runs section)
    Original:
      ./configure \
        --enable-shared \
        --enable-static \
        --disable-allstatic \
        --prefix=/usr \
        --with-dynlib=/usr/lib

Replacement:

      export CPPFLAGS="-I/usr/include/skalibs"
      ./configure \
        --enable-shared \
        --enable-static \
        --disable-allstatic \
        --prefix=/usr \
        --with-dynlib=/usr/lib

Content:

Set CPPFLAGS to include skalibs header directory
Click to expand fix analysis

Analysis

No similar build failures were provided for analysis. However, the error indicates that the skalibs header file 'skalibs/prog.h' cannot be found during compilation. This is a common issue when header files are not in the expected include path or when the development package installation is incomplete. The skalibs-dev package is listed as a dependency, but the compiler cannot locate the headers.

Click to expand fix explanation

Explanation

The error occurs because the compiler cannot find the skalibs/prog.h header file. This typically happens when: 1) The skalibs runtime package is missing (sometimes dev packages depend on runtime packages being present), or 2) The include path is not properly set. The suggested fix addresses both possibilities by ensuring both skalibs and skalibs-dev packages are installed, and by explicitly setting the CPPFLAGS environment variable to include the skalibs header directory. The execline package from skarnet.org typically expects skalibs headers to be available in a specific path, and setting CPPFLAGS ensures the compiler can find them.

Click to expand alternative approaches

Alternative Approaches

  • Add --with-include=/usr/include/skalibs flag to the configure command instead of using CPPFLAGS
  • Modify the configure step to use pkg-config to detect skalibs if it provides a .pc file
  • Check if skalibs-static package is needed in addition to skalibs-dev for complete header installation

Was this comment helpful? Please use 👍 or 👎 reactions on this comment.

@octo-sts octo-sts bot added the ai/skip-comment Stop AI from commenting on PR label Dec 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai/skip-comment Stop AI from commenting on PR automated pr execline request-version-update request for a newer version of a package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant