From owner-freebsd-stable@FreeBSD.ORG Tue Dec 27 10:36:10 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E7B8D1065670 for ; Tue, 27 Dec 2011 10:36:09 +0000 (UTC) (envelope-from c.kworr@gmail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 74D0D8FC16 for ; Tue, 27 Dec 2011 10:36:08 +0000 (UTC) Received: by eekc50 with SMTP id c50so13862481eek.13 for ; Tue, 27 Dec 2011 02:36:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=zq5MdEN2gQNah9kNsp+EFoNHxyyyOqpP9o+xO5xfo2Q=; b=TLfwpe5lLQ1ioN7rRMtcPYtN4psvv0Sdvm+ySAS12F6EnATPuAnFiOTW67v+S4ry37 y//lUQ0WoN9RxJ3hAnINiN0JN7LZt1x+TgPEWME5TcVFzc499sCT4piKKE+ZyMD5TK7q Wn5IBzj+MTcjBk2hYxPREQihqVQUiB0Psr/WE= Received: by 10.14.149.135 with SMTP id x7mr11590029eej.27.1324982167430; Tue, 27 Dec 2011 02:36:07 -0800 (PST) Received: from green.tandem.local (utwig.xim.bz. [91.216.237.46]) by mx.google.com with ESMTPS id u53sm56763497eeu.6.2011.12.27.02.36.05 (version=SSLv3 cipher=OTHER); Tue, 27 Dec 2011 02:36:06 -0800 (PST) Message-ID: <4EF99F93.9000405@gmail.com> Date: Tue, 27 Dec 2011 12:36:03 +0200 From: Volodymyr Kostyrko User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20111223 Thunderbird/9.0 MIME-Version: 1.0 To: Dimitry Andric References: <4EF88D7B.4040600@gmail.com> <4EF8E21E.10401@gmail.com> <4EF92639.8070903@FreeBSD.org> In-Reply-To: <4EF92639.8070903@FreeBSD.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org Subject: Re: minor regression after patching X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Dec 2011 10:36:10 -0000 27.12.2011 03:58, Dimitry Andric wrote: >>>> ftpd.o: In function `pass': >>>> /usr/src/libexec/ftpd/ftpd.c:(.text+0x2676): undefined reference to >>>> `__FreeBSD_libc_enter_restricted_mode' >>>> clang: error: linker command failed with exit code 1 (use -v to see >>>> invocation) >>>> *** Error code 1 >>> >>> This means that linker has not found a mentioned symbol, i.e. likely >>> you haven't updated your libc before trying to build ftpd. >>> In this case you need to act the next order: >>> 1) rebuild&& reinstall libc >>> 2) rebuild&& reinstall ftpd >> >> Oh yes, I just remembered those sweet days I was sitting on HEAD. Each >> build was a trial/error process. >> >> And I'm not seeing this when compiling world with stock gcc or on i386. >> It looks like rather nasty clang regression. > > For me, stable/9 builds just fine with clang (or gcc), and the tinderbox > isn't complaining either. Are you sure you are running buildworld, > which is definitely necessary for this kind of upgrade? Yes. I have set up a chrooted environment to retest. Config files are: === /etc/make.conf # vim:set ft=make: #CPUTYPE?=native INSTALL:=install -C KERNCONF?=MINIMAL NO_CLEAN:=yes WITHOUT_NOUVEAU:=yes WRKDIRPREFIX=/tmp/ports .if (empty(.CURDIR:N*/usr/src/*) || empty(.CURDIR:N*/usr/obj/*)) && !defined(NOCCACHE) . if !empty(TARGET:Mamd64) #CC=/usr/local/libexec/ccache/world-cc #CXX=/usr/local/libexec/ccache/world-c++ CC:=${CC:C,^cc$,clang,1} CXX:=${CXX:C,^c\+\+$,clang++,1} CPP:=${CPP:C,^cpp$,clang -E,} NO_WERROR:= WERROR:= . else #CC=/usr/local/libexec/ccache/world/cc #CXX=/usr/local/libexec/ccache/world/c++ . endif .endif ==== === /etc/src.conf WITHOUT_ACCT='yes' #WITHOUT_AMD='yes' WITHOUT_ATM='yes' WITHOUT_AUTHPF='yes' #WITHOUT_BIND='yes' WITHOUT_CTM='yes' WITHOUT_FREEBSD_UPDATE='yes' WITHOUT_HTML='yes' WITHOUT_I4B='yes' #WITHOUT_INFO='yes' WITHOUT_IPFILTER='yes' WITHOUT_IPFW='yes' WITHOUT_IPX='yes' #WITHOUT_JAIL='yes' #WITHOUT_KERBEROS='yes' WITHOUT_NDIS='yes' #WITHOUT_NIS='yes' WITHOUT_PMC='yes' WITHOUT_PORTSNAP='yes' #WITHOUT_PPP='yes' WITHOUT_PROFILE='yes' WITHOUT_QUOTAS='yes' WITHOUT_RCMDS='yes' #WITHOUT_RCS='yes' WITHOUT_ROUTED='yes' WITHOUT_SENDMAIL='yes' WITHOUT_SLIP='yes' WITHOUT_SYSINSTALL='yes' WITHOUT_WIRELESS='yes' ==== No other changes was done to environment. Build was started with: idprio 15 make -j2 buildworld Also I found that there are files missing after successful buildworld so installworld fails at some points. Subsequent run of buildworld fixes that. I'll start a new build from a scratch with one single job to catch all output. -- Sphinx of black quartz judge my vow.