Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 906179

Summary: net-misc/dahdi-3.2.0 fails to compile: dahdi-sysfs.c:272:27: error: initialization of [-Werror=incompatible-pointer-types]
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Jaco Kroon <jaco>
Status: RESOLVED OBSOLETE    
Severity: normal CC: proxy-maint, sam, toralf
Priority: Normal Keywords: PMASKED, PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/31154
https://github.com/gentoo/gentoo/pull/31574
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 914477    
Bug Blocks: 870412    
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2023-05-12 06:16:59 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: net-misc/dahdi-3.2.0 fails to compile.
Discovered on: amd64 (internal ref: ci)
Comment 1 Agostino Sarubbo gentoo-dev 2023-05-12 06:17:01 UTC
Created attachment 861553 [details]
build.log

build log and emerge --info
Comment 2 Jaco Kroon 2023-05-12 07:29:50 UTC
Notes to self:

This is against gentoo-kernel-bin.

There seems to be a difference in the API for include/linux/device/bus.h, specifically the struct seems to have a const for the first parameter of the uevent function pointer.

The -Werror argument itself comes from the kernel sources.

One fix is to eliminate -Werror, the other is to vary the const'ness depending on what we're compiling against.

https://github.com/gentoo/gentoo/pull/30996
Comment 3 Jaco Kroon 2023-05-15 06:11:38 UTC
Above is incorrect.  As of right now there is no working theory on what causes the problem.
Comment 4 Jaco Kroon 2023-05-29 09:16:01 UTC
The PR 31154 referenced contains discussion around similar potentially related stuff that may be useful to reference.
Comment 5 Toralf Förster gentoo-dev 2023-05-29 20:00:21 UTC
*** Bug 907383 has been marked as a duplicate of this bug. ***
Comment 6 Brahmajit Das 2023-06-22 15:47:38 UTC
(In reply to Jaco Kroon from comment #4)

Hi Jaco.

I've taken Ionen's initial porting work to linux-mod-r1 and added some patches for clang-16 build. Can you please review my PR:
https://github.com/gentoo/gentoo/pull/31574
Comment 7 Joonas Niilola gentoo-dev 2023-09-21 08:20:20 UTC
Last-rited, please see bug #914477.