From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 23 12:13:47 2010 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 781E9106566C for ; Fri, 23 Apr 2010 12:13:47 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from tower.berklix.org (tower.berklix.org [83.236.223.114]) by mx1.freebsd.org (Postfix) with ESMTP id 126E18FC1C for ; Fri, 23 Apr 2010 12:13:46 +0000 (UTC) Received: from park.js.berklix.net (p549A786F.dip.t-dialin.net [84.154.120.111]) (authenticated bits=0) by tower.berklix.org (8.14.2/8.14.2) with ESMTP id o3NCDih3065412; Fri, 23 Apr 2010 12:13:44 GMT (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by park.js.berklix.net (8.13.8/8.13.8) with ESMTP id o3NCDnMH023577; Fri, 23 Apr 2010 14:13:49 +0200 (CEST) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (localhost [127.0.0.1]) by fire.js.berklix.net (8.14.3/8.14.3) with ESMTP id o3NCDcGP027210; Fri, 23 Apr 2010 14:13:43 +0200 (CEST) (envelope-from jhs@fire.js.berklix.net) Message-Id: <201004231213.o3NCDcGP027210@fire.js.berklix.net> To: gary.jennejohn@freenet.de From: "Julian H. Stacey" Organization: http://www.berklix.com BSD Unix Linux Consultancy, Munich Germany User-agent: EXMH on FreeBSD http://www.berklix.com/free/ X-URL: http://www.berklix.com In-reply-to: Your message "Thu, 22 Apr 2010 17:58:35 +0200." <20100422175835.280917c3@ernst.jennejohn.org> Date: Fri, 23 Apr 2010 14:13:38 +0200 Sender: jhs@berklix.com Cc: hackers@freebsd.org Subject: Re: /sys/amd64/conf/GENERIC COMPAT_FREEBSD7 a prerequisite for COMPAT_IA32 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Apr 2010 12:13:47 -0000 Gary Jennejohn wrote: > "Julian H. Stacey" wrote: > > Gary Jennejohn wrote: > > > "Julian H. Stacey" wrote: > > > > > > > Hi hackers@freebsd.org > > > > with amd64, but not with i386, > > > > /sys/amd64/conf/GENERIC COMPAT_FREEBSD7 is an undocemneted > > > > pre-requisite for COMPAT_IA32 > > > > (so those who enable COMPAT_IA32 for ports/emulators, but disable > > > > COMPAT_FREEBSD7 as they compile all binaries on upgrade, will trip > > > > up on it as I did). Currently I see: > > > > > > > > cc -c -O2 -frename-registers -pipe -fno-strict-aliasing -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I../../.. -I../../../contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -Werror ../../../compat/freebsd32/freebsd32_misc.c > > > > cc1: warnings being treated as errors > > > > ../../../compat/freebsd32/freebsd32_misc.c: In function 'freebsd32_semsys': > > > > ../../../compat/freebsd32/freebsd32_misc.c:1420: warning: implicit declaration of function 'freebsd7_freebsd32_semctl' > > > > ../../../compat/freebsd32/freebsd32_misc.c:1420: warning: nested extern declaration of 'freebsd7_freebsd32_semctl' > > > > ... > > > > ../../../compat/freebsd32/freebsd32_misc.c:1845: error: dereferencing pointer to incomplete type > > > > *** Error code 1 > > > > > > > > It could be documented in GENERIC, but better to fix it. I could > > > > dig through sources, but I think there's people closer to config > > > > who would prefer to commit their own fix, rather than me write a patch ? > > > > (Does that translate as "I'm lazy" ? ;-) > > > > > > > > > > The switch is documented in /usr/src/UPDATING on my box. This is the > > > usual place for this kind of heads-up. > > > > Thanks Gary, > > It seems COMPAT_FREEBSD7 has more scope than [456] > > ( /usr/src/UPDATING I should read more often. ) > > > > But /usr/src/UPDATING is a transition log, & as new things occur, > > the entry re COMPAT_FREEBSD7 will get buried deeper. > > > > Requirement from COMPAT_IA32 for COMPAT_FREEBSD7 applies with > > amd64 but not i386, so I'd suggest that could be documented in > > /sys/amd64/conf/GENERIC , eg > > > > From > > options COMPAT_FREEBSD7 # Compatible with FreeBSD7 > > To > > options COMPAT_FREEBSD7 # Compatible with FreeBSD7, req. by COMPAT_IA32 > > > > You're right. It's also in /sys/amd64/conf/NOTES, which is actually > the place where valid flags are supposed to be documented. GENERIC > actually has a different role. Note that I'm running -current, but > it should also be there on other releases. COMPAT_FREEBSD7 is not in { 8.0-RELEASE stable current } /sys/amd64/conf/NOTES OK, thanks for pointing where it should go, I will send a send-pr to add it Cheers, Julian -- Julian Stacey: BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com Mail plain text, Not HTML quoted-printable Base64 http://www.asciiribbon.org