After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 728258 - ios-universal: libvpx: Failure to build properly for armv7s
ios-universal: libvpx: Failure to build properly for armv7s
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: packages
unspecified
Other Mac OS
: Normal major
: 1.3.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-04-15 12:19 UTC by Edward Hervey
Modified: 2014-04-16 12:48 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
build: Add support for the armv7s architecture on Darwin builders (4.70 KB, patch)
2014-04-15 13:01 UTC, Philip Withnall
rejected Details | Review

Description Edward Hervey 2014-04-15 12:19:48 UTC
libvpx doesn't build properly for armv7s.

Requires adding armv7s support to the libvpx configure scripts.
Comment 1 Edward Hervey 2014-04-15 12:43:45 UTC
I tried to fix this issue by modifying the recipe this way:
* if the target is armv7s, replace arch with armv7 (and make it use the ios armv7 target)

  That wasn't enough since the compiler then complained about having two diferent "-arch" in the CFLAGS.

* remove "-arch armv7s" from the CFLAGS, CPPFLAGS and LDFLAGS

The problem is that while it builds everything ... we end up with two armv7 section in the universal library, and therefore the build fails.


Something is definitely fishy in the way -arch is handled. I'm tempted to say the problem is in the patches we have for libvpx to make it support ios.
We set -arch both in:
* the generic cerbero system (in the CFLAGS, CPPFLAGS and LDFLAGS)
* and also in the libvpx configuration system

I'm tempted to say we should drop the -arch fiddling for ios in the libvpx configuration patches, and instead let is use the ones from the generic cerbero system.
Comment 2 Philip Withnall 2014-04-15 13:01:52 UTC
Created attachment 274363 [details] [review]
build: Add support for the armv7s architecture on Darwin builders

Here’s a sample patch on libvpx master which should add support for armv7s so that universal binaries can be generated with both armv7 and armv7s sections. It’s completely untested (I don’t have time or access to a Darwin machine atm), but should be pretty much there.
Comment 3 Edward Hervey 2014-04-16 12:25:13 UTC
commit 3e72fbad4c7f4856d9344080473b265f8fc5f3be
Author: Edward Hervey <edward@collabora.com>
Date:   Wed Apr 16 14:22:54 2014 +0200

    libvpx: Fix ios armv7s build
    
    Inspired by patch from Philip Withnall <philip.withnall@collabora.co.uk>
    
    https://bugzilla.gnome.org/show_bug.cgi?id=728258