FS#60283 - [libaio] test case 19 breaks on newer gcc

Attached to Project: Arch Linux
Opened by Andreas Baumann (andreas_baumann) - Tuesday, 02 October 2018, 15:50 GMT
Last edited by Allan McRae (Allan) - Sunday, 04 November 2018, 05:58 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

In file included from main.c:24:
cases/19.t: In function 'open_temp_file':
cases/19.t:44:36: error: argument to 'sizeof' in 'strncpy' call is the same expression as the source; did you mean to use the size of the destination? [-Werror=sizeof-pointer-memaccess]
strncpy(template, TEMPLATE, sizeof(TEMPLATE));
^
cc1: all warnings being treated as errors

Is reported upstream already https://pagure.io/libaio/pull-request/5.

Additional info:
* package version(s): 0.3.111-1


Steps to reproduce:
asp export libaio
cd libaio
staging-x86_64-build

This task depends upon

Closed by  Allan McRae (Allan)
Sunday, 04 November 2018, 05:58 GMT
Reason for closing:  Fixed
Additional comments about closing:  libaio-0.3.111-2
Comment by Andreas Baumann (andreas_baumann) - Tuesday, 02 October 2018, 15:52 GMT
Building works with ignoring the errornous warning in build():

CFLAGS="-march=${CARCH/_/-} -mtune=generic -O2 -pipe -Wno-error=sizeof-pointer-memaccess"

Of course, also applying the patch mentioned above works..
Comment by Allan McRae (Allan) - Sunday, 04 November 2018, 05:50 GMT
Upstream link is dead.

Loading...