Bug 2340975 - openriichi: FTBFS in Fedora rawhide/f42
Summary: openriichi: FTBFS in Fedora rawhide/f42
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: openriichi
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Julien Rische
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: F42FTBFS
TreeView+ depends on / blocked
 
Reported: 2025-01-22 21:12 UTC by Fedora Release Engineering
Modified: 2025-01-24 15:50 UTC (History)
1 user (show)

Fixed In Version: openriichi-0.2.1.1-9.fc42
Clone Of:
Environment:
Last Closed: 2025-01-24 15:50:29 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
build.log (32.00 KB, text/plain)
2025-01-22 21:12 UTC, Fedora Release Engineering
no flags Details
root.log (32.00 KB, text/plain)
2025-01-22 21:12 UTC, Fedora Release Engineering
no flags Details
state.log (1.66 KB, text/plain)
2025-01-22 21:12 UTC, Fedora Release Engineering
no flags Details

Description Fedora Release Engineering 2025-01-22 21:12:28 UTC
openriichi failed to build from source in Fedora rawhide/f42

https://koji.fedoraproject.org/koji/taskinfo?taskID=128024654


For details on the mass rebuild see:

https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
Please fix openriichi at your earliest convenience and set the bug's status to
ASSIGNED when you start fixing it. If the bug remains in NEW state for 8 weeks,
openriichi will be orphaned. Before branching of Fedora 43,
openriichi will be retired, if it still fails to build.

For more details on the FTBFS policy, please visit:
https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/

Comment 1 Fedora Release Engineering 2025-01-22 21:12:31 UTC
Created attachment 2071456 [details]
build.log

file build.log too big, will only attach last 32768 bytes

Comment 2 Fedora Release Engineering 2025-01-22 21:12:33 UTC
Created attachment 2071457 [details]
root.log

file root.log too big, will only attach last 32768 bytes

Comment 3 Fedora Release Engineering 2025-01-22 21:12:34 UTC
Created attachment 2071458 [details]
state.log

Comment 4 Julien Rische 2025-01-23 18:55:23 UTC
The errors are:

  ../Engine/Rendering/OpenGLRenderer/OpenGLRenderer.vala: In function ‘engine_open_gl_renderer_real_do_load_model’:
  ../Engine/Rendering/OpenGLRenderer/OpenGLRenderer.vala:343:101: error: passing argument 6 of ‘__glewVertexAttribPointer’ makes pointer from integer without a cast [-Wint-conversion]
    343 |             glVertexAttribPointer(TEXTURE_ATTRIBUTE, 3, GL_FLOAT, false, len, 4 * (int)sizeof(float));
        |                                                                                                     ^~                          
        |                                                                                                     |
        |                                                                                                     int
  ../Engine/Rendering/OpenGLRenderer/OpenGLRenderer.vala:343:101: note: expected ‘const void *’ but argument is of type ‘int’
  ../Engine/Rendering/OpenGLRenderer/OpenGLRenderer.vala:345:100: error: passing argument 6 of ‘__glewVertexAttribPointer’ makes pointer from integer without a cast [-Wint-conversion]
    345 |             glVertexAttribPointer(NORMAL_ATTRIBUTE, 3, GL_FLOAT, false, len, 7 * (int)sizeof(float));
        |                                                                                                    ^~                          
        |                                                                                                    |
        |                                                                                                    int
  ../Engine/Rendering/OpenGLRenderer/OpenGLRenderer.vala:345:100: note: expected ‘const void *’ but argument is of type ‘int’


This seems to be caused by the OpenGL function signature:
https://docs.gl/gl3/glVertexAttribPointer

It uses "GLvoid*" as type for an offset. "size_t" would be a better type for such purpose. I will just disable integer conversion checks:
https://src.fedoraproject.org/rpms/openriichi/pull-request/1

Comment 5 Fedora Update System 2025-01-24 15:43:21 UTC
FEDORA-2025-d766077c64 (openriichi-0.2.1.1-9.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-d766077c64

Comment 6 Fedora Update System 2025-01-24 15:50:29 UTC
FEDORA-2025-d766077c64 (openriichi-0.2.1.1-9.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.