* [dunfell-backport][PATCH] gcc-cross-canadian: Install gcc/g++ wrappers for musl
@ 2021-05-27 17:16 Alejandro Hernandez Samaniego
2021-05-27 20:25 ` [OE-core] " Steve Sakoman
0 siblings, 1 reply; 3+ messages in thread
From: Alejandro Hernandez Samaniego @ 2021-05-27 17:16 UTC (permalink / raw)
To: openembedded-core; +Cc: steve, Khem Raj, Leon Woestenberg, Richard Purdie
From: Khem Raj <raj.khem@gmail.com>
gcc needs -mmusl option to be passed in SDK since we ship crossdk compiler
configured for glibc by default, this helps in creating correct
compiler defaults for musl based SDK compilers
[YOCTO #13459]
(From OE-Core rev: e6fbac7aeabe00d8fb734992012dd629a8527b25)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Leon Woestenberg <leon@sidebranch.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
.../gcc/gcc-cross-canadian.inc | 23 +++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/meta/recipes-devtools/gcc/gcc-cross-canadian.inc b/meta/recipes-devtools/gcc/gcc-cross-canadian.inc
index 553ef7fe62..c5935b978d 100644
--- a/meta/recipes-devtools/gcc/gcc-cross-canadian.inc
+++ b/meta/recipes-devtools/gcc/gcc-cross-canadian.inc
@@ -139,6 +139,29 @@ do_install () {
chown -R root:root ${D}
cross_canadian_bindirlinks
+
+ for i in linux ${CANADIANEXTRAOS}
+ do
+ for v in ${CANADIANEXTRAVENDOR}
+ do
+ d=${D}${bindir}/../${TARGET_ARCH}$v-$i
+ install -d $d
+ for j in ${TARGET_PREFIX}gcc${EXEEXT} ${TARGET_PREFIX}g++${EXEEXT}
+ do
+ p=${TARGET_ARCH}$v-$i-`echo $j | sed -e s,${TARGET_PREFIX},,`
+ case $i in
+ *musl*)
+ rm -rf $d/$p
+ echo "#!/usr/bin/env sh" > $d/$p
+ echo "exec \`dirname \$0\`/../${TARGET_SYS}/$j -mmusl \$@" >> $d/$p
+ chmod 0755 $d/$p
+ ;;
+ *)
+ ;;
+ esac
+ done
+ done
+ done
}
ELFUTILS = "nativesdk-elfutils"
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [OE-core] [dunfell-backport][PATCH] gcc-cross-canadian: Install gcc/g++ wrappers for musl
2021-05-27 17:16 [dunfell-backport][PATCH] gcc-cross-canadian: Install gcc/g++ wrappers for musl Alejandro Hernandez Samaniego
@ 2021-05-27 20:25 ` Steve Sakoman
2021-05-28 0:29 ` Alejandro Hernandez Samaniego
0 siblings, 1 reply; 3+ messages in thread
From: Steve Sakoman @ 2021-05-27 20:25 UTC (permalink / raw)
To: Alejandro Hernandez Samaniego
Cc: Patches and discussions about the oe-core layer, Khem Raj,
Leon Woestenberg, Richard Purdie
I get an autobuilder failure on core-image-mingw-sdktest, details here:
https://errors.yoctoproject.org/Errors/Details/585665/
Perhaps we need additional patch/patches from master?
Steve
On Thu, May 27, 2021 at 7:16 AM Alejandro Hernandez Samaniego
<alhe@linux.microsoft.com> wrote:
>
> From: Khem Raj <raj.khem@gmail.com>
>
> gcc needs -mmusl option to be passed in SDK since we ship crossdk compiler
> configured for glibc by default, this helps in creating correct
> compiler defaults for musl based SDK compilers
>
> [YOCTO #13459]
>
> (From OE-Core rev: e6fbac7aeabe00d8fb734992012dd629a8527b25)
>
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> Cc: Leon Woestenberg <leon@sidebranch.com>
> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
> ---
> .../gcc/gcc-cross-canadian.inc | 23 +++++++++++++++++++
> 1 file changed, 23 insertions(+)
>
> diff --git a/meta/recipes-devtools/gcc/gcc-cross-canadian.inc b/meta/recipes-devtools/gcc/gcc-cross-canadian.inc
> index 553ef7fe62..c5935b978d 100644
> --- a/meta/recipes-devtools/gcc/gcc-cross-canadian.inc
> +++ b/meta/recipes-devtools/gcc/gcc-cross-canadian.inc
> @@ -139,6 +139,29 @@ do_install () {
> chown -R root:root ${D}
>
> cross_canadian_bindirlinks
> +
> + for i in linux ${CANADIANEXTRAOS}
> + do
> + for v in ${CANADIANEXTRAVENDOR}
> + do
> + d=${D}${bindir}/../${TARGET_ARCH}$v-$i
> + install -d $d
> + for j in ${TARGET_PREFIX}gcc${EXEEXT} ${TARGET_PREFIX}g++${EXEEXT}
> + do
> + p=${TARGET_ARCH}$v-$i-`echo $j | sed -e s,${TARGET_PREFIX},,`
> + case $i in
> + *musl*)
> + rm -rf $d/$p
> + echo "#!/usr/bin/env sh" > $d/$p
> + echo "exec \`dirname \$0\`/../${TARGET_SYS}/$j -mmusl \$@" >> $d/$p
> + chmod 0755 $d/$p
> + ;;
> + *)
> + ;;
> + esac
> + done
> + done
> + done
> }
>
> ELFUTILS = "nativesdk-elfutils"
> --
> 2.25.1
>
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [OE-core] [dunfell-backport][PATCH] gcc-cross-canadian: Install gcc/g++ wrappers for musl
2021-05-27 20:25 ` [OE-core] " Steve Sakoman
@ 2021-05-28 0:29 ` Alejandro Hernandez Samaniego
0 siblings, 0 replies; 3+ messages in thread
From: Alejandro Hernandez Samaniego @ 2021-05-28 0:29 UTC (permalink / raw)
To: Steve Sakoman
Cc: Patches and discussions about the oe-core layer, Khem Raj,
Leon Woestenberg, Richard Purdie
[-- Attachment #1: Type: text/plain, Size: 2667 bytes --]
Perhaps, I will take a look at it.
Thanks
Alejandro
On 5/27/21 2:25 PM, Steve Sakoman wrote:
> I get an autobuilder failure on core-image-mingw-sdktest, details here:
>
> https://errors.yoctoproject.org/Errors/Details/585665/
>
> Perhaps we need additional patch/patches from master?
>
> Steve
>
> On Thu, May 27, 2021 at 7:16 AM Alejandro Hernandez Samaniego
> <alhe@linux.microsoft.com> wrote:
>> From: Khem Raj <raj.khem@gmail.com>
>>
>> gcc needs -mmusl option to be passed in SDK since we ship crossdk compiler
>> configured for glibc by default, this helps in creating correct
>> compiler defaults for musl based SDK compilers
>>
>> [YOCTO #13459]
>>
>> (From OE-Core rev: e6fbac7aeabe00d8fb734992012dd629a8527b25)
>>
>> Signed-off-by: Khem Raj <raj.khem@gmail.com>
>> Cc: Leon Woestenberg <leon@sidebranch.com>
>> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
>> ---
>> .../gcc/gcc-cross-canadian.inc | 23 +++++++++++++++++++
>> 1 file changed, 23 insertions(+)
>>
>> diff --git a/meta/recipes-devtools/gcc/gcc-cross-canadian.inc b/meta/recipes-devtools/gcc/gcc-cross-canadian.inc
>> index 553ef7fe62..c5935b978d 100644
>> --- a/meta/recipes-devtools/gcc/gcc-cross-canadian.inc
>> +++ b/meta/recipes-devtools/gcc/gcc-cross-canadian.inc
>> @@ -139,6 +139,29 @@ do_install () {
>> chown -R root:root ${D}
>>
>> cross_canadian_bindirlinks
>> +
>> + for i in linux ${CANADIANEXTRAOS}
>> + do
>> + for v in ${CANADIANEXTRAVENDOR}
>> + do
>> + d=${D}${bindir}/../${TARGET_ARCH}$v-$i
>> + install -d $d
>> + for j in ${TARGET_PREFIX}gcc${EXEEXT} ${TARGET_PREFIX}g++${EXEEXT}
>> + do
>> + p=${TARGET_ARCH}$v-$i-`echo $j | sed -e s,${TARGET_PREFIX},,`
>> + case $i in
>> + *musl*)
>> + rm -rf $d/$p
>> + echo "#!/usr/bin/env sh" > $d/$p
>> + echo "exec \`dirname \$0\`/../${TARGET_SYS}/$j -mmusl \$@" >> $d/$p
>> + chmod 0755 $d/$p
>> + ;;
>> + *)
>> + ;;
>> + esac
>> + done
>> + done
>> + done
>> }
>>
>> ELFUTILS = "nativesdk-elfutils"
>> --
>> 2.25.1
>>
>>
>>
>>
>>
>>
>>
[-- Attachment #2: Type: text/html, Size: 3643 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-05-28 0:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-27 17:16 [dunfell-backport][PATCH] gcc-cross-canadian: Install gcc/g++ wrappers for musl Alejandro Hernandez Samaniego
2021-05-27 20:25 ` [OE-core] " Steve Sakoman
2021-05-28 0:29 ` Alejandro Hernandez Samaniego
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.