That looks grotesque.  Would you please create a ticket for this on the
tracker (http://sourceforge.net/tracker/?group_id=42303&atid=432701)?
Thanks.

Peter

On Tue, Jul 26, 2011 at 3:37 PM, Lev Serebryakov <l...@serebryakov.spb.ru>wrote:

> Hello, Mspgcc-users.
>
>  binutils-2.21.1 with mspgcc-20110716 patches uses
> "ld/emultempl/generic.em" to generate "gldms430_before_parse (void)"
> function in ld/emsp430.c.
>
>  It reads:
>
> ===========================================
> static void
> gld${EMULATION_NAME}_before_parse (void)
> {
> #ifndef TARGET_                 /* I.e., if not generic.  */
>  ldfile_set_output_arch ("`echo ${ARCH}`", bfd_arch_unknown);
> #endif /* not TARGET_ */
> }
> ===========================================
>
>  If here is ARCH variable in environment (which is true in case of
> FreeBSD ports build, where ARCH becomes _HOST_ arch like `i386' or
> `amd64'), `emsp430.c' becomes:
>
> ===========================================
> static void
> gldmsp430_before_parse (void)
> {
> #ifndef TARGET_                 /* I.e., if not generic.  */
>  ldfile_set_output_arch ("amd64", bfd_arch_unknown);
> #endif /* not TARGET_ */
> }
> ===========================================
>
>  And TARGET_ seems to be  not set.
>
>  Resulting `msp430-ld' can not start at all:
>
> ===========================================
> > msp430-ld -v
> msp430-ld: cannot represent machine `amd64'
> ===========================================
>
>  It seems to be msp430.em error, or, maybe, generic.em error, I don't
> know.
>
>  There is NO requirement to have ${ARCH} unset when binutils are
> built.
>
> --
> // Black Lion AKA Lev Serebryakov <l...@serebryakov.spb.ru>
>
>
>
> ------------------------------------------------------------------------------
> Got Input?   Slashdot Needs You.
> Take our quick survey online.  Come on, we don't ask for help often.
> Plus, you'll get a chance to win $100 to spend on ThinkGeek.
> http://p.sf.net/sfu/slashdot-survey
> _______________________________________________
> Mspgcc-users mailing list
> Mspgcc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users
>
------------------------------------------------------------------------------
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to