Re: r247835: drm2 code breaks buildkernel

From: Glen Barber <gjb_at_FreeBSD.org>
Date: Tue, 5 Mar 2013 07:30:16 -0500
On Tue, Mar 05, 2013 at 12:59:50PM +0100, Hartmann, O. wrote:
> > Could you try the patch below?
> > 
> > http://people.freebsd.org/~dumbbell/radeonkms/drm_global-unused-variable.a.patch
> > 
> 
> Got new sources, I'm at FreeBSD 10.0-CURRENT #1 r247839: Tue Mar  5
> 12:28:12 CET 2013/amd64 and the kernel builds normal again.
> 

I still see kernel build failure with and without the above patch.

Script started on Tue Mar  5 07:28:11 2013
root_at_nucleus:/usr/src # svnversion
247839
root_at_nucleus:/usr/src # time make -s -j4 KERNCONF=NUCLEUS buildkernel
--------------------------------------------------------------
>>> Kernel build for NUCLEUS started on Tue Mar  5 07:28:20 EST 2013
--------------------------------------------------------------
===> NUCLEUS
--------------------------------------------------------------
>>> stage 1: configuring the kernel
--------------------------------------------------------------
Kernel build directory is /usr/obj/usr/src/sys/NUCLEUS
Don't forget to do ``make cleandepend && make depend''
--------------------------------------------------------------
>>> stage 2.1: cleaning up the object tree
--------------------------------------------------------------
===> drm2/drm2 (cleandir)
===> drm2/i915kms (cleandir)
===> opensolaris (cleandir)
===> zfs (cleandir)
--------------------------------------------------------------
>>> stage 2.2: rebuilding the object tree
--------------------------------------------------------------
===> drm2/drm2 (obj)
===> drm2/i915kms (obj)
===> opensolaris (obj)
===> zfs (obj)
--------------------------------------------------------------
>>> stage 2.3: build tools
--------------------------------------------------------------
--------------------------------------------------------------
>>> stage 3.1: making dependencies
--------------------------------------------------------------
===> drm2/drm2 (depend)
===> drm2/i915kms (depend)
===> opensolaris (depend)
===> zfs (depend)
--------------------------------------------------------------
>>> stage 3.2: building everything
--------------------------------------------------------------
===> drm2/drm2 (all)
In file included from /usr/src/sys/modules/drm2/drm2/../../../dev/drm2/ttm/ttm_lock.c:42:
_at_/dev/drm2/ttm/ttm_lock.h:208: warning: redundant redeclaration of 'ttm_write_unlock' [-Wredundant-decls]
_at_/dev/drm2/ttm/ttm_lock.h:134: warning: previous declaration of 'ttm_write_unlock' was here
_at_/dev/drm2/ttm/ttm_lock.h:220: warning: redundant redeclaration of 'ttm_write_lock' [-Wredundant-decls]
_at_/dev/drm2/ttm/ttm_lock.h:146: warning: previous declaration of 'ttm_write_lock' was here
/usr/src/sys/modules/drm2/drm2/../../../dev/drm2/ttm/ttm_page_alloc.c:122: warning: declaration does not declare anything
/usr/src/sys/modules/drm2/drm2/../../../dev/drm2/ttm/ttm_page_alloc.c:123: warning: declaration does not declare anything
/usr/src/sys/modules/drm2/drm2/../../../dev/drm2/ttm/ttm_page_alloc.c: In function 'ttm_get_pool':
/usr/src/sys/modules/drm2/drm2/../../../dev/drm2/ttm/ttm_page_alloc.c:280: error: 'struct ttm_pool_manager' has no member named 'pools'
/usr/src/sys/modules/drm2/drm2/../../../dev/drm2/ttm/ttm_page_alloc.c: In function 'ttm_pool_get_num_unused_pages':
/usr/src/sys/modules/drm2/drm2/../../../dev/drm2/ttm/ttm_page_alloc.c:391: error: 'struct ttm_pool_manager' has no member named 'pools'
/usr/src/sys/modules/drm2/drm2/../../../dev/drm2/ttm/ttm_page_alloc.c: In function 'ttm_pool_mm_shrink':
/usr/src/sys/modules/drm2/drm2/../../../dev/drm2/ttm/ttm_page_alloc.c:413: error: 'struct ttm_pool_manager' has no member named 'pools'
/usr/src/sys/modules/drm2/drm2/../../../dev/drm2/ttm/ttm_page_alloc.c: In function 'ttm_page_alloc_init':
/usr/src/sys/modules/drm2/drm2/../../../dev/drm2/ttm/ttm_page_alloc.c:786: error: 'struct ttm_pool_manager' has no member named 'wc_pool'
/usr/src/sys/modules/drm2/drm2/../../../dev/drm2/ttm/ttm_page_alloc.c:787: error: 'struct ttm_pool_manager' has no member named 'uc_pool'
/usr/src/sys/modules/drm2/drm2/../../../dev/drm2/ttm/ttm_page_alloc.c:788: error: 'struct ttm_pool_manager' has no member named 'wc_pool_dma32'
/usr/src/sys/modules/drm2/drm2/../../../dev/drm2/ttm/ttm_page_alloc.c:790: error: 'struct ttm_pool_manager' has no member named 'uc_pool_dma32'
/usr/src/sys/modules/drm2/drm2/../../../dev/drm2/ttm/ttm_page_alloc.c: In function 'ttm_page_alloc_fini':
/usr/src/sys/modules/drm2/drm2/../../../dev/drm2/ttm/ttm_page_alloc.c:811: error: 'struct ttm_pool_manager' has no member named 'pools'
*** [ttm_page_alloc.o] Error code 1
1 error
*** [all] Error code 2
1 error
*** [modules-all] Error code 2
1 error
*** [buildkernel] Error code 2
1 error
*** [buildkernel] Error code 2
1 error
22.434u 9.092s 0:22.11 142.5%	6476+1023k 109+98423io 6pf+0w
root_at_nucleus:/usr/src # ^D

Script done on Tue Mar  5 07:28:47 2013

Glen


Received on Tue Mar 05 2013 - 11:30:20 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:35 UTC