From owner-freebsd-current@FreeBSD.ORG Fri Jan 17 21:07:55 2014 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4AE253C8; Fri, 17 Jan 2014 21:07:55 +0000 (UTC) Received: from mail-lb0-x229.google.com (mail-lb0-x229.google.com [IPv6:2a00:1450:4010:c04::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 863331A5F; Fri, 17 Jan 2014 21:07:54 +0000 (UTC) Received: by mail-lb0-f169.google.com with SMTP id q8so3382639lbi.14 for ; Fri, 17 Jan 2014 13:07:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=iUSosXfjMz63PNh3A+NsFppqjViNNVu2eBD4NVJPOGE=; b=ingdXUSHKB4HXXqvAHD7TRRl3HgWAF/J2ETr0/8zdRMlh4MXKiYceVmv5fYhxyitiP Z64OpLWA0k99zvntxx/qWj9eMRjig2wbX/gnNVS+CkdUVG67BY/U+rogcqc4xUe23qag rOLRsmrNTQoO9fuGVrqFQBL6HNCbklNdSCBvTwu3vVGsX55wTV3uX4fsxgXH6T8nuBUP WIizeV+SxAElpnSMDC+vnaCXuIpHUF/9yl4A4BC5bBqAExgEPGkZZjooP2OVyfroQ4B4 bPI0rXUrHzim0KPrUMSxdDmgthdmLhgy86lEQW4ub6Hk1h5Id/gbsCOweR5ETenSB4JT ZVvg== MIME-Version: 1.0 X-Received: by 10.112.133.3 with SMTP id oy3mr379883lbb.63.1389992872573; Fri, 17 Jan 2014 13:07:52 -0800 (PST) Sender: rizzo.unipi@gmail.com Received: by 10.114.175.180 with HTTP; Fri, 17 Jan 2014 13:07:52 -0800 (PST) In-Reply-To: <52D99783.9020909@FreeBSD.org> References: <20140117201802.GB62555@onelab2.iet.unipi.it> <52D99783.9020909@FreeBSD.org> Date: Fri, 17 Jan 2014 13:07:52 -0800 X-Google-Sender-Auth: isQffSSEd1En6kBlT9vOyJ_Yg8k Message-ID: Subject: Re: svn 260311 breaks gcc builds on releng9 ? From: Luigi Rizzo To: Pedro Giffuni Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: FreeBSD Current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jan 2014 21:07:55 -0000 On Fri, Jan 17, 2014 at 12:50 PM, Pedro Giffuni wrote: > Hello Luigi; > > > On 17.01.2014 15:18, Luigi Rizzo wrote: > >> Hi, >> I am seeing an odd problem which seems to be triggered by svn260311 >> >> I have two machines running snapshots of stable/9 from last fall >> (one 255898 sep.26, the other 258126 nov.14). All is amd64 >> >> Build a recent head (260311 and newer) with gcc fails on the sep.26 >> machine: >> >> ... >> 19:51:22 ===> gnu/usr.bin/cc/cc1plus (all) >> PROG CC /media/bsd10/usr/home/luigi/ >> FreeBSD/head/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/main.c >> ... >> PROG CC /media/bsd10/usr/home/luigi/ >> FreeBSD/head/gnu/usr.bin/cc/cc1plus/../../../../contrib/gcc/cp/except.c >> parser.o: In function `cp_parser_objc_tentative_ >> protocol_refs_opt': >> parser.c:(.text+0x14665): undefined reference to >> `cp_objc_protocol_id_list' >> *** [cc1plus-dummy] Error code 1 >> 1 error >> >> but works on the newer one. >> >> svn 260310 builds on both. >> >> I am a bit unclear on what is going on because the missing symbol >> (cp_objc_protocol_id_list) only appears in the source file parser.c >> and in a ChangeLog.apple file, so maybe it is generated and >> the actual failure is at some earlier stage. >> > Thanks for the report. > > Of course gcc can also have bugs but it would look like you may not be > doing a clean build or that some how object code from two different builds > got mixed up. > i thought so too, but i am building in a completely new dir and i retried some 10 times rm -rf on the output dir, resyncing the repo and checking diffs, etc. Also it is very suspicious that going back to 260310 makes the problem disappear, and 260311 brings it back in. Anyways, it is very confusing indeed. > JIC, the cp_obj_protocol_id_list stuff is obviously objc stuff that we > don't need at all and that crept in along with other changes from Apple so > I will remove it to see if it helps somehow. > ok thanks. let me know if you want me to test a patch before committing, since I have a way to reproduce the error (i am not upgrading the offending system on purpose). cheers luigi