This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See crosstool-NG for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: multilib-list


On Wed, Feb 26, 2014 at 7:52 PM, Trevor Woerner
<trevor.woerner@linaro.org> wrote:
> Hello Ray,
>
> On 02/26/14 13:33, Ray Donnelly wrote:
>>  AFAIK --with-multilib-list is only supported on intel and sh and in
>> GCC 4.9 it's also supported for arm.
>
> Specifically I have been working with the gcc-arm-embedded code from
> https://launchpad.net/gcc-arm-embedded (and I've noticed some of the
> contributors to that project are also subscribed to this list). I assume
> it is this work which will eventually be the gcc-4.9 you mention?

AFAIK, Bryan Hundven was going to exclude --with-multilib-list for arm
if gcc < 4.9, and exclude it altogether for all arches other than Intel,
arm and sh.

crosstool-ng had limited broken multilib support and this series attempts to
fix that.

>
>> If you're interested in multilib support, a few of us have been
>> contributing to the following patch queue:
>>
>> https://bitbucket.org/bhundven/crosstool-ng-multilib
>
> Any chance you could point me to some information on how to use a second
> remote patch queue with mercurial? I would like to work with these
> patches, but I'm rather new to mercurial, never mind its queue add-on.
>

I'm also quite new to mercurial, so someone may need to correct me.
Tutorial:
http://mercurial.selenic.com/wiki/MqTutorial

Some useful commands to get started (I grabbed these from my bash history).
To clone:
hg qclone -p https://bitbucket.org/bhundven/crosstool-ng-multilib
http://crosstool-ng.org/hg/crosstool-ng crosstool-ng-multilib
To list the patches in-order:
hg qseries
To see where you are in the list:
hg qapplied (I think hg log will also do this, I do hg log | less as
otherwise it's a bit spew happy)
To push (apply) all patches:
hg qpush -a
To pop (un-apply) all patches:
hg qpush -a
(you can use a name from the series instead of -a to push / pop to that point)
To change the patch you're currently at with your working tree
hg qrefresh
To change the message of the patch
hg qrefresh -e

> Why not just have a patch that allows the user to specify the list
> themselves?
>
> diff -r 043b9b789b7d config/target.in
> --- a/config/target.in  Wed Feb 26 13:53:25 2014 -0500
> +++ b/config/target.in  Wed Feb 26 14:45:22 2014 -0500
> @@ -77,6 +77,15 @@
>        NOTE: The multilib feature in crosstool-NG is not well-tested.
>              Use at your own risk, and report success and/or failure.
>
> +config MULTILIB_LIST
> +    string
> +    prompt "Additional multilib architectures to support"
> +    depends on MULTILIB
> +    default ""
> +    help
> +      Provide GCC with a comma-separated list of additional
> architectures for
> +      which to build multilib support.
> +
>  #--------------------------------------
>  config ARCH_SUPPORTS_BOTH_MMU
>      bool
> diff -r 043b9b789b7d scripts/build/cc/gcc.sh
> --- a/scripts/build/cc/gcc.sh   Wed Feb 26 13:53:25 2014 -0500
> +++ b/scripts/build/cc/gcc.sh   Wed Feb 26 14:45:22 2014 -0500
> @@ -377,6 +377,9 @@
>
>      if [ "${CT_MULTILIB}" = "y" ]; then
>          extra_config+=("--enable-multilib")
> +        if [ -n "${CT_MULTILIB_LIST}" ]; then
> +            extra_config+=("--with-multilib-list=${CT_MULTILIB_LIST}")
> +        fi
>      else
>          extra_config+=("--disable-multilib")
>      fi
>

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]