Openembedded Core Discussions
 help / color / mirror / Atom feed
From: "Richard Purdie" <richard.purdie@linuxfoundation.org>
To: Khem Raj <raj.khem@gmail.com>, openembedded-core@lists.openembedded.org
Cc: Leon Woestenberg <leon@sidebranch.com>
Subject: Re: [OE-core] [PATCH V2 2/3] gcc-cross-canadian: Install gcc/g++ wrappers for musl
Date: Fri, 21 Aug 2020 11:51:52 +0100	[thread overview]
Message-ID: <9ff64eca0998e51759073fbfd08f2e005ec328f2.camel@linuxfoundation.org> (raw)
In-Reply-To: <20200820080115.2715139-2-raj.khem@gmail.com>

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 <raj.khem@gmail.com>
> Cc: Leon Woestenberg <leon@sidebranch.com>
> ---
> 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.

Cheers,

Richard


  parent reply	other threads:[~2020-08-21 10:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-20  8:01 [PATCH V2 1/3] binutils: Let crosssdk gold linker generate 4096 btyes long .interp section Khem Raj
2020-08-20  8:01 ` [PATCH V2 2/3] gcc-cross-canadian: Install gcc/g++ wrappers for musl Khem Raj
2020-08-20 21:07   ` Leon Woestenberg
2020-08-20 22:51     ` Khem Raj
2020-08-21 10:51   ` Richard Purdie [this message]
2020-08-21 19:51     ` [OE-core] " Khem Raj
2020-08-20  8:01 ` [PATCH V2 3/3] gcc-cross-canadian: Correct the regexp to delete versioned gcc binary Khem Raj

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9ff64eca0998e51759073fbfd08f2e005ec328f2.camel@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=leon@sidebranch.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=raj.khem@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox