Problems configuring rtems-cygwin-m68k

Jowell, Chris {AVL~Roswell} CHRIS.JOWELL at ROCHE.COM
Fri Jan 12 18:04:34 UTC 2001


Tim,

	I've run into the exact problem my solution was to migrate to Linux
(but you could use Win9X or ME) and below is what Joel sent to the Cygwin
group.

Hope this helps!

Christopher Jowell

Application System Analyst 
Roche Diagnostics 
235 Hembree Park Dr.
Roswell Ga 30076
    
(770) 576-5000 X 579
(770) 576-5020 Fax


Hi,

I am using the current net release of Cygwin to build RTEMS to 
target an m68k (ELF format).  When the configure script tries 
to see if the cross compiler works, it will execute this 
fragment from a configure script:

================
cat > conftest.$ac_ext << EOF

#line 1253 "configure"
#include "confdefs.h"

main(){return(0);}
EOF
if { (eval echo configure:1258: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } &&
t
est -s conftest${ac_exeext}; then
  ac_cv_prog_cc_works=yes
  # If we can't run a trivial program, we are probably using a cross
compiler.
  if (./conftest; exit) 2>/dev/null; then   
=================

Cygwin under WinME/95 passes this test and apparently refuses to run
"./conftest".
Cygwin under WinNT/2000 allows ./conftest to be executed.  Even worse,
this
conftest will execute enough to go into a hard loop which can't be
killed with
<ctl>-C. 

I believe that Cygwin should refuse to execute this program.  Is there
any provision for checking a magic number on the executable?

Has anyone else seen anything like this?

I can provide the executable if this is desired.


-----Original Message-----
From: Tim Riches [mailto:tim.riches at westbridge-design.co.uk]
Sent: Friday, January 12, 2001 12:44 PM
To: rtems-users
Subject: Problems configuring rtems-cygwin-m68k

I'm having problems configuring Rtems for m68k-elf.

Environment:
cygwin 1.1.6 under NT4 SP6
binutils package (2000-1221-1)
newlib package  (1.9.0)
gcc  (2.95.2-5)
rtems (4.5.0)
PATH  /bin    /usr/local/bin    /usr

I have successfully built the binutils with configure options:
/home/build-bin
/binutils-20001221-1/configure --target=m68k-elf --prefix=/usr/local
make
make install

I have also built gcc successfully(?) having previously set up links for
newlib, libgloss, include, gcc.
/home/build-gcc
/gcc-2.95.2-5/configure --target=m68k-elf --prefix=/usr/local
--enable-languages=c,c++  --with-newlib --with-as=/usr/local/m68k-elf/bin/as
--with-ld=/usr/local/m68k-elf/bin/ld  -v
make
make install

[I used the --with-as= in the hope that calling gcc(cross-compiler) would
hard code the path for its as and ld]

When I come to configure the rtems it appears to check the native compiler
then later the cross-compiler, the second check fails.

configure options for rtems:
/home/build-rtems
/rtems-4.5.0/configure --target=m68k-elf --prefix=/usr/local
--enable-rtemsbsp=gen68360  --program-prefix=m68k-elf-
Output listing:
##########################################################
checking if cpu m68k is supported... yes
checking for m68k-elf-gcc... /usr/local/bin/m68k-elf-gcc
checking whether the C compiler (/usr/local/bin/m68k-elf-gcc  ) works... no
configure: error: installation or configuration problem: C compiler cannot
create executables.
configure: error: /rtems-4.5.0/c/make/configure failed for make
configure: error: /rtems-4.5.0/c/configure failed for c
###########################################################
Interesting thing is that m68k-elf-gcc does work! - in as much as it
compiled a small program which ran on our target hardware without
problems.

Any ideas/suggestions would be appreciated.

==========================================
Tim Riches
Principal Design Engineer

Westbridge Design Ltd
Hurst Barns
Hurst Lane
Privett, Alton
Hants
GU34 3PL
UK

e-mail: tim.riches at westbridge-design.co.uk
Tel: +44 (0)1730 828111
Fax: +44 (0)1730 828123
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20010112/976ecd2b/attachment.html>


More information about the users mailing list