maintainer-feedback requested: [Bug 282643] x11-servers/xorg-server:unable to build riscv64-ld: error: undefined symbol: xf86EnableIO

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 09 Nov 2024 10:55:05 UTC
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-x11 (Nobody)
<x11@FreeBSD.org> for maintainer-feedback:
Bug 282643: x11-servers/xorg-server:unable to build riscv64-ld: error:
undefined symbol: xf86EnableIO
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282643



--- Description ---
building with poudriere- cannot build xorg-server. fails with:
/nxb-bin/usr/bin/cc  -o hw/xfree86/Xorg
hw/xfree86/Xorg.p/.._.._mi_miinitext.c.o -Wl,--as-needed -Wl,--no-undefined
-Wl,-export-dynamic -Wl,--whole-archive -Wl,--start-group mi/liblibxserver_mi.a
dix/liblibxserver_dix.a composite/liblibxserver_composite.a
damageext/liblibxserver_damageext.a dbe/liblibxserver_dbe.a
randr/liblibxserver_randr.a miext/damage/liblibxserver_miext_damage.a
render/liblibxserver_render.a present/liblibxserver_present.a
Xext/liblibxserver_xext.a miext/sync/liblibxserver_miext_sync.a
xfixes/liblibxserver_xfixes.a Xi/liblibxserver_xi.a xkb/liblibxserver_xkb.a
record/liblibxserver_record.a os/liblibxserver_os.a dri3/liblibxserver_dri3.a
glx/liblibglxvnd.a hw/xfree86/common/libxorg_common.a
hw/xfree86/loader/libxorg_loader.a hw/xfree86/ddc/libxorg_ddc.a
hw/xfree86/xkb/libxorg_xkb.a hw/xfree86/i2c/libxorg_i2c.a
hw/xfree86/modes/libxorg_modes.a hw/xfree86/os-support/libxorg_os_support.a
hw/xfree86/parser/libxorg_parser.a hw/xfree86/ramdac/libxorg_ramdac.a
fb/liblibxserver_fb.a Xext/liblibxserver_xext_vidmode.a
dix/liblibxserver_main.a config/liblibxserver_config.a
hw/xfree86/dri/libxorg_dri.a hw/xfree86/dri2/libxorg_dri2.a
-Wl,--no-whole-archive -fvisibility=hidden -fstack-protector-strong -O2 -pipe
-march=rv64imafdc -mabi=lp64d -fstack-protector-strong -fno-strict-aliasing
-Wl,-rpath,/usr/local/lib -Wl,-rpath-link,/usr/local/lib -Wl,--export-dynamic
/usr/local/lib/libpixman-1.so -lm -ldl /usr/local/lib/libpciaccess.so -lmd
/usr/local/lib/libXau.so /usr/local/lib/libXdmcp.so /usr/local/lib/libXfont2.so
/usr/local/lib/libxshmfence.so /usr/local/lib/libxkbfile.so
/usr/local/lib/libudev.so /usr/local/lib/libdrm.so -lmd -lpthread
/usr/local/lib/libGL.so /usr/local/lib/libxcvt.so -Wl,--end-group
FAILED: hw/xfree86/Xorg 
/nxb-bin/usr/bin/cc  -o hw/xfree86/Xorg
hw/xfree86/Xorg.p/.._.._mi_miinitext.c.o -Wl,--as-needed -Wl,--no-undefined
-Wl,-export-dynamic -Wl,--whole-archive -Wl,--start-group mi/liblibxserver_mi.a
dix/liblibxserver_dix.a composite/liblibxserver_composite.a
damageext/liblibxserver_damageext.a dbe/liblibxserver_dbe.a
randr/liblibxserver_randr.a miext/damage/liblibxserver_miext_damage.a
render/liblibxserver_render.a present/liblibxserver_present.a
Xext/liblibxserver_xext.a miext/sync/liblibxserver_miext_sync.a
xfixes/liblibxserver_xfixes.a Xi/liblibxserver_xi.a xkb/liblibxserver_xkb.a
record/liblibxserver_record.a os/liblibxserver_os.a dri3/liblibxserver_dri3.a
glx/liblibglxvnd.a hw/xfree86/common/libxorg_common.a
hw/xfree86/loader/libxorg_loader.a hw/xfree86/ddc/libxorg_ddc.a
hw/xfree86/xkb/libxorg_xkb.a hw/xfree86/i2c/libxorg_i2c.a
hw/xfree86/modes/libxorg_modes.a hw/xfree86/os-support/libxorg_os_support.a
hw/xfree86/parser/libxorg_parser.a hw/xfree86/ramdac/libxorg_ramdac.a
fb/liblibxserver_fb.a Xext/liblibxserver_xext_vidmode.a
dix/liblibxserver_main.a config/liblibxserver_config.a
hw/xfree86/dri/libxorg_dri.a hw/xfree86/dri2/libxorg_dri2.a
-Wl,--no-whole-archive -fvisibility=hidden -fstack-protector-strong -O2 -pipe
-march=rv64imafdc -mabi=lp64d -fstack-protector-strong -fno-strict-aliasing
-Wl,-rpath,/usr/local/lib -Wl,-rpath-link,/usr/local/lib -Wl,--export-dynamic
/usr/local/lib/libpixman-1.so -lm -ldl /usr/local/lib/libpciaccess.so -lmd
/usr/local/lib/libXau.so /usr/local/lib/libXdmcp.so /usr/local/lib/libXfont2.so
/usr/local/lib/libxshmfence.so /usr/local/lib/libxkbfile.so
/usr/local/lib/libudev.so /usr/local/lib/libdrm.so -lmd -lpthread
/usr/local/lib/libGL.so /usr/local/lib/libxcvt.so -Wl,--end-group
ld: error: undefined symbol: xf86OSInitVidMem
>>> referenced by vidmem.c
>>>		  libxorg_os_support.a.p/shared_vidmem.c.o:(xf86InitVidMem) in
archive hw/xfree86/os-support/libxorg_os_support.a

ld: error: undefined symbol: xf86EnableIO
>>> referenced by xf86Init.c