Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 920453 - app-misc/dateutils-0.4.10 fails to compile (GCC-14-SYSTEM): strptime.c:167:38: error: passing argument 1 of proc_lines from incompatible pointer type [-Wincompatible-pointer-types]
Summary: app-misc/dateutils-0.4.10 fails to compile (GCC-14-SYSTEM): strptime.c:167:38...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PATCH, PullRequest
Depends on:
Blocks: c99-porting gcc-14-stable
  Show dependency tree
 
Reported: 2023-12-21 08:09 UTC by Agostino Sarubbo
Modified: 2025-02-09 16:58 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,179.35 KB, text/plain)
2023-12-21 08:09 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2023-12-21 08:09:04 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-misc/dateutils-0.4.10 fails to compile (GCC-14-SYSTEM).
Discovered on: amd64 (internal ref: gcc14_tinderbox)

NOTE:
(GCC-14-SYSTEM) in the summary means that the bug was found on a machine that runs gcc-13 but this bug MAY or MAY NOT BE related to the new compiler
Comment 1 Agostino Sarubbo gentoo-dev 2023-12-21 08:09:07 UTC
Created attachment 880116 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2023-12-21 08:09:07 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


make[2]: ./tzmap: No such file or directory
strptime.c:167:38: error: passing argument 1 of 'proc_lines' from incompatible pointer type [-Wincompatible-pointer-types[https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wincompatible-pointer-types]]
Comment 3 Guillermo D. H. 2024-06-26 21:44:19 UTC
It should be fixed upstream by this commit:

https://github.com/hroptatyr/dateutils/commit/51ac0e033cfb74e814d2ee282ef7ea94223e6915

New version 0.4.11 should include the fix.
Comment 4 Ulenrich 2025-01-10 19:08:57 UTC
(In reply to Guillermo D. H. from comment #3)
> It should be fixed upstream by this commit:
> 
> https://github.com/hroptatyr/dateutils/commit/
> 51ac0e033cfb74e814d2ee282ef7ea94223e6915
> 
> New version 0.4.11 should include the fix.

Thnx, patch works like a charme:
---
Calculating dependencies  ..... done!
Dependency resolution took 14.40 s (backtrack: 0/20).

[ebuild     U  ] app-misc/dateutils-0.4.10::gentoo [0.4.9::gentoo] 0 KiB

Total: 1 package (1 upgrade), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] y
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) app-misc/dateutils-0.4.10::gentoo
>>> Installing (1 of 1) app-misc/dateutils-0.4.10::gentoo
>>> Completed (1 of 1) app-misc/dateutils-0.4.10::gentoo
>>> Jobs: 1 of 1 complete                                               Load avg: 1.21, 0.44, 0.23
>>> Auto-cleaning packages...
---
Comment 5 Tamas Jantvik 2025-01-12 11:11:47 UTC
yes, does compile with that that commit patched in for me as well
Comment 6 Agostino Sarubbo gentoo-dev 2025-01-21 08:04:03 UTC
tinderbox-stable has reproduced this issue in a STABLE environment with version 0.4.10
Comment 7 Larry the Git Cow gentoo-dev 2025-02-01 14:50:34 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=221c06cb6f3ecdaf8d965bb169d91d623f62502f

commit 221c06cb6f3ecdaf8d965bb169d91d623f62502f
Author:     Ferenc Erki <erkiferenc@gmail.com>
AuthorDate: 2025-01-26 17:06:13 +0000
Commit:     Florian Schmaus <flow@gentoo.org>
CommitDate: 2025-02-01 14:47:36 +0000

    app-misc/dateutils: fix build with gcc-14
    
    Closes: https://bugs.gentoo.org/920453
    Signed-off-by: Ferenc Erki <erkiferenc@gmail.com>
    Signed-off-by: Florian Schmaus <flow@gentoo.org>

 app-misc/dateutils/dateutils-0.4.10.ebuild         |  2 ++
 .../dateutils/files/dateutils-4.10-gcc-14.patch    | 41 ++++++++++++++++++++++
 2 files changed, 43 insertions(+)
Comment 8 Larry the Git Cow gentoo-dev 2025-02-09 16:58:52 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0cdd839c14caa5e1aaf6f16ce4bd16457b499fd9

commit 0cdd839c14caa5e1aaf6f16ce4bd16457b499fd9
Author:     Ferenc Erki <erkiferenc@gmail.com>
AuthorDate: 2025-02-09 15:02:57 +0000
Commit:     Florian Schmaus <flow@gentoo.org>
CommitDate: 2025-02-09 16:58:34 +0000

    app-misc/dateutils: fix patch to build with gcc-14
    
    Bug: https://bugs.gentoo.org/920453
    Signed-off-by: Ferenc Erki <erkiferenc@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/40503
    Signed-off-by: Florian Schmaus <flow@gentoo.org>

 app-misc/dateutils/dateutils-0.4.10.ebuild                              | 2 +-
 .../{dateutils-4.10-gcc-14.patch => dateutils-0.4.10-gcc-14.patch}      | 0
 2 files changed, 1 insertion(+), 1 deletion(-)