NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: xsrc/52492: netbsd-7 xsrc fails build with llvm



The following reply was made to PR xsrc/52492; it has been noted by GNATS.

From: Greg Oster <oster%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: xsrc/52492: netbsd-7 xsrc fails build with llvm
Date: Fri, 18 Aug 2017 17:13:29 -0600

 On Fri, 18 Aug 2017 18:40:00 +0000 (UTC)
 oster%netbsd.org@localhost wrote:
 
 > from /u1/builds/build161/xsrc/external/mit/libdrm/dist/nouveau/private.h:6: /u1/builds/build161/xsrc/external/mit/libdrm/dist/xf86atomic.h:120:31:
 > error: passing 'int *' to parameter of type 'volatile unsigned int *'
 > converts between pointers to integer types with different sign
 > [-Werror,-Wpointer-sign] while (c != unless && (old =
 > atomic_cmpxchg(v, c, c + add)) != c)
 > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /u1/builds/build161/xsrc/external/mit/libdrm/dist/xf86atomic.h:108:57:
 > note: expanded from macro 'atomic_cmpxchg' # define atomic_cmpxchg(x,
 > oldv, newv) atomic_cas_uint (&(x)->atomic, oldv, newv)
 > ^~~~~~~~~~~~ /u1/builds/build161/install/amd64/usr/include/sys/atomic.h:86:53:
 > note: passing argument to parameter here unsigned int
 > atomic_cas_uint(volatile unsigned int *, unsigned int, ^ 1 error
 > generated. *** 
 
 Thanks to mrg, I discovered that rev 1.9 (-current) of xf86atomic.h
 fixes the above issue.  Continuing on with rev 1.9, I then get to this
 point.
 
 In file included
 from /u1/builds/build161/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/nv50_ir_target.h:26: /u1/builds/build161/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/nv50_ir.h:32:10:
 fatal error: 'tr1/unordered_set' file not found #include
 <tr1/unordered_set> ^
 1 error generated.
 nbmkdep: compile failed.
 
 Not sure what the right fix is, other than 'grab newer sources'.  
 
 -current xsrc seems to work much better, but I end up with this:
 
 ...
 --- includes-libXau ---
 /u1/builds/build162/tools/amd64/bin/x86_64--netbsd-install -U
 -M /u1/builds/build162/install/amd64/METALOG
 -D /u1/builds/build162/install/amd64 -h sha256
 -N /u1/builds/build162/src/etc -c -p -r -c -o root -g wheel  -m
 444 /u1/builds/build162/xsrc/external/mit/libXau/dist/include/X11/Xauth.h /u1/builds/build162/install/amd64/usr/X11R7/include/X11/Xauth.h
 --- includes-freetype --- nbmake[8]: nbmake[8]: don't know how to make
 freetype.h. Stop nbmake[8]: stopped
 in /u1/builds/build162/src/external/mit/xorg/lib/freetype/freetype ***
 [includes-freetype] Error code 2 nbmake[7]: stopped
 in /u1/builds/build162/src/external/mit/xorg/lib/freetype 1 error
 ...
 
 
 Later...
 
 Greg Oster
 


Home | Main Index | Thread Index | Old Index