Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 906179 - net-misc/dahdi-3.2.0 fails to compile: dahdi-sysfs.c:272:27: error: initialization of [-Werror=incompatible-pointer-types]
Summary: net-misc/dahdi-3.2.0 fails to compile: dahdi-sysfs.c:272:27: error: initializ...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jaco Kroon
URL:
Whiteboard:
Keywords: PMASKED, PullRequest
: 907383 (view as bug list)
Depends on: 914477
Blocks: c99-porting
  Show dependency tree
 
Reported: 2023-05-12 06:16 UTC by Agostino Sarubbo
Modified: 2023-12-16 08:28 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,69.93 KB, text/plain)
2023-05-12 06:17 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-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.