[Openchrome-users] Unichrome build failed on Linux 2.6.18 (Core Duo2)

Ivor Hewitt ivor
Mon Oct 2 23:55:12 PDT 2006


On Tuesday 26 September 2006 16:35, Michael Burschik wrote:
> hellboy:~/unichrome-20060322# cd drm/linux-core/
> hellboy:~/unichrome-20060322/drm/linux-core# make
> LINUXDIR=/usr/src/linux-2.6.18 DRM_MODULES=via
> + ln -s ../shared-core/drm.h drm.h
> + ln -s ../shared-core/drm_sarea.h drm_sarea.h
> + ln -s ../shared-core/mga_dma.c mga_dma.c
> + ln -s ../shared-core/mga_drm.h mga_drm.h
> + ln -s ../shared-core/mga_drv.h mga_drv.h
> + ln -s ../shared-core/mga_irq.c mga_irq.c
> + ln -s ../shared-core/mga_state.c mga_state.c
> + ln -s ../shared-core/mga_ucode.h mga_ucode.h
> + ln -s ../shared-core/mga_warp.c mga_warp.c
> + ln -s ../shared-core/r128_drv.h r128_drv.h
> + ln -s ../shared-core/r128_drm.h r128_drm.h
> + ln -s ../shared-core/r128_cce.c r128_cce.c
> + ln -s ../shared-core/r128_state.c r128_state.c
> + ln -s ../shared-core/r128_irq.c r128_irq.c
> + ln -s ../shared-core/radeon_drv.h radeon_drv.h
> + ln -s ../shared-core/radeon_drm.h radeon_drm.h
> + ln -s ../shared-core/radeon_cp.c radeon_cp.c
> + ln -s ../shared-core/radeon_irq.c radeon_irq.c
> + ln -s ../shared-core/radeon_mem.c radeon_mem.c
> + ln -s ../shared-core/radeon_state.c radeon_state.c
> + ln -s ../shared-core/r300_cmdbuf.c r300_cmdbuf.c
> + ln -s ../shared-core/r300_reg.h r300_reg.h
> + ln -s ../shared-core/sis_drv.h sis_drv.h
> + ln -s ../shared-core/sis_drm.h sis_drm.h
> + ln -s ../shared-core/sis_ds.c sis_ds.c
> + ln -s ../shared-core/sis_ds.h sis_ds.h
> + ln -s ../shared-core/sis_mm.c sis_mm.c
> + ln -s ../shared-core/tdfx_drv.h tdfx_drv.h
> + ln -s ../shared-core/via_drm.h via_drm.h
> + ln -s ../shared-core/via_drv.h via_drv.h
> + ln -s ../shared-core/via_mm.h via_mm.h
> + ln -s ../shared-core/via_ds.h via_ds.h
> + ln -s ../shared-core/via_3d_reg.h via_3d_reg.h
> + ln -s ../shared-core/via_drv.c via_drv.c
> + ln -s ../shared-core/via_ds.c via_ds.c
> + ln -s ../shared-core/via_irq.c via_irq.c
> + ln -s ../shared-core/via_map.c via_map.c
> + ln -s ../shared-core/via_mm.c via_mm.c
> + ln -s ../shared-core/via_dma.c via_dma.c
> + ln -s ../shared-core/via_verifier.c via_verifier.c
> + ln -s ../shared-core/via_verifier.h via_verifier.h
> + ln -s ../shared-core/via_video.c via_video.c
> + ln -s ../shared-core/mach64_drv.h mach64_drv.h
> + ln -s ../shared-core/mach64_drm.h mach64_drm.h
> + ln -s ../shared-core/mach64_dma.c mach64_dma.c
> + ln -s ../shared-core/mach64_irq.c mach64_irq.c
> + ln -s ../shared-core/mach64_state.c mach64_state.c
> + ln -s ../shared-core/i915_drv.h i915_drv.h
> + ln -s ../shared-core/i915_drm.h i915_drm.h
> + ln -s ../shared-core/i915_irq.c i915_irq.c
> + ln -s ../shared-core/i915_mem.c i915_mem.c
> + ln -s ../shared-core/i915_dma.c i915_dma.c
> + ln -s ../shared-core/savage_drv.h savage_drv.h
> + ln -s ../shared-core/savage_drm.h savage_drm.h
> + ln -s ../shared-core/savage_bci.c savage_bci.c
> + ln -s ../shared-core/savage_state.c savage_state.c
> + ln -s ../shared-core/nv_drv.h nv_drv.h
> sh ../scripts/create_linux_pci_lists.sh < ../shared-core/drm_pciids.txt
> rm -f linux
> ln -s . linux
> make -C /usr/src/linux-2.6.18 SUBDIRS=`pwd` DRMSRCDIR=`pwd` modules
> make[1]: Entering directory `/usr/src/linux-2.6.18'
> CC [M] /root/unichrome-20060322/drm/linux-core/drm_auth.o
> CC [M] /root/unichrome-20060322/drm/linux-core/drm_bufs.o
> CC [M] /root/unichrome-20060322/drm/linux-core/drm_context.o
> CC [M] /root/unichrome-20060322/drm/linux-core/drm_dma.o
> CC [M] /root/unichrome-20060322/drm/linux-core/drm_drawable.o
> CC [M] /root/unichrome-20060322/drm/linux-core/drm_drv.o
> CC [M] /root/unichrome-20060322/drm/linux-core/drm_fops.o
> /root/unichrome-20060322/drm/linux-core/drm_fops.c: In function
> ???drm_stub_open???:
> /root/unichrome-20060322/drm/linux-core/drm_fops.c:191: warning:
> assignment discards qualifiers from pointer target type
> CC [M] /root/unichrome-20060322/drm/linux-core/drm_ioctl.o
> CC [M] /root/unichrome-20060322/drm/linux-core/drm_irq.o
> CC [M] /root/unichrome-20060322/drm/linux-core/drm_lock.o
> CC [M] /root/unichrome-20060322/drm/linux-core/drm_memory.o
> CC [M] /root/unichrome-20060322/drm/linux-core/drm_proc.o
> CC [M] /root/unichrome-20060322/drm/linux-core/drm_stub.o
> CC [M] /root/unichrome-20060322/drm/linux-core/drm_vm.o
> CC [M] /root/unichrome-20060322/drm/linux-core/drm_sysfs.o
> CC [M] /root/unichrome-20060322/drm/linux-core/drm_pci.o
> CC [M] /root/unichrome-20060322/drm/linux-core/drm_agpsupport.o
> CC [M] /root/unichrome-20060322/drm/linux-core/drm_scatter.o
> CC [M] /root/unichrome-20060322/drm/linux-core/drm_memory_debug.o
> CC [M] /root/unichrome-20060322/drm/linux-core/ati_pcigart.o
> /root/unichrome-20060322/drm/linux-core/ati_pcigart.c: In function
> ???drm_ati_free_pcigart_table???:
> /root/unichrome-20060322/drm/linux-core/ati_pcigart.c:87: error:
> ???struct page??? has no member named ???count???
> make[2]: *** [/root/unichrome-20060322/drm/linux-core/ati_pcigart.o] Error
> 1 make[1]: *** [_module_/root/unichrome-20060322/drm/linux-core] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.6.18'
> make: *** [modules] Error 2
> hellboy:~/unichrome-20060322/drm/linux-core# make
> LINUXDIR=/usr/src/linux-2.6.18 DRM_MODULES=via
> make -C /usr/src/linux-2.6.18 SUBDIRS=`pwd` DRMSRCDIR=`pwd` modules
> make[1]: Entering directory `/usr/src/linux-2.6.18'
> CC [M] /root/unichrome-20060322/drm/linux-core/ati_pcigart.o
> /root/unichrome-20060322/drm/linux-core/ati_pcigart.c: In function
> ???drm_ati_free_pcigart_table???:
> /root/unichrome-20060322/drm/linux-core/ati_pcigart.c:87: error:
> ???struct page??? has no member named ???count???
> make[2]: *** [/root/unichrome-20060322/drm/linux-core/ati_pcigart.o] Error
> 1 make[1]: *** [_module_/root/unichrome-20060322/drm/linux-core] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.6.18'
> make: *** [modules] Error 2

Hi, there's nothing 'special' about a core duo that would stop it building... 
also that is the drm driver failing to build not the unichrome driver, so you 
need to report that to the drm developers.... finally that error is compiling 
the ATI driver anyway... so if you don't need it don't compile it. 
just do:
 make DRM_MODULES="via"

Cheers,
Ivor
-- 
Ivor Hewitt.




More information about the Openchrome-users mailing list