Date: Sun, 06 May 2012 12:48:37 -0700 (PDT) From: Christian Mangin <christian.mangin@gmail.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/167652: lang/gcc: Missing include files. Message-ID: <4fa6d595.d1b9e00a.29e1.ffff9ead@mx.google.com> Resent-Message-ID: <201205061950.q46JoB5g066809@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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 <stddef.h> 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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4fa6d595.d1b9e00a.29e1.ffff9ead>