Bug 243005 - Cannot compile kernel with drm-current-kmod installed?
Summary: Cannot compile kernel with drm-current-kmod installed?
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-31 16:48 UTC by mmatalka
Modified: 2020-01-09 14:24 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mmatalka 2019-12-31 16:48:50 UTC
I'm not sure exactly what's happening but it looks like I cannot compile the latest source because I also do not have the latest drm-current-kmod source, but I believe I cannot install the latest drm-current-kmod until I have compiled the latest kernel.  Is that correct?

I receive the follow error message while building the kernel and world.

--- drm_os_freebsd.o ---
/usr/local/sys/modules/drm-current-kmod/drivers/gpu/drm/drm_os_freebsd.c:47:3: error: implicit declaration of function 'untimeout' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                untimeout(clear_debug_func, NULL, reset_debug_log_handle);
                ^
/usr/local/sys/modules/drm-current-kmod/drivers/gpu/drm/drm_os_freebsd.c:57:28: error: implicit declaration of function 'timeout' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                reset_debug_log_handle = timeout(clear_debug_func, NULL,
                                         ^
/usr/local/sys/modules/drm-current-kmod/drivers/gpu/drm/drm_os_freebsd.c:57:26: error: assigning to 'struct callout_handle' from incompatible type 'int'
                reset_debug_log_handle = timeout(clear_debug_func, NULL,
                                       ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 errors generated.
*** [drm_os_freebsd.o] Error code 1
Comment 1 mmatalka 2020-01-09 14:24:25 UTC
Fixed this by updating the drm-current-kmod port and then recompiling.