Skip to content

Building with gcc-15 fails #814

@heitbaum

Description

@heitbaum

NVIDIA Open GPU Kernel Modules Version

570.124.06

Operating System and Version

Ubuntu 24.04

Kernel Release

6.12

Please confirm you are running a stable release kernel (e.g. not a -rc). We do not accept bug reports for unreleased kernels.

  • I am running on a stable kernel release.

Build Command

Build using gcc-14.2 completes.
Build with gcc-15.x fails with errors that were warnings in previous gcc.

Workaround is to add the following no-error statements, until the code is updated to avoid these warnings.

EXTRA_CFLAGS += -Wno-error=return-type -Wno-implicit-function-declaration -Wno-int-conversion -Wno-incompatible-pointer-types

Terminal output/Build Log

As above

Also errors

./common/inc/nv-mm.h:29:13: error: conflicting types for 'vm_fault_t'; have 'int'
29 | typedef int vm_fault_t;
| ^~~~~~~~~~

./common/inc/nv-time.h:113:19: error: conflicting types for 'timespec64_to_ns'; have 's64(struct timespec64 *)' {aka 'long long int(struct timespec64 *)'}
113 | static inline s64 timespec64_to_ns(struct timespec64 *ts)
| ^~~~~~~~~~~~~~~~

More Info

EXTRA_CFLAGS += -DNV_VERSION_STRING=\"570.124.06\"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions