From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Jun 22 21:36:49 2014 Return-Path: Delivered-To: freebsd-ports-bugs@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 A671BCC1 for ; Sun, 22 Jun 2014 21:36:49 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8CC32281C for ; Sun, 22 Jun 2014 21:36:49 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.8/8.14.8) with ESMTP id s5MLannj019282 for ; Sun, 22 Jun 2014 22:36:49 +0100 (BST) (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 191291] New: [MAINTAINER] devel/mingw32-gcc: Update to 4.8.1, support staging, but doesn't build :( Date: Sun, 22 Jun 2014 21:36:49 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports Tree X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: cyberbotx@cyberbotx.com X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Jun 2014 21:36:49 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191291 Bug ID: 191291 Summary: [MAINTAINER] devel/mingw32-gcc: Update to 4.8.1, support staging, but doesn't build :( Product: Ports Tree Version: Latest Hardware: Any OS: Any Status: Needs Triage Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: cyberbotx@cyberbotx.com Created attachment 144047 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=144047&action=edit Incomplete patch In attempting to update devel/mingw32-gcc to use gcc 4.8.1 and to support staging, I have encountered a problem. The port refuses to build. I am at a loss on how to fix this, as I want to make sure the port is updated to handle staging and not get deprecated at the end of the month. The first problem I was getting was it saying that it couldn't find stdio.h at all. After a bit of searching on Google, I found the --with-sysroot configure option. I had to patch gcc/config.gcc to use /mingw32/include instead of /mingw/include (since devel/mingw32-bin-msvcrt installs to ${PREFIX}/mingw32/include). I have attempted to build the port in poudriere. If I set --with-sysroot to ${PREFIX}, I get the following: The directory that should contain system headers does not exist: /prefix/mingw32-gcc-4.8.1_1/mingw32/include gmake[2]: *** [stmp-fixinc] Error 1 gmake[2]: Leaving directory `/wrkdirs/usr/ports/devel/mingw32-gcc/work/build/gcc' gmake[1]: *** [all-gcc] Error 2 gmake[1]: Leaving directory `/wrkdirs/usr/ports/devel/mingw32-gcc/work/build' gmake: *** [all] Error 2 If I set --with-sysroot to ${LOCALBASE}, I get the following instead: /wrkdirs/usr/ports/devel/mingw32-gcc/work/build/./gcc/xgcc -B/wrkdirs/usr/ports/devel/mingw32-gcc/work/build/./gcc/ -L/wrkdirs/usr/ports/devel/mingw32-gcc/work/build/mingw32/winsup/mingw -L/wrkdirs/usr/ports/devel/mingw32-gcc/work/build/mingw32/winsup/w32api/lib -isystem /wrkdirs/usr/ports/devel/mingw32-gcc/work/gcc-4.8.1/winsup/mingw/include -isystem /wrkdirs/usr/ports/devel/mingw32-gcc/work/gcc-4.8.1/winsup/w32api/include -B/prefix/mingw32-gcc-4.8.1_1/mingw32/bin/ -B/prefix/mingw32-gcc-4.8.1_1/mingw32/lib/ -isystem /prefix/mingw32-gcc-4.8.1_1/mingw32/include -isystem /prefix/mingw32-gcc-4.8.1_1/mingw32/sys-include -g -O2 -pipe -I/usr/local/include -fno-strict-aliasing -O2 -I../.././..//gcc-4.8.1/libgcc/../winsup/w32api/include -g -O2 -pipe -I/usr/local/include -fno-strict-aliasing -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -I. -I. -I../.././gcc -I../.././..//gcc-4.8.1/libgcc -I../.././..//gcc-4.8.1/libgcc/. -I../.././..//gcc-4.8.1/libgcc/../gcc -I../.././..//gcc-4.8.1/libgcc/../include -I../.././..//gcc-4.8.1/libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS -DUSE_EMUTLS -o _muldi3.o -MT _muldi3.o -MD -MP -MF _muldi3.dep -DL_muldi3 -c ../.././..//gcc-4.8.1/libgcc/libgcc2.c In file included from ../.././..//gcc-4.8.1/libgcc/libgcc2.c:27:0: ../.././..//gcc-4.8.1/libgcc/../gcc/tsystem.h:87:19: fatal error: stdio.h: No such file or directory #include ^ compilation terminated. gmake[2]: *** [_muldi3.o] Error 1 gmake[2]: Leaving directory `/wrkdirs/usr/ports/devel/mingw32-gcc/work/build/mingw32/libgcc' gmake[1]: *** [all-target-libgcc] Error 2 gmake[1]: Leaving directory `/wrkdirs/usr/ports/devel/mingw32-gcc/work/build' gmake: *** [all] Error 2 I am currently at a complete loss as to how to fix this problem. I am hoping someone well versed in gcc cross-compiling can help me fix this problem. -- You are receiving this mail because: You are the assignee for the bug.