This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


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

Re: Building a CrossGCC


The setup.exe program for cygwin-1.1.0 should download each file
individually from the web.
It must be installed before you can install the snapshot.

I simply went to the head of the cygwin installation tree 'cd /'
and untarred it.  The snapshot install over-writes the
equivalent files from the original snapshot, except for
cygwin1.dll, which "fails" to over-write since it is busy.  I
extract that file separately, close cygwin, and copy it using
Windows.

For the cross compile, you must supply the include directory for
the target, for example by the argument to --with-headers.  The
newlib source should be available on cygwin mirrors.  Sorry,
beyond that I'm no expert on your porject.

----- Original Message -----
From: "Germain Ivanoff-Trinadtzaty"
<Germain.Ivanoff-Trinadtzaty@studi.epfl.ch>
To: <cygwin@sourceware.cygnus.com>
Sent: Sunday, May 14, 2000 6:53 AM
Subject: Building a CrossGCC


I have installed Cygwin 1.1.0 (from cygwin/latest) under Windows
2K.

*  how to install snapshots ?
   ~~~~~~~~~~~~~~~~~~~~~~~~


   I could configure/build/install binutils-19990818 (there are
many
   warnings at compile-time).

   BUT I CANNOT BUILD THE gcc-2.95.2-1-src (from cygwin/latest)
                  nor the gcc-2.95.2       (from gnu/gcc).

   my commands:

      cd build-gcc
      ../gcc-2.95.2/configure --target=m68k-coff          \
                              --with-gnu-as               \
                              --with-gnu-ld               \
                              --enable-languages="c c++"  \
                              --with-headers=?????
      make all

   I don't have any dir called sys-include. So I tried to put
there
   several dirs from ../glibc-2.1.3 (those whose path contain
'm68k')
   but I always get these:

      - warning in libiberty/pexecute.c:379

      - warning in gcc/fixinc/fixincl.c:349: 'SIGIOT' undeclared
in
        function 'initialize'

        make[2]: *** [fixincl.o] Error 1

      - warning in gcc/libgcc2.c:41: stdlib.h: not found
                   gcc/libgcc2.c:42: unistd.h: not found

        make[3]: *** [libgcc2.o] Error 1

      - ...
        make: *** [all-gcc] Error 2

   I tried to comment out these #include <stdlib.h> and
<unistd.h>
   in file gcc/libgcc2.c and in gcc/frame.c, but then I get
this:

      - warning in gcc/libgcc1-test.c:101: conflicting types for
        built-in function 'memcpy'

      - gcc/cpp.texi: Error 0

        make[1]: *** [cpp.info] Error 2

        make: *** [all-gcc] Error 2




   I don't know what to do. May be look for newlib ?
   What options, or what patch to apply ?

   I really need this cross-compiler for my project at school.
   Anyone could help ?

   Thank you very much.

Germain Ivanoff


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com




--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


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