Re: 7zip-26.01 fails to build with gcc 16

"Bruce Dubbs" ([email protected] via blfs-support Mailing List) <[email protected]> Fri, 22 May 2026 11:07:51 -0500
Newsgroups gmane.linux.lfs.beyond.support
Message-ID <[email protected]>
This is a multi-part message in MIME format...

------------=_1779466079-1253-31354
Content-Language: en-US
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

On 5/22/26 8:54 AM, Alan Ianson ([email protected] via blfs-support Mailing List) wrote:
> Hello all,
> 
> I find that 7zip fails to build with gcc 16 but I found a debian patch
> that solves the issue. If interested you can get the patch here..
> 
> https://sources.debian.org/src/7zip/26.01%2Bdfsg-2/debian/patches/0008-Use-Wno-error-array-bounds-option-to-some-specific-f.patch


It's really wrong for upstream to distribute code with -Werror.  It's fine for 
developers but it makes too many assumptions about the user's system.

I fixed the problem with:

   sed -i "s/-Werror//" CPP/7zip/7zip_gcc.mak

I add it to BLFS.

   -- Bruce


------------=_1779466079-1253-31354
Content-Type: text/plain; charset="UTF-8"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
MIME-Version: 1.0

-- 
http://lists.linuxfromscratch.org/sympa/info/blfs-support
Unsubscribe: See the above information page

------------=_1779466079-1253-31354--