Bug 237630 - graphics/drm-legacy-kmod: fails to build on ppc64
Summary: graphics/drm-legacy-kmod: fails to build on ppc64
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Johannes M Dieterich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-28 20:50 UTC by Piotr Kubaj
Modified: 2019-05-28 14:30 UTC (History)
5 users (show)

See Also:
bugzilla: maintainer-feedback? (jmd)


Attachments
patch (3.92 KB, patch)
2019-04-30 21:59 UTC, Piotr Kubaj
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Kubaj freebsd_committer freebsd_triage 2019-04-28 20:50:41 UTC
I'm building on head/powerpc64:
--- savage_drv.o ---
cc  -O2 -pipe -fno-strict-aliasing  -Werror -D_KERNEL -DKLD_MODULE -nostdinc  -I/sys/dev/drm -I/tmp/usr/ports/graphics/drm-legacy-kmod/work/drm-legacy-3c8c990/drm/../src/ -I. -I/usr/src/sys -I/usr/src/sys/contrib/ck/include -fno-common  -mlongcall -fno-o
mit-frame-pointer     -MD  -MF.depend.savage_drv.o -MTsavage_drv.o -mno-altivec -msoft-float -ffreestanding -fwrapv -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef -W
no-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-uninitialized  -finline-limit=15000 -fms-extensions --param inline-unit-growth=100 --param large-function-growth=1000 -mcall-aixdesc  -std=iso9
899:1999 -c /tmp/usr/ports/graphics/drm-legacy-kmod/work/drm-legacy-3c8c990/src/dev/drm/savage_drv.c -o savage_drv.o
--- savage_bci.o ---
cc1: error: /sys/dev/drm: No such file or directory
--- savage_drv.o ---
cc1: error: /sys/dev/drm: No such file or directory
--- savage_state.o ---
cc1: error: /sys/dev/drm: No such file or directory
--- savage_bci.o ---
*** [savage_bci.o] Error code 1


sys/dev/drm was removed from head.
Comment 1 Piotr Kubaj freebsd_committer freebsd_triage 2019-04-30 21:59:16 UTC
Created attachment 204128 [details]
patch

This patch fixes compilation. It also adds a hack (by jhibbits) for powerpc64 (not suitable for other architectures).

Also don't include i915kms on !x86.