On Fri, Aug 21, 2020 at 3:51 AM Richard Purdie < richard.purdie@linuxfoundation.org> wrote: > On Thu, 2020-08-20 at 01:01 -0700, Khem Raj wrote: > > > 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] > > > > > > Signed-off-by: Khem Raj > > > Cc: Leon Woestenberg > > > --- > > > v2: Delete file before creating wrapper > > > > > > .../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" > > > > I've bisected this error in mingw: > > > > https://autobuilder.yoctoproject.org/typhoon/#/builders/89/builds/2341 > > > > to this change. > > > > Error: > > Problem: package gcc-cross-canadian-i686-10.2.0-r0.i686_nativesdk_mingw32 > requires /usr/bin/env, but none of the providers can be installed > > - package > packagegroup-cross-canadian-qemux86-1.0-r0.i686_nativesdk_mingw32 requires > gcc-cross-canadian-i686, but none of the providers can be installed > > - package target-sdk-provides-dummy-1.0-r0.sdk_provides_dummy_target > conflicts with /bin/sh provided by > nativesdk-curl-7.71.1-r0.i686_nativesdk_mingw32 > > - conflicting requests > > (try to add '--allowerasing' to command line to replace conflicting > packages or '--skip-broken' to skip uninstallable packages) > > > > This is due to the addition of the /usr/bin/env dependency to the > > generated files. > > > > I'm trying to unravel the problems but it may mean extra fixes to both > > meta-mingw and master handling of /bin/sh. Maybe we can call out /bin/sh directly will that work on mingw > > > > > Cheers, > > > > Richard > > > >