gsutre / netbsd-drmgem

Porting DRM/GEM from OpenBSD to NetBSD (Intel only)
14 stars 3 forks source link

Compilation Error NetBSD 6.99.14 amd64 #15

Closed apeyroux closed 11 years ago

apeyroux commented 11 years ago

Hello, First of all, thank you for your work. I want to share with you an error when I compile in current. Here are the logs:

# pwd
/home/ja/tmp/netbsd-drmgem/netbsd-drmgem.usr/src/sys/arch/amd64/conf
# config GENERIC                                                                                                                                                       
Build directory is ../compile/GENERIC
Don't forget to run "make depend"
# cd ../compile/GENERIC/ 
# make clean && make depend && make
[...]
#   compile  GENERIC/drm_drv.o
gcc -mcmodel=kernel -mno-red-zone -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fno-zero-initialized-in-bss -O2 -fno-omit-frame-pointer -fstack-protector -Wstack-protector --param ssp-buffer-size=1 -fno-strict-aliasing -fno-common -std=gnu99 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wold-style-definition -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-unreachable-code -Wno-pointer-sign -Wno-attributes -Wextra -Wno-unused-parameter -Wold-style-definition -Wno-sign-compare -Damd64 -Dx86_64 -I. -I../../../../../common/include -I../../../../arch -I../../../.. -nostdinc -DDIAGNOSTIC -DMAXUSERS=64 -D_KERNEL -D_KERNEL_OPT -std=gnu99 -I../../../../lib/libkern/../../../common/lib/libc/quad -I../../../../lib/libkern/../../../common/lib/libc/string -I../../../../lib/libkern/../../../common/lib/libc/arch/x86_64/string -I../../../../external/bsd/ipf -I../../../../external/isc/atheros_hal/dist -I../../../../external/isc/atheros_hal/ic -I../../../../../common/include -I../../../../external/bsd/acpica/dist/include -c ../../../../dev/pci/drm/drm_drv.c
../../../../dev/pci/drm/drm_drv.c:369:23: error: expected ')' before 'sizeof'
*** Error code 1

Stop.
make: stopped in /home/ja/tmp/netbsd-drmgem/netbsd-drmgem.usr/src/sys/arch/amd64/compile/GENERIC

# uname -a                                                                                                                                                             
NetBSD spof.j4.pe.intra 6.99.14 NetBSD 6.99.14 (J4) #0: Tue Oct 30 11:46:23 CET 2012  ja@spof.j4.pe.intra:/usr/objdir/sys/arch/amd64/compile/J4 amd64
apeyroux commented 11 years ago

For information :

./autobuild.sh -mv 201210270000Z build ok ./autobuild.sh -mv 201210280000Z build fail

gsutre commented 11 years ago

Thanks for the report. I suspect that the problem comes from the recent commit that changed things related to struct device, see:

http://mail-index.netbsd.org/source-changes/2012/10/27/msg038304.html

Old-style attachment is used by default in the master branch to simplify merge of OpenBSD -current changes. I'll look into this problem in the next few days.

gsutre commented 11 years ago

The issue should be fixed. Please reopen if that's not the case.