libvpx: force arm mode to be able to link with ffmpeg where arm mode already is forced
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
@@ -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
Quoted 1 line · Martin Jansa
Signed-off-by Martin Jansa<[email protected]>
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@@ -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
Quoted 4 lines · Khem Raj
Quoted 1 line · Martin Jansa
Signed-off-by Martin Jansa<[email protected]>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@@ -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
-0SRC_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]
Quoted 11 lines · Martin Jansa
Quoted 4 lines · Khem Raj
Quoted 1 line · Martin Jansa
Signed-off-by Martin Jansa<[email protected]>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@@ -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
-0export 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
Quoted 7 lines · Khem Raj
Quoted 6 lines · Martin Jansa
Quoted 4 lines · Khem Raj
Quoted 1 line · Martin Jansa
Signed-off-by Martin Jansa<[email protected]>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@@ -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
-0export CC_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-develQuoted 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]
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
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
@@ -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