This is the mail archive of the crossgcc@sources.redhat.com 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: Help Needed.


On Thu, Jun 13, 2002 at 10:32:55PM -0500, rejip wrote:
> Hi All,
>                 I am trying to build gcc3.1 cross compiler for motorola
> 68302 under LINUX(redhat 7.2).  I have built binutils-2.11 and
> newlib-1.9.0 as follows.

I think you want to use glibc for Linux target.

> bash$ tar xzf binutils-2.11.tar.gz
> bash$ cd build-binutils
> bash$ ../binutils-2.11/configure --prefix=/usr/local/m68k-elf
> --target=m68k-elf
> bash$ make
> bash$ make install

I think you want to use --target=m68k-linux. Unless you
meant "build a linux-hosted gcc cross compiler for
motorola", in which case ignore my former comment.

> bash$ cd ..
> bash$ tar xzf newlib-1.9.0.tar.gz
> bash$ cd build-newlib
> bash$ ../newlib-1.9.0/configure  --prefix=/usr/local/m68k-elf
> --target=m68k-elf
> bash$ make
> bash$ make install
> 
> 
> 
> bash$ cd ..
> bash$ tar xzf gcc-3.1.tar.gz
> bash$ cd build-gcc
> bash$ ../gcc-3.1/configure --prefix=/usr/local/m68k-elf
> --target=m68k-elf \
>             --with-gnu-as --with-gnu-as --with-gnu-ld
> --enable-languages=c

Hmmm, what compiler do you suppose is used to build newlib?
You compile your library _before_ building the compiler,
which does not quite sound sane to me :-)

You might know already about that, but there is a lot of
introductory info at
http://crossgcc.billgatliff.com/index.html.

Cheers,
/Y


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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