From owner-freebsd-x11@FreeBSD.ORG Wed Sep 7 15:30:09 2005 Return-Path: X-Original-To: freebsd-x11@hub.freebsd.org Delivered-To: freebsd-x11@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A4D6A16A41F for ; Wed, 7 Sep 2005 15:30:09 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 34D2A43D49 for ; Wed, 7 Sep 2005 15:30:09 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j87FU9BE005912 for ; Wed, 7 Sep 2005 15:30:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j87FU9Hg005910; Wed, 7 Sep 2005 15:30:09 GMT (envelope-from gnats) Date: Wed, 7 Sep 2005 15:30:09 GMT Message-Id: <200509071530.j87FU9Hg005910@freefall.freebsd.org> To: freebsd-x11@FreeBSD.org From: Sergey Skvortsov Cc: Subject: Re: ports/85735: Force imake respect CC/CXX X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Sergey Skvortsov List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2005 15:30:09 -0000 The following reply was made to PR ports/85735; it has been noted by GNATS. From: Sergey Skvortsov To: bug-followup@FreeBSD.org, Dejan Lesjak Cc: Subject: Re: ports/85735: Force imake respect CC/CXX Date: Wed, 07 Sep 2005 19:29:28 +0400 Dejan Lesjak wrote: > > effect at the time imake is built. This doesn't seem right. (See also > ports/65277). > > Furthermore I seem to be unable to reproduce the case where imake would not > respect $CC. If I define CC=notcc in either /etc/make.conf or try to build > imake with these commands: > > make CC=nocc build > > This seems to suggest imake is indeed respecting CC. Is there some specific > case where it is not so? You used unexisting cc. Try the real one - install lang/gcc34. %uname -r 4.11-STABLE /etc/make.conf: X_WINDOW_SYSTEM= xorg # compile all ports with gcc-3.4 .if ${.CURDIR:N*/ports/*} == "" CC:=gcc34 CXX:=g++34 CFLAGS= -O2 -pipe -Wall -mtune=pentium4 .endif %cd /usr/ports/devel/imake-6 %make ===> Extracting for imake-6.8.2 => Checksum OK for xorg/X11R6.8.2-src1.tar.gz. => Checksum OK for xorg/X11R6.8.2-src3.tar.gz. ===> imake-6.8.2 depends on file: /usr/local/bin/perl5.8.7 - found ===> Patching for imake-6.8.2 ===> imake-6.8.2 depends on file: /usr/local/bin/perl5.8.7 - found ===> Applying FreeBSD patches for imake-6.8.2 ===> imake-6.8.2 depends on file: /usr/local/bin/perl5.8.7 - found ===> Configuring for imake-6.8.2 cd ./config/imake && make -f Makefile.ini BOOTSTRAPCFLAGS="" CC="gcc34" making imake with BOOTSTRAPCFLAGS= and CROSSCOMPILEFLAGS=-DCROSSCOMPILEDIR="" in config/imake gcc34 -o ccimake -DCROSSCOMPILEDIR=\"\" -O -I../../include -I../../imports/x11/include/X11 ccimake.c if [ -n "" ] ; then /cc -E `./ccimake` -DCROSSCOMPILE_CPP imakemdep.h > imakemdep_cpp.h; else touch imakemdep_cpp.h; fi gcc34 -c -O -I../../include -I../../imports/x11/include/X11 `./ccimake` imake.c gcc34 -o imake -O -I../../include -I../../imports/x11/include/X11 imake.o rm -f ./config/makedepend/Makefile.proto ./config/imake/imake -I./config/cf -s ./config/makedepend/Makefile.proto -f ./config/makedepend/Imakefile -DTOPDIR=../.. -DCURDIR=./config/makedepend cd ./config/makedepend && rm -f -r Makefile Makefile.dep makedepend *.o bootstrap cd ./config/makedepend && make -f Makefile.proto bootstrap ./config/imake/imake -I./config/cf -s ./config/imake/Makefile.proto -f ./config /imake/Imakefile -DTOPDIR=../.. -DCURDIR=./config/imake -DBootStrap cd ./config/makedepend && rm -f -r Makefile Makefile.dep makedepend *.o bootstrap cd ./config/imake && make -f Makefile.ini BOOTSTRAPCFLAGS="" CC="gcc34" bootstrap + mkdir bootstrap mv *.o bootstrap + mv imake bootstrap cd ./config/imake && make -f Makefile.proto imakeonly cc -O2 -pipe -Wall -mtune=pentium4 -ansi -pedantic -Wno-system-headers -Dasm=__asm -Wall -Wpointer-arith -Wundef -I../../include -I../../exports/include/X11 -I../.. -I../../exports/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -DCPP_PROGRAM="\"/usr/bin/cpp\"" -DHAS_MERGE_CONSTANTS=`if cc -fmerge-constants -xc /dev/null -S -o /dev/null 2> /dev/null 1> /dev/null; then echo 1; else echo 0; fi` -c imake.c cc1: Invalid option `tune=pentium4' cc1: Invalid option `-Wno-system-headers' *** Error code 1 Stop in /usr/ports/devel/imake-6/work/xc/config/imake. *** Error code 1 Stop in /usr/ports/devel/imake-6/work/xc. make: cannot open xmakefile. *** Error code 2 Stop in /usr/ports/devel/imake-6. So, "cc1" is used anyway because Imake.tmpl does not updated with correct CC variables. -- Sergey Skvortsov mailto: skv@FreeBSD.org