From owner-freebsd-amd64@FreeBSD.ORG Mon Dec 10 11:06:40 2012 Return-Path: Delivered-To: freebsd-amd64@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4DCA3EEB for ; Mon, 10 Dec 2012 11:06:40 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 312528FC1F for ; Mon, 10 Dec 2012 11:06:40 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qBAB6eYW064157 for ; Mon, 10 Dec 2012 11:06:40 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qBAB6do4064155 for freebsd-amd64@FreeBSD.org; Mon, 10 Dec 2012 11:06:39 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 10 Dec 2012 11:06:39 GMT Message-Id: <201212101106.qBAB6do4064155@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-amd64@FreeBSD.org Subject: Current problem reports assigned to freebsd-amd64@FreeBSD.org X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Dec 2012 11:06:40 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o amd64/173869 amd64 buildworld breaks with clang o amd64/173680 amd64 9.1rc3 installer hangs at "rootpass" o amd64/173502 amd64 Patch inhibition of warnings that appear in the combin o amd64/173465 amd64 FreeBSD 9.1 restarts in random fashion after upgrade t o amd64/173311 amd64 FreeBSD 9.1 RC2 , 12 servers restart in random fashion o amd64/173235 amd64 Have received two crashes within 1 day after installin o amd64/172926 amd64 [boot] booting hangs after 9.1-RC2 install in 2nd (MBR o amd64/171835 amd64 bsdinstall abort on Dell PowerEdge R420 with PERC H310 o amd64/171814 amd64 [panic] bioq_init or bioq_remove (unsure which) o amd64/171344 amd64 pkg_add -r xorg fails for freebsd 9 system o amd64/171331 amd64 Npviewer is crap o amd64/171250 amd64 ldd32 cannot find some i386 libraries o amd64/171110 amd64 Upgrade 9.1-BETA1 > RC1 issue o amd64/171016 amd64 Install of 9.1 RC1-amd64 using netinst iso stops at 97 o amd64/170677 amd64 FreeBSD 9.x does not boot if 2 hard disks are on syste o amd64/170487 amd64 [boot] Thinkpad X61s cannot boot 9.1-BETA1 o amd64/170351 amd64 [kernel] [patch] amd64: 64-bit process can't always ge o amd64/170115 amd64 Serial boot broken in 9.0 o amd64/168659 amd64 [boot] FreeBSD 9 - Crash upon booting off install CD ( o amd64/167582 amd64 Compile of MySQL NDB Cluster Fails 8.2 AMD64 o amd64/167543 amd64 [kernel] Install FreeBSD can show error message with c o amd64/167393 amd64 [boot] MacBook4,1 hangs on SMP boot o amd64/166639 amd64 [boot] Syscons issue Intel D2700 o amd64/166229 amd64 [boot] Unable to install FreeBSD 9 on Acer Extensa 522 o amd64/165850 amd64 [build] 8.3-RC1 (amd64): world doesn't build with CPUT o amd64/165845 amd64 [build] Unable to build kernel on 8.2-STABLE o amd64/165351 amd64 [boot] Error while installing or booting the freeBSD O o amd64/164773 amd64 [boot] 9.0 amd64 fails to boot on HP DL145 G3 [regress o amd64/164707 amd64 FreeBSD 9 installer does not work with IBM uefi o amd64/164643 amd64 Kernel Panic at 9.0-RELEASE o amd64/164619 amd64 when logged in as root the user and group applications o amd64/164457 amd64 [install] Can't install FreeBSD 9.0 (amd64) on HP Blad o amd64/164301 amd64 [install] 9.0 - Can't install, no DHCP lease o amd64/164136 amd64 after fresh install 8.1 release or 8.2 release the har o amd64/164116 amd64 [boot] FreeBSD 9.0-RELEASE installations mediums fails o amd64/164089 amd64 FreeBSD-9.0-RELEASE-amd64-memstick.img does not boot o amd64/164073 amd64 /etc/rc warning after booting o amd64/164036 amd64 [keyboard] Moused fails on 9_0_RELENG o amd64/163736 amd64 Freebsd 8.2 with MPD5 and about 100 PPPoE clients pani o amd64/163710 amd64 setjump in userboot.so causes stack corruption o amd64/163625 amd64 Install problems of RC3 amd64 on ASRock N68 GE3 UCC o amd64/163568 amd64 hard drive naming o amd64/163285 amd64 when installing gnome2-lite not all dependent packages o amd64/163284 amd64 print manager failed to install correctly o amd64/163114 amd64 no boot on Via Nanao netbook Samsung NC20 o amd64/163092 amd64 FreeBSD 9.0-RC2 fails to boot from raid-z2 if AHCI is o amd64/163048 amd64 normal user cant mount ntfs-3g o amd64/162936 amd64 fails boot and destabilizes other OSes on FreeBSD 9 RC o amd64/162489 amd64 After some time X blanks the screen and does not respo o amd64/162314 amd64 not able to install FreeBSD-8.2-RELEASE-amd64-dvd1 as o amd64/162219 amd64 [REGRESSION] In KDE 4.7.2 cant enable OpenGL,in 4.6.5 o amd64/162170 amd64 Unable to install due to freeze at "run_interrupt_driv o amd64/161974 amd64 FreeBSD 9 new installer installs succesful, renders ma o kern/160833 amd64 Keyboard USB doesn't work o amd64/157386 amd64 [powerd] Enabling powerd(8) with default settings on I o amd64/156106 amd64 [boot] boot0 fails to start o amd64/155135 amd64 [boot] Does Not Boot On a Very Standard Hardware o amd64/154957 amd64 [boot] Install boot CD won't boot up - keeps rebooting o amd64/154629 amd64 [panic] Fatal trap 9: general protection fault while i o amd64/153935 amd64 [hang] system hangs while trying to do 'shutdown -h no o amd64/153831 amd64 [boot] CD bootloader won't on Tyan s2912G2nr o amd64/153496 amd64 [hyper-v] [install] Install on Hyper-V leaves corrupt o amd64/153372 amd64 [panic] kernel panic o amd64/153175 amd64 [amd64] Kernel Panic on only FreeBSD 8 amd64 o amd64/152874 amd64 [install] 8.1 install fails where 7.3 works due to lac o amd64/152430 amd64 [boot] HP ProLiant Microserver n36l cannot boot into i o amd64/145991 amd64 [NOTES] [patch] Add a requires line to /sys/amd64/conf o amd64/144405 amd64 [build] [patch] include /usr/obj/lib32 in cleanworld t s amd64/143173 amd64 [ata] Promise FastTrack TX4 + SATA DVD, installer can' p amd64/141413 amd64 [hang] Tyan 2881 m3289 SMDC freeze o amd64/137942 amd64 [pci] 8.0-BETA2 having problems with Asus M2N-SLI-delu o amd64/127640 amd64 [amd64] gcc(1) will not build shared libraries with -f o amd64/115194 amd64 LCD screen remains blank after Dell XPS M1210 lid is c 73 problems total. From owner-freebsd-amd64@FreeBSD.ORG Wed Dec 12 05:40:28 2012 Return-Path: Delivered-To: freebsd-amd64@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6996BA57; Wed, 12 Dec 2012 05:40:28 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 35AC88FC0C; Wed, 12 Dec 2012 05:40:28 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qBC5eSSA035506; Wed, 12 Dec 2012 05:40:28 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qBC5eRwb035502; Wed, 12 Dec 2012 05:40:27 GMT (envelope-from linimon) Date: Wed, 12 Dec 2012 05:40:27 GMT Message-Id: <201212120540.qBC5eRwb035502@freefall.freebsd.org> To: brian@brianwhalen.net, linimon@FreeBSD.org, freebsd-amd64@FreeBSD.org From: linimon@FreeBSD.org Subject: Re: amd64/171016: Install of 9.1 RC1-amd64 using netinst iso stops at 97% of base X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Dec 2012 05:40:28 -0000 Synopsis: Install of 9.1 RC1-amd64 using netinst iso stops at 97% of base State-Changed-From-To: open->closed State-Changed-By: linimon State-Changed-When: Wed Dec 12 05:39:53 UTC 2012 State-Changed-Why: submitter notes this was a local problem. http://www.freebsd.org/cgi/query-pr.cgi?pr=171016 From owner-freebsd-amd64@FreeBSD.ORG Wed Dec 12 05:50:01 2012 Return-Path: Delivered-To: freebsd-amd64@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 56C02C77 for ; Wed, 12 Dec 2012 05:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 393CF8FC0C for ; Wed, 12 Dec 2012 05:50:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qBC5o0Jo035755 for ; Wed, 12 Dec 2012 05:50:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qBC5o0dv035751; Wed, 12 Dec 2012 05:50:00 GMT (envelope-from gnats) Date: Wed, 12 Dec 2012 05:50:00 GMT Message-Id: <201212120550.qBC5o0dv035751@freefall.freebsd.org> To: freebsd-amd64@FreeBSD.org Cc: From: Mark Linimon Subject: Re: amd64/171016: Install of 9.1 RC1-amd64 using netinst iso stops at 97% of base X-Mailman-Approved-At: Wed, 12 Dec 2012 06:38:55 +0000 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Mark Linimon List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Dec 2012 05:50:01 -0000 The following reply was made to PR amd64/171016; it has been noted by GNATS. From: Mark Linimon To: bug-followup@FreeBSD.org Cc: Subject: Re: amd64/171016: Install of 9.1 RC1-amd64 using netinst iso stops at 97% of base Date: Tue, 11 Dec 2012 23:41:20 -0600 ----- Forwarded message from Brian ----- Date: Fri, 07 Dec 2012 16:13:31 -0800 From: Brian To: freebsd-amd64@freebsd.org Subject: Re: amd64/171016: Install of 9.1 RC1-amd64 using netinst iso stops at 97% of base I just tried again, and due to either an isp change on my side (megapath dsl to ATT Uverse) or some other change on the freebsd server side, this is now working. Brian ----- End forwarded message ----- From owner-freebsd-amd64@FreeBSD.ORG Wed Dec 12 11:50:00 2012 Return-Path: Delivered-To: freebsd-amd64@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7BEE3570 for ; Wed, 12 Dec 2012 11:50:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 4C4B98FC15 for ; Wed, 12 Dec 2012 11:50:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qBCBo0oS060239 for ; Wed, 12 Dec 2012 11:50:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qBCBo0JZ060238; Wed, 12 Dec 2012 11:50:00 GMT (envelope-from gnats) Resent-Date: Wed, 12 Dec 2012 11:50:00 GMT Resent-Message-Id: <201212121150.qBCBo0JZ060238@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-amd64@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Marcelo Araujo Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D70962DF for ; Wed, 12 Dec 2012 11:42:12 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id BACF18FC0A for ; Wed, 12 Dec 2012 11:42:12 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id qBCBgCv7041698 for ; Wed, 12 Dec 2012 11:42:12 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id qBCBgCCc041697; Wed, 12 Dec 2012 11:42:12 GMT (envelope-from nobody) Message-Id: <201212121142.qBCBgCCc041697@red.freebsd.org> Date: Wed, 12 Dec 2012 11:42:12 GMT From: Marcelo Araujo To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: amd64/174388: [9.1-RELEASE] Build world problem with yyparser. X-Mailman-Approved-At: Wed, 12 Dec 2012 12:51:26 +0000 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Dec 2012 11:50:00 -0000 >Number: 174388 >Category: amd64 >Synopsis: [9.1-RELEASE] Build world problem with yyparser. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-amd64 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Dec 12 11:50:00 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Marcelo Araujo >Release: FreeBSD 9.1-RC1 >Organization: FreeBSD >Environment: FreeBSD Araujo 9.1-RC1 FreeBSD 9.1-RC1 #0: Thu Aug 9 09:41:50 PDT 2012 root@build9x64.pcbsd.org:/usr/obj/builds/amd64/pcbsd-build90/fbsd-source/9.1/sys/GENERIC amd64 >Description: There are bunch of updates related with yyparse that were added on HEAD but were forgotten to MFC'd to STABLE for some reason and those updates are not part of 9.1-RELEASE. When you try to build WORLD using CLANG, you will see a lot of issues related with yyparse. Here is my /etc/make.conf added by use.perl 2012-10-03 21:06:29 PERL_VERSION=5.14.2 .if !defined(CC) || ${CC} == "cc" CC=clang .endif .if !defined(CXX) || ${CXX} == "c++" CXX=clang++ .endif .if !defined(CPP) || ${CPP} == "cpp" CPP=clang-cpp .endif NO_WERROR= WERROR= NO_FSCHG= >How-To-Repeat: Just try to make the buildworld using CLANG. >Fix: Here attached there is a patch, all updates comes from HEAD, and it works properly. Patch attached with submission follows: Index: usr.bin/mklocale/extern.h =================================================================== --- usr.bin/mklocale/extern.h (revision 243938) +++ usr.bin/mklocale/extern.h (working copy) @@ -33,4 +33,3 @@ */ int yylex(void); -int yyparse(void); Index: usr.bin/ar/acpyacc.y =================================================================== --- usr.bin/ar/acpyacc.y (revision 243938) +++ usr.bin/ar/acpyacc.y (working copy) @@ -54,7 +54,6 @@ extern int yylex(void); -extern int yyparse(void); static void yyerror(const char *); static void arscp_addlib(char *archive, struct list *list); Index: usr.bin/bc/bc.y =================================================================== --- usr.bin/bc/bc.y (revision 243938) +++ usr.bin/bc/bc.y (working copy) @@ -69,7 +69,6 @@ ssize_t index; }; -int yyparse(void); int yywrap(void); int fileindex; Index: usr.bin/find/getdate.y =================================================================== --- usr.bin/find/getdate.y (revision 243938) +++ usr.bin/find/getdate.y (working copy) @@ -60,11 +60,9 @@ #include -#define yyparse getdate_yyparse #define yylex getdate_yylex #define yyerror getdate_yyerror -static int yyparse(void); static int yylex(void); static int yyerror(const char *); Index: usr.bin/mkcsmapper/ldef.h =================================================================== --- usr.bin/mkcsmapper/ldef.h (revision 243938) +++ usr.bin/mkcsmapper/ldef.h (working copy) @@ -39,4 +39,3 @@ extern int line_number; extern int yyerror(const char *); extern int yylex(void); -extern int yyparse(void); Index: usr.sbin/fifolog/lib/getdate.y =================================================================== --- usr.sbin/fifolog/lib/getdate.y (revision 243938) +++ usr.sbin/fifolog/lib/getdate.y (working copy) @@ -24,11 +24,9 @@ #include "libfifolog.h" -#define yyparse getdate_yyparse #define yylex getdate_yylex #define yyerror getdate_yyerror -static int yyparse(void); static int yylex(void); static int yyerror(const char *); Index: usr.sbin/jail/jailp.h =================================================================== --- usr.sbin/jail/jailp.h (revision 243938) +++ usr.sbin/jail/jailp.h (working copy) @@ -222,7 +222,6 @@ extern void yyerror(const char *); extern int yylex(void); -extern int yyparse(void); extern struct cfjails cfjails; extern struct cfjails ready; Index: usr.sbin/jail/config.c =================================================================== --- usr.sbin/jail/config.c (revision 243938) +++ usr.sbin/jail/config.c (working copy) @@ -52,6 +52,8 @@ extern FILE *yyin; extern int yynerrs; +extern int yyparse(void); + struct cfjails cfjails = TAILQ_HEAD_INITIALIZER(cfjails); static void free_param(struct cfparams *pp, struct cfparam *p); Index: usr.sbin/bluetooth/hcsecd/parser.y =================================================================== --- usr.sbin/bluetooth/hcsecd/parser.y (revision 243938) +++ usr.sbin/bluetooth/hcsecd/parser.y (working copy) @@ -36,6 +36,7 @@ #include #include #include +#include #include #include #include Index: usr.sbin/bluetooth/bthidd/parser.y =================================================================== --- usr.sbin/bluetooth/bthidd/parser.y (revision 243938) +++ usr.sbin/bluetooth/bthidd/parser.y (working copy) @@ -39,6 +39,7 @@ #include #include #include +#include #include #include #include Index: usr.sbin/config/config.h =================================================================== --- usr.sbin/config/config.h (revision 243938) +++ usr.sbin/config/config.h (working copy) @@ -171,7 +171,6 @@ char *raisestr(char *); void remember(const char *); void moveifchanged(const char *, const char *); -int yyparse(void); int yylex(void); void options(void); void makefile(void); Index: usr.sbin/config/main.c =================================================================== --- usr.sbin/config/main.c (revision 243938) +++ usr.sbin/config/main.c (working copy) @@ -91,6 +91,7 @@ static void cleanheaders(char *); static void kernconfdump(const char *); static void checkversion(void); +extern int yyparse(void); struct hdr_list { char *h_name; Index: lib/libc/net/nsparser.y =================================================================== --- lib/libc/net/nsparser.y (revision 243938) +++ lib/libc/net/nsparser.y (working copy) @@ -44,6 +44,7 @@ #define _NS_PRIVATE #include #include +#include #include #include #include "un-namespace.h" Index: bin/expr/expr.y =================================================================== --- bin/expr/expr.y (revision 243938) +++ bin/expr/expr.y (working copy) @@ -74,7 +74,6 @@ void to_string(struct val *); int yyerror(const char *); int yylex(void); -int yyparse(void); %} Index: sbin/devd/parse.y =================================================================== --- sbin/devd/parse.y (revision 243938) +++ sbin/devd/parse.y (working copy) @@ -29,6 +29,7 @@ * $FreeBSD$ */ +#include #include "devd.h" #include #include Index: sbin/hastd/parse.y =================================================================== --- sbin/hastd/parse.y (revision 243938) +++ sbin/hastd/parse.y (working copy) @@ -77,296 +77,9 @@ extern void yyrestart(FILE *); -static int -isitme(const char *name) -{ - char buf[MAXHOSTNAMELEN]; - char *pos; - size_t bufsize; - - /* - * First check if the given name matches our full hostname. - */ - if (gethostname(buf, sizeof(buf)) < 0) { - pjdlog_errno(LOG_ERR, "gethostname() failed"); - return (-1); - } - if (strcmp(buf, name) == 0) - return (1); - - /* - * Now check if it matches first part of the host name. - */ - pos = strchr(buf, '.'); - if (pos != NULL && (size_t)(pos - buf) == strlen(name) && - strncmp(buf, name, pos - buf) == 0) { - return (1); - } - - /* - * At the end check if name is equal to our host's UUID. - */ - bufsize = sizeof(buf); - if (sysctlbyname("kern.hostuuid", buf, &bufsize, NULL, 0) < 0) { - pjdlog_errno(LOG_ERR, "sysctlbyname(kern.hostuuid) failed"); - return (-1); - } - if (strcasecmp(buf, name) == 0) - return (1); - - /* - * Looks like this isn't about us. - */ - return (0); -} - -static bool -family_supported(int family) -{ - int sock; - - sock = socket(family, SOCK_STREAM, 0); - if (sock == -1 && errno == EPROTONOSUPPORT) - return (false); - if (sock >= 0) - (void)close(sock); - return (true); -} - -static int -node_names(char **namesp) -{ - static char names[MAXHOSTNAMELEN * 3]; - char buf[MAXHOSTNAMELEN]; - char *pos; - size_t bufsize; - - if (gethostname(buf, sizeof(buf)) < 0) { - pjdlog_errno(LOG_ERR, "gethostname() failed"); - return (-1); - } - - /* First component of the host name. */ - pos = strchr(buf, '.'); - if (pos != NULL && pos != buf) { - (void)strlcpy(names, buf, MIN((size_t)(pos - buf + 1), - sizeof(names))); - (void)strlcat(names, ", ", sizeof(names)); - } - - /* Full host name. */ - (void)strlcat(names, buf, sizeof(names)); - (void)strlcat(names, ", ", sizeof(names)); - - /* Host UUID. */ - bufsize = sizeof(buf); - if (sysctlbyname("kern.hostuuid", buf, &bufsize, NULL, 0) < 0) { - pjdlog_errno(LOG_ERR, "sysctlbyname(kern.hostuuid) failed"); - return (-1); - } - (void)strlcat(names, buf, sizeof(names)); - - *namesp = names; - - return (0); -} - -void -yyerror(const char *str) -{ - - pjdlog_error("Unable to parse configuration file at line %d near '%s': %s", - lineno, yytext, str); -} - -struct hastd_config * -yy_config_parse(const char *config, bool exitonerror) -{ - int ret; - - curres = NULL; - mynode = false; - depth = 0; - lineno = 0; - - depth0_timeout = HAST_TIMEOUT; - depth0_replication = HAST_REPLICATION_FULLSYNC; - depth0_checksum = HAST_CHECKSUM_NONE; - depth0_compression = HAST_COMPRESSION_HOLE; - strlcpy(depth0_control, HAST_CONTROL, sizeof(depth0_control)); - strlcpy(depth0_pidfile, HASTD_PIDFILE, sizeof(depth0_pidfile)); - TAILQ_INIT(&depth0_listen); - strlcpy(depth0_listen_tcp4, HASTD_LISTEN_TCP4, - sizeof(depth0_listen_tcp4)); - strlcpy(depth0_listen_tcp6, HASTD_LISTEN_TCP6, - sizeof(depth0_listen_tcp6)); - depth0_exec[0] = '\0'; - depth0_metaflush = 1; - - lconfig = calloc(1, sizeof(*lconfig)); - if (lconfig == NULL) { - pjdlog_error("Unable to allocate memory for configuration."); - if (exitonerror) - exit(EX_TEMPFAIL); - return (NULL); - } - - TAILQ_INIT(&lconfig->hc_listen); - TAILQ_INIT(&lconfig->hc_resources); - - yyin = fopen(config, "r"); - if (yyin == NULL) { - pjdlog_errno(LOG_ERR, "Unable to open configuration file %s", - config); - yy_config_free(lconfig); - if (exitonerror) - exit(EX_OSFILE); - return (NULL); - } - yyrestart(yyin); - ret = yyparse(); - fclose(yyin); - if (ret != 0) { - yy_config_free(lconfig); - if (exitonerror) - exit(EX_CONFIG); - return (NULL); - } - - /* - * Let's see if everything is set up. - */ - if (lconfig->hc_controladdr[0] == '\0') { - strlcpy(lconfig->hc_controladdr, depth0_control, - sizeof(lconfig->hc_controladdr)); - } - if (lconfig->hc_pidfile[0] == '\0') { - strlcpy(lconfig->hc_pidfile, depth0_pidfile, - sizeof(lconfig->hc_pidfile)); - } - if (!TAILQ_EMPTY(&depth0_listen)) - TAILQ_CONCAT(&lconfig->hc_listen, &depth0_listen, hl_next); - if (TAILQ_EMPTY(&lconfig->hc_listen)) { - struct hastd_listen *lst; - - if (family_supported(AF_INET)) { - lst = calloc(1, sizeof(*lst)); - if (lst == NULL) { - pjdlog_error("Unable to allocate memory for listen address."); - yy_config_free(lconfig); - if (exitonerror) - exit(EX_TEMPFAIL); - return (NULL); - } - (void)strlcpy(lst->hl_addr, depth0_listen_tcp4, - sizeof(lst->hl_addr)); - TAILQ_INSERT_TAIL(&lconfig->hc_listen, lst, hl_next); - } else { - pjdlog_debug(1, - "No IPv4 support in the kernel, not listening on IPv4 address."); - } - if (family_supported(AF_INET6)) { - lst = calloc(1, sizeof(*lst)); - if (lst == NULL) { - pjdlog_error("Unable to allocate memory for listen address."); - yy_config_free(lconfig); - if (exitonerror) - exit(EX_TEMPFAIL); - return (NULL); - } - (void)strlcpy(lst->hl_addr, depth0_listen_tcp6, - sizeof(lst->hl_addr)); - TAILQ_INSERT_TAIL(&lconfig->hc_listen, lst, hl_next); - } else { - pjdlog_debug(1, - "No IPv6 support in the kernel, not listening on IPv6 address."); - } - if (TAILQ_EMPTY(&lconfig->hc_listen)) { - pjdlog_error("No address to listen on."); - yy_config_free(lconfig); - if (exitonerror) - exit(EX_TEMPFAIL); - return (NULL); - } - } - TAILQ_FOREACH(curres, &lconfig->hc_resources, hr_next) { - PJDLOG_ASSERT(curres->hr_provname[0] != '\0'); - PJDLOG_ASSERT(curres->hr_localpath[0] != '\0'); - PJDLOG_ASSERT(curres->hr_remoteaddr[0] != '\0'); - - if (curres->hr_replication == -1) { - /* - * Replication is not set at resource-level. - * Use global or default setting. - */ - curres->hr_replication = depth0_replication; - } - if (curres->hr_replication == HAST_REPLICATION_MEMSYNC) { - pjdlog_warning("Replication mode \"%s\" is not implemented, falling back to \"%s\".", - "memsync", "fullsync"); - curres->hr_replication = HAST_REPLICATION_FULLSYNC; - } - if (curres->hr_checksum == -1) { - /* - * Checksum is not set at resource-level. - * Use global or default setting. - */ - curres->hr_checksum = depth0_checksum; - } - if (curres->hr_compression == -1) { - /* - * Compression is not set at resource-level. - * Use global or default setting. - */ - curres->hr_compression = depth0_compression; - } - if (curres->hr_timeout == -1) { - /* - * Timeout is not set at resource-level. - * Use global or default setting. - */ - curres->hr_timeout = depth0_timeout; - } - if (curres->hr_exec[0] == '\0') { - /* - * Exec is not set at resource-level. - * Use global or default setting. - */ - strlcpy(curres->hr_exec, depth0_exec, - sizeof(curres->hr_exec)); - } - if (curres->hr_metaflush == -1) { - /* - * Metaflush is not set at resource-level. - * Use global or default setting. - */ - curres->hr_metaflush = depth0_metaflush; - } - } - - return (lconfig); -} - -void -yy_config_free(struct hastd_config *config) -{ - struct hastd_listen *lst; - struct hast_resource *res; - - while ((lst = TAILQ_FIRST(&depth0_listen)) != NULL) { - TAILQ_REMOVE(&depth0_listen, lst, hl_next); - free(lst); - } - while ((lst = TAILQ_FIRST(&config->hc_listen)) != NULL) { - TAILQ_REMOVE(&config->hc_listen, lst, hl_next); - free(lst); - } - while ((res = TAILQ_FIRST(&config->hc_resources)) != NULL) { - TAILQ_REMOVE(&config->hc_resources, res, hr_next); - free(res); - } - free(config); -} +static int isitme(const char *name); +static bool family_supported(int family); +static int node_names(char **namesp); %} %token CONTROL PIDFILE LISTEN REPLICATION CHECKSUM COMPRESSION METAFLUSH @@ -1004,3 +717,296 @@ free($2); } ; + +%% + +static int +isitme(const char *name) +{ + char buf[MAXHOSTNAMELEN]; + char *pos; + size_t bufsize; + + /* + * First check if the given name matches our full hostname. + */ + if (gethostname(buf, sizeof(buf)) < 0) { + pjdlog_errno(LOG_ERR, "gethostname() failed"); + return (-1); + } + if (strcmp(buf, name) == 0) + return (1); + + /* + * Now check if it matches first part of the host name. + */ + pos = strchr(buf, '.'); + if (pos != NULL && (size_t)(pos - buf) == strlen(name) && + strncmp(buf, name, pos - buf) == 0) { + return (1); + } + + /* + * At the end check if name is equal to our host's UUID. + */ + bufsize = sizeof(buf); + if (sysctlbyname("kern.hostuuid", buf, &bufsize, NULL, 0) < 0) { + pjdlog_errno(LOG_ERR, "sysctlbyname(kern.hostuuid) failed"); + return (-1); + } + if (strcasecmp(buf, name) == 0) + return (1); + + /* + * Looks like this isn't about us. + */ + return (0); +} + +static bool +family_supported(int family) +{ + int sock; + + sock = socket(family, SOCK_STREAM, 0); + if (sock == -1 && errno == EPROTONOSUPPORT) + return (false); + if (sock >= 0) + (void)close(sock); + return (true); +} + +static int +node_names(char **namesp) +{ + static char names[MAXHOSTNAMELEN * 3]; + char buf[MAXHOSTNAMELEN]; + char *pos; + size_t bufsize; + + if (gethostname(buf, sizeof(buf)) < 0) { + pjdlog_errno(LOG_ERR, "gethostname() failed"); + return (-1); + } + + /* First component of the host name. */ + pos = strchr(buf, '.'); + if (pos != NULL && pos != buf) { + (void)strlcpy(names, buf, MIN((size_t)(pos - buf + 1), + sizeof(names))); + (void)strlcat(names, ", ", sizeof(names)); + } + + /* Full host name. */ + (void)strlcat(names, buf, sizeof(names)); + (void)strlcat(names, ", ", sizeof(names)); + + /* Host UUID. */ + bufsize = sizeof(buf); + if (sysctlbyname("kern.hostuuid", buf, &bufsize, NULL, 0) < 0) { + pjdlog_errno(LOG_ERR, "sysctlbyname(kern.hostuuid) failed"); + return (-1); + } + (void)strlcat(names, buf, sizeof(names)); + + *namesp = names; + + return (0); +} + +void +yyerror(const char *str) +{ + + pjdlog_error("Unable to parse configuration file at line %d near '%s': %s", + lineno, yytext, str); +} + +struct hastd_config * +yy_config_parse(const char *config, bool exitonerror) +{ + int ret; + + curres = NULL; + mynode = false; + depth = 0; + lineno = 0; + + depth0_timeout = HAST_TIMEOUT; + depth0_replication = HAST_REPLICATION_FULLSYNC; + depth0_checksum = HAST_CHECKSUM_NONE; + depth0_compression = HAST_COMPRESSION_HOLE; + strlcpy(depth0_control, HAST_CONTROL, sizeof(depth0_control)); + strlcpy(depth0_pidfile, HASTD_PIDFILE, sizeof(depth0_pidfile)); + TAILQ_INIT(&depth0_listen); + strlcpy(depth0_listen_tcp4, HASTD_LISTEN_TCP4, + sizeof(depth0_listen_tcp4)); + strlcpy(depth0_listen_tcp6, HASTD_LISTEN_TCP6, + sizeof(depth0_listen_tcp6)); + depth0_exec[0] = '\0'; + depth0_metaflush = 1; + + lconfig = calloc(1, sizeof(*lconfig)); + if (lconfig == NULL) { + pjdlog_error("Unable to allocate memory for configuration."); + if (exitonerror) + exit(EX_TEMPFAIL); + return (NULL); + } + + TAILQ_INIT(&lconfig->hc_listen); + TAILQ_INIT(&lconfig->hc_resources); + + yyin = fopen(config, "r"); + if (yyin == NULL) { + pjdlog_errno(LOG_ERR, "Unable to open configuration file %s", + config); + yy_config_free(lconfig); + if (exitonerror) + exit(EX_OSFILE); + return (NULL); + } + yyrestart(yyin); + ret = yyparse(); + fclose(yyin); + if (ret != 0) { + yy_config_free(lconfig); + if (exitonerror) + exit(EX_CONFIG); + return (NULL); + } + + /* + * Let's see if everything is set up. + */ + if (lconfig->hc_controladdr[0] == '\0') { + strlcpy(lconfig->hc_controladdr, depth0_control, + sizeof(lconfig->hc_controladdr)); + } + if (lconfig->hc_pidfile[0] == '\0') { + strlcpy(lconfig->hc_pidfile, depth0_pidfile, + sizeof(lconfig->hc_pidfile)); + } + if (!TAILQ_EMPTY(&depth0_listen)) + TAILQ_CONCAT(&lconfig->hc_listen, &depth0_listen, hl_next); + if (TAILQ_EMPTY(&lconfig->hc_listen)) { + struct hastd_listen *lst; + + if (family_supported(AF_INET)) { + lst = calloc(1, sizeof(*lst)); + if (lst == NULL) { + pjdlog_error("Unable to allocate memory for listen address."); + yy_config_free(lconfig); + if (exitonerror) + exit(EX_TEMPFAIL); + return (NULL); + } + (void)strlcpy(lst->hl_addr, depth0_listen_tcp4, + sizeof(lst->hl_addr)); + TAILQ_INSERT_TAIL(&lconfig->hc_listen, lst, hl_next); + } else { + pjdlog_debug(1, + "No IPv4 support in the kernel, not listening on IPv4 address."); + } + if (family_supported(AF_INET6)) { + lst = calloc(1, sizeof(*lst)); + if (lst == NULL) { + pjdlog_error("Unable to allocate memory for listen address."); + yy_config_free(lconfig); + if (exitonerror) + exit(EX_TEMPFAIL); + return (NULL); + } + (void)strlcpy(lst->hl_addr, depth0_listen_tcp6, + sizeof(lst->hl_addr)); + TAILQ_INSERT_TAIL(&lconfig->hc_listen, lst, hl_next); + } else { + pjdlog_debug(1, + "No IPv6 support in the kernel, not listening on IPv6 address."); + } + if (TAILQ_EMPTY(&lconfig->hc_listen)) { + pjdlog_error("No address to listen on."); + yy_config_free(lconfig); + if (exitonerror) + exit(EX_TEMPFAIL); + return (NULL); + } + } + TAILQ_FOREACH(curres, &lconfig->hc_resources, hr_next) { + PJDLOG_ASSERT(curres->hr_provname[0] != '\0'); + PJDLOG_ASSERT(curres->hr_localpath[0] != '\0'); + PJDLOG_ASSERT(curres->hr_remoteaddr[0] != '\0'); + + if (curres->hr_replication == -1) { + /* + * Replication is not set at resource-level. + * Use global or default setting. + */ + curres->hr_replication = depth0_replication; + } + if (curres->hr_replication == HAST_REPLICATION_MEMSYNC) { + pjdlog_warning("Replication mode \"%s\" is not implemented, falling back to \"%s\".", + "memsync", "fullsync"); + curres->hr_replication = HAST_REPLICATION_FULLSYNC; + } + if (curres->hr_checksum == -1) { + /* + * Checksum is not set at resource-level. + * Use global or default setting. + */ + curres->hr_checksum = depth0_checksum; + } + if (curres->hr_compression == -1) { + /* + * Compression is not set at resource-level. + * Use global or default setting. + */ + curres->hr_compression = depth0_compression; + } + if (curres->hr_timeout == -1) { + /* + * Timeout is not set at resource-level. + * Use global or default setting. + */ + curres->hr_timeout = depth0_timeout; + } + if (curres->hr_exec[0] == '\0') { + /* + * Exec is not set at resource-level. + * Use global or default setting. + */ + strlcpy(curres->hr_exec, depth0_exec, + sizeof(curres->hr_exec)); + } + if (curres->hr_metaflush == -1) { + /* + * Metaflush is not set at resource-level. + * Use global or default setting. + */ + curres->hr_metaflush = depth0_metaflush; + } + } + + return (lconfig); +} + +void +yy_config_free(struct hastd_config *config) +{ + struct hastd_listen *lst; + struct hast_resource *res; + + while ((lst = TAILQ_FIRST(&depth0_listen)) != NULL) { + TAILQ_REMOVE(&depth0_listen, lst, hl_next); + free(lst); + } + while ((lst = TAILQ_FIRST(&config->hc_listen)) != NULL) { + TAILQ_REMOVE(&config->hc_listen, lst, hl_next); + free(lst); + } + while ((res = TAILQ_FIRST(&config->hc_resources)) != NULL) { + TAILQ_REMOVE(&config->hc_resources, res, hr_next); + free(res); + } + free(config); +} Index: sbin/hastd/hast.h =================================================================== --- sbin/hastd/hast.h (revision 243938) +++ sbin/hastd/hast.h (working copy) @@ -244,6 +244,5 @@ void yyerror(const char *); int yylex(void); -int yyparse(void); #endif /* !_HAST_H_ */ >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-amd64@FreeBSD.ORG Thu Dec 13 09:40:00 2012 Return-Path: Delivered-To: freebsd-amd64@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F1EC0686 for ; Thu, 13 Dec 2012 09:40:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id ACBA68FC13 for ; Thu, 13 Dec 2012 09:40:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qBD9e0c5062915 for ; Thu, 13 Dec 2012 09:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qBD9e0bH062910; Thu, 13 Dec 2012 09:40:00 GMT (envelope-from gnats) Resent-Date: Thu, 13 Dec 2012 09:40:00 GMT Resent-Message-Id: <201212130940.qBD9e0bH062910@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-amd64@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, KAHO Toshikazu Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 617E567E for ; Thu, 13 Dec 2012 09:39:45 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 48EC58FC15 for ; Thu, 13 Dec 2012 09:39:45 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id qBD9disA079194 for ; Thu, 13 Dec 2012 09:39:44 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id qBD9diaw079193; Thu, 13 Dec 2012 09:39:44 GMT (envelope-from nobody) Message-Id: <201212130939.qBD9diaw079193@red.freebsd.org> Date: Thu, 13 Dec 2012 09:39:44 GMT From: KAHO Toshikazu To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: amd64/174409: stopping during resume caused by io_apic.c change(r243764) X-Mailman-Approved-At: Thu, 13 Dec 2012 12:50:16 +0000 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Dec 2012 09:40:01 -0000 >Number: 174409 >Category: amd64 >Synopsis: stopping during resume caused by io_apic.c change(r243764) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-amd64 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Dec 13 09:40:00 UTC 2012 >Closed-Date: >Last-Modified: >Originator: KAHO Toshikazu >Release: 10.0-current >Organization: >Environment: FreeBSD bansidhe.pf2.ed.niigata-u.ac.jp 10.0-CURRENT FreeBSD 10.0-CURRENT #8 r243763: Thu Dec 13 17:00:02 JST 2012 root@bansidhe.pf2.ed.niigata-u.ac.jp:/usr/obj/usr/src/sys/BANSIDHE amd64 >Description: The Machine is Acer AO752. acpi s3 sleep is usable before r243763, but the machine freeze during resume after r243764. >How-To-Repeat: After r243764, suspend with `acpiconf -s 3`, then hit any key or press power button. >Fix: revert the change of r243764. >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-amd64@FreeBSD.ORG Fri Dec 14 04:48:22 2012 Return-Path: Delivered-To: amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 33A3DED9; Fri, 14 Dec 2012 04:48:22 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by mx1.freebsd.org (Postfix) with ESMTP id EFB4F8FC15; Fri, 14 Dec 2012 04:48:21 +0000 (UTC) Received: from freebsd-current.sentex.ca (localhost [127.0.0.1]) by freebsd-current.sentex.ca (8.14.5/8.14.5) with ESMTP id qBE4mLX4038623; Thu, 13 Dec 2012 23:48:21 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-current.sentex.ca (8.14.5/8.14.5/Submit) id qBE4mLKN038618; Fri, 14 Dec 2012 04:48:21 GMT (envelope-from tinderbox@freebsd.org) Date: Fri, 14 Dec 2012 04:48:21 GMT Message-Id: <201212140448.qBE4mLKN038618@freebsd-current.sentex.ca> X-Authentication-Warning: freebsd-current.sentex.ca: tinderbox set sender to FreeBSD Tinderbox using -f Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Subject: [head tinderbox] failure on amd64/amd64 Precedence: bulk X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Dec 2012 04:48:22 -0000 TB --- 2012-12-13 22:40:00 - tinderbox 2.9 running on freebsd-current.sentex.ca TB --- 2012-12-13 22:40:00 - FreeBSD freebsd-current.sentex.ca 8.3-PRERELEASE FreeBSD 8.3-PRERELEASE #0: Mon Mar 26 13:54:12 EDT 2012 des@freebsd-current.sentex.ca:/usr/obj/usr/src/sys/GENERIC amd64 TB --- 2012-12-13 22:40:00 - starting HEAD tinderbox run for amd64/amd64 TB --- 2012-12-13 22:40:00 - cleaning the object tree TB --- 2012-12-13 22:40:00 - checking out /src from svn://svn.freebsd.org/base/head TB --- 2012-12-13 22:40:00 - cd /tinderbox/HEAD/amd64/amd64 TB --- 2012-12-13 22:40:00 - /usr/local/bin/svn cleanup /src TB --- 2012-12-13 22:43:58 - /usr/local/bin/svn update /src TB --- 2012-12-13 22:44:11 - At svn revision 244194 TB --- 2012-12-13 22:44:12 - building world TB --- 2012-12-13 22:44:12 - CROSS_BUILD_TESTING=YES TB --- 2012-12-13 22:44:12 - MAKEOBJDIRPREFIX=/obj TB --- 2012-12-13 22:44:12 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2012-12-13 22:44:12 - SRCCONF=/dev/null TB --- 2012-12-13 22:44:12 - TARGET=amd64 TB --- 2012-12-13 22:44:12 - TARGET_ARCH=amd64 TB --- 2012-12-13 22:44:12 - TZ=UTC TB --- 2012-12-13 22:44:12 - __MAKE_CONF=/dev/null TB --- 2012-12-13 22:44:12 - cd /src TB --- 2012-12-13 22:44:12 - /usr/bin/make -B buildworld >>> Building an up-to-date make(1) >>> World build started on Thu Dec 13 22:44:20 UTC 2012 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything >>> stage 5.1: building 32 bit shim libraries >>> World build completed on Fri Dec 14 02:36:03 UTC 2012 TB --- 2012-12-14 02:36:03 - generating LINT kernel config TB --- 2012-12-14 02:36:03 - cd /src/sys/amd64/conf TB --- 2012-12-14 02:36:03 - /usr/bin/make -B LINT TB --- 2012-12-14 02:36:04 - cd /src/sys/amd64/conf TB --- 2012-12-14 02:36:04 - /usr/sbin/config -m LINT TB --- 2012-12-14 02:36:04 - building LINT kernel TB --- 2012-12-14 02:36:04 - CROSS_BUILD_TESTING=YES TB --- 2012-12-14 02:36:04 - MAKEOBJDIRPREFIX=/obj TB --- 2012-12-14 02:36:04 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2012-12-14 02:36:04 - SRCCONF=/dev/null TB --- 2012-12-14 02:36:04 - TARGET=amd64 TB --- 2012-12-14 02:36:04 - TARGET_ARCH=amd64 TB --- 2012-12-14 02:36:04 - TZ=UTC TB --- 2012-12-14 02:36:04 - __MAKE_CONF=/dev/null TB --- 2012-12-14 02:36:04 - cd /src TB --- 2012-12-14 02:36:04 - /usr/bin/make -B buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Fri Dec 14 02:36:04 UTC 2012 >>> stage 1: configuring the kernel >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3.1: making dependencies >>> stage 3.2: building everything >>> Kernel build for LINT completed on Fri Dec 14 03:08:06 UTC 2012 TB --- 2012-12-14 03:08:06 - cd /src/sys/amd64/conf TB --- 2012-12-14 03:08:06 - /usr/sbin/config -m LINT-NOINET TB --- 2012-12-14 03:08:06 - building LINT-NOINET kernel TB --- 2012-12-14 03:08:06 - CROSS_BUILD_TESTING=YES TB --- 2012-12-14 03:08:06 - MAKEOBJDIRPREFIX=/obj TB --- 2012-12-14 03:08:06 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2012-12-14 03:08:06 - SRCCONF=/dev/null TB --- 2012-12-14 03:08:06 - TARGET=amd64 TB --- 2012-12-14 03:08:06 - TARGET_ARCH=amd64 TB --- 2012-12-14 03:08:06 - TZ=UTC TB --- 2012-12-14 03:08:06 - __MAKE_CONF=/dev/null TB --- 2012-12-14 03:08:06 - cd /src TB --- 2012-12-14 03:08:06 - /usr/bin/make -B buildkernel KERNCONF=LINT-NOINET >>> Kernel build for LINT-NOINET started on Fri Dec 14 03:08:06 UTC 2012 >>> stage 1: configuring the kernel >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3.1: making dependencies >>> stage 3.2: building everything >>> Kernel build for LINT-NOINET completed on Fri Dec 14 03:36:54 UTC 2012 TB --- 2012-12-14 03:36:54 - cd /src/sys/amd64/conf TB --- 2012-12-14 03:36:54 - /usr/sbin/config -m LINT-NOINET6 TB --- 2012-12-14 03:36:54 - building LINT-NOINET6 kernel TB --- 2012-12-14 03:36:54 - CROSS_BUILD_TESTING=YES TB --- 2012-12-14 03:36:54 - MAKEOBJDIRPREFIX=/obj TB --- 2012-12-14 03:36:54 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2012-12-14 03:36:54 - SRCCONF=/dev/null TB --- 2012-12-14 03:36:54 - TARGET=amd64 TB --- 2012-12-14 03:36:54 - TARGET_ARCH=amd64 TB --- 2012-12-14 03:36:54 - TZ=UTC TB --- 2012-12-14 03:36:54 - __MAKE_CONF=/dev/null TB --- 2012-12-14 03:36:54 - cd /src TB --- 2012-12-14 03:36:54 - /usr/bin/make -B buildkernel KERNCONF=LINT-NOINET6 >>> Kernel build for LINT-NOINET6 started on Fri Dec 14 03:36:55 UTC 2012 >>> stage 1: configuring the kernel >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3.1: making dependencies >>> stage 3.2: building everything >>> Kernel build for LINT-NOINET6 completed on Fri Dec 14 04:06:21 UTC 2012 TB --- 2012-12-14 04:06:21 - cd /src/sys/amd64/conf TB --- 2012-12-14 04:06:21 - /usr/sbin/config -m LINT-NOIP TB --- 2012-12-14 04:06:21 - building LINT-NOIP kernel TB --- 2012-12-14 04:06:21 - CROSS_BUILD_TESTING=YES TB --- 2012-12-14 04:06:21 - MAKEOBJDIRPREFIX=/obj TB --- 2012-12-14 04:06:21 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2012-12-14 04:06:21 - SRCCONF=/dev/null TB --- 2012-12-14 04:06:21 - TARGET=amd64 TB --- 2012-12-14 04:06:21 - TARGET_ARCH=amd64 TB --- 2012-12-14 04:06:21 - TZ=UTC TB --- 2012-12-14 04:06:21 - __MAKE_CONF=/dev/null TB --- 2012-12-14 04:06:21 - cd /src TB --- 2012-12-14 04:06:21 - /usr/bin/make -B buildkernel KERNCONF=LINT-NOIP >>> Kernel build for LINT-NOIP started on Fri Dec 14 04:06:21 UTC 2012 >>> stage 1: configuring the kernel >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3.1: making dependencies >>> stage 3.2: building everything >>> Kernel build for LINT-NOIP completed on Fri Dec 14 04:32:54 UTC 2012 TB --- 2012-12-14 04:32:54 - cd /src/sys/amd64/conf TB --- 2012-12-14 04:32:54 - /usr/sbin/config -m LINT-VIMAGE TB --- 2012-12-14 04:32:55 - building LINT-VIMAGE kernel TB --- 2012-12-14 04:32:55 - CROSS_BUILD_TESTING=YES TB --- 2012-12-14 04:32:55 - MAKEOBJDIRPREFIX=/obj TB --- 2012-12-14 04:32:55 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2012-12-14 04:32:55 - SRCCONF=/dev/null TB --- 2012-12-14 04:32:55 - TARGET=amd64 TB --- 2012-12-14 04:32:55 - TARGET_ARCH=amd64 TB --- 2012-12-14 04:32:55 - TZ=UTC TB --- 2012-12-14 04:32:55 - __MAKE_CONF=/dev/null TB --- 2012-12-14 04:32:55 - cd /src TB --- 2012-12-14 04:32:55 - /usr/bin/make -B buildkernel KERNCONF=LINT-VIMAGE >>> Kernel build for LINT-VIMAGE started on Fri Dec 14 04:32:55 UTC 2012 >>> stage 1: configuring the kernel >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3.1: making dependencies >>> stage 3.2: building everything [...] /src/sys/netpfil/pf/if_pfsync.c:618:3: error: must use 'struct' tag to refer to type 'pfsyncstats' pfsyncstats.pfsyncs_badlen++; ^ struct /src/sys/netpfil/pf/if_pfsync.c:618:14: error: expected identifier or '(' pfsyncstats.pfsyncs_badlen++; ^ 2 errors generated. *** [if_pfsync.o] Error code 1 Stop in /obj/amd64.amd64/src/sys/LINT-VIMAGE. *** [buildkernel] Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2012-12-14 04:48:21 - WARNING: /usr/bin/make returned exit code 1 TB --- 2012-12-14 04:48:21 - ERROR: failed to build LINT-VIMAGE kernel TB --- 2012-12-14 04:48:21 - 15796.87 user 2920.58 system 22100.30 real http://tinderbox.freebsd.org/tinderbox-head-HEAD-amd64-amd64.full From owner-freebsd-amd64@FreeBSD.ORG Fri Dec 14 16:50:01 2012 Return-Path: Delivered-To: freebsd-amd64@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C42B0D43 for ; Fri, 14 Dec 2012 16:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 530838FC14 for ; Fri, 14 Dec 2012 16:50:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qBEGo1lC061846 for ; Fri, 14 Dec 2012 16:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qBEGo187061845; Fri, 14 Dec 2012 16:50:01 GMT (envelope-from gnats) Date: Fri, 14 Dec 2012 16:50:01 GMT Message-Id: <201212141650.qBEGo187061845@freefall.freebsd.org> To: freebsd-amd64@FreeBSD.org Cc: From: Andriy Gapon Subject: Re: amd64/174409: stopping during resume caused by io_apic.c change(r243764) X-Mailman-Approved-At: Fri, 14 Dec 2012 17:27:59 +0000 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Andriy Gapon List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Dec 2012 16:50:01 -0000 The following reply was made to PR amd64/174409; it has been noted by GNATS. From: Andriy Gapon To: bug-followup@FreeBSD.org, kaho@elam.kais.kyoto-u.ac.jp Cc: Subject: Re: amd64/174409: stopping during resume caused by io_apic.c change(r243764) Date: Fri, 14 Dec 2012 18:46:53 +0200 Could you please provide unabridged verbose dmesg from this system? -- Andriy Gapon From owner-freebsd-amd64@FreeBSD.ORG Sat Dec 15 02:13:59 2012 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E7884B65 for ; Sat, 15 Dec 2012 02:13:59 +0000 (UTC) (envelope-from jnagyjr1978@gmail.com) Received: from mail-gg0-f182.google.com (mail-gg0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 969278FC0A for ; Sat, 15 Dec 2012 02:13:59 +0000 (UTC) Received: by mail-gg0-f182.google.com with SMTP id e5so851376ggh.13 for ; Fri, 14 Dec 2012 18:13:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=798+H+xGU8WiGmD6bDogDQ5facEWRMocom92X117/MU=; b=DZVEThX7W7ArPhitfM/vgt7XE0xoEBbP40prnuKkRcYZD8MgcypqVufPDhdbZCvw84 bFGsz5RCN5p2XlgGWw5dKC45paqUNg3QEFozHluaOwvGip2lbVmt9wXF7eGFsCXp2GNB k4z4Qjre6VA37DkAPOPSmNexEhlmIz4kpkWGZojU34AEzKq+xCiWYfCbYokQbl0iizHp ppoqJivOLg6zbVNWCHAhpkI7Lp85lBUzysSfJwRX5imuittk9GKJq4FVA9x3XPmq+/Ba bUx21xcNvDLTYPOHQeMVySSYpaENKOkmXR2rkL6UAOXqTdcsQmNfmtuF9YTDLs8zXBpQ spdg== Received: by 10.236.128.69 with SMTP id e45mr2899048yhi.95.1355537632782; Fri, 14 Dec 2012 18:13:52 -0800 (PST) Received: from [192.168.1.33] (vid-196.dhcp.grp10.tnmmrl.infoave.net. [204.116.254.196]) by mx.google.com with ESMTPS id y18sm5879673anh.15.2012.12.14.18.13.46 (version=SSLv3 cipher=OTHER); Fri, 14 Dec 2012 18:13:51 -0800 (PST) Message-ID: <50CBDCD7.1040105@gmail.com> Date: Fri, 14 Dec 2012 20:13:43 -0600 From: "Joseph A. Nagy, Jr" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: freebsd-amd64@freebsd.org Subject: cpu setting in kernel options file Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Dec 2012 02:14:00 -0000 Hi All, I know this question has been asked before[0] so I just want clarification. It was stated back then that HAMMER is the only cpu type for amd64, but later on someone points to /usr/share/mk/bsd.cpu.mk where I found: . elif ${MACHINE_CPUARCH} == "amd64" . if ${CPUTYPE} == "prescott" and, closer to my own specific processor: . elif ${CPUTYPE} == "opteron" || ${CPUTYPE} == "athlon64" || \ ${CPUTYPE} == "k8" from my /var/run/dmesg.boot I find: CPU: AMD Sempron(tm) SI-42 (2099.25-MHz K8-class CPU) Origin = "AuthenticAMD" Id = 0x200f31 Family = 11 Model = 3 Stepping = 1 Features=0x78bfbff Features2=0x2001 AMD Features=0xea500800 AMD Features2=0x1319 The really important bit being the first line. Could I put K8 and gcc/clang be okay with it? Or should I leave the cpu line in my kernel conf file alone? [0]: http://lists.freebsd.org/pipermail/freebsd-amd64/2009-February/011914.html -- Yours in Christ, Joseph A Nagy Jr "Whoever loves instruction loves knowledge, But he who hates correction is stupid." -- Proverbs 12:1 Emails are not formal business letters, whatever businesses may want. Original content CopyFree (F) under the OWL http://owl.apotheon.org From owner-freebsd-amd64@FreeBSD.ORG Sat Dec 15 06:21:59 2012 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A77DA69C for ; Sat, 15 Dec 2012 06:21:59 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: from mail-ia0-f182.google.com (mail-ia0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 6BD6A8FC13 for ; Sat, 15 Dec 2012 06:21:59 +0000 (UTC) Received: by mail-ia0-f182.google.com with SMTP id x2so3836419iad.13 for ; Fri, 14 Dec 2012 22:21:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:date:message-id:subject:from:to:content-type; bh=TG5PEd3R9O1VUzEzD3+N/FQVV/NiC1SZ7Yns1ZpzOKY=; b=iegO6dzhfFpb3hkxebEdMQn81dU1ClfZJ0m7ggGsVkq8t0JkxdubvFA+5UNyZXrlnO Fag1+2Ff1oYxH+N0BI4QslOrkVVVs597q+VkUCrYD2I50tcqF5zeaEnOXO4Vfe77OLHk ePB8mq0Yv20DJGYA9/5OMZvLpZA/LqEX5DeX2OYAh8EJjsMloGafN1DRmv2+hQtQlnhS AnRX99MJ8Ebqg+Wi7aBhQ/J0CrfVQwD8rsmyyOeVtlBL6F3gy2PWyapmF9YyenzV8IKb GD6RUdMqkFB9J4NIC5VWunyoyEI1fASlIHehZJSlhj4LLTKQmI4vH2k8iBOMCD4PB2J1 dohQ== MIME-Version: 1.0 Received: by 10.42.44.196 with SMTP id c4mr6470205icf.45.1355552518612; Fri, 14 Dec 2012 22:21:58 -0800 (PST) Received: by 10.50.88.137 with HTTP; Fri, 14 Dec 2012 22:21:58 -0800 (PST) Date: Sat, 15 Dec 2012 06:21:58 +0000 Message-ID: Subject: Re: cpu setting in kernel options file From: "b.f." To: jnagyjr1978@gmail.com, freebsd-amd64@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: bf1783@gmail.com List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Dec 2012 06:21:59 -0000 >The really important bit being the first line. Could I put K8 and >gcc/clang be okay with it? Or should I leave the cpu line in my kernel >conf file alone? > Leave it alone. The choices for the cpu directive in the kernel config file, as described in config(5) and listed in src/sys/conf/options. (the only choice for amd64 is HAMMER), have nothing to do with the choices available for the CPUTYPE variable (which you may want to change to suit your hardware -- these are the architecture-dependent options available for the -march and -mtune directives of your compiler that are also recognized by bsd.cpu.mk), or with the cpu descriptions printed during boot. b. From owner-freebsd-amd64@FreeBSD.ORG Sat Dec 15 19:31:38 2012 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0FD68EE6 for ; Sat, 15 Dec 2012 19:31:38 +0000 (UTC) (envelope-from jnagyjr1978@gmail.com) Received: from mail-ye0-f182.google.com (mail-ye0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id B39148FC12 for ; Sat, 15 Dec 2012 19:31:37 +0000 (UTC) Received: by mail-ye0-f182.google.com with SMTP id q5so943153yen.13 for ; Sat, 15 Dec 2012 11:31:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=swaPHAuNJCYXpmeH9CT1zyDmHjj6Aq8Z8Xw9fpFkB5s=; b=BS49VYwUlZSeO4nRqed1xsUUaNx3pgOrFSMtIxiSxDYFssg/JKm8iJJ2bH42VOWWlI YdyR0EYNddH9bJhOqnZ7KGB8tGj0i8AKWEmP7xNcUIpSpTMXRZvC+0WBfESt1lAisnNP BziERbP/812dWBSL3eWoVtLqB2kk/GhEWcojm/cSRjsBIKrpbYSyAoluSrv5MKN6vfQ1 lHoPsfZ6lNfCT94K4ElGvF7YggKUZ8Mj0R5Ed8I4NNA5tAct+XUbJ0VT7yHpRGYCq1kD 2cV+3bN2I/14EJUxWaAVZ+7EWgZFDDFfOaiPgxD9NVL1MnOzhz+KDA6zQlE6peb8hG2D oTqg== Received: by 10.236.117.104 with SMTP id i68mr699764yhh.82.1355599890950; Sat, 15 Dec 2012 11:31:30 -0800 (PST) Received: from [192.168.1.33] (vid-196.dhcp.grp10.tnmmrl.infoave.net. [204.116.254.196]) by mx.google.com with ESMTPS id x9sm8336491yhl.17.2012.12.15.11.31.29 (version=SSLv3 cipher=OTHER); Sat, 15 Dec 2012 11:31:30 -0800 (PST) Message-ID: <50CCD00F.4060806@gmail.com> Date: Sat, 15 Dec 2012 13:31:27 -0600 From: "Joseph A. Nagy, Jr" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: freebsd-amd64@freebsd.org Subject: Re: cpu setting in kernel options file References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Dec 2012 19:31:38 -0000 On 12/15/12 00:21, b.f. wrote: >> The really important bit being the first line. Could I put K8 and >> gcc/clang be okay with it? Or should I leave the cpu line in my kernel >> conf file alone? >> > > Leave it alone. The choices for the cpu directive in the kernel > config file, as described in config(5) and listed in > src/sys/conf/options. (the only choice for amd64 is HAMMER), > have nothing to do with the choices available for the CPUTYPE variable > (which you may want to change to suit your hardware -- these are the > architecture-dependent options available for the -march and -mtune > directives of your compiler that are also recognized by bsd.cpu.mk), > or with the cpu descriptions printed during boot. > > b. > Thanks! -- Yours in Christ, Joseph A Nagy Jr "Whoever loves instruction loves knowledge, But he who hates correction is stupid." -- Proverbs 12:1 Emails are not formal business letters, whatever businesses may want. Original content CopyFree (F) under the OWL http://owl.apotheon.org