Date: Tue, 5 Oct 2010 10:02:07 GMT From: Olivier Cochard-Labbé <olivier@cochard.me> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/151224: [multimedia/x264] setting TARGET_ARCH variable prevent to compile Message-ID: <201010051002.o95A27xL021337@www.freebsd.org> Resent-Message-ID: <201010051010.o95AA04p040775@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 151224 >Category: ports >Synopsis: [multimedia/x264] setting TARGET_ARCH variable prevent to compile >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Oct 05 10:10:00 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Olivier Cochard-Labbé >Release: 8.1 >Organization: BSD Media Center >Environment: FreeBSD d630.bsdrp.net 8.1-RELEASE FreeBSD 8.1-RELEASE #73: Sat Jul 24 10:33:11 CEST 2010 root@d630.bsdrp.net:/usr/obj/usr/src/sys/DellD630 amd64 >Description: When using this make command line: env TARGET_ARCH=amd64 make or this command line: env TARGET_ARCH=i386 make The make process generate a bad compilation line and failed by displaying this message: (etc...) cc -Wshadow -O3 -ffast-math -O2 -pipe -fno-strict-aliasing -Wall -I. -O2 -pipe -fno-strict-aliasing -fPIC -I/usr/local/include -std=gnu99 -s -fomit-frame-pointer i386 -c -o common/mc.o common/mc.c cc: i386: No such file or directory gmake: *** [common/mc.o] Error 1 gmake: *** Waiting for unfinished jobs.... *** Error code 1 Stop in /usr/ports/multimedia/x264. *** Error code 1 We can notice that the value of the variable TARGET_ARCH is put just after the "-fomit-frame-pointer" and before the "-c -o common/mc.o" options: Something missing. >How-To-Repeat: When using this make command line: env TARGET_ARCH=amd64 make or this command line: env TARGET_ARCH=i386 make >Fix: Same solution than with PR/147853 (patch included) Patch attached with submission follows: --- Makefile.orig 2010-10-05 11:35:51.000000000 +0200 +++ Makefile 2010-10-05 11:36:24.000000000 +0200 @@ -23,6 +23,7 @@ EXTRACT_AFTER_ARGS?= | ${TAR} -xf - --exclude .svn WRKSRC= ${WRKDIR}/${DISTNAME} USE_GMAKE= yes +MAKE_ENV+= TARGET_ARCH= USE_LDCONFIG= yes HAS_CONFIGURE= yes MAKE_JOBS_SAFE= yes >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010051002.o95A27xL021337>