Skip to content

Build Failure with --enable-bypass on Modern GCC #37

@SayedAliElyas

Description

@SayedAliElyas

I'm a student currently studying your Unikernel Linux (UKL) project, and I find the performance optimization concepts fascinating. I've successfully built and run the standard version of the project and have been exploring the advanced configuration flags.

My goal was to test the performance optimizations, specifically the --enable-bypass flag. The standard build works perfectly, but enabling this flag causes a consistent build failure during the glibc compilation with the following C error:
../sysdeps/unix/sysv/linux/x86_64/sysdep.h:226:63: error: expected ‘)’ before ‘;’ token

To debug this, I hypothesized it was a compiler incompatibility with the experimental glibc patches. I tried changing the Docker build environment to older operating systems to get an older GCC version, but the error persisted across all of them:

Fedora 36 (Modern GCC)

Ubuntu 18.04 (GCC 7.x)

Ubuntu 16.04 (GCC 5.x)

My conclusion is that the glibc patches are likely incompatible with the GCC 5.x compiler series and newer. I was wondering if you could confirm this, or if there is a specific known-good build environment (OS, GCC version) that you would recommend for building with the bypass flag enabled?

Thank you for your time and for your work on this interesting project.

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