* [PATCH] libvpx: force arm mode to be able to link with ffmpeg where arm mode already is forced
@ 2011-01-12 11:48 Martin Jansa
2011-01-12 18:28 ` Khem Raj
2011-03-01 8:37 ` [PATCHv2] " Martin Jansa
0 siblings, 2 replies; 7+ messages in thread
From: Martin Jansa @ 2011-01-12 11:48 UTC (permalink / raw)
To: openembedded-devel
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
recipes/webm/libvpx.inc | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/recipes/webm/libvpx.inc b/recipes/webm/libvpx.inc
index 9913d5b..9d40945 100644
--- a/recipes/webm/libvpx.inc
+++ b/recipes/webm/libvpx.inc
@@ -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
--
1.7.4.rc1
^ permalink raw reply related [flat|nested] 7+ messages in thread* Re: [PATCH] libvpx: force arm mode to be able to link with ffmpeg where arm mode already is forced
2011-01-12 11:48 [PATCH] libvpx: force arm mode to be able to link with ffmpeg where arm mode already is forced Martin Jansa
@ 2011-01-12 18:28 ` Khem Raj
2011-01-13 7:31 ` Martin Jansa
2011-03-01 8:37 ` [PATCHv2] " Martin Jansa
1 sibling, 1 reply; 7+ messages in thread
From: Khem Raj @ 2011-01-12 18:28 UTC (permalink / raw)
To: openembedded-devel
On 1/12/2011 3:48 AM, Martin Jansa wrote:
> Signed-off-by: Martin Jansa<Martin.Jansa@gmail.com>
hmmm what issues do u see if you build it with thumb mode.
> ---
> recipes/webm/libvpx.inc | 6 +++++-
> 1 files changed, 5 insertions(+), 1 deletions(-)
>
> diff --git a/recipes/webm/libvpx.inc b/recipes/webm/libvpx.inc
> index 9913d5b..9d40945 100644
> --- a/recipes/webm/libvpx.inc
> +++ b/recipes/webm/libvpx.inc
> @@ -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
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [PATCH] libvpx: force arm mode to be able to link with ffmpeg where arm mode already is forced
2011-01-12 18:28 ` Khem Raj
@ 2011-01-13 7:31 ` Martin Jansa
2011-01-14 3:12 ` Khem Raj
0 siblings, 1 reply; 7+ messages in thread
From: Martin Jansa @ 2011-01-13 7:31 UTC (permalink / raw)
To: openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 1620 bytes --]
On Wed, Jan 12, 2011 at 10:28:10AM -0800, Khem Raj wrote:
> On 1/12/2011 3:48 AM, Martin Jansa wrote:
> > Signed-off-by: Martin Jansa<Martin.Jansa@gmail.com>
>
> 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/
> > ---
> > recipes/webm/libvpx.inc | 6 +++++-
> > 1 files changed, 5 insertions(+), 1 deletions(-)
> >
> > diff --git a/recipes/webm/libvpx.inc b/recipes/webm/libvpx.inc
> > index 9913d5b..9d40945 100644
> > --- a/recipes/webm/libvpx.inc
> > +++ b/recipes/webm/libvpx.inc
> > @@ -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
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [PATCH] libvpx: force arm mode to be able to link with ffmpeg where arm mode already is forced
2011-01-13 7:31 ` Martin Jansa
@ 2011-01-14 3:12 ` Khem Raj
2011-01-24 10:24 ` Martin Jansa
0 siblings, 1 reply; 7+ messages in thread
From: Khem Raj @ 2011-01-14 3:12 UTC (permalink / raw)
To: openembedded-devel
On 1/12/2011 11:31 PM, Martin Jansa wrote:
> On Wed, Jan 12, 2011 at 10:28:10AM -0800, Khem Raj wrote:
>> On 1/12/2011 3:48 AM, Martin Jansa wrote:
>>> Signed-off-by: Martin Jansa<Martin.Jansa@gmail.com>
>>
>> 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/
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.
>
>>> ---
>>> recipes/webm/libvpx.inc | 6 +++++-
>>> 1 files changed, 5 insertions(+), 1 deletions(-)
>>>
>>> diff --git a/recipes/webm/libvpx.inc b/recipes/webm/libvpx.inc
>>> index 9913d5b..9d40945 100644
>>> --- a/recipes/webm/libvpx.inc
>>> +++ b/recipes/webm/libvpx.inc
>>> @@ -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
>>
>>
>> _______________________________________________
>> Openembedded-devel mailing list
>> Openembedded-devel@lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [PATCH] libvpx: force arm mode to be able to link with ffmpeg where arm mode already is forced
2011-01-14 3:12 ` Khem Raj
@ 2011-01-24 10:24 ` Martin Jansa
2011-01-24 15:44 ` Khem Raj
0 siblings, 1 reply; 7+ messages in thread
From: Martin Jansa @ 2011-01-24 10:24 UTC (permalink / raw)
To: openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 2535 bytes --]
On Thu, Jan 13, 2011 at 07:12:50PM -0800, Khem Raj wrote:
> On 1/12/2011 11:31 PM, Martin Jansa wrote:
> > On Wed, Jan 12, 2011 at 10:28:10AM -0800, Khem Raj wrote:
> >> On 1/12/2011 3:48 AM, Martin Jansa wrote:
> >>> Signed-off-by: Martin Jansa<Martin.Jansa@gmail.com>
> >>
> >> 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/
>
> 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)
> >
> >>> ---
> >>> recipes/webm/libvpx.inc | 6 +++++-
> >>> 1 files changed, 5 insertions(+), 1 deletions(-)
> >>>
> >>> diff --git a/recipes/webm/libvpx.inc b/recipes/webm/libvpx.inc
> >>> index 9913d5b..9d40945 100644
> >>> --- a/recipes/webm/libvpx.inc
> >>> +++ b/recipes/webm/libvpx.inc
> >>> @@ -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
> >>
> >>
> >> _______________________________________________
> >> Openembedded-devel mailing list
> >> Openembedded-devel@lists.openembedded.org
> >> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
> >
> >
> >
> > _______________________________________________
> > Openembedded-devel mailing list
> > Openembedded-devel@lists.openembedded.org
> > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCHv2] libvpx: force arm mode to be able to link with ffmpeg where arm mode already is forced
2011-01-12 11:48 [PATCH] libvpx: force arm mode to be able to link with ffmpeg where arm mode already is forced Martin Jansa
2011-01-12 18:28 ` Khem Raj
@ 2011-03-01 8:37 ` Martin Jansa
1 sibling, 0 replies; 7+ messages in thread
From: Martin Jansa @ 2011-03-01 8:37 UTC (permalink / raw)
To: openembedded-devel
* v2: updated INC_PR after 0478950960e5c600efc77c25559fc7eee311f686
---
recipes/webm/libvpx.inc | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/recipes/webm/libvpx.inc b/recipes/webm/libvpx.inc
index a1e02b1..fd82d77 100644
--- a/recipes/webm/libvpx.inc
+++ b/recipes/webm/libvpx.inc
@@ -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
--
1.7.4.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
end of thread, other threads:[~2011-03-01 8:39 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-12 11:48 [PATCH] libvpx: force arm mode to be able to link with ffmpeg where arm mode already is forced Martin Jansa
2011-01-12 18:28 ` Khem Raj
2011-01-13 7:31 ` Martin Jansa
2011-01-14 3:12 ` Khem Raj
2011-01-24 10:24 ` Martin Jansa
2011-01-24 15:44 ` Khem Raj
2011-03-01 8:37 ` [PATCHv2] " Martin Jansa
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.