Skip to content

Git master not compiling on Arch Linux with GCC 14 #484

@evertvorster

Description

@evertvorster

Hi there!

I am currently trying to make a package in the Arch Linux AUR for oolite, called oolite-git. This package checks out the latest git master source, and compiles & installs it. This sort of package is great for people who would like to play test the latest version of the game and to provide feedback to the developers of any bugs encountered before a stable version is released.

At the moment, this package does not build with GCC 14. I'll try again with GCC 13, but for completeness I would like to report the build error here.

This is the bit where it goes off the rails:

 Compiling file src/Core/OXPVerifier/OOCheckEquipmentPListVerifierStage.m ...
src/Core/OOPolygonSprite.m: In function ‘-[OOPolygonSprite loadPolygons:outlineWidth:]’:
src/Core/OOPolygonSprite.m:286:58: error: passing argument 3 of ‘gluTessCallback’ from incompatible pointer type [-Wincompatible-pointer-types]
  286 |         gluTessCallback(tesselator, GLU_TESS_BEGIN_DATA, TessBeginCallback);
      |                                                          ^~~~~~~~~~~~~~~~~
      |                                                          |
      |                                                          void (*)(GLenum,  void *) {aka void (*)(unsigned int,  void *)}
In file included from /usr/include/SDL/SDL_opengl.h:51,
                 from src/Core/OOOpenGLOnly.h:58,
                 from src/Core/OOOpenGL.h:31,
                 from src/Core/OOPolygonSprite.h:33,
                 from src/Core/OOPolygonSprite.m:42:
/usr/include/GL/glu.h:336:87: note: expected ‘_GLUfuncptr’ {aka ‘void (*)(void)’} but argument is of type ‘void (*)(GLenum,  void *)’ {aka ‘void (*)(unsigned int,  void *)’}

About my system:

Operating System: Arch Linux 
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.1
Kernel Version: 6.9.3-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 32 × 13th Gen Intel® Core™ i9-13900HX
Memory: 62.5 GiB of RAM
Graphics Processor: Mesa Intel® Graphics
Manufacturer: TUXEDO
Product Name: PD5x_7xSNC_SND_SNE

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