public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* building crossgcc for m68k-coff on WINNT
@ 2000-10-17  6:46 ron tal
  2000-10-17 10:46 ` João Cadamuro Junior
  0 siblings, 1 reply; 8+ messages in thread
From: ron tal @ 2000-10-17  6:46 UTC (permalink / raw)
  To: crossgcc

Hi all,

I have used Enrico' s script (with minor changes) and was able

to deliver a gcc cross compiler m68k-coff under solaris_sparc_2.6

thanx for Enrico, and the rest of the people who have help me so far.



I am trying to do the same (m68k-coff under WINNT), using the same

script. -- I dont see any reason not to.


First, my directory is:

/home/users/ronenl/gcc-cross/
                              binutils-2.10/ unpacked
                              gdb-5.0/ unpacked
                              gcc-2.95.2/ unpacked
                              newlib-1.8.2/ unpacked

                              buildcross.sh <--script


changes I have made:
#!/bin/bash.exe
machine=pentiumpro     - otherwise, I get INVALID i686-pc-cygwin
--host=$machine

Results: binutils-2.10 - successfull
         gcc-2.95.2    - failed (libtool command not found)


Q: is my change for --host=pentiumpro is legal?

Q: how come I pass the binutils, but failed with gcc?

ronen.




















_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com .

Share information about yourself, create your own public profile at 
http://profiles.msn.com .


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

^ permalink raw reply	[flat|nested] 8+ messages in thread
* building crossgcc for m68k-coff on WINNT
@ 2000-10-18  2:58 ron tal
  2000-10-18  8:53 ` João Cadamuro Junior
  0 siblings, 1 reply; 8+ messages in thread
From: ron tal @ 2000-10-18  2:58 UTC (permalink / raw)
  To: crossgcc

following is the script I am using:

WINNT(pentium III) cygwin, m68k-coff

Q: the configure part finished OK.
   make all install - fails

   error message - ./libtool : m68kcoff_vec, : command not found

                   ./libtool : versados_vec  : command not found

                   ./libtool : ieee_vec     : command not found

                   ./libtool : bfd_m68k_arch : command not found


   let me know if you can help.

   ronen.




#!/bin/sh
# Build a CrossGCC for newlib for embedded sistems
# Enrico Colombini <erix@mclink.it> October 2000
# It works on my RedHat 6.0 Linux box. I make no other claims.
#
# Thanks to Scott Howard for the CrossGCC FAQ, to Jo~ao Cadamuro
# and to many people on the CrossGCC list for the fixes, and to
# Marco Morocutti for cooperation and support


# = 1 = Before executing this, get the sources for:
#       binutils, gcc, newlib, gdb
#       and unpack them in the <src> directory (say /home/erix/crossrc)
#       (e.g. tar zxvf binutils-2_10_tar.gz)
#       thus creating four corresponding subdirectories

# = 2 = Adjust the lines below to configure for your system:
#
prefix=/home/users/ronenl/gcc-cross/m68k-prefix           # Destination 
directory
target=m68k-coff                                          # Target system
machine=pentiumpro                                        # equivalent to 
i686-pc-cygwin
binutilsdir=binutils-2.10                                 # Directories 
created by unpacking sources
gccdir=gcc-2.95.2
newlibdir=newlib-1.8.2
gdbdir=gdb-5.0

# - 3 - Execute this shell script from <src>: ./buildcross

# Create destination directory
mkdir -p $prefix

# Compile binutils
mkdir -p build$binutilsdir
cd build$binutilsdir
../$binutilsdir/configure --target=$target --prefix=$prefix --host=$machine 
-v
make all install
cd ..

# Add executables to path, they'll be needed later
PATH=$prefix/bin:$PATH
echo $PATH

# Add symbolic links to newlib into gcc source
cd $gccdir
ln -s ../$newlibdir/newlib newlib
ln -s ../$newlibdir/libgloss libgloss
cd ..

# Compile gcc
mkdir -p build$gccdir
cd build$gccdir
../$gccdir/configure --verbose --target=$target --prefix=$prefix 
--with-newlib --host=$machine --enable-languages=
make all install
cd ..

# Compile newlib
mkdir -p build$newlibdir
cd build$newlibdir
../$newlibdir/configure --target=$target --prefix=$prefix --host=$machine -v
make all install
cd ..

# Compile gdb
mkdir -p build$gdbdir
cd build$gdbdir
../$gdbdir/configure --target=$target --prefix=$prefix --host=$machine -v
make all install
cd ..



_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com .

Share information about yourself, create your own public profile at 
http://profiles.msn.com .


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

^ permalink raw reply	[flat|nested] 8+ messages in thread
* building crossgcc for m68k-coff on WINNT
@ 2000-10-17  6:52 ron tal
  0 siblings, 0 replies; 8+ messages in thread
From: ron tal @ 2000-10-17  6:52 UTC (permalink / raw)
  To: crossgcc

[-- Attachment #1: Type: text/plain, Size: 1282 bytes --]

Hi all,

I have used Enrico' s script (with minor changes) and was able

to deliver a gcc cross compiler m68k-coff under solaris_sparc_2.6

thanx for Enrico, and the rest of the people who have help me so far.



I am trying to do the same (m68k-coff under WINNT), using the same

script. -- I dont see any reason not to.


First, my directory is:

/home/users/ronenl/gcc-cross/
                              binutils-2.10/ unpacked
                              gdb-5.0/ unpacked
                              gcc-2.95.2/ unpacked
                              newlib-1.8.2/ unpacked

                              buildcross.sh <--script


changes I have made:
#!/bin/bash.exe
machine=pentiumpro     - otherwise, I get INVALID i686-pc-cygwin
--host=$machine

Results: binutils-2.10 - successfull
         gcc-2.95.2    - failed (libtool command not found)


Q: is my change for --host=pentiumpro is legal?

Q: how come I pass the binutils, but failed with gcc?

Attached: cygwin.bat
          buildcross.sh

ronen.




















_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com .

Share information about yourself, create your own public profile at 
http://profiles.msn.com .

[-- Attachment #2: buildcross.sh --]
[-- Type: text/x-shellscript, Size: 2086 bytes --]

#!/bin/bash.exe
# Build a CrossGCC for newlib for embedded sistems
# Enrico Colombini <erix@mclink.it> October 2000
# It works on my RedHat 6.0 Linux box. I make no other claims.
#
# Thanks to Scott Howard for the CrossGCC FAQ, to Jo~ao Cadamuro
# and to many people on the CrossGCC list for the fixes, and to
# Marco Morocutti for cooperation and support


# = 1 = Before executing this, get the sources for:
#       binutils, gcc, newlib, gdb
#       and unpack them in the <src> directory (say /home/erix/crossrc)
#       (e.g. tar zxvf binutils-2_10_tar.gz)
#       thus creating four corresponding subdirectories

# = 2 = Adjust the lines below to configure for your system:
#
prefix=/home/users/ronenl/gcc-cross/m68k-prefix           # Destination directory
target=m68k-coff                                          # Target system
machine=pentiumpro                                        # equivalent to i686-pc-cygwin
binutilsdir=binutils-2.10                                 # Directories created by unpacking sources
gccdir=gcc-2.95.2
newlibdir=newlib-1.8.2
gdbdir=gdb-5.0

# - 3 - Execute this shell script from <src>: ./buildcross

# Create destination directory
mkdir -p $prefix

# Compile binutils
mkdir -p build$binutilsdir
cd build$binutilsdir
../$binutilsdir/configure --target=$target --prefix=$prefix --host=$machine -v
make all install
cd ..

# Add executables to path, they'll be needed later
PATH=$prefix/bin:$PATH
echo $PATH

# Add symbolic links to newlib into gcc source
cd $gccdir
ln -s ../$newlibdir/newlib newlib
ln -s ../$newlibdir/libgloss libgloss
cd ..

# Compile gcc
mkdir -p build$gccdir
cd build$gccdir
../$gccdir/configure --target=$target --prefix=$prefix --with-newlib --host=$machine --enable-languages=  -v
make all install
cd ..

# Compile newlib
mkdir -p build$newlibdir
cd build$newlibdir
../$newlibdir/configure --target=$target --prefix=$prefix --host=$machine -v
make all install
cd ..

# Compile gdb
mkdir -p build$gdbdir
cd build$gdbdir
../$gdbdir/configure --target=$target --prefix=$prefix --host=$machine -v
make all install
cd ..



[-- Attachment #3: cygwin.bat --]
[-- Type: text/x-msdos-batch, Size: 142 bytes --]

@echo off

SET HOME=/home
SET CYGWIN=binmode

SET PATH=d:\cygwin\gcc-m68k\bin;d:\cygwin\bin;%PATH%

d:\cygwin\bin\bash --login -i



^ permalink raw reply	[flat|nested] 8+ messages in thread
* building crossgcc for m68k-coff on WINNT
@ 2000-10-16  2:12 ron tal
  0 siblings, 0 replies; 8+ messages in thread
From: ron tal @ 2000-10-16  2:12 UTC (permalink / raw)
  To: crossgcc

hi,

I have successfully install cygwin on my WIN-NT machine.(pentium )

Next, I have unpacked : binutils-2.10  newlib-1.8.2 gcc-2.95.2


Next, I have to configure binutils - this is where I stuck.


The Error message: Invalid  machine i686-pc-cygwin


the command I am using:

configure --target=m68k-coff --prefix=$prefix


I have searched and found: file bashbug contains the machine

type default to be i686-pc-cygwin.


My Q: It seems that the binutils dont recognize i686-pc-cygwin

in its configuration process.  I believe that the machine type

should be one of the types in the configure file.

Then, if we follow this rule, I have not seen anything that

includes cygwin.

Therefore, I will have ToDO: --host=machine_type

My question for you would be - which type should I pick for pentium

machine?

thanx, ronen.




















_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com .

Share information about yourself, create your own public profile at 
http://profiles.msn.com .


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

^ permalink raw reply	[flat|nested] 8+ messages in thread
* building crossgcc for m68k-coff on WINNT
@ 2000-10-15  9:56 ron tal
  2000-10-15 14:29 ` Alexandre Oliva
  0 siblings, 1 reply; 8+ messages in thread
From: ron tal @ 2000-10-15  9:56 UTC (permalink / raw)
  To: crossgcc

I have downloaded cygwin on winnt computer

My goal is to configure/build/install gcc cross compiler for

target M68k-coff on WINNT.

For this purpose I downloaded cygwin, and now I have the

unix-like shell to run the configure script.

The command I am executing :

../binutils-2.9.1/configure --verbose --target=m68k-coff
--prefix=/gcc-68k


and the result:

Invalid Configuration 'i686-pc-cygwin32' : machine 'i686-pc-cygwin32'
is not recognized.

Then, I assume I have ToDo:

--host= ???

My Question: would that solve my problem? if so, what host type

should I use if my HOST is pentium machine.


thanx, ronen.












_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com .

Share information about yourself, create your own public profile at 
http://profiles.msn.com .


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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2000-10-18  8:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-10-17  6:46 building crossgcc for m68k-coff on WINNT ron tal
2000-10-17 10:46 ` João Cadamuro Junior
  -- strict thread matches above, loose matches on Subject: below --
2000-10-18  2:58 ron tal
2000-10-18  8:53 ` João Cadamuro Junior
2000-10-17  6:52 ron tal
2000-10-16  2:12 ron tal
2000-10-15  9:56 ron tal
2000-10-15 14:29 ` Alexandre Oliva

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).