From owner-freebsd-ports-bugs@FreeBSD.ORG Sun May 6 19:50:12 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6106E1065670 for ; Sun, 6 May 2012 19:50:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 1D8C58FC12 for ; Sun, 6 May 2012 19:50:12 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q46JoBwx066810 for ; Sun, 6 May 2012 19:50:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q46JoB5g066809; Sun, 6 May 2012 19:50:11 GMT (envelope-from gnats) Resent-Date: Sun, 6 May 2012 19:50:11 GMT Resent-Message-Id: <201205061950.q46JoB5g066809@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Christian Mangin Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2A79C106566C for ; Sun, 6 May 2012 19:48:39 +0000 (UTC) (envelope-from christian.mangin@gmail.com) Received: from mail-qa0-f49.google.com (mail-qa0-f49.google.com [209.85.216.49]) by mx1.freebsd.org (Postfix) with ESMTP id D8DF98FC14 for ; Sun, 6 May 2012 19:48:38 +0000 (UTC) Received: by qabj40 with SMTP id j40so2576222qab.15 for ; Sun, 06 May 2012 12:48:38 -0700 (PDT) Received: by 10.224.97.199 with SMTP id m7mr21361716qan.38.1336333718228; Sun, 06 May 2012 12:48:38 -0700 (PDT) Received: from localhost (cable-10-157-60.b2b2c.ca. [72.10.157.60]) by mx.google.com with ESMTPS id cp17sm28768749qab.5.2012.05.06.12.48.36 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 06 May 2012 12:48:37 -0700 (PDT) Message-Id: <4fa6d595.d1b9e00a.29e1.ffff9ead@mx.google.com> Date: Sun, 06 May 2012 12:48:37 -0700 (PDT) From: Christian Mangin To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/167652: lang/gcc: Missing include files. X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Christian Mangin List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 May 2012 19:50:12 -0000 >Number: 167652 >Category: ports >Synopsis: lang/gcc: Missing include files. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun May 06 19:50:11 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Christian Mangin >Release: FreeBSD 9.0-RELEASE-p1 amd64 >Organization: >Environment: System: FreeBSD titan 9.0-RELEASE-p1 >Description: The stddef.h header file included with lang/gcc refers to sys/_types.h which only exists in the base system. When compiling with -nostdinc the compilation aborts with the error below. I can't override '-nostdinc' because it creates type definition conflicts when trying to compile this particular port. (It's the bazaar version of grub2) >How-To-Repeat: test.c: #include int main() { return 0; } gcc46 -nostdinc -I/usr/local/lib/gcc46/gcc/x86_64-portbld-freebsd9.0/4.6.3/include test.c In file included from test.c:1:0: /usr/local/lib/gcc46/gcc/x86_64-portbld-freebsd9.0/4.6.3/include/stddef.h:59:24: fatal error: sys/_types.h: No such file or directory compilation terminated. >Fix: As a workaround I've been able to successfully build the port by adding symlinks to /usr/include/sys and /usr/include/machine. The specific files that stddef.h wants are: sys/_types.h sys/cdefs.h machine/_types.h >Release-Note: >Audit-Trail: >Unformatted: