Are there any instructions for building binutils/mspgcc?

View: New views
2 Messages — Rating Filter:   Alert me  

Are there any instructions for building binutils/mspgcc?

by Grant Edwards-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I've lost the recipe for building binutils/mspgcc.  The shell
script I've used for the past few years no longer produces a
working toolchain. AFAIK, absolutely nothing has changed.  But
after building binutils and mspgcc on a new machine I'm now
getting errors like this:

msp430-gcc -g -O2 -mmcu=msp430x149 -Wa,-ahld=main.lst -o main.elf main.c
//home/grante/msp430/gnu/bin/../lib/gcc-lib/msp430/3.2.3/msp2/libgcc.a(_copy_data.o): In function `__do_copy_data':
/home/grante/msp430/toolchain/src/gcc-3.2.3/gcc/config/msp430/libgcc.S:(.init4+0x2): undefined reference to `__data_size'
/home/grante/msp430/toolchain/src/gcc-3.2.3/gcc/config/msp430/libgcc.S:(.init4+0x8): undefined reference to `__data_load_start'
//home/grante/msp430/gnu/bin/../lib/gcc-lib/msp430/3.2.3/msp2/libgcc.a(_clear_bss.o): In function `__do_clear_bss':
/home/grante/msp430/toolchain/src/gcc-3.2.3/gcc/config/msp430/libgcc.S:(.init4+0x2): undefined reference to `__bss_size'
make: *** [main.elf] Error 1

According to http://www.nabble.com/linking-problems-in-linux-%28undefined-symbols%29-td18834672.html
those undefined symbols are fixed by this patch:

  packaging/patches/binutils-14x1-20x1-20x2-20x3-22x4-42x-42x0-461x.patch

Except they're not.  There's nothing in that patch that adds
the undefined symbols.  Rather, those symbols appear to be
added by binutils-ld_scripts.patch, but I've not been able to
get that patch to apply to binutils 2.17.

Is there a list somewhere of what patches you need
in what order to build what versions of binutils?

--
Grant Edwards                   grante             Yow! If elected, Zippy
                                  at               pledges to each and every
                               visi.com            American a 55-year-old
                                                   houseboy ...


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@...
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Re: Are there any instructions for building binutils/mspgcc?

by Grant Edwards-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 2009-09-14, Grant Edwards <grant.b.edwards@...> wrote:


> Rather, those symbols appear to be added by
> binutils-ld_scripts.patch, but I've not been able to get that
> patch to apply to binutils 2.17.

The ld_scripts patch appears to include some changes from a
differetn patch that was being applied before it.  I removed
that patch, and things are working again.  Not sure how I ended
up with overlapping patches like that....

--
Grant Edwards                   grante             Yow! UH-OH!!  We're out
                                  at               of AUTOMOBILE PARTS and
                               visi.com            RUBBER GOODS!


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@...
https://lists.sourceforge.net/lists/listinfo/mspgcc-users