Bug 2261709

Summary: splint: FTBFS in Fedora rawhide/f40
Product: [Fedora] Fedora Reporter: Fedora Release Engineering <releng>
Component: splintAssignee: Raphael Groner <projects.rg>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 42CC: projects.rg, smooge
Target Milestone: ---   
Target Release: ---   
Hardware: aarch64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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: 2341375    
Bug Blocks: 2231791    
Attachments:
Description Flags
build.log
none
root.log
none
state.log none

Description Fedora Release Engineering 2024-01-29 22:25:19 UTC
splint failed to build from source in Fedora rawhide/f40

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


For details on the mass rebuild see:

https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
Please fix splint 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,
splint will be orphaned. Before branching of Fedora 41,
splint 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 2024-01-29 22:25:25 UTC
Created attachment 2013581 [details]
build.log

Comment 2 Fedora Release Engineering 2024-01-29 22:25:30 UTC
Created attachment 2013582 [details]
root.log

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

Comment 3 Fedora Release Engineering 2024-01-29 22:25:36 UTC
Created attachment 2013583 [details]
state.log

Comment 4 Raphael Groner 2024-01-30 07:17:49 UTC
There seems to be a compiler bug within annobin.

Compiling cpplib.c...
cpplib.c: In function ‘do_defineAux’:
cpplib.c:2907:16: warning: variable ‘hn’ set but not used [-Wunused-but-set-variable]
 2907 |       hashNode hn;
      |                ^~
cpplib.c: In function ‘do_xifdef’:
cpplib.c:5543:25: warning: increment of a boolean expression [-Wbool-operation]
 5543 |   pfile->no_macro_expand++;
      |                         ^~
cpplib.c:5545:25: warning: decrement of a boolean expression [-Wbool-operation]
 5545 |   pfile->no_macro_expand--;
      |                         ^~
*** WARNING *** there are active plugins, do not report this as a bug unless you can reproduce it without enabling any plugins.
Event                            | Plugins
PLUGIN_FINISH_UNIT               | annobin: Generate final annotations
PLUGIN_START_UNIT                | annobin: Generate global annotations
PLUGIN_ALL_PASSES_START          | annobin: Generate per-function annotations
PLUGIN_ALL_PASSES_END            | annobin: Register per-function end symbols
during RTL pass: ldp_fusion
cpplib.c: In function ‘cpplib_createDefinition’:
cpplib.c:2643:1: internal compiler error: in aarch64_pair_mem_from_base, at config/aarch64/aarch64.cc:8235
 2643 | }
      | ^
Please submit a full bug report, with preprocessed source (by using -freport-bug).
See <http://bugzilla.redhat.com/bugzilla> for instructions.
The bug is not reproducible, so it is likely a hardware or OS problem.

Comment 5 Raphael Groner 2024-01-30 07:19:31 UTC
As the other builds got cancelled it's not clear if annobin works otherwise.

Comment 6 Stephen John Smoogen 2024-02-14 18:12:41 UTC
Raphael, I am not sure the program is wanting to keep running in Fedora. I have not been able to get it working out of the box for various releases. Instead it will crash out saying it can't parse the glibc headers. I looked and the upstream is no longer fixing the project so it seems it might be good to retire.

Comment 7 David Cantrell 2024-02-15 14:52:40 UTC
I got it to build and run on F39 by doing an update of the autotools build files.  It doesn't crash for me, but the CLI for splint is somewhat unusual and the output is a little less modern than other tools we have.  Still, I think some people might find it useful in specific cases.

I'll send a PR to the package in dist-git with my fixes.

Comment 9 Raphael Groner 2024-02-26 19:08:36 UTC
Older issue of upstream talks about autoconf failure.

Comment 10 Raphael Groner 2025-02-11 21:17:06 UTC
Not reproducible in F42 but another issue in bug #2341375. 

cpplib.c: In function ‘cpplib_createDefinition’:
cpplib.c:2643:1: internal compiler error: in aarch64_pair_mem_from_base, at config/aarch64/aarch64.cc:8235
 2643 | }
      | ^
Please submit a full bug report, with preprocessed source (by using -freport-bug).
See <http://bugzilla.redhat.com/bugzilla> for instructions.
The bug is not reproducible, so it is likely a hardware or OS problem.
make[3]: *** [Makefile:1162: cpplib.o] Error 1

Comment 11 Aoife Moloney 2025-02-26 12:56:18 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 42 development cycle.
Changing version to 42.