From owner-freebsd-questions@FreeBSD.ORG Wed Dec 18 17:10:51 2013 Return-Path: Delivered-To: freebsd-questions@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 CAFE2886 for ; Wed, 18 Dec 2013 17:10:51 +0000 (UTC) Received: from mail-pa0-x22c.google.com (mail-pa0-x22c.google.com [IPv6:2607:f8b0:400e:c03::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9DC1410D6 for ; Wed, 18 Dec 2013 17:10:51 +0000 (UTC) Received: by mail-pa0-f44.google.com with SMTP id fa1so6247474pad.3 for ; Wed, 18 Dec 2013 09:10:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to; bh=B5fi9AkicV1VrosbDyvhWyOgelmDOiNJISt0hj+BdNw=; b=TutimQH1fWFzeUiCWBTqTDWO+3yZj70jabTe+aFwC3NP7kOAwndLQJrDc/KGv6CT1/ FRpGLsgCqcvsIM/qsQg5YxxKHDXRyFPVh9z6TMJK9DXFOnIO+6B/W+HhmEJnTT7wCpXh W0900qfb4pD77TIpk/r/LF0m/8jkT4Nc4pBWTlL0mAu6yiIIZPPXBWAa3vA74uDQegVm O9sosVKHgnRVoCjgnw0VbvdLcEXbq+GPMUX7IXKJcd+2PVLgwj8dQejnx6MKPZNKWq9k 0ObbJv6cuHS72SneaH52tK+zrSuY4iB37y3MepRNc9qTzNO2ZVdgdAXZa58Y4HaiCkFh lX+g== X-Received: by 10.68.242.68 with SMTP id wo4mr7934801pbc.32.1387386651248; Wed, 18 Dec 2013 09:10:51 -0800 (PST) Received: from [10.0.1.3] (cpe-76-88-76-16.san.res.rr.com. [76.88.76.16]) by mx.google.com with ESMTPSA id sd3sm1237005pbb.42.2013.12.18.09.10.48 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 18 Dec 2013 09:10:49 -0800 (PST) From: Ricky Huang Message-Id: <2EE35243-2418-4875-BFE8-D887F3CD988F@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: GCC 4.6 fails on types_used_by_cur_var_decl Date: Wed, 18 Dec 2013 09:10:46 -0800 References: <6D1EB67A-BABF-4A63-8F14-EEAE78CFA832@gmail.com> To: freebsd-questions@freebsd.org In-Reply-To: <6D1EB67A-BABF-4A63-8F14-EEAE78CFA832@gmail.com> X-Mailer: Apple Mail (2.1510) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.17 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Dec 2013 17:10:51 -0000 On Dec 17, 2013, at 12:18 PM, Ricky Huang wrote: > [=85] >=20 > Is this the case where types_used_by_cur_var_decl was not extern = declared somewhere else (probably in its header)? >=20 > [=85] Seeing types_used_by_cur_var_decl is declared in function.h, I did an = #include in the complaining file c-common.c. Now it has different = compiler complains: .././../gcc-4.6.4/gcc/c-family/c-gimplify.c:102:17: error: incomplete = definition of type 'struct cgraph_node' for (cgn =3D cgn->nested; cgn ; cgn =3D cgn->next_nested) ~~~^ .././../gcc-4.6.4/gcc/tree-inline.h:53:10: note: forward declaration of = 'struct cgraph_node' struct cgraph_node *src_node; ^ .././../gcc-4.6.4/gcc/c-family/c-gimplify.c:102:42: error: incomplete = definition of type 'struct cgraph_node' for (cgn =3D cgn->nested; cgn ; cgn =3D cgn->next_nested) ~~~^ .././../gcc-4.6.4/gcc/tree-inline.h:53:10: note: forward declaration of = 'struct cgraph_node' struct cgraph_node *src_node; ^ .././../gcc-4.6.4/gcc/c-family/c-gimplify.c:103:22: error: incomplete = definition of type 'struct cgraph_node' c_genericize (cgn->decl); I have tried both clang and the default compiler (by modifying = /etc/make.conf) file and neither helped=85 Help?