Skip to content

Build failure on Rocky Linux 10: Missing glibc-devel.i686 (No 32-bit support) #116

@Suse-quantum

Description

@Suse-quantum

Describe the bug
I am trying to build cephtrace on Rocky Linux 10, but the build fails because the system cannot find gnu/stubs-32.h.

It appears that the build process (specifically when compiling osdtrace.bpf.c) is attempting to compile 32-bit code or is picking up host headers that trigger 32-bit paths. However, Rocky Linux 10 (and RHEL 10) has dropped support for the i686 architecture, so the package glibc-devel.i686 is no longer available in the repositories.

To Reproduce
Steps to reproduce the behavior:

  1. Fresh install of Rocky Linux 10 (Minimal or Standard).
  2. Install dependencies (without i686, as it doesn't exist):
    sudo dnf install git make clang gcc-c++ elfutils-libelf-devel openssl-devel
  3. Clone and build:
    git clone https://github.com/taodd/cephtrace
    cd cephtrace
    git submodule update --init --recursive
    make

Expected behavior
The project should build successfully on modern 64-bit only distributions without requiring 32-bit compatibility libraries.

Screenshots / Logs
The build fails with the following error:

Image

Environment

  • OS: Rocky Linux release 10.1 (Red Quartz)
  • Kernel: 6.12.0-124.56.1.el10_1.x86_64
  • GCC/Clang:
[root@localhost cephtrace]# clang -v
clang version 20.1.8 (RESF 20.1.8-1.el10)
Target: x86_64-redhat-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Configuration file: /etc/clang/x86_64-redhat-linux-gnu-clang.cfg
System configuration file directory: /etc/clang/
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-redhat-linux/11
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-redhat-linux/14
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-redhat-linux/8
Selected GCC installation: /usr/bin/../lib/gcc/x86_64-redhat-linux/14
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Selected multilib: .;@m64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions