Problem Building EGCS Cross-Compiler

Dennis Newbold dnewbold@ivs.com
Sat Aug 29 00:17:00 GMT 1998


I downloaded binutils 2.9.1 and egcs1.03a from cygnus.  Downloaded and applied

all of Mumit Khan's patches.  Host is i386-mingw32.  Target is mipsel-gnu-elf.

Am running under cygwin32-b19 with update to cygwinb19.dll.  Wanted to run
in a cmd.exe window and use Mumit's native egcs102 compiler, but
C:\MINGW32\bin doesn't have a bash, which I need to run configure.

Binutils built fine w no problem.

After doing configure for egcs, I ran into a problem doing "make cross".
It had a problem doing a make in the texinfo subdirectory.  If anyone else has
had
this problem, or can shed some light on it, I'd appreciate it very much.
Attached are:

   1. output of running configure
   2. Makefile produced by configure
   3. output of doing "make cross"

The command line for executing configure was:

  ../egcs103a/configure --target=mipsel-gnu-elf --with-gnu-as --with-gnu-ld
--with-headers=/xmips/include --with-libs=/xmips/libs i386-mingw32

Thanks a lot, and have a nice weekend.

Dennis
dnewbold@ivs.com

-------------- next part --------------
host: NOHOST
targ: mipsel-gnu-elf
Copying /xmips/lib to /usr/local/mipsel-gnu-elf/lib
Copying /xmips/include to /usr/local/mipsel-gnu-elf/sys-include
Created "Makefile" in /H/try02/buildegcs
Links are now set up to build a cross-compiler for mipsel-gnu-elf
  from i386-pc-mingw32.
-------------- next part --------------
if [ -n "" ] && [ ! -d pic ]; then \
  mkdir pic; \
else true; fi
touch stamp-picdir
echo "# !Automatically generated from ../../egcs103a/libiberty/functions.def"\
  "- DO NOT EDIT!" >needed2.awk
grep '^DEFVAR(' < ../../egcs103a/libiberty/functions.def \
 | sed -e '/DEFVAR/s|DEFVAR.\([^,]*\).*|/\1/ { printf "#ifndef NEED_\1\\n#define NEED_\1\\n#endif\\n" }|' \
 >>needed2.awk
grep '^DEFFUNC(' < ../../egcs103a/libiberty/functions.def \
 | sed -e '/DEFFUNC/s|DEFFUNC.\([^,]*\).*|/\1/ { printf "#ifndef NEED_\1\\n#define NEED_\1\\n#endif\\n" }|' \
 >>needed2.awk
gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include  ../../egcs103a/libiberty/dummy.c 2>/dev/null
(gcc -o dummy -g -O2   dummy.o  ) >errors 2>&1 || true
echo "/* !Automatically generated from ../../egcs103a/libiberty/functions.def"\
  "- DO NOT EDIT! */" >lconfig.h
awk -f needed2.awk <errors >>lconfig.h
cp lconfig.h config.tmp
/bin/sh ../../egcs103a/libiberty/../move-if-change config.tmp config.h
touch stamp-config
test -z "" || \
  gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include   ../../egcs103a/libiberty/argv.c -o pic/argv.o
gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include  ../../egcs103a/libiberty/argv.c
test -z "" || \
  gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include   ../../egcs103a/libiberty/basename.c -o pic/basename.o
gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include  ../../egcs103a/libiberty/basename.c
test -z "" || \
  gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include   ../../egcs103a/libiberty/choose-temp.c -o pic/choose-temp.o
gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include  ../../egcs103a/libiberty/choose-temp.c
test -z "" || \
  gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include   ../../egcs103a/libiberty/concat.c -o pic/concat.o
gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include  ../../egcs103a/libiberty/concat.c
test -z "" || \
  gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include   ../../egcs103a/libiberty/cplus-dem.c -o pic/cplus-dem.o
gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include  ../../egcs103a/libiberty/cplus-dem.c
test -z "" || \
  gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include   ../../egcs103a/libiberty/fdmatch.c -o pic/fdmatch.o
gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include  ../../egcs103a/libiberty/fdmatch.c
test -z "" || \
  gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include   ../../egcs103a/libiberty/fnmatch.c -o pic/fnmatch.o
gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include  ../../egcs103a/libiberty/fnmatch.c
test -z "" || \
  gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include   ../../egcs103a/libiberty/getopt.c -o pic/getopt.o
gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include  ../../egcs103a/libiberty/getopt.c
test -z "" || \
  gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include   ../../egcs103a/libiberty/getopt1.c -o pic/getopt1.o
gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include  ../../egcs103a/libiberty/getopt1.c
test -z "" || \
  gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include   ../../egcs103a/libiberty/getruntime.c -o pic/getruntime.o
gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include  ../../egcs103a/libiberty/getruntime.c
test -z "" || \
  gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include   ../../egcs103a/libiberty/hex.c -o pic/hex.o
gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include  ../../egcs103a/libiberty/hex.c
test -z "" || \
  gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include   ../../egcs103a/libiberty/floatformat.c -o pic/floatformat.o
gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include  ../../egcs103a/libiberty/floatformat.c
test -z "" || \
  gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include   ../../egcs103a/libiberty/objalloc.c -o pic/objalloc.o
gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include  ../../egcs103a/libiberty/objalloc.c
test -z "" || \
  gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include   ../../egcs103a/libiberty/obstack.c -o pic/obstack.o
gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include  ../../egcs103a/libiberty/obstack.c
test -z "" || \
  gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include   ../../egcs103a/libiberty/pexecute.c -o pic/pexecute.o
gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include  ../../egcs103a/libiberty/pexecute.c
../../egcs103a/libiberty/pexecute.c: In function `pexecute':
../../egcs103a/libiberty/pexecute.c:292: warning: assignment discards `const' from pointer target type
test -z "" || \
  gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include   ../../egcs103a/libiberty/spaces.c -o pic/spaces.o
gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include  ../../egcs103a/libiberty/spaces.c
test -z "" || \
  gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include   ../../egcs103a/libiberty/strerror.c -o pic/strerror.o
gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include  ../../egcs103a/libiberty/strerror.c
test -z "" || \
  gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include   ../../egcs103a/libiberty/strsignal.c -o pic/strsignal.o
gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include  ../../egcs103a/libiberty/strsignal.c
test -z "" || \
  gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include   ../../egcs103a/libiberty/xatexit.c -o pic/xatexit.o
gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include  ../../egcs103a/libiberty/xatexit.c
test -z "" || \
  gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include   ../../egcs103a/libiberty/xexit.c -o pic/xexit.o
gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include  ../../egcs103a/libiberty/xexit.c
test -z "" || \
  gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include   ../../egcs103a/libiberty/xmalloc.c -o pic/xmalloc.o
gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include  ../../egcs103a/libiberty/xmalloc.c
test -z "" || \
  gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include   ../../egcs103a/libiberty/xstrdup.c -o pic/xstrdup.o
gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include  ../../egcs103a/libiberty/xstrdup.c
test -z "" || \
  gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include   ../../egcs103a/libiberty/xstrerror.c -o pic/xstrerror.o
gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include  ../../egcs103a/libiberty/xstrerror.c
echo "# !Automatically generated from ../../egcs103a/libiberty/functions.def"\
  "- DO NOT EDIT!" >needed.awk
grep '^DEF(' < ../../egcs103a/libiberty/functions.def \
    | sed -e '/DEF/s|DEF.\([^,]*\).*|/\1/ { printf "\1.o " }|' \
    >>needed.awk
rm -f lneeded-list
f=""; \
for i in `awk -f needed.awk <errors`  ; do \
  case " $f " in \
    *" $i "*) ;; \
    *) f="$f $i" ;; \
  esac ; \
done ; \
case $f in \
    *alloca.o*) f="$f xmalloc.o xexit.o" ;; \
esac ; \
echo $f >>lneeded-list
cp lneeded-list needed-tmp
/bin/sh ../../egcs103a/libiberty/../move-if-change needed-tmp needed-list
touch stamp-needed
test -z "" || \
  gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include   ../../egcs103a/libiberty/asprintf.c -o pic/asprintf.o
gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include  ../../egcs103a/libiberty/asprintf.c
test -z "" || \
  gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include   ../../egcs103a/libiberty/insque.c -o pic/insque.o
gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include  ../../egcs103a/libiberty/insque.c
test -z "" || \
  gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include   ../../egcs103a/libiberty/sigsetmask.c -o pic/sigsetmask.o
gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include  ../../egcs103a/libiberty/sigsetmask.c
test -z "" || \
  gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include   ../../egcs103a/libiberty/vasprintf.c -o pic/vasprintf.o
gcc -c -g -O2 -I. -I../../egcs103a/libiberty/../include  ../../egcs103a/libiberty/vasprintf.c
rm -rf libiberty.a
ar rc libiberty.a \
  argv.o basename.o choose-temp.o concat.o cplus-dem.o fdmatch.o fnmatch.o getopt.o getopt1.o getruntime.o hex.o floatformat.o objalloc.o obstack.o pexecute.o spaces.o strerror.o strsignal.o xatexit.o xexit.o xmalloc.o xstrdup.o xstrerror.o asprintf.o insque.o sigsetmask.o vasprintf.o
ranlib libiberty.a
echo argv.o basename.o choose-temp.o concat.o cplus-dem.o fdmatch.o fnmatch.o getopt.o getopt1.o getruntime.o hex.o floatformat.o objalloc.o obstack.o pexecute.o spaces.o strerror.o strsignal.o xatexit.o xexit.o xmalloc.o xstrdup.o xstrerror.o > required-list
rm -f stmp-sub-all
for dir in libtxi makeinfo util emacs; do \
  echo making sub-all in $dir; \
  (cd $dir && make bindir='/usr/local/bin' mandir='/usr/local/man/man1' manext='1' prefix='/usr/local' binprefix='' manprefix='' infodir='/usr/local/info' CFLAGS='-g -O2' CC='gcc' ALLOCA='' LDFLAGS='' DEFAULT_INFOPATH='/usr/local/info:.' INSTALL='/bin/sh /H/try02/egcs103a/install-sh -c' INSTALL_DATA='/bin/sh /H/try02/egcs103a/install-sh -c -m 644' INSTALL_PROGRAM='/bin/sh /H/try02/egcs103a/install-sh -c ' sub-all || exit 1); \
done
making sub-all in libtxi
gcc -c  -I. -I../../../egcs103a/texinfo/libtxi -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_TERMIOS_H=1 -DHAVE_TERMIO_H=1 -DHAVE_STRINGS_H=1 -DHAVE_STRING_H=1 -DHAVE_VARARGS_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_FCNTL_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_ALLOCA=1 -DHAVE_SETVBUF=1 -DHAVE_GETCWD=1 -DHAVE_MEMSET=1 -DHAVE_BZERO=1 -DHAVE_STRCHR=1 -DHAVE_STRCASECMP=1 -DHAVE_VFPRINTF=1 -DHAVE_VSPRINTF=1 -DHAVE_STRERROR=1 -DHAVE_SIGPROCMASK=1 -DHAVE_MEMCPY=1 -DHAVE_MEMMOVE=1 -DHAVE_STRDUP=1  -g -O2 ../../../egcs103a/texinfo/libtxi/getopt.c
gcc -c  -I. -I../../../egcs103a/texinfo/libtxi -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_TERMIOS_H=1 -DHAVE_TERMIO_H=1 -DHAVE_STRINGS_H=1 -DHAVE_STRING_H=1 -DHAVE_VARARGS_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_FCNTL_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_ALLOCA=1 -DHAVE_SETVBUF=1 -DHAVE_GETCWD=1 -DHAVE_MEMSET=1 -DHAVE_BZERO=1 -DHAVE_STRCHR=1 -DHAVE_STRCASECMP=1 -DHAVE_VFPRINTF=1 -DHAVE_VSPRINTF=1 -DHAVE_STRERROR=1 -DHAVE_SIGPROCMASK=1 -DHAVE_MEMCPY=1 -DHAVE_MEMMOVE=1 -DHAVE_STRDUP=1  -g -O2 ../../../egcs103a/texinfo/libtxi/getopt1.c
gcc -c  -I. -I../../../egcs103a/texinfo/libtxi -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_TERMIOS_H=1 -DHAVE_TERMIO_H=1 -DHAVE_STRINGS_H=1 -DHAVE_STRING_H=1 -DHAVE_VARARGS_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_FCNTL_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_ALLOCA=1 -DHAVE_SETVBUF=1 -DHAVE_GETCWD=1 -DHAVE_MEMSET=1 -DHAVE_BZERO=1 -DHAVE_STRCHR=1 -DHAVE_STRCASECMP=1 -DHAVE_VFPRINTF=1 -DHAVE_VSPRINTF=1 -DHAVE_STRERROR=1 -DHAVE_SIGPROCMASK=1 -DHAVE_MEMCPY=1 -DHAVE_MEMMOVE=1 -DHAVE_STRDUP=1  -g -O2 ../../../egcs103a/texinfo/libtxi/bzero.c
rm -f libtxi.a
ar cq libtxi.a getopt.o getopt1.o bzero.o  
ranlib libtxi.a
making sub-all in makeinfo
gcc -c  -I. -I../../../egcs103a/texinfo/makeinfo -I../../../egcs103a/texinfo/makeinfo/../libtxi -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_TERMIOS_H=1 -DHAVE_TERMIO_H=1 -DHAVE_STRINGS_H=1 -DHAVE_STRING_H=1 -DHAVE_VARARGS_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_FCNTL_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_ALLOCA=1 -DHAVE_SETVBUF=1 -DHAVE_GETCWD=1 -DHAVE_MEMSET=1 -DHAVE_BZERO=1 -DHAVE_STRCHR=1 -DHAVE_STRCASECMP=1 -DHAVE_VFPRINTF=1 -DHAVE_VSPRINTF=1 -DHAVE_STRERROR=1 -DHAVE_SIGPROCMASK=1 -DHAVE_MEMCPY=1 -DHAVE_MEMMOVE=1 -DHAVE_STRDUP=1  -g -O2 ../../../egcs103a/texinfo/makeinfo/makeinfo.c
gcc -c  -I. -I../../../egcs103a/texinfo/makeinfo -I../../../egcs103a/texinfo/makeinfo/../libtxi -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_TERMIOS_H=1 -DHAVE_TERMIO_H=1 -DHAVE_STRINGS_H=1 -DHAVE_STRING_H=1 -DHAVE_VARARGS_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_FCNTL_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_ALLOCA=1 -DHAVE_SETVBUF=1 -DHAVE_GETCWD=1 -DHAVE_MEMSET=1 -DHAVE_BZERO=1 -DHAVE_STRCHR=1 -DHAVE_STRCASECMP=1 -DHAVE_VFPRINTF=1 -DHAVE_VSPRINTF=1 -DHAVE_STRERROR=1 -DHAVE_SIGPROCMASK=1 -DHAVE_MEMCPY=1 -DHAVE_MEMMOVE=1 -DHAVE_STRDUP=1  -g -O2 ../../../egcs103a/texinfo/makeinfo/multi.c
gcc  -o makeinfo makeinfo.o multi.o -L../libtxi -ltxi 
./makeinfo --no-split -I../../../egcs103a/texinfo/makeinfo makeinfo.texi
makeinfo.texi: error 0
make[2]: *** [makeinfo.info] Error 2
making sub-all in util
make[2]: *** No rule to make target `texindex.exe', needed by `all'.  Stop.
making sub-all in emacs
make[2]: Nothing to be done for `sub-all'.
touch stmp-sub-all
./makeinfo/makeinfo.exe -I../../egcs103a/texinfo texinfo.texi
texinfo.texi: error 0
make[1]: *** [texinfo] Error 2
make: *** [all-texinfo] Error 2


More information about the Cygwin mailing list