From owner-freebsd-current Sun Nov 24 22:16:59 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D840237B401 for ; Sun, 24 Nov 2002 22:16:57 -0800 (PST) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id D597C43E88 for ; Sun, 24 Nov 2002 22:16:56 -0800 (PST) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id QAA01823; Mon, 25 Nov 2002 16:59:35 +1100 Date: Mon, 25 Nov 2002 17:12:58 +1100 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Dan Lukes Cc: freebsd-current@FreeBSD.ORG Subject: Re: buildworld fails on x86 In-Reply-To: <3DE16DE9.3000700@obluda.cz> Message-ID: <20021125170457.I55737-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 25 Nov 2002, Dan Lukes wrote: > The problem you hit is that the pthread stub functions as declared > within src/lib/libc/gen/_pthread_stubs.c are optimized-out by "-O3" > causing undefined symbol errors later during build. I don't know if it > is gcc's optimiser bug or there is something wrong with _pthread_stubs.c > code, but someone who knows should report and/or repair it. Optimizing away static functions is OK. The problem seems to be just the old one that the references to the static functions are hidden in asms. They are weak references in this case. The kernel had this problem with hidden references to sysctl infrastructure. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message