Bug 270577 - x11/foot: build fails on -CURRENT
Summary: x11/foot: build fails on -CURRENT
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Jan Beich
URL: https://pkg-status.freebsd.org/beefy1...
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-01 09:45 UTC by (intentionally left blank)
Modified: 2023-04-04 15:14 UTC (History)
1 user (show)

See Also:
jbeich: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description (intentionally left blank) 2023-04-01 09:45:21 UTC
Last known good src hash, so could be a base bug:

commit 51d07956cf224654347b04f361c2e6eaef4a4aa8
Author: Emmanuel Vadot <hidden to avoid spam>
Date:   Tue Mar 28 10:56:18 2023 +0200

    linuxkpi: Add alderlake defines in intel-family
    
    Needed by drm-kmod.
    
    Sponsored by:   Beckhoff Automation GmbH & Co. KG

Maybe workaround by marking PGO as broken.

Disclaimer: I didn't test the workaround.
Comment 1 (intentionally left blank) 2023-04-01 10:09:09 UTC
(In reply to throwaway_vthgwq4 from comment #0)

Disregard date and hash, local pkgbase+poudriere automation doesn't track this reliably. I'll try to bisect on my own.
Comment 2 Jan Beich freebsd_committer freebsd_triage 2023-04-01 10:09:44 UTC
> *** Signal 12

Likely PGO binary trips on kqueue1 vs. epoll-shim. Waiting for review D39377 to land.
Comment 3 (intentionally left blank) 2023-04-01 20:00:00 UTC
Bisected to review D39271.

(In reply to Jan Beich from comment #2)
> Waiting for review D39377 to land.
base 95940a2d2442 with review D39377 (Diff 119738) fails to build:

[...]
ld: error: duplicate symbol: kqueue1
>>> defined at kqueue1.c:43 (/usr/src/lib/libc/gen/kqueue1.c:43)
>>>            kqueue1.pico:(kqueue1)
>>> defined at kqueue1.c:43 (/usr/src/lib/libc/gen/kqueue1.c:43)
>>>            kqueue1.pico:(.text+0x0)
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** [libc.so.7.full] Error code 1
[...]

I don't have an active FreeBSD Phabricator account and can't register one to report in review D39377.

(In reply to throwaway_vthgwq4 from comment #0)
>Disclaimer: I didn't test the workaround.
PGO=off fails to work:

$ foot
[...]
 err: fdm.c:69: failed to create epoll FD: Invalid argument
Segmentation fault
Comment 4 (intentionally left blank) 2023-04-04 15:14:59 UTC
Resolved after base dac310248826c and base 11cdffc60325. Thanks.