From owner-freebsd-ppc@freebsd.org Wed Feb 12 17:07:05 2020 Return-Path: Delivered-To: freebsd-ppc@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7D4B823D8A1 for ; Wed, 12 Feb 2020 17:07:05 +0000 (UTC) (envelope-from cam@neo-zeon.de) Received: from neo-zeon.de (neo-zeon.de [96.90.244.226]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.neo-zeon.de", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48HmK44CRNz4fC2 for ; Wed, 12 Feb 2020 17:07:04 +0000 (UTC) (envelope-from cam@neo-zeon.de) Received: from [192.168.0.55] (ukyo.nerv.lan [192.168.0.55]) (authenticated bits=0) by neo-zeon.de (8.15.2/8.15.2) with ESMTPSA id 01CH70M4037968 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Wed, 12 Feb 2020 09:07:00 -0800 (PST) (envelope-from cam@neo-zeon.de) Subject: Re: libc build failures for 13.0-CURRENT To: FreeBSD PowerPC ML References: <20200212085306.GD4808@kib.kiev.ua> From: Cameron Berkenpas Message-ID: Date: Wed, 12 Feb 2020 09:07:00 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200212085306.GD4808@kib.kiev.ua> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 48HmK44CRNz4fC2 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of cam@neo-zeon.de designates 96.90.244.226 as permitted sender) smtp.mailfrom=cam@neo-zeon.de X-Spamd-Result: default: False [-4.61 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ppc@freebsd.org]; DMARC_NA(0.00)[neo-zeon.de]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE(-2.31)[ip: (-8.84), ipnet: 96.64.0.0/11(-1.96), asn: 7922(-0.67), country: US(-0.05)]; TO_DN_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:7922, ipnet:96.64.0.0/11, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Feb 2020 17:07:05 -0000 Thanks for the fast response! This got me started in the right direction. I tried: cp  /usr/src/sys/sys/elf_common.h /usr/include/sys/elf_common.h This got me a bit further... So then I tried: cp  /usr/src/sys/sys/* /usr/include/sys/* This got me even further... But the build is still failing. Looks like this error is related to a header issue as well. Shouldn't "make buildworld" use headers under /usr/src ? Everything appears to be default. I don't have a src.conf, etc. Gcc isn't installed. Thanks! On 2/12/20 12:53 AM, Konstantin Belousov wrote: > On Tue, Feb 11, 2020 at 04:10:24PM -0800, Cameron Berkenpas wrote: >> Hello, >> >> I've been seeing the following build error for at least the last few days. >> As it hasn't been fixed yet, I'm assuming this is probably an issue on >> POWER, but not on x86/amd64. >> >> /usr/src/lib/libc/gen/auxv.c:89:8: error: use of undeclared identifier >> 'AT_BSDFLAGS' >>                 case AT_BSDFLAGS: >>                      ^ >> /usr/src/lib/libc/gen/auxv.c:333:7: error: use of undeclared identifier >> 'AT_BSDFLAGS' >>         case AT_BSDFLAGS: > This means that your build uses out of date sys/elf_common.h. How it > happens is your local problem. Ensure that the checkout if fine, in > particular that the mentioned file indeed contains the line with the > definition for AT_BSDFLAGS. > > If you use something less straightforward, like external gcc, make sure > that there is no lingering 'fixed' headers that gcc saved and patched > during its own build.