From owner-cvs-all Fri Jan 24 2: 7:32 2003 Delivered-To: cvs-all@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 904) id AA58E37B401; Fri, 24 Jan 2003 02:07:31 -0800 (PST) Date: Fri, 24 Jan 2003 02:07:31 -0800 From: Max Khon To: joseph Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: Compiling libc and libc_r broken with new compiler code generator and GNU C 3.2.1-FreeBSD release Message-ID: <20030124020731.B4730@FreeBSD.org> References: <200301240146.h0O1kUCt053053@repoman.freebsd.org> <1043398033.66422.8.camel@imerxion.we.client2.attbi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <1043398033.66422.8.camel@imerxion.we.client2.attbi.com>; from altea@attbi.com on Fri, Jan 24, 2003 at 12:47:13AM -0800 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG hi, there! On Fri, Jan 24, 2003 at 12:47:13AM -0800, joseph wrote: > Hi - IS libc_r and libc Makefile process slightly broken??? > If you build libc and try to install it works but then > the compiling of any program using THIS libc is broken using > the RELEASE-5.0 make files. It says the pthread references > are not linked into the libc.so -- Where do these get linked in?? > > I have been experimenting with a new code generator I wrote for gnu > 3.2.1 (C/C++) and it can really speed things up. > > When I recompiled the libc > and libc_r the compiler stopped working under 5.0-RELEASE, but under > 4.7-STABLE it works fine and gives the 160%+ speed improvement... > It complains of not finding a pthread references in the libc.so file > when the compiler trys to link. you should use -lc_r in 5.x to link pthreads in (or -lpthread when it will be ready, notice an 'l' after '-') -pthread (which should be used in 4.x and earlier to link pthreads in) is a no-op in 5.x afaik > Does the following fix it? no. this is a no-op clean up commit > Also on a straight compile with the vanilla gnu c compiler 3.2.1 > that comes with 5.0-RELEASE it also breaks like this. /fjoe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message