Bug 2225917

Summary: hedgewars: FTBFS in Fedora rawhide/f39
Product: [Fedora] Fedora Reporter: Fedora Release Engineering <releng>
Component: hedgewarsAssignee: Nikolay Nikolov <nickysn>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: bruno, gwync, hdegoede, hobbes1069, nickysn
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: hedgewars-1.0.2-5.fc39 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-05 19:11:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2168842    
Attachments:
Description Flags
build.log
none
root.log
none
state.log none

Description Fedora Release Engineering 2023-07-25 18:07:03 UTC
hedgewars failed to build from source in Fedora rawhide/f39

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


For details on the mass rebuild see:

https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Please fix hedgewars 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,
hedgewars will be orphaned. Before branching of Fedora 40,
hedgewars 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 2023-07-25 18:07:10 UTC
Created attachment 1978183 [details]
build.log

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

Comment 2 Fedora Release Engineering 2023-07-25 18:07:14 UTC
Created attachment 1978184 [details]
root.log

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

Comment 3 Fedora Release Engineering 2023-07-25 18:07:17 UTC
Created attachment 1978185 [details]
state.log

Comment 4 Jens Petersen 2023-07-28 06:45:59 UTC
Btw I see the same failure for x86_64 on F39 and F38 

/builddir/build/BUILD/hedgewars-src-1.0.2/project_files/hwc/rtl/misc.c:223:5: error: call to undeclared function 'glShaderSource'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    glShaderSource(shader, count, (const char * const *)string, length);
    ^
1 warning and 1 error generated.
gmake[2]: *** [project_files/hwc/rtl/CMakeFiles/fpcrtl.dir/build.make:93: project_files/hwc/rtl/CMakeFiles/fpcrtl.dir/misc.c.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....

Comment 5 Hans de Goede 2023-07-30 18:11:06 UTC
I just tried a x86_64 mockbuild for F38 and it succeeds now, no glShaderSource error.

Also tried it for rawhide and I get a new error there now:

File "_none_", line 1:
Alert ocaml_deprecated_auto_include: 
OCaml's lib directory layout changed in 5.0. The unix subdirectory has been
automatically added to the search path, but you should add -I +unix to the
command-line to silence this alert (e.g. by adding unix to the list of
libraries in your dune file, or adding use_unix to your _tags file for
ocamlbuild, or using -package unix for ocamlfind).

File "freetennis.ml", line 6654, characters 31-47:
6654 |      let mayb = translateName (String.lowercase !p0Name ) in
                                      ^^^^^^^^^^^^^^^^
Error: Unbound value String.lowercase

I'm afraid my ocaml skills are pretty much non existent. Does this Unbound value String.lowercase indicate a missing include or ...?

Comment 6 Hans de Goede 2023-07-30 18:12:18 UTC
Ugh never mind I was mockbuilding freetennis while responding to the hedgewars FTFBS (both are FTBFS), please ignore.

Comment 7 Gwyn Ciesla 2023-08-01 13:29:18 UTC
https://issues.hedgewars.org/show_bug.cgi?id=855

Comment 8 Hans de Goede 2023-08-05 19:02:48 UTC
(In reply to Gwyn Ciesla from comment #7)
> https://issues.hedgewars.org/show_bug.cgi?id=855

I've worked around this for now by adding the following to the .spec file before %cmake:

export CFLAGS="%{build_cflags} -DGL_GLEXT_PROTOTYPES"
export CXXFLAGS="%{build_cxxflags} -DGL_GLEXT_PROTOTYPES"

and I've started a koji build to fix the FTBFS.

Comment 9 Fedora Update System 2023-08-05 19:09:11 UTC
FEDORA-2023-d4dd820b59 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-d4dd820b59

Comment 10 Fedora Update System 2023-08-05 19:11:56 UTC
FEDORA-2023-d4dd820b59 has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Gwyn Ciesla 2023-08-07 13:25:16 UTC
Thank you!