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

See the CrossGCC FAQ 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: Mips 32r2 big-endian toolchain


Andy, All,

On Friday 11 March 2011 00:55:25 ANDY KENNEDY wrote:
> > -----Original Message-----
> > From: Khem Raj [mailto:raj.khem@gmail.com]
> > Sent: Thursday, March 10, 2011 3:31 PM
> > To: ANDY KENNEDY
> > Cc: crossgcc@sourceware.org
> > Subject: Re: Mips 32r2 big-endian toolchain
> > 
> > On Wed, Mar 9, 2011 at 2:37 PM, ANDY KENNEDY <ANDY.KENNEDY@adtran.com> wrote:
> > > /root/src/buildroot-retool/crosstool-ng/new/crosstool-ng/.build/src/gcc-4.5.2/configure --
> > build=x86_64-build_unknown-linux-gnu --host=x86_64-build_unknown-linux-gnu --target=mips-nfs_devel-
> > linux-gnu --prefix=/root/src/buildroot-retool/crosstool-ng/new/crosstool-
> > 
> > hmm can you change your --target from
> > --target=mips-nfs_devel-linux-gnu to say --target=mips-none-linux-gnu
> > and retry please
> 
> Holy crap.  Why?  I thought the second set was COMPLETELY ignored by
> all the builds.

Yes it is.

But to sanitise the tuple, and ensure it is valid, crosstool-NG uses the
standard config.sub script, from the config git tree at Savanah:
  http://git.savannah.gnu.org/gitweb/?p=config.git

So, as Khem pointed, mips32r2-nfs_devel-linux-gnu will match mips*el-*-*,
so config.sub will wrongly identify this as a LE tuple. This is a bug in
config.sub.

Basically, the tuples are not fool-proof, and config.sub makes a lot of
assumptions. So it is better to keep 'sane' and 'simple' vendor strings,
such as 'none' or 'unknown'.

Once the toolchain works with such a sane vendor string, then you can try
changing it, and if it breaks, revert back and use something else.

Of course, poking the config guys might be an option, but I doubt they
would change...

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

--
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]