From owner-freebsd-questions@freebsd.org Thu May 11 01:37:21 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 06C35D671C4 for ; Thu, 11 May 2017 01:37:21 +0000 (UTC) (envelope-from doctorwhoguy@gmail.com) Received: from mail-it0-x231.google.com (mail-it0-x231.google.com [IPv6:2607:f8b0:4001:c0b::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C89E81A42 for ; Thu, 11 May 2017 01:37:20 +0000 (UTC) (envelope-from doctorwhoguy@gmail.com) Received: by mail-it0-x231.google.com with SMTP id e65so12001311ita.1 for ; Wed, 10 May 2017 18:37:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=dmW4swkhkeSxUCl1kxk82SBKo4CVXbvh6e3AfYS1bi0=; b=nOlLzdgQ1LdmEQyxm4Vs9hlzSVG+wzxc444ejYYLAwwrPR5IQFDtPMTLK5ldctmRhi W9I6oLneDHDxsFQA4fXhuz+zkatDO2h451l15ZSbR0ptQYBIHezs3GgAtW3lqeDU628a P2i9/Ob5LmQAAyCWUepkK7SSCDUdGMdA26XHJ5z5Y2og33eEOjd3UMMUyLe+4Gk6mlO0 AQP4NnHE9kbE0mSUWGEtZmyoZT9zJghHko4+lEENF4lofx0Dg5fPxqHZ4GiLOcbGRxnh XAGO84uSq/ihKfYAtvBb4gqfPE7IWeZwy31hVp5YupkfQZIKyytdAJR9nrupnZ2ItwJj YiOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=dmW4swkhkeSxUCl1kxk82SBKo4CVXbvh6e3AfYS1bi0=; b=XRSSGJwNYp3lgDWqc3NN2wES6D5eevi7TxjNqiBumPvlnPhlhT2ndt5TMR9AU0kvtK AMEjBYbXkclhnuRJ74iJjtg5h0+7Vb580rELamqVXZegFqZEgCusQ4j42G+VDDxzUwq9 /cSCVKb8BPnjydHOsEhSe/5xWsH1oVi02i/s7pOnRrxhiZ+DVR/6fQ+dIulaTLAuYcHG Ylt+4Pcw7grJdR7Yl58g8XfydpDsLIH0ehVKYHSesapbsnt1YjrI6zt80XffaCJJaIj+ Z5g3lNYxg/FI2bDW5YHWY/TveyygRGReqPXDtJb3NXdsYjIo8jfEJAbDN/DBS3+0xcUd sWWA== X-Gm-Message-State: AODbwcAoZWz8QX36/2aQZI31Io3MZ5rtsj60RYTyi1WK6IJAXNjSobal 0PWhVH/xxFBAbGlVfPt3xhX8agfF4pS/ X-Received: by 10.36.252.66 with SMTP id b63mr4289770ith.21.1494466639448; Wed, 10 May 2017 18:37:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.169.6 with HTTP; Wed, 10 May 2017 18:37:19 -0700 (PDT) From: Patrick McMunn Date: Wed, 10 May 2017 20:37:19 -0500 Message-ID: Subject: use of undeclared identifier 'PSL_VM' To: freebsd-questions@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 May 2017 01:37:21 -0000 I checked out the master branch from https://github.com/freebsd/freebsd-base-graphics on May 9, 2017 and tried to compile an i386 kernel. It failed with the below snippet of output. I couldn't find any mention of bugs, and that particular file hasn't been updated in 2 years. Could it be an error on my part? I just commented out a bunch of unneeded hardware drivers, turned off Witness and Invariants, and increased KSTACK_PAGES to 4 in my kernel config. cc -target i386-unknown-freebsd12.0 --sysroot=/usr/obj/root/freebsd-base-graphics/tmp -B/usr/obj/root/freebsd-base-graphics/tmp/usr/bin -c -O -pipe -march=pentium4 -g -Wno-varargs -nostdinc -I. -I/root/freebsd-base-graphics/sys -I/root/freebsd-base-graphics/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -MD -MF.depend.db_print.o -MTdb_print.o -mno-mmx -mno-sse -msoft-float -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=freebsd_kprintf -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -Wno-error-shift-negative-value -Wno-error-address-of-packed-member -mno-aes -mno-avx -std=iso9899:1999 -Werror /root/freebsd-base-graphics/sys/ddb/db_print.c /root/freebsd-base-graphics/sys/ddb/db_print.c:70:24: error: use of undeclared identifier 'PSL_VM' db_print_loc_and_inst(PC_REGS()); ^ ./machine/db_machdep.h:38:55: note: expanded from macro 'PC_REGS' #define PC_REGS() ((db_addr_t)(kdb_frame->tf_eflags & PSL_VM ? ^ 1 error generated. *** Error code 1 Stop. make[2]: stopped in /usr/obj/root/freebsd-base-graphics/sys/GENERIC *** Error code 1 Stop. make[1]: stopped in /root/freebsd-base-graphics *** Error code 1 Stop. make: stopped in /root/freebsd-base-graphics