NetBSD-Bugs archive

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

Re: lib/44998: userland change breaks Xen kernel compile



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

From: eric%cirr.com@localhost (Eric Schnoebelen)
To: Christoph Egger <Christoph_Egger%gmx.de@localhost>
Cc: gnats-bugs%NetBSD.org@localhost, David Holland 
<dholland-bugs%NetBSD.org@localhost>,
        lib-bug-people%NetBSD.org@localhost, gnats-admin%NetBSD.org@localhost,
        netbsd-bugs%NetBSD.org@localhost
Subject: Re: lib/44998: userland change breaks Xen kernel compile
Date: Mon, 30 May 2011 19:12:37 -0500

 ------- =_aaaaaaaaaa0
 Content-Type: text/plain; charset="us-ascii"
 Content-ID: <1570.1306800061.1%egsner.cirr.com@localhost>
 
 Christoph Egger writes:
 - On 28.05.11 19:00, David Holland wrote:
 - >  It's trying to do #include <stdarg.h> while using -nostdinc.
 - 
 - Yes, but why does it compile with 5.99.44 userland regardless ?
 
 Somewhere between 5.99.44 and now, the C cross compiler had
 change to the options used to build compilers.  Not sure why
 that would make a difference, but..
 
 In looking at the pkgsrc/sysutils/xenkernel33 build, I find the
 following patch makes it all build.
 
 From reading the comment, the Solaris clause is backwards, but I
 hate to make too radical of a change.
 
 FYI: I was also able to build xenkernel41 with the attached
 patch, and without the modifed include/xen/stdarg.h.
 
 --
 Eric Schnoebelen               eric%cirr.com@localhost         
http://www.cirr.com
     The Force is what holds everything together.  It has its dark side, 
       and it has its light side.  It's sort of like cosmic duct tape.
 
 ------- =_aaaaaaaaaa0
 Content-Type: text/plain; charset="us-ascii"
 Content-ID: <1570.1306800061.2%egsner.cirr.com@localhost>
 
 $NetBSD$
 
 --- xen/arch/x86/Rules.mk.orig 2009-08-06 12:56:40.000000000 +0000
 +++ xen/arch/x86/Rules.mk
 @@ -13,7 +13,9 @@ supervisor_mode_kernel ?= n
  
  # Solaris grabs stdarg.h and friends from the system include directory.
  ifneq ($(XEN_OS),SunOS)
 + ifneq ($(XEN_OS),NetBSD)
  CFLAGS += -nostdinc
 + endif
  endif
  
  CFLAGS += -fno-builtin -fno-common
 
 ------- =_aaaaaaaaaa0--
 


Home | Main Index | Thread Index | Old Index