Bug 151224 - multimedia/x264: setting TARGET_ARCH variable prevent to compile
Summary: multimedia/x264: setting TARGET_ARCH variable prevent to compile
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Martin Matuska
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-05 11:10 UTC by olivier
Modified: 2012-02-27 09:40 UTC (History)
0 users

See Also:


Attachments
file.diff (306 bytes, patch)
2010-10-05 11:10 UTC, olivier
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description olivier 2010-10-05 11:10:00 UTC
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.

Fix: Same solution than with PR/147853 (patch included)

Patch attached with submission follows:
How-To-Repeat: When using this make command line:
env TARGET_ARCH=amd64 make

or this command line:
env TARGET_ARCH=i386 make
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2010-10-05 11:10:09 UTC
Responsible Changed
From-To: freebsd-ports-bugs->mm

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2010-11-22 15:36:36 UTC
mm          2010-11-22 15:36:31 UTC

  FreeBSD ports repository

  Modified files:
    multimedia/x264      Makefile 
  Log:
  - Clear ARCH and TARGET_ARCH in configure and make environment
  
  PR:             ports/151224
  Submitted by:   Olivier Cochard-Labbé <olivier@cochard.me>
  
  Revision  Changes    Path
  1.79      +4 -7      ports/multimedia/x264/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Martin Matuska freebsd_committer freebsd_triage 2010-11-22 15:48:50 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 4 dfilter service freebsd_committer freebsd_triage 2012-02-27 09:39:07 UTC
ehaupt      2012-02-27 09:38:57 UTC

  FreeBSD ports repository

  Modified files:
    sysutils/fusefs-ext4fuse Makefile 
  Log:
  Explicitly empty TARGET_ARCH to prevent build problems when cross compiling.
  
  PR:             151224
  Submitted by:   Olivier Cochard-Labbé <olivier@cochard.me>
  
  Revision  Changes    Path
  1.2       +3 -0      ports/sysutils/fusefs-ext4fuse/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"