Bug 200535

Summary: multimedia/libvpx: fails to build on armv6
Product: Ports & Packages Reporter: Randy Westlund <rwestlun>
Component: Individual Port(s)Assignee: Ashish SHUKLA <ashish>
Status: Closed FIXED    
Severity: Affects Only Me CC: sbruno
Priority: --- Flags: bugzilla: maintainer-feedback? (ashish)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
libvpx-1.3.0 build log
none
Fix build on armv6 with use of shebang fix none

Description Randy Westlund 2015-05-30 06:30:12 UTC
Created attachment 157276 [details]
libvpx-1.3.0 build log

I'm using poudriere-devel with qemu-user-static to cross compile for armv6.

libvpx-1.3.0 fails with:

cc  -O -pipe  -fno-strict-aliasing -march=armv6 -mtune=armv6 -O3 -fPIC -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -Wdeclaration-after-statement -     Wdisabled-optimization -Wpointer-arith -Wtype-limits -Wcast-qual -Wvla -Wimplicit-function-declaration -Wuninitialized -Wunused-variable -fno-strict-aliasing -Wno-unused-function -I. -I"/       wrkdirs/usr/ports/multimedia/libvpx/work/libvpx-1.3.0" -c -o vp9/decoder/vp9_dsubexp.c.o vp9/decoder/vp9_dsubexp.c
cc  -O -pipe  -fno-strict-aliasing -march=armv6 -mtune=armv6 -O3 -fPIC -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -Wdeclaration-after-statement -     Wdisabled-optimization -Wpointer-arith -Wtype-limits -Wcast-qual -Wvla -Wimplicit-function-declaration -Wuninitialized -Wunused-variable -fno-strict-aliasing -Wno-unused-function -I. -I"/       wrkdirs/usr/ports/multimedia/libvpx/work/libvpx-1.3.0" -c -o vpx_config.c.o vpx_config.c
    [CREATE] vpx_config.asm
/wrkdirs/usr/ports/multimedia/libvpx/work/libvpx-1.3.0/libs.mk:361: recipe for target 'vpx_config.asm' failed
gmake[2]: *** [vpx_config.asm] Error 1
Makefile:17: recipe for target '.DEFAULT' failed
gmake[1]: *** [.DEFAULT] Error 2
gmake[1]: Leaving directory '/wrkdirs/usr/ports/multimedia/libvpx/work/libvpx-1.3.0'
*** Error code 1
Stop.
make: stopped in /usr/ports/multimedia/libvpx
====>> Cleaning up wrkdir
===>  Cleaning for libvpx-1.3.0
^[[1;33m====>>^[[0;0m ^[[1;33mWarning: Leftover processes:
^[[0;0mUSER PID %CPU %MEM VSZ RSS TT  STAT STARTED TIME COMMAND
build of multimedia/libvpx ended at Sat May 30 01:52:11 EDT 2015
build time: 00:09:07
!!! build failure encountered !!! 


Full build log is attached.
Comment 1 Sean Bruno freebsd_committer freebsd_triage 2015-05-31 17:49:47 UTC
This is due to perl not installing /usr/bin/perl symlinks anymore by default so the ads2gas.pl script can't execute /usr/bin/perl as its interpreter.  

I'm unsure if there is a short hand ports way of changing this in the file or if we need to add a patch to change the interpreter for this perl file.
Comment 2 Sean Bruno freebsd_committer freebsd_triage 2015-05-31 18:43:06 UTC
Created attachment 157308 [details]
Fix build on armv6 with use of shebang fix

perl has changed its default options to *not* install /usr/bin/perl symlink to /usr/local/bin/perl

Deal with this in the one file where it is calling #!/usr/bin/perl with a shebangfix declaration.
Comment 3 commit-hook freebsd_committer freebsd_triage 2015-05-31 18:59:11 UTC
A commit references this bug:

Author: sbruno
Date: Sun May 31 18:58:17 UTC 2015
New revision: 388127
URL: https://svnweb.freebsd.org/changeset/ports/388127

Log:
  Fix build error introduced by changes to default behavior of perl port.

  Apply shebangfix to build/make/ads2gas.pl as it was invoking /usr/bin/perl.

  PR:		200535
  Reviewed by:	kwm

Changes:
  head/multimedia/libvpx/Makefile
Comment 4 Randy Westlund 2015-05-31 20:58:39 UTC
It builds for me now.  Thanks :)