Ok, I had a try of doing this myself by looking at the makefile in
packaging. I had to create two directories under packaging called "build"
and "archive". I then copied the tar files you indicated to the "archive"
directory (I gad to go searching for the gcc-g++-3.2.3.tar.bz2 file as it
wasn't in the same location as the gcc-core... file)
I then from within packaging directory executed "make binutils", this is
with a fresh binutils-2.18.tar.bz2 and a fresh cvs update of packaging..
The output of the build fails with no indication what is wrong ..
#################################################################################
msp430-binutils (2.18)
###############################################################################
rm -rf /home/bmentink/mspgcc/temp/packaging/build/binutils-2.18
## Unpacking binutils
cd /home/bmentink/mspgcc/temp/packaging/build && tar xjf
/home/bmentink/mspgcc/t
emp/packaging/archives/binutils-2.18.tar.bz2
## Applying extra mspgcc patches...
#~ cd /home/bmentink/mspgcc/temp/packaging/build/binutils-2.18; patch -p1 <
/hom
e/bmentink/mspgcc/temp/packaging/patches/binutils-14x1-20x1-20x2-20x3-22x4-42x-4
2x0-461x.patch
#~ cd /home/bmentink/mspgcc/temp/packaging/build/binutils-2.18; patch -p1 <
/hom
e/bmentink/mspgcc/temp/packaging/patches/binutils-2.17-msp430x24x-msp430x26x.pat
ch
cd /home/bmentink/mspgcc/temp/packaging/build/binutils-2.18; patch -p1 <
/home/b
mentink/mspgcc/temp/packaging/patches/binutils-2.18-14x1-20x1-20x2-20x3-22x4-42x
-42x0-461x.patch
patching file bfd/archures.c
patching file bfd/bfd-in2.h
patching file bfd/cpu-msp430.c
patching file bfd/doc/archures.texi
patching file bfd/elf32-msp430.c
patching file gas/config/tc-msp430.c
patching file include/elf/msp430.h
patching file ld/Makefile.am
patching file ld/Makefile.in
patching file ld/configure.tgt
patching file ld/emulparams/msp430all.sh
patching file ld/scripttempl/elf32msp430.sc
patching file ld/scripttempl/elf32msp430_3.sc
patching file opcodes/msp430-dis.c
cd /home/bmentink/mspgcc/temp/packaging/build/binutils-2.18; patch -p1 <
/home/b
mentink/mspgcc/temp/packaging/patches/binutils-2.18-msp430x24x-msp430x26x.patch
patching file bfd/archures.c
patching file bfd/bfd-in2.h
patching file bfd/cpu-msp430.c
patching file bfd/doc/archures.texi
patching file bfd/elf32-msp430.c
patching file gas/config/tc-msp430.c
patching file include/elf/msp430.h
patching file ld/Makefile.am
patching file ld/Makefile.in
patching file ld/configure.tgt
patching file ld/emulparams/msp430all.sh
patching file opcodes/msp430-dis.c
cd /home/bmentink/mspgcc/temp/packaging/build/binutils-2.18; patch -p1 <
/home/b
mentink/mspgcc/temp/packaging/patches/binutils-ld_scripts.patch
patching file ld/scripttempl/elf32msp430.sc
patching file ld/scripttempl/elf32msp430_3.sc
cd /home/bmentink/mspgcc/temp/packaging/build/binutils-2.18; patch -p1 <
/home/b
mentink/mspgcc/temp/packaging/patches/binutils-2.18-430X.patch
patching file bfd/archures.c
patching file bfd/bfd-in2.h
patching file bfd/cpu-msp430.c
patching file bfd/elf32-msp430.c
patching file bfd/libbfd.h
patching file bfd/reloc.c
patching file binutils/objdump.c
patching file gas/config/tc-msp430.c
patching file include/elf/msp430.h
patching file include/opcode/msp430.h
patching file ld/Makefile.am
patching file ld/Makefile.in
patching file ld/configure.tgt
patching file ld/emulparams/msp430all.sh
patching file ld/scripttempl/elf32msp430.sc
patching file opcodes/msp430-dis.c
## Configure and building binutils (this takes a while)
cd /home/bmentink/mspgcc/temp/packaging/build/binutils-2.18 && ./configure
--tar
get=msp430 --prefix=/opt/mspgcc \
--disable-nls --disable-shared --enable-debug
--disable-threads
\
--with-gcc --with-gnu-as --with-gnu-ld --with-stabs \
--disable-multilib \
>/home/bmentink/mspgcc/temp/packaging/build/binutils-build.log 2
>&1
cd /home/bmentink/mspgcc/temp/packaging/build/binutils-2.18 && make
>>/home/bmen
tink/mspgcc/temp/packaging/build/binutils-build.log 2>&1
make: *** [binutils-build] Error 2
r...@laptop:~/mspgcc/temp/packaging
#########################################################################
I will next try to modify the makefile to use my gcc-3.4 host compiler
instead of the 4.2.1 one to see if that makes a difference.
Cheers,
Bernie
On Tue, Dec 16, 2008 at 8:05 AM, Bernard Mentink <[email protected]> wrote:
> That's great Sergey, but I am building under Ubuntu Linux, not windoze. It
> seems there is a lot of support in both binary packages and builds for
> windoze, but what proceduredo I use for Linux, all we have is the
> procedure in the manual, which doesn't work.
>
> So my question is, can I use a modified form of the instructions below for
> Linux?? If so what is it.
>
> Cheers,
> Bernie
>
>
> On Tue, Dec 16, 2008 at 1:45 AM, Sergey A. Borshch <
> [email protected]> wrote:
>
>> bmentink wrote:
>> > However, when I go to compile the libc files, I am still getting the
>> initial
>> > problem. I.E it stops at the 2001 device which according to the above is
>> now
>> > supported .....
>> >
>> > What gives with libc??
>> >
>> > Anyone have an answer for this.
>> I've tried a clean build about an hour ago:
>> cvs -z3 -d:pserver:[email protected]:/cvsroot/mspgcc
>> co packaging
>> cvs -z3 -d:pserver:[email protected]:/cvsroot/mspgcc
>> co gcc
>> cvs -z3 -d:pserver:[email protected]:/cvsroot/mspgcc
>> co
>> msp430-libc
>> cd packaging
>> ; here I added WINDIR=1 MSYSCON=1 to makefile as i build under win/msys
>> make filders
>> cp C:/gnu-sources/binutils-2.18.tar.bz2 archives
>> cp C:/gnu-sources/gcc-core-3.2.3.tar.bz2 archives
>> cp C:/gnu-sources/gcc-g++-3.2.3.tar.bz2 archives
>> make binutils gcc msp430-libc-build msp430-libc-install
>>
>> And I got:
>>
>> ###############################################################################
>> ## msp430-binutils (2.18)
>>
>> ###############################################################################
>> rm -rf /c/mspgcc.cvs/PACKAG~1/build/binutils-2.18
>> ## Unpacking binutils
>> cd /c/mspgcc.cvs/PACKAG~1/build && tar xjf
>> /c/mspgcc.cvs/PACKAG~1/archives/binutils-2.18.tar.bz2
>> ## Applying extra mspgcc patches...
>> #~ cd /c/mspgcc.cvs/PACKAG~1/build/binutils-2.18; patch -p1 <
>>
>> /c/mspgcc.cvs/PACKAG~1/patches/binutils-14x1-20x1-20x2-20x3-22x4-42x-42x0-461x.patch
>> #~ cd /c/mspgcc.cvs/PACKAG~1/build/binutils-2.18; patch -p1 <
>> /c/mspgcc.cvs/PACKAG~1/patches/binutils-2.17-msp430x24x-msp430x26x.patch
>> cd /c/mspgcc.cvs/PACKAG~1/build/binutils-2.18; patch -p1 <
>>
>> /c/mspgcc.cvs/PACKAG~1/patches/binutils-2.18-14x1-20x1-20x2-20x3-22x4-42x-42x0-461x.patch
>> patching file `bfd/archures.c'
>> patching file `bfd/bfd-in2.h'
>> patching file `bfd/cpu-msp430.c'
>> patching file `bfd/doc/archures.texi'
>> patching file `bfd/elf32-msp430.c'
>> patching file `gas/config/tc-msp430.c'
>> patching file `include/elf/msp430.h'
>> patching file `ld/Makefile.am'
>> patching file `ld/Makefile.in'
>> patching file `ld/configure.tgt'
>> patching file `ld/emulparams/msp430all.sh'
>> patching file `ld/scripttempl/elf32msp430.sc'
>> patching file `ld/scripttempl/elf32msp430_3.sc'
>> patching file `opcodes/msp430-dis.c'
>> cd /c/mspgcc.cvs/PACKAG~1/build/binutils-2.18; patch -p1 <
>> /c/mspgcc.cvs/PACKAG~1/patches/binutils-2.18-msp430x24x-msp430x26x.patch
>> patching file `bfd/archures.c'
>> patching file `bfd/bfd-in2.h'
>> patching file `bfd/cpu-msp430.c'
>> patching file `bfd/doc/archures.texi'
>> patching file `bfd/elf32-msp430.c'
>> patching file `gas/config/tc-msp430.c'
>> patching file `include/elf/msp430.h'
>> patching file `ld/Makefile.am'
>> patching file `ld/Makefile.in'
>> patching file `ld/configure.tgt'
>> patching file `ld/emulparams/msp430all.sh'
>> patching file `opcodes/msp430-dis.c'
>> cd /c/mspgcc.cvs/PACKAG~1/build/binutils-2.18; patch -p1 <
>> /c/mspgcc.cvs/PACKAG~1/patches/binutils-ld_scripts.patch
>> patching file `ld/scripttempl/elf32msp430.sc'
>> patching file `ld/scripttempl/elf32msp430_3.sc'
>> cd /c/mspgcc.cvs/PACKAG~1/build/binutils-2.18; patch -p1 <
>> /c/mspgcc.cvs/PACKAG~1/patches/binutils-2.18-430X.patch
>> patching file `bfd/archures.c'
>> patching file `bfd/bfd-in2.h'
>> patching file `bfd/cpu-msp430.c'
>> patching file `bfd/elf32-msp430.c'
>> patching file `bfd/libbfd.h'
>> patching file `bfd/reloc.c'
>> patching file `binutils/objdump.c'
>> patching file `gas/config/tc-msp430.c'
>> patching file `include/elf/msp430.h'
>> patching file `include/opcode/msp430.h'
>> patching file `ld/Makefile.am'
>> patching file `ld/Makefile.in'
>> patching file `ld/configure.tgt'
>> patching file `ld/emulparams/msp430all.sh'
>> patching file `ld/scripttempl/elf32msp430.sc'
>> patching file `opcodes/msp430-dis.c'
>> ## Configure and building binutils (this takes a while)
>> cd /c/mspgcc.cvs/PACKAG~1/build/binutils-2.18 && ./configure
>> --target=msp430
>> --prefix=c:/mspgcc.cvs/PACKAG~1/build/installed \
>> --disable-nls --disable-shared --enable-debug
>> --disable-threads \
>> --with-gcc --with-gnu-as --with-gnu-ld --with-stabs \
>> --disable-multilib \
>> >/c/mspgcc.cvs/PACKAG~1/build/binutils-build.log 2>&1
>> cd /c/mspgcc.cvs/PACKAG~1/build/binutils-2.18 && make
>> >>/c/mspgcc.cvs/PACKAG~1/build/binutils-build.log 2>&1
>> ## binutils compiled
>> cd /c/mspgcc.cvs/PACKAG~1/build/binutils-2.18; make install
>> >>/c/mspgcc.cvs/PACKAG~1/build/binutils-build.log 2>&1
>> python filelist.py /c/mspgcc.cvs/PACKAG~1/build/installed
>> >/c/mspgcc.cvs/PACKAG~1/build/files-binutils.txt
>> ## binutils installed
>>
>> ###############################################################################
>> ## msp430-gcc (3.2.3)
>>
>> ###############################################################################
>> rm -rf /c/mspgcc.cvs/PACKAG~1/build/gcc-3.2.3
>> cd /c/mspgcc.cvs/PACKAG~1/build && tar xjf
>> /c/mspgcc.cvs/PACKAG~1/archives/gcc-core-3.2.3.tar.bz2
>> cd /c/mspgcc.cvs/PACKAG~1/build && tar xjf
>> /c/mspgcc.cvs/PACKAG~1/archives/gcc-g++-3.2.3.tar.bz2
>> #~ cd /c/mspgcc.cvs/PACKAG~1/build && tar xjf
>> /c/mspgcc.cvs/PACKAG~1/archives/gcc-ada-3.2.3.tar.bz2
>> #~ cd /c/mspgcc.cvs/PACKAG~1/build && tar xjf
>> /c/mspgcc.cvs/PACKAG~1/archives/gcc-g77-3.2.3.tar.bz2
>> #~ cd /c/mspgcc.cvs/PACKAG~1/build && tar xjf
>> /c/mspgcc.cvs/PACKAG~1/archives/gcc-java-3.2.3.tar.bz2
>> ## Applying mspgcc patches
>> cp -r /c/mspgcc.cvs//gcc/gcc-3.3/* /c/mspgcc.cvs/PACKAG~1/build/gcc-3.2.3
>> ## Applying patch for oooooooold windoze
>> cd /c/mspgcc.cvs/PACKAG~1/build/gcc-3.2.3; patch -p1 <
>> /c/mspgcc.cvs/PACKAG~1/patches/gcc-3.2.3-cygwin.patch #win98 patch
>> patching file `gcc/ggc-page.c'
>> patching file `gcc/fixinc/gnu-regex.c'
>> ## Applying patch for mingw build
>> cd /c/mspgcc.cvs/PACKAG~1/build/gcc-3.2.3; patch -p1 <
>> /c/mspgcc.cvs/PACKAG~1/patches/gcc-3.2.3-mingw.patch
>> patching file `gcc/collect2.c'
>> patching file `gcc/fixinc/mkfixinc.sh'
>> cd /c/mspgcc.cvs/PACKAG~1/build/gcc-3.2.3; patch -p1 <
>> /c/mspgcc.cvs/PACKAG~1/patches/gcc-3.2.3-__FUNCTION__.patch
>> patching file `gcc/c-common.c'
>> ## Configuring and building msp430-gcc (this takes a while)
>> cd /c/mspgcc.cvs/PACKAG~1/build/gcc-3.2.3 && ./configure --target=msp430
>> --prefix=c:/mspgcc.cvs/PACKAG~1/build/installed \
>> --disable-multilib \
>> --disable-libc --disable-libssp --disable-intl
>> --disable-libiberty \
>> --with-gcc --with-gnu-ld --with-gnu-as --with-stabs \
>> --disable-shared --disable-threads
>> --disable-win32-registry
>> --disable-nls \
>> --enable-languages=c,c++
>> >/c/mspgcc.cvs/PACKAG~1/build/gcc-build.log 2>&1
>> cd /c/mspgcc.cvs/PACKAG~1/build/gcc-3.2.3 && make
>> >>/c/mspgcc.cvs/PACKAG~1/build/gcc-build.log 2>&1
>> ## msp430-gcc done
>> python filelist.py /c/mspgcc.cvs/PACKAG~1/build/installed
>> >files-before.txt
>> cd /c/mspgcc.cvs/PACKAG~1/build/gcc-3.2.3; make install
>> >>/c/mspgcc.cvs/PACKAG~1/build/gcc-build.log 2>&1
>> python filelist.py /c/mspgcc.cvs/PACKAG~1/build/installed >files-after.txt
>> python filediff.py files-before.txt files-after.txt
>> >/c/mspgcc.cvs/PACKAG~1/build/files-gcc.txt
>> rm files-before.txt files-after.txt
>> ## gcc installed
>>
>> ###############################################################################
>> ## libc
>>
>> ###############################################################################
>> rm -rf /c/mspgcc.cvs/PACKAG~1/build/msp430-libc
>> cp -r /c/mspgcc.cvs//msp430-libc /c/mspgcc.cvs/PACKAG~1/build
>> cd /c/mspgcc.cvs/PACKAG~1/build/msp430-libc/src && cat Makefile | sed -e
>> 's^/usr/local/msp430^/c/mspgcc.cvs/PACKAG~1/build/installed^' >
>> Makefile-new
>> cd /c/mspgcc.cvs/PACKAG~1/build/msp430-libc/src && rm Makefile
>> cd /c/mspgcc.cvs/PACKAG~1/build/msp430-libc/src && mv Makefile-new
>> Makefile
>> mkdir -p /c/mspgcc.cvs/PACKAG~1/build/msp430-libc/src/msp1
>> /c/mspgcc.cvs/PACKAG~1/build/msp430-libc/src/msp2
>> cd /c/mspgcc.cvs/PACKAG~1/build/msp430-libc/src && make
>> >/c/mspgcc.cvs/PACKAG~1/build/libc-build.log 2>&1
>> python filelist.py /c/mspgcc.cvs/PACKAG~1/build/installed
>> >files-before.txt
>> cd /c/mspgcc.cvs/PACKAG~1/build/msp430-libc/src; make install
>> >>/c/mspgcc.cvs/PACKAG~1/build/libc-build.log 2>&1
>> python filelist.py /c/mspgcc.cvs/PACKAG~1/build/installed >files-after.txt
>> python filediff.py files-before.txt files-after.txt
>> >/c/mspgcc.cvs/PACKAG~1/build/files-libc.txt
>> rm files-before.txt files-after.txt
>> ## msp430-libc installed
>>
>> --
>> Regards,
>> Sergey A. Borshch mailto: [email protected]
>> SB ELDI ltd. Riga, Latvia
>>
>>
>>
>> ------------------------------------------------------------------------------
>> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas,
>> Nevada.
>> The future of the web can't happen without you. Join us at MIX09 to help
>> pave the way to the Next Web now. Learn more and register at
>>
>> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
>> _______________________________________________
>> Mspgcc-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/mspgcc-users
>>
>
>