I'm on FreeBSD 12.2-PRERELEASE r364926 amd64 now.
Lately graphics/drm-fbsd12.0-kmod stopped to build with errors like this:
--- ttm_agp_backend.o ---
In file included from /usr/ports/graphics/drm-fbsd12.0-kmod/work/kms-drm-99da0ba/drivers/gpu/drm/ttm/ttm_agp_backend.c:35:
In file included from /usr/ports/graphics/drm-fbsd12.0-kmod/work/kms-drm-99da0ba/include/drm/ttm/ttm_bo_driver.h:37:
In file included from /usr/ports/graphics/drm-fbsd12.0-kmod/work/kms-drm-99da0ba/include/drm/drmP.h:139:
/usr/ports/graphics/drm-fbsd12.0-kmod/work/kms-drm-99da0ba/drivers/gpu/drm/drm_os_freebsd.h:124:9: error: 'IS_ALIGNED' macro redefined [-Werror,-Wmacro-redefined]
#define IS_ALIGNED(x, y) (((x) & ((y) - 1)) == 0)
/usr/src/sys/compat/linuxkpi/common/include/linux/kernel.h:138:9: note: previous definition is here
r367566 | hselasky | 2020-11-10 22:36:07 +0900 (Tue, 10 Nov 2020) | 6 lines
Remove ifdefs around IS_ALIGNED() definition in the LinuxKPI.
I've asked hselasky to have a look at this.
Can this be fixed in the port? We need IS_ALIGNED() in 12-stable for coming mlx5en and mlx5ib patches.
I'll fix it.
It can be done in the port, it's OK. Just make sure it still compiles on 12.1 and 12.2 as well.
A commit references this bug:
Date: Mon Nov 16 09:39:00 UTC 2020
New revision: 555459
Buildfix for 12-stable after r367566.
Approved by: pi (implicit)
(In reply to commit-hook from comment #6)
Mere reporting, the build and installation of stable/12@r367732 with PORTS_MODULES=graphics/drm-fbsd12.0-kmod ended in success.
At least I have solved it. Thank you very much.