* [meta-oe][PATCH] luajit: test SITEINFO_BITS instead of maintaining a list of 32bit targets
@ 2017-01-25 21:43 Andre McCurdy
2017-01-26 22:41 ` Khem Raj
2017-03-13 19:24 ` Andre McCurdy
0 siblings, 2 replies; 5+ messages in thread
From: Andre McCurdy @ 2017-01-25 21:43 UTC (permalink / raw)
To: openembedded-devel
When cross compiling, the word size of the compiler set via HOST_CC
must match the word size of the target. That's achieved by appending
"-m32" to BUILD_CC_ARCH if the target word size is known to be 32bits.
Unfortunately the current list of over-rides (powerpc, x86 and arm)
does not cover all cases (e.g. it ignores MIPS). Using SITEINFO_BITS
is a more generic solution.
Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
---
meta-oe/recipes-devtools/luajit/luajit_2.0.4.bb | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/meta-oe/recipes-devtools/luajit/luajit_2.0.4.bb b/meta-oe/recipes-devtools/luajit/luajit_2.0.4.bb
index 964dc1d..430279f 100644
--- a/meta-oe/recipes-devtools/luajit/luajit_2.0.4.bb
+++ b/meta-oe/recipes-devtools/luajit/luajit_2.0.4.bb
@@ -11,7 +11,7 @@ SRC_URI[sha256sum] = "620fa4eb12375021bef6e4f237cbd2dd5d49e56beb414bee052c746bee
S = "${WORKDIR}/LuaJIT-${PV}"
-inherit pkgconfig binconfig
+inherit pkgconfig binconfig siteinfo
BBCLASSEXTEND = "native"
@@ -21,9 +21,7 @@ BBCLASSEXTEND = "native"
# you need to install the multilib development package (e.g.
# libc6-dev-i386 on Debian/Ubuntu) and build a 32 bit host part
# (HOST_CC="gcc -m32").
-BUILD_CC_ARCH_append_powerpc = ' -m32'
-BUILD_CC_ARCH_append_x86 = ' -m32'
-BUILD_CC_ARCH_append_arm = ' -m32'
+BUILD_CC_ARCH_append = " ${@['-m32',''][d.getVar('SITEINFO_BITS') != '32']}"
# The lua makefiles expect the TARGET_SYS to be from uname -s
# Values: Windows, Linux, Darwin, iOS, SunOS, PS3, GNU/kFreeBSD
--
1.9.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [meta-oe][PATCH] luajit: test SITEINFO_BITS instead of maintaining a list of 32bit targets
2017-01-25 21:43 [meta-oe][PATCH] luajit: test SITEINFO_BITS instead of maintaining a list of 32bit targets Andre McCurdy
@ 2017-01-26 22:41 ` Khem Raj
2017-01-26 23:43 ` Andre McCurdy
2017-03-13 19:24 ` Andre McCurdy
1 sibling, 1 reply; 5+ messages in thread
From: Khem Raj @ 2017-01-26 22:41 UTC (permalink / raw)
To: openembedded-devel
On 1/25/17 1:43 PM, Andre McCurdy wrote:
> When cross compiling, the word size of the compiler set via HOST_CC
> must match the word size of the target. That's achieved by appending
> "-m32" to BUILD_CC_ARCH if the target word size is known to be 32bits.
>
> Unfortunately the current list of over-rides (powerpc, x86 and arm)
> does not cover all cases (e.g. it ignores MIPS). Using SITEINFO_BITS
> is a more generic solution.
>
> Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
> ---
> meta-oe/recipes-devtools/luajit/luajit_2.0.4.bb | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/meta-oe/recipes-devtools/luajit/luajit_2.0.4.bb b/meta-oe/recipes-devtools/luajit/luajit_2.0.4.bb
> index 964dc1d..430279f 100644
> --- a/meta-oe/recipes-devtools/luajit/luajit_2.0.4.bb
> +++ b/meta-oe/recipes-devtools/luajit/luajit_2.0.4.bb
> @@ -11,7 +11,7 @@ SRC_URI[sha256sum] = "620fa4eb12375021bef6e4f237cbd2dd5d49e56beb414bee052c746bee
>
> S = "${WORKDIR}/LuaJIT-${PV}"
>
> -inherit pkgconfig binconfig
> +inherit pkgconfig binconfig siteinfo
>
> BBCLASSEXTEND = "native"
>
> @@ -21,9 +21,7 @@ BBCLASSEXTEND = "native"
> # you need to install the multilib development package (e.g.
> # libc6-dev-i386 on Debian/Ubuntu) and build a 32 bit host part
> # (HOST_CC="gcc -m32").
> -BUILD_CC_ARCH_append_powerpc = ' -m32'
> -BUILD_CC_ARCH_append_x86 = ' -m32'
> -BUILD_CC_ARCH_append_arm = ' -m32'
> +BUILD_CC_ARCH_append = " ${@['-m32',''][d.getVar('SITEINFO_BITS') != '32']}"
>
not related but
This makes me think about another issue, will it work on non-x86 build
machines, currently we do have aarch64 based boxes
> # The lua makefiles expect the TARGET_SYS to be from uname -s
> # Values: Windows, Linux, Darwin, iOS, SunOS, PS3, GNU/kFreeBSD
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [meta-oe][PATCH] luajit: test SITEINFO_BITS instead of maintaining a list of 32bit targets
2017-01-26 22:41 ` Khem Raj
@ 2017-01-26 23:43 ` Andre McCurdy
0 siblings, 0 replies; 5+ messages in thread
From: Andre McCurdy @ 2017-01-26 23:43 UTC (permalink / raw)
To: openembeded-devel
On Thu, Jan 26, 2017 at 2:41 PM, Khem Raj <raj.khem@gmail.com> wrote:
> On 1/25/17 1:43 PM, Andre McCurdy wrote:
>> When cross compiling, the word size of the compiler set via HOST_CC
>> must match the word size of the target. That's achieved by appending
>> "-m32" to BUILD_CC_ARCH if the target word size is known to be 32bits.
>>
>> Unfortunately the current list of over-rides (powerpc, x86 and arm)
>> does not cover all cases (e.g. it ignores MIPS). Using SITEINFO_BITS
>> is a more generic solution.
>>
>> Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
>> ---
>> meta-oe/recipes-devtools/luajit/luajit_2.0.4.bb | 6 ++----
>> 1 file changed, 2 insertions(+), 4 deletions(-)
>>
>> diff --git a/meta-oe/recipes-devtools/luajit/luajit_2.0.4.bb b/meta-oe/recipes-devtools/luajit/luajit_2.0.4.bb
>> index 964dc1d..430279f 100644
>> --- a/meta-oe/recipes-devtools/luajit/luajit_2.0.4.bb
>> +++ b/meta-oe/recipes-devtools/luajit/luajit_2.0.4.bb
>> @@ -11,7 +11,7 @@ SRC_URI[sha256sum] = "620fa4eb12375021bef6e4f237cbd2dd5d49e56beb414bee052c746bee
>>
>> S = "${WORKDIR}/LuaJIT-${PV}"
>>
>> -inherit pkgconfig binconfig
>> +inherit pkgconfig binconfig siteinfo
>>
>> BBCLASSEXTEND = "native"
>>
>> @@ -21,9 +21,7 @@ BBCLASSEXTEND = "native"
>> # you need to install the multilib development package (e.g.
>> # libc6-dev-i386 on Debian/Ubuntu) and build a 32 bit host part
>> # (HOST_CC="gcc -m32").
>> -BUILD_CC_ARCH_append_powerpc = ' -m32'
>> -BUILD_CC_ARCH_append_x86 = ' -m32'
>> -BUILD_CC_ARCH_append_arm = ' -m32'
>> +BUILD_CC_ARCH_append = " ${@['-m32',''][d.getVar('SITEINFO_BITS') != '32']}"
>
> not related but
> This makes me think about another issue, will it work on non-x86 build
> machines, currently we do have aarch64 based boxes
Right (unless aarch64 host toolchains accept "-m32"?)
Building on 32bit x86 is probably broken too.
>> # The lua makefiles expect the TARGET_SYS to be from uname -s
>> # Values: Windows, Linux, Darwin, iOS, SunOS, PS3, GNU/kFreeBSD
>>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [meta-oe][PATCH] luajit: test SITEINFO_BITS instead of maintaining a list of 32bit targets
2017-01-25 21:43 [meta-oe][PATCH] luajit: test SITEINFO_BITS instead of maintaining a list of 32bit targets Andre McCurdy
2017-01-26 22:41 ` Khem Raj
@ 2017-03-13 19:24 ` Andre McCurdy
2017-03-13 19:32 ` Andre McCurdy
1 sibling, 1 reply; 5+ messages in thread
From: Andre McCurdy @ 2017-03-13 19:24 UTC (permalink / raw)
To: openembeded-devel
On Wed, Jan 25, 2017 at 1:43 PM, Andre McCurdy <armccurdy@gmail.com> wrote:
> When cross compiling, the word size of the compiler set via HOST_CC
> must match the word size of the target. That's achieved by appending
> "-m32" to BUILD_CC_ARCH if the target word size is known to be 32bits.
>
> Unfortunately the current list of over-rides (powerpc, x86 and arm)
> does not cover all cases (e.g. it ignores MIPS). Using SITEINFO_BITS
> is a more generic solution.
Ping.
> Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
> ---
> meta-oe/recipes-devtools/luajit/luajit_2.0.4.bb | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/meta-oe/recipes-devtools/luajit/luajit_2.0.4.bb b/meta-oe/recipes-devtools/luajit/luajit_2.0.4.bb
> index 964dc1d..430279f 100644
> --- a/meta-oe/recipes-devtools/luajit/luajit_2.0.4.bb
> +++ b/meta-oe/recipes-devtools/luajit/luajit_2.0.4.bb
> @@ -11,7 +11,7 @@ SRC_URI[sha256sum] = "620fa4eb12375021bef6e4f237cbd2dd5d49e56beb414bee052c746bee
>
> S = "${WORKDIR}/LuaJIT-${PV}"
>
> -inherit pkgconfig binconfig
> +inherit pkgconfig binconfig siteinfo
>
> BBCLASSEXTEND = "native"
>
> @@ -21,9 +21,7 @@ BBCLASSEXTEND = "native"
> # you need to install the multilib development package (e.g.
> # libc6-dev-i386 on Debian/Ubuntu) and build a 32 bit host part
> # (HOST_CC="gcc -m32").
> -BUILD_CC_ARCH_append_powerpc = ' -m32'
> -BUILD_CC_ARCH_append_x86 = ' -m32'
> -BUILD_CC_ARCH_append_arm = ' -m32'
> +BUILD_CC_ARCH_append = " ${@['-m32',''][d.getVar('SITEINFO_BITS') != '32']}"
>
> # The lua makefiles expect the TARGET_SYS to be from uname -s
> # Values: Windows, Linux, Darwin, iOS, SunOS, PS3, GNU/kFreeBSD
> --
> 1.9.1
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [meta-oe][PATCH] luajit: test SITEINFO_BITS instead of maintaining a list of 32bit targets
2017-03-13 19:24 ` Andre McCurdy
@ 2017-03-13 19:32 ` Andre McCurdy
0 siblings, 0 replies; 5+ messages in thread
From: Andre McCurdy @ 2017-03-13 19:32 UTC (permalink / raw)
To: openembeded-devel
On Mon, Mar 13, 2017 at 12:24 PM, Andre McCurdy <armccurdy@gmail.com> wrote:
> On Wed, Jan 25, 2017 at 1:43 PM, Andre McCurdy <armccurdy@gmail.com> wrote:
>> When cross compiling, the word size of the compiler set via HOST_CC
>> must match the word size of the target. That's achieved by appending
>> "-m32" to BUILD_CC_ARCH if the target word size is known to be 32bits.
>>
>> Unfortunately the current list of over-rides (powerpc, x86 and arm)
>> does not cover all cases (e.g. it ignores MIPS). Using SITEINFO_BITS
>> is a more generic solution.
>
> Ping.
Actually this patch needs to be rebased since the earlier (incomplete)
fix was merged. Sending a v2.
>> Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
>> ---
>> meta-oe/recipes-devtools/luajit/luajit_2.0.4.bb | 6 ++----
>> 1 file changed, 2 insertions(+), 4 deletions(-)
>>
>> diff --git a/meta-oe/recipes-devtools/luajit/luajit_2.0.4.bb b/meta-oe/recipes-devtools/luajit/luajit_2.0.4.bb
>> index 964dc1d..430279f 100644
>> --- a/meta-oe/recipes-devtools/luajit/luajit_2.0.4.bb
>> +++ b/meta-oe/recipes-devtools/luajit/luajit_2.0.4.bb
>> @@ -11,7 +11,7 @@ SRC_URI[sha256sum] = "620fa4eb12375021bef6e4f237cbd2dd5d49e56beb414bee052c746bee
>>
>> S = "${WORKDIR}/LuaJIT-${PV}"
>>
>> -inherit pkgconfig binconfig
>> +inherit pkgconfig binconfig siteinfo
>>
>> BBCLASSEXTEND = "native"
>>
>> @@ -21,9 +21,7 @@ BBCLASSEXTEND = "native"
>> # you need to install the multilib development package (e.g.
>> # libc6-dev-i386 on Debian/Ubuntu) and build a 32 bit host part
>> # (HOST_CC="gcc -m32").
>> -BUILD_CC_ARCH_append_powerpc = ' -m32'
>> -BUILD_CC_ARCH_append_x86 = ' -m32'
>> -BUILD_CC_ARCH_append_arm = ' -m32'
>> +BUILD_CC_ARCH_append = " ${@['-m32',''][d.getVar('SITEINFO_BITS') != '32']}"
>>
>> # The lua makefiles expect the TARGET_SYS to be from uname -s
>> # Values: Windows, Linux, Darwin, iOS, SunOS, PS3, GNU/kFreeBSD
>> --
>> 1.9.1
>>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-03-13 19:32 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-25 21:43 [meta-oe][PATCH] luajit: test SITEINFO_BITS instead of maintaining a list of 32bit targets Andre McCurdy
2017-01-26 22:41 ` Khem Raj
2017-01-26 23:43 ` Andre McCurdy
2017-03-13 19:24 ` Andre McCurdy
2017-03-13 19:32 ` Andre McCurdy
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.