Bug 1224007 - Package cvs fails to build with GCC 14 because of its new errors (that were previously warnings)
Summary: Package cvs fails to build with GCC 14 because of its new errors (that were p...
Status: NEW
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Other (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Josef Möllers
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: modern_C
  Show dependency treegraph
 
Reported: 2024-05-07 11:46 UTC by Martin Jambor
Modified: 2024-07-10 12:03 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Jambor 2024-05-07 11:46:22 UTC
Package cvs does not build with gcc 14 because of its new errors, see
bug#1220571 and https://gcc.gnu.org/gcc-14/porting_to.html for more
details on these.

See failed build log for example here: https://build.opensuse.org/package/live_build_log/home:rguenther:plgrnd/cvs/openSUSE_Factory/x86_64

The failure happens when running configure in the sub-directory
cvslock-0.2:

[   36s] checking whether the C compiler (gcc -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -pipe -D_GNU_SOURCE -std=gnu99 -flto=auto) works... no
[   36s] configure: error: installation or configuration problem: C compiler cannot create executables.

...which hints that the problem is an ancient autoconf.

Because cvs is has not had a release for over a decade and its use is
already quite small, switching autoconf seems like unreasonable effort
and I'd simply propose to use -fpermissive in this case.

On the other hand, note that Fedora claims to have fixed their cvs, see:
  - https://gitlab.com/fweimer-rh/fedora-modernc/-/blob/main/pkg/c/cvs.md?ref_type=heads
  - https://bugzilla.redhat.com/show_bug.cgi?id=2187741 and
  - https://src.fedoraproject.org/rpms/cvs/c/de3a484fb175576744fe001c75cfa60163b13a10?branch=rawhide

But I guess(!) that cvslock simply is not part of their package.
Comment 1 Martin Jambor 2024-07-08 13:35:34 UTC
I have submitted https://build.opensuse.org/request/show/1186179
Comment 2 Martin Jambor 2024-07-10 12:03:17 UTC
And there is also https://build.opensuse.org/request/show/1186025 which might be slightly better.