Skip to content

[Build Error] Failed to compile GCC 11.4.0 in SRS-ue-base: bits/largefile-config.h No such file or directory #37

@h2wonS

Description

@h2wonS

Description

I am experiencing a build failure while following the README.md instructions in the jrtc-apps/containers/ directory to build the SRS UE base image. The build process fails during the GCC 11.4.0 compilation stage (make -j$(nproc)).

Environment:

  • Base Image: ghcr.io/microsoft/jrtc-apps/base/srs:latest (CBL-Mariner based)
  • Target: Downgrading GCC from 13 to 11.4.0 inside the container.
  • Command Executed: ./build_srs_ue_base.sh -c

Steps to Reproduce:

  • Navigate to jrtc-apps/containers/Docker/.
  • Run ./build_srs_ue_base.sh -c.
  • Observe the build logs during the GCC compilation phase.
  • Observed Error: The build fails during the make process of GCC 11.4.0 with the following error:
  • Plaintext
    /tmp/gcc-11.4.0/libstdc++-v3/configure: line 7784: /usr/bin/file: No such file or directory
    ...
    make[3]: [Makefile:1767: x86_64-pc-linux-gnu/bits/largefile-config.h] Error 1 (ignored)
  • Additional Context:
    Even after manually adding glibc-devel and file to the tdnf install list in the Dockerfile, the error persists.

It appears that the configure script fails to correctly identify the system architecture or header paths due to the missing file utility or mismatched header locations in the base image.

Questions:

  1. Is there a specific set of dependencies or a pre-configured base image required to avoid these header mismatch issues during GCC compilation?
  2. Once the Docker build is successfully completed, what is the recommended command/procedure to run the container for SRS-UE testing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions