Bug 1220564 - openSUSE TW bash package does not build with GCC 14
Summary: openSUSE TW bash package does not build with GCC 14
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Dr. Werner Fink
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: modern_C
  Show dependency treegraph
 
Reported: 2024-02-28 13:08 UTC by Martin Jambor
Modified: 2024-03-07 08:59 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-02-28 13:08:12 UTC
GCC 14 treats implicit function declarations as errors (see
https://gcc.gnu.org/gcc-14/porting_to.html for more details) and this
causes our bash package to fail when being built - as can be seen for
example in
https://build.opensuse.org/package/show/devel:gcc:next:testing/bash

There are two issues:

1. Upstream bash needs patch from
   https://lists.gnu.org/archive/html/bug-bash/2023-02/msg00000.html to
   be built with GCC 14.  (See also https://bugs.gentoo.org/920521 and
   https://gitlab.com/fweimer-rh/fedora-modernc/-/blob/main/pkg/b/bash.md?ref_type=heads )

2. On top of that, the Tumbleweed package needs an adjustment to the
   patch in bash-4.2-nscdunmap.dif that we carry, which needs an
   additional include of sys/mman.h.

The two above changes made the build pass in https://build.opensuse.org/package/show/home:jamborm:gcc14test/bash
Comment 1 Dr. Werner Fink 2024-02-28 14:56:59 UTC
SR#1152946
Comment 2 OBSbugzilla Bot 2024-02-28 15:35:02 UTC
This is an autogenerated message for OBS integration:
This bug (1220564) was mentioned in
https://build.opensuse.org/request/show/1152946 Factory / bash
Comment 3 Dr. Werner Fink 2024-03-07 08:59:01 UTC
(In reply to OBSbugzilla Bot from comment #2)
> This is an autogenerated message for OBS integration:
> This bug (1220564) was mentioned in
> https://build.opensuse.org/request/show/1152946 Factory / bash