From owner-freebsd-ports@FreeBSD.ORG Fri Jun 20 16:47:13 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 03BDBE8D for ; Fri, 20 Jun 2014 16:47:13 +0000 (UTC) Received: from qmta12.westchester.pa.mail.comcast.net (qmta12.westchester.pa.mail.comcast.net [76.96.59.227]) by mx1.freebsd.org (Postfix) with ESMTP id A7D7B23C9 for ; Fri, 20 Jun 2014 16:47:12 +0000 (UTC) Received: from omta03.westchester.pa.mail.comcast.net ([76.96.62.27]) by qmta12.westchester.pa.mail.comcast.net with comcast id GgH71o0030bG4ec5Cgm3TC; Fri, 20 Jun 2014 16:46:03 +0000 Received: from kirby.cyberbotx.com ([107.5.48.95]) by omta03.westchester.pa.mail.comcast.net with comcast id Ggm21o01D23DSHF3Pgm3p2; Fri, 20 Jun 2014 16:46:03 +0000 Message-ID: <53A4654A.6030906@cyberbotx.com> Date: Fri, 20 Jun 2014 12:46:02 -0400 From: Naram Qashat User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: freebsd-ports@FreeBSD.org Subject: devel/mingw32-gcc: Attempting to update the port, can't compile it Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1403282763; bh=HMNk0AD9a0AapSYstYg/i3LDriWnYpn3lTwb5RpGkdI=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=SAKCmCO8KkuEeWZDTqrJjnIaoA1Lw93Tv9PfDtIpqR/rNrr/vESoBHJyDSG/EkTZx KJjOprSig14aGkbQgOLXbivAz38TrxTbay+r+/lBSWRn4uMFhdOXRkJ6l62YKrEREh vxlKeiQv89/5/to8WFec7wx+M0KRM5sSBnlia5+x0x6bwG4b1ojHXWLNNd5N6XRgFW BW6QUvTM58tz/q2K2sa03PT4XiNK1zMbUfr7f/fKApFb/E7NR6mOmTGMTAnTdlFgKh VAEVy5bfQ2O6H9fbbq6D7DGKKmZL7kU0DoNudnC7oM3DEsnIKp2gXZ6+g6qtRHfpw8 t5FGCaNPzEeKA== X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jun 2014 16:47:13 -0000 As the maintainer of devel/mingw32-gcc, it currently needs staging, but the port refuses to compile at the moment. 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'm at a complete loss as to how to fix this. I am hoping that someone more versed in cross-compiling gcc can help me solve this, so I can get the port updated and staged before the end of the month. Thanks, Naram Qashat