public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* 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

* Re: 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, 0 replies; 8+ messages in thread
From: João Cadamuro Junior @ 2000-10-18  8:53 UTC (permalink / raw)
  To: ron tal; +Cc: crossgcc

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 997 bytes --]

> machine=pentiumpro         # equivalent to i686-pc-cygwin

Try "machine=i586-pc-cygwin"


> # 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

Try

../$gccdir/configure --host=$machine --target=$target --prefix=$prefix
--with-newlib -v 2>&1 | tee configure.out
make all install 2>&1 | tee make.out

and take a look at configure.out file and make.out file. Maybe you can find in
those files some tips about what is wrong.



Try to update your system to latest cygwin version (1.1.4). This new version has
been improved in many points and many bugs were fixed...


If you can, also try to apply Service Pack 6 on WinNT 4.


Good Luck...



João Cadamuro Junior
LIT / CPDTT / CEFET-PR


------
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

* Re: 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, 0 replies; 8+ messages in thread
From: João Cadamuro Junior @ 2000-10-17 10:46 UTC (permalink / raw)
  To: ron tal; +Cc: crossgcc

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1997 bytes --]

Hello,

Could you give us some more information???

- What is your O.S. version (and Service Pack)?
- What is your cygwin version?
- What is your PC processor?
- Are you trying to force the host system as i686-pc-cygwin or the configure
script is matching it for you?


After that, maybe we can try some options...



João Cadamuro Junior
LIT / CPDTT / CEFET-PR


ron tal wrote:

> 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


------
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: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-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

* Re: building crossgcc for m68k-coff on WINNT
  2000-10-15  9:56 ron tal
@ 2000-10-15 14:29 ` Alexandre Oliva
  0 siblings, 0 replies; 8+ messages in thread
From: Alexandre Oliva @ 2000-10-15 14:29 UTC (permalink / raw)
  To: ron tal; +Cc: crossgcc

On Oct 15, 2000, "ron tal" <tal347@hotmail.com> wrote:

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

> --host= ???

Maybe i686-pc-cygwin.

But I'd rather start with a newer binutils.  2.9.1 is *very* old.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

------
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:52 building crossgcc for m68k-coff on WINNT ron tal
  -- 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:46 ron tal
2000-10-17 10:46 ` João Cadamuro Junior
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).