gsutre / netbsd-drmgem

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

Compilation Error NetBSD amd64 #19

Closed ghost closed 11 years ago

ghost commented 11 years ago

Hello, Thank you for your great work. I'm using automatic installation (autobuild.sh) but during compilation I get an error. Can you help me ?

#   compile  libm/s_fma.ln
lint -chapbxzFS   -D_MULTI_LIBM -D_POSIX_MODE -DLIBM_SCCS 
-I/home/tty/drmgem/netbsd-drmgem.usr/src/lib/libm/gen    
-i /home/tty/drmgem/netbsd-drmgem.usr/src/lib/libm/src/s_fma.c

#   compile  libm/s_fma.o
gcc -O2 -std=gnu99  -Wall -Wstrict-prototypes -Wmissing-prototypes 
-Wpointer-arith -Wno-sign-compare  -Wno-traditional  -Wa,--fatal-warnings 
-Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra 
-Wno-unused-parameter -Wno-sign-compare -Wsign-compare -Wformat=2 
-Werror   -fno-strict-aliasing  -D_MULTI_LIBM -D_POSIX_MODE -DLIBM_SCCS 
-I/home/tty/drmgem/netbsd-drmgem.usr/src/lib/libm/gen 
-c /home/tty/drmgem/netbsd-drmgem.usr/src/lib/libm/src/s_fma.c -o s_fma.o

cc1: warnings being treated as errors
/home/tty/drmgem/netbsd-drmgem.usr/src/lib/libm/src/s_fma.c:189:1: error: no previous prototype for 'fma'
*** Error code 1

Stop.
make: stopped in /home/tty/drmgem/netbsd-drmgem.usr/src/lib/libm
$ uname -a
NetBSD TekBSD 6.99.14 NetBSD 6.99.14 (GENERIC) #0: Sat Oct 27 19:27:36 CEST 2012  
instsoft@yosemite:/tmp/netbsd-drmgem.usr/src/sys/arch/amd64/compile/GENERIC amd64

Thank,

gsutre commented 11 years ago

I'm afraid that your NetBSD -current installation might be too old. The README file was too imprecise on the use of autobuild.sh. I have just added some details that, hopefully, make it more clear.

Assuming that T is the timestamp passed to autobuild.sh, then

gsutre commented 11 years ago

Please re-open this issue if the problem is not fixed.