Skip to content

Can't compile openzfs with "-Og" - inline failed within the ZSTD module #14755

@ocehugo

Description

@ocehugo

System information

Distribution Name | Gentoo
Distribution Version | None
Kernel Version | 5.1.14-6.1.22
Architecture | x86_64
OpenZFS Version | 2.1.9-2.1.10

Describe the problem you're observing

I can't compile ZFS with gcc-12 and "-Og". There is an error about inlining within the ZSTD module:

module/zstd/lib/zstd.c:18954:30: error: inlining failed in call to 'always_inline' 'ZSTD_HcFindBestMatch_selectMLS': function not considered for inlining

Changing back to "-O2" does solve the problem. A corner case I believe, but since I use "-Og" globally for simplicity and zfs is usually only updated when I also upgrade the kernel, this was a hurdle at the wrong time :)

PS: I can't tell you when this surfaced, but certainly after 2.1.4.

Describe how to reproduce the problem

Just compile zfs with CFLAGS="-Og"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BuildingIndicates an issue related to building binariesType: DefectIncorrect behavior (e.g. crash, hang)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions