This is the mail archive of the crossgcc@sourceware.org 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: Problem creating m68k-coff cross tools under Cygwin


Hi,

If you open and save a file in windows, usually you have this problem.
You can try using the 'dos2unix' command in cygwin on that file to
convert it back to Unix format.

Regards,

Thomas

> -----Original Message-----
> From: Doug Broadwell [mailto:doug@dbassoc.com]
> Sent: Friday, June 30, 2006 12:19 AM
> To: crossgcc@sources.redhat.com
> Subject: Problem creating m68k-coff cross tools under Cygwin
> 
> I'm trying to build an m68k-coff cross toolchain under Cygwin; I'm
still
> trying to install the binutil's.  It chokes
> when it tries to compile targmatch.h.  The "make install" log is as
> follows:
> 
> ...
> rm -f targmatch.h
> sed -f ../../../binutils-2.9.1/bfd/targmatch.sed <
> ../../../binutils-2.9.1/bfd/config.bfd > targmatch.new
> mv -f targmatch.new targmatch.h
> /bin/sh ./libtool --mode=compile
> gcc -DHAVE_CONFIG_H -I. -I../../../binutils-2.9.1/bfd -I.
-D_GNU_SOURCE
> -I. -I../../../binutils-2.9.1/bfd
-I../../../binutils-2.9.1/bfd/../include
>  -g -O2 -c -DDEFAULT_VECTOR=m68kcoff_vec -
> DSELECT_VECS='&m68kcoff_vec,&versa
> dos_vec,&ieee_vec' -DSELECT_ARCHITECTURES='&bfd_m68k_arch' -
> DHAVE_m68kcoff_v
> ec -DHAVE_versados_vec -DHAVE_ieee_vec ../../../binutils-
> 2.9.1/bfd/targets.c
> gcc -DHAVE_CONFIG_H -I. -I../../../binutils-2.9.1/bfd -I.
-D_GNU_SOURCE -
> I.
> -I../../../binutils-2.9.1/bfd -I../../../binutils-2.9.1/bfd/../include
-g
> -O
> 2 -c -DDEFAULT_VECTOR=m68kcoff_vec
> "-DSELECT_VECS=&m68kcoff_vec,&versados_vec,&ieee_vec"
> "-DSELECT_ARCHITECTURES=&bfd_m68k_arch" -DHAVE_m68kcoff_vec -
> DHAVE_versados_
> vec -DHAVE_ieee_vec ../../../binutils-2.9.1/bfd/targets.c
> In file included from ../../../binutils-2.9.1/bfd/targets.c:874:
> ./targmatch.h:62:68: missing ')' after "defined"
> ./targmatch.h:73:55: missing ')' after "defined"
> ./targmatch.h:82:61: missing ')' after "defined"
> ...
> 
> ./targmatch.h:1303:56: missing ')' after "defined"
> ./targmatch.h:1314:57: missing ')' after "defined"
> ../../../binutils-2.9.1/bfd/targets.c: In function `bfd_find_target':
> ../../../binutils-2.9.1/bfd/targets.c:972: warning: assignment makes
> pointer
> from integer without a cast
> make[1]: *** [targets.lo] Error 1
> make[1]: Leaving directory `/gnu/cross68k/bin/bfd'
> make: *** [install-bfd] Error 2
> 
> targmatch.h looks OK except that it is full of Carriage Return ("^M")
> characters.  I installed Cygwin without the Unix <--> Dos text
conversion,
> and have the environment variable "CYGWIN=tty".
> 
> The script I'm using is:
> 
> export PREFIX=/gnu/cross68k/bin
> export TARGET=m68k-coff
> export PATH=/gnu/cross68k/bin:${PATH}
> cd /gnu/cross68k/bin
> ../../binutils-2.9.1/configure --target=$TARGET --prefix=$PREFIX --
> disable-n
> ls 2>&1 | tee util_config.log
> make all 2>&1 | tee util_all.log
> make install 2>&1 | tee util_install.log
> 
> Thanks,
> 
> Doug Broadwell



--
For unsubscribe information see http://sourceware.org/lists.html#faq


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