Skip to contentSkip to conversation

libvpx: force arm mode to be able to link with ffmpeg where arm mode already is forced

PATCH Superseded Martin Jansa 2 participants 7 messages Jan 12, 2011 – Mar 1, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libvpx: force arm mode to be able to link with ffmpeg where arm mode already is forced

---
 recipes/webm/libvpx.inc |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
recipes/webm/libvpx.inc +5 -1
index 9913d5b..9d40945 100644
@@ -1,11 +1,15 @@
 DESCRIPTION = "vpx Multi-Format Codec SDK"
 LICENSE = "BSD"
 
-INC_PR = "r5"
+INC_PR = "r6"
 
 SRC_URI = "git://review.webmproject.org/libvpx.git;protocol=git;tag=v${PV}"
 S = "${WORKDIR}/git"
 
+# ffmpeg links with this and fails 
+# sysroots/armv4t-oe-linux-gnueabi/usr/lib/libvpx.a(vpx_encoder.c.o)(.text+0xc4): unresolvable R_ARM_THM_CALL relocation against symbol `memcpy@@GLIBC_2.4'
+ARM_INSTRUCTION_SET = "arm"
+
 CFLAGS += "-fPIC"
 
 export CC
Signature · 1 line
1.7.4.rc1
#1 lore raw
Quoted 1 line · Martin Jansa

hmmm what issues do u see if you build it with thumb mode.

Quoted 25 lines
---
  recipes/webm/libvpx.inc |    6 +++++-
  1 files changed, 5 insertions(+), 1 deletions(-)
recipes/webm/libvpx.inc +5 -1
index 9913d5b..9d40945 100644
@@ -1,11 +1,15 @@
  DESCRIPTION = "vpx Multi-Format Codec SDK"
  LICENSE = "BSD"
 
-INC_PR = "r5"
+INC_PR = "r6"
 
  SRC_URI = "git://review.webmproject.org/libvpx.git;protocol=git;tag=v${PV}"
  S = "${WORKDIR}/git"
 
+# ffmpeg links with this and fails
+# sysroots/armv4t-oe-linux-gnueabi/usr/lib/libvpx.a(vpx_encoder.c.o)(.text+0xc4): unresolvable R_ARM_THM_CALL relocation against symbol `memcpy@@GLIBC_2.4'
+ARM_INSTRUCTION_SET = "arm"
+
  CFLAGS += "-fPIC"
 
  export CC
#2 lore raw
Quoted 4 lines · Khem Raj
Quoted 1 line · Martin Jansa

hmmm what issues do u see if you build it with thumb mode.

+# ffmpeg links with this and fails
+# sysroots/armv4t-oe-linux-gnueabi/usr/lib/libvpx.a(vpx_encoder.c.o)(.text+0xc4): unresolvable R_ARM_THM_CALL relocation against symbol `memcpy@@GLIBC_2.4'

and full log is here
http://tinderbox.openembedded.org/packages/1398033/

Quoted 31 lines
Quoted 15 lines
---
  recipes/webm/libvpx.inc |    6 +++++-
  1 files changed, 5 insertions(+), 1 deletions(-)
recipes/webm/libvpx.inc +1 -1
index 9913d5b..9d40945 100644
@@ -1,11 +1,15 @@
  DESCRIPTION = "vpx Multi-Format Codec SDK"
  LICENSE = "BSD"
 
-INC_PR = "r5"
+INC_PR = "r6"
 

recipes/webm/libvpx.inc line 15

Quoted 10 lines
recipes/webm/libvpx.inc +4 -0
  SRC_URI = "git://review.webmproject.org/libvpx.git;protocol=git;tag=v${PV}"
  S = "${WORKDIR}/git"
 
+# ffmpeg links with this and fails
+# sysroots/armv4t-oe-linux-gnueabi/usr/lib/libvpx.a(vpx_encoder.c.o)(.text+0xc4): unresolvable R_ARM_THM_CALL relocation against symbol `memcpy@@GLIBC_2.4'
+ARM_INSTRUCTION_SET = "arm"
+
  CFLAGS += "-fPIC"
 
  export CC

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#3 lore raw
Quoted 11 lines · Martin Jansa
Quoted 4 lines · Khem Raj
Quoted 1 line · Martin Jansa

hmmm what issues do u see if you build it with thumb mode.

recipes/webm/libvpx.inc +2 -0
+# ffmpeg links with this and fails
+# sysroots/armv4t-oe-linux-gnueabi/usr/lib/libvpx.a(vpx_encoder.c.o)(.text+0xc4): unresolvable R_ARM_THM_CALL relocation against symbol `memcpy@@GLIBC_2.4'

and full log is here
http://tinderbox.openembedded.org/packages/1398033/

Its not clear in the logs but is libvpx using -fPIE compiler option ? if yes then you should remove it and then it will work.

Quoted 39 lines
Quoted 25 lines
Quoted 25 lines
---
   recipes/webm/libvpx.inc |    6 +++++-
   1 files changed, 5 insertions(+), 1 deletions(-)
recipes/webm/libvpx.inc +5 -1
index 9913d5b..9d40945 100644
@@ -1,11 +1,15 @@
   DESCRIPTION = "vpx Multi-Format Codec SDK"
   LICENSE = "BSD"
 
-INC_PR = "r5"
+INC_PR = "r6"
 
   SRC_URI = "git://review.webmproject.org/libvpx.git;protocol=git;tag=v${PV}"
   S = "${WORKDIR}/git"
 
+# ffmpeg links with this and fails
+# sysroots/armv4t-oe-linux-gnueabi/usr/lib/libvpx.a(vpx_encoder.c.o)(.text+0xc4): unresolvable R_ARM_THM_CALL relocation against symbol `memcpy@@GLIBC_2.4'
+ARM_INSTRUCTION_SET = "arm"
+
   CFLAGS += "-fPIC"
 
Quoted 7 lines

recipes/webm/libvpx.inc line 15

Quoted 1 line
recipes/webm/libvpx.inc +0 -0
   export CC

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#4 lore raw
Quoted 7 lines · Khem Raj
Quoted 6 lines · Martin Jansa
Quoted 4 lines · Khem Raj
Quoted 1 line · Martin Jansa

hmmm what issues do u see if you build it with thumb mode.

Quoted 8 lines
Quoted 5 lines
recipes/webm/libvpx.inc +2 -0
+# ffmpeg links with this and fails
+# sysroots/armv4t-oe-linux-gnueabi/usr/lib/libvpx.a(vpx_encoder.c.o)(.text+0xc4): unresolvable R_ARM_THM_CALL relocation against symbol `memcpy@@GLIBC_2.4'

and full log is here
http://tinderbox.openembedded.org/packages/1398033/

Its not clear in the logs but is libvpx using -fPIE compiler option ? if yes then you should remove it and then it will work.

only -fPIC and even with added -fno-PIE it still fails here (only with binutils-2.21, haven't seen it with 2.20)

Quoted 45 lines
Quoted 35 lines
Quoted 25 lines
Quoted 25 lines
---
   recipes/webm/libvpx.inc |    6 +++++-
   1 files changed, 5 insertions(+), 1 deletions(-)
recipes/webm/libvpx.inc +5 -1
index 9913d5b..9d40945 100644
@@ -1,11 +1,15 @@
   DESCRIPTION = "vpx Multi-Format Codec SDK"
   LICENSE = "BSD"
 
-INC_PR = "r5"
+INC_PR = "r6"
 
   SRC_URI = "git://review.webmproject.org/libvpx.git;protocol=git;tag=v${PV}"
   S = "${WORKDIR}/git"
 
+# ffmpeg links with this and fails
+# sysroots/armv4t-oe-linux-gnueabi/usr/lib/libvpx.a(vpx_encoder.c.o)(.text+0xc4): unresolvable R_ARM_THM_CALL relocation against symbol `memcpy@@GLIBC_2.4'
+ARM_INSTRUCTION_SET = "arm"
+
   CFLAGS += "-fPIC"
 
Quoted 7 lines

recipes/webm/libvpx.inc line 15

Quoted 1 line
recipes/webm/libvpx.inc +0 -0
   export CC

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Quoted 4 lines

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#5 lore raw
Quoted 3 lines · Martin Jansa

only -fPIC and even with added -fno-PIE it still fails here (only with binutils-2.21, haven't seen it with 2.20)

Hmmm, then it needs some investigation weather its a latent bug that 2.21 uncovered or if its a regression

#6 lore raw

PATCH v2 1/1 libvpx: force arm mode to be able to link with ffmpeg where arm mode already is forced

In reply to Martin Jansa

* v2: updated INC_PR after 0478950960e5c600efc77c25559fc7eee311f686

---
 recipes/webm/libvpx.inc |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
recipes/webm/libvpx.inc +5 -1
index a1e02b1..fd82d77 100644
@@ -1,11 +1,15 @@
 DESCRIPTION = "vpx Multi-Format Codec SDK"
 LICENSE = "BSD"
 
-INC_PR = "r6"
+INC_PR = "r7"
 
 SRC_URI = "http://webm.googlecode.com/files/libvpx-v${PV}.tar.bz2"
 S = "${WORKDIR}/libvpx-v${PV}"
 
+# ffmpeg links with this and fails 
+# sysroots/armv4t-oe-linux-gnueabi/usr/lib/libvpx.a(vpx_encoder.c.o)(.text+0xc4): unresolvable R_ARM_THM_CALL relocation against symbol `memcpy@@GLIBC_2.4'
+ARM_INSTRUCTION_SET = "arm"
+
 CFLAGS += "-fPIC"
 
 export CC
Signature · 1 line
1.7.4.1