Date: Wed, 7 Sep 2005 15:30:09 GMT From: Sergey Skvortsov <skv@FreeBSD.org> To: freebsd-x11@FreeBSD.org Subject: Re: ports/85735: Force imake respect CC/CXX Message-ID: <200509071530.j87FU9Hg005910@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/85735; it has been noted by GNATS. From: Sergey Skvortsov <skv@FreeBSD.org> To: bug-followup@FreeBSD.org, Dejan Lesjak <dejan.lesjak@ijs.si> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509071530.j87FU9Hg005910>