public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* RE: Succsessfull GCC 3.1 with Cygwin and GNAT
@ 2002-06-03 22:14 Billinghurst, David (CRTS)
  2002-06-04  4:28 ` Nicholas Wourms
  0 siblings, 1 reply; 5+ messages in thread
From: Billinghurst, David (CRTS) @ 2002-06-03 22:14 UTC (permalink / raw)
  To: Andre Leis, gcc; +Cc: cygwin

OK.  This works for me too.

Some additional details:
  - the bootstrap compiler is the gnat-3.14p-nt.exe package
  - it works by configuring with a relative path, so that
    the native win32 bootstrap compiler isn't confused by 
    cygwin paths
  - the same trick doesn't work with gcc-3.2 as gnatmake chokes

The resulting cygwin 3.1 gcc works nicely as a bootstrap
compiler, so I will attempt to build ada as part of my 
regular testing.

-----Original Message-----
From: Andre Leis [mailto:a.leis@gmx.net]
Sent: Tuesday, 28 May 2002 7:01 
To: gcc@gcc.gnu.org
Subject: Succsessfull GCC 3.1 with Cygwin and GNAT


Hello!

I used the lastest version of cygwin to build gcc3.1.I expirenced some
problems wich mainly where caused by myself. I renamed /gnat/bin/gcc to
/gnat/bin/gnatgcc and had gnat/bin/ in my path.

../gcc-3.1/configure --enable-threads=win32

During the configure run I checked, that a ada compiler was found and
objdir/gcc/ada was created.

After the make run with :

make CFLAGS='-O' LIBCFLAGS='-g -O2'
LIBCXXFLAGS='-g -O2 -fno-implicit-templates' bootstrap

I tried to make the ada-libs and tools with

cd gcc
make gnatlib_and_tools

This make run always ended up in an error in sysdep.c.
ICANON was not defined.

I tried to change in sysdep.c.


#if defined (linux) || defined (sun) || defined (sgi) || defined (__EMX__) \
  || (defined (__osf__) && ! defined (__alpha_vxworks)) || defined (WINNT) \
  || defined (__MACHTEN__)
#include <termios.h>

into

#if defined (linux) || defined (sun) || defined (sgi) || defined (__EMX__) \
  || (defined (__osf__) && ! defined (__alpha_vxworks)) || defined (WINNT) \
  || defined (__MACHTEN__) || defined (__CYGWIN32__)
#include <termios.h>

With this new sysdep.c I could succsessfull build and install the ada libs
and tools.

Btw.

$ ../gcc-3.1/config.guess
i686-pc-cygwin

$ gcc -v
Reading specs from /usr/local/lib/gcc-lib/i686-pc-cygwin/3.1/specs
Configured with: ../gcc-3.1/configure --enable-threads=win32 :
(reconfigured) ..
/gcc-3.1/configure --enable-threads=win32
Thread model: win32
gcc version 3.1

$ uname -a
CYGWIN_NT-5.0 SLARTIBARTFASS 1.3.10(0.51/3/2) 2002-02-25 11:14 i686 unknown


André

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: Succsessfull GCC 3.1 with Cygwin and GNAT
  2002-06-03 22:14 Succsessfull GCC 3.1 with Cygwin and GNAT Billinghurst, David (CRTS)
@ 2002-06-04  4:28 ` Nicholas Wourms
  0 siblings, 0 replies; 5+ messages in thread
From: Nicholas Wourms @ 2002-06-04  4:28 UTC (permalink / raw)
  To: Billinghurst, David (CRTS), Andre Leis, gcc; +Cc: cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 2944 bytes --]

Hi,

Quick question, doesn't cygwin have enough support to use Posix Threads? 
Or should we still stick to Win32 threading?

Cheers,
Nicholas
--- "Billinghurst, David (CRTS)" <David.Billinghurst@riotinto.com> wrote:
> OK.  This works for me too.
> 
> Some additional details:
>   - the bootstrap compiler is the gnat-3.14p-nt.exe package
>   - it works by configuring with a relative path, so that
>     the native win32 bootstrap compiler isn't confused by 
>     cygwin paths
>   - the same trick doesn't work with gcc-3.2 as gnatmake chokes
> 
> The resulting cygwin 3.1 gcc works nicely as a bootstrap
> compiler, so I will attempt to build ada as part of my 
> regular testing.
> 
> -----Original Message-----
> From: Andre Leis [mailto:a.leis@gmx.net]
> Sent: Tuesday, 28 May 2002 7:01 
> To: gcc@gcc.gnu.org
> Subject: Succsessfull GCC 3.1 with Cygwin and GNAT
> 
> 
> Hello!
> 
> I used the lastest version of cygwin to build gcc3.1.I expirenced some
> problems wich mainly where caused by myself. I renamed /gnat/bin/gcc to
> /gnat/bin/gnatgcc and had gnat/bin/ in my path.
> 
> ../gcc-3.1/configure --enable-threads=win32
> 
> During the configure run I checked, that a ada compiler was found and
> objdir/gcc/ada was created.
> 
> After the make run with :
> 
> make CFLAGS='-O' LIBCFLAGS='-g -O2'
> LIBCXXFLAGS='-g -O2 -fno-implicit-templates' bootstrap
> 
> I tried to make the ada-libs and tools with
> 
> cd gcc
> make gnatlib_and_tools
> 
> This make run always ended up in an error in sysdep.c.
> ICANON was not defined.
> 
> I tried to change in sysdep.c.
> 
> 
> #if defined (linux) || defined (sun) || defined (sgi) || defined
> (__EMX__) \
>   || (defined (__osf__) && ! defined (__alpha_vxworks)) || defined
> (WINNT) \
>   || defined (__MACHTEN__)
> #include <termios.h>
> 
> into
> 
> #if defined (linux) || defined (sun) || defined (sgi) || defined
> (__EMX__) \
>   || (defined (__osf__) && ! defined (__alpha_vxworks)) || defined
> (WINNT) \
>   || defined (__MACHTEN__) || defined (__CYGWIN32__)
> #include <termios.h>
> 
> With this new sysdep.c I could succsessfull build and install the ada
> libs
> and tools.
> 
> Btw.
> 
> $ ../gcc-3.1/config.guess
> i686-pc-cygwin
> 
> $ gcc -v
> Reading specs from /usr/local/lib/gcc-lib/i686-pc-cygwin/3.1/specs
> Configured with: ../gcc-3.1/configure --enable-threads=win32 :
> (reconfigured) ..
> /gcc-3.1/configure --enable-threads=win32
> Thread model: win32
> gcc version 3.1
> 
> $ uname -a
> CYGWIN_NT-5.0 SLARTIBARTFASS 1.3.10(0.51/3/2) 2002-02-25 11:14 i686
> unknown
> 
> 
> André
> 
> 
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
> 


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Succsessfull GCC 3.1 with Cygwin and GNAT
  2002-05-27 21:31 Andre Leis
@ 2002-05-28 13:45 ` Janis Johnson
  0 siblings, 0 replies; 5+ messages in thread
From: Janis Johnson @ 2002-05-28 13:45 UTC (permalink / raw)
  To: Andre Leis; +Cc: gcc

On Mon, May 27, 2002 at 11:00:50PM +0200, Andre Leis wrote:
>
[snip]
> 
> $ ../gcc-3.1/config.guess
> i686-pc-cygwin
> 
> $ gcc -v
> Reading specs from /usr/local/lib/gcc-lib/i686-pc-cygwin/3.1/specs
> Configured with: ../gcc-3.1/configure --enable-threads=win32 :
> (reconfigured) ..
> /gcc-3.1/configure --enable-threads=win32
> Thread model: win32
> gcc version 3.1
> 
> $ uname -a
> CYGWIN_NT-5.0 SLARTIBARTFASS 1.3.10(0.51/3/2) 2002-02-25 11:14 i686 unknown

Thanks!  Your message is linked from the GCC 3.1 build status list at
http://gcc.gnu.org/gcc-3.1/buildstat.html.

Janis

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: Succsessfull GCC 3.1 with Cygwin and GNAT
@ 2002-05-27 22:24 Billinghurst, David (CRTS)
  0 siblings, 0 replies; 5+ messages in thread
From: Billinghurst, David (CRTS) @ 2002-05-27 22:24 UTC (permalink / raw)
  To: Andre Leis, gcc

Andre,

What did you use as the bootstrap compiler, and where did you get it from?  

-----Original Message-----
From: Andre Leis [mailto:a.leis@gmx.net]
Sent: Tuesday, 28 May 2002 7:01 
To: gcc@gcc.gnu.org
Subject: Succsessfull GCC 3.1 with Cygwin and GNAT


Hello!

I used the lastest version of cygwin to build gcc3.1.I expirenced some
problems wich mainly where caused by myself. I renamed /gnat/bin/gcc to
/gnat/bin/gnatgcc and had gnat/bin/ in my path.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Succsessfull GCC 3.1 with Cygwin and GNAT
@ 2002-05-27 21:31 Andre Leis
  2002-05-28 13:45 ` Janis Johnson
  0 siblings, 1 reply; 5+ messages in thread
From: Andre Leis @ 2002-05-27 21:31 UTC (permalink / raw)
  To: gcc

Hello!

I used the lastest version of cygwin to build gcc3.1.I expirenced some
problems wich mainly where caused by myself. I renamed /gnat/bin/gcc to
/gnat/bin/gnatgcc and had gnat/bin/ in my path.

../gcc-3.1/configure --enable-threads=win32

During the configure run I checked, that a ada compiler was found and
objdir/gcc/ada was created.

After the make run with :

make CFLAGS='-O' LIBCFLAGS='-g -O2'
LIBCXXFLAGS='-g -O2 -fno-implicit-templates' bootstrap

I tried to make the ada-libs and tools with

cd gcc
make gnatlib_and_tools

This make run always ended up in an error in sysdep.c.
ICANON was not defined.

I tried to change in sysdep.c.


#if defined (linux) || defined (sun) || defined (sgi) || defined (__EMX__) \
  || (defined (__osf__) && ! defined (__alpha_vxworks)) || defined (WINNT) \
  || defined (__MACHTEN__)
#include <termios.h>

into

#if defined (linux) || defined (sun) || defined (sgi) || defined (__EMX__) \
  || (defined (__osf__) && ! defined (__alpha_vxworks)) || defined (WINNT) \
  || defined (__MACHTEN__) || defined (__CYGWIN32__)
#include <termios.h>

With this new sysdep.c I could succsessfull build and install the ada libs
and tools.

Btw.

$ ../gcc-3.1/config.guess
i686-pc-cygwin

$ gcc -v
Reading specs from /usr/local/lib/gcc-lib/i686-pc-cygwin/3.1/specs
Configured with: ../gcc-3.1/configure --enable-threads=win32 :
(reconfigured) ..
/gcc-3.1/configure --enable-threads=win32
Thread model: win32
gcc version 3.1

$ uname -a
CYGWIN_NT-5.0 SLARTIBARTFASS 1.3.10(0.51/3/2) 2002-02-25 11:14 i686 unknown


André

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-06-04 11:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-03 22:14 Succsessfull GCC 3.1 with Cygwin and GNAT Billinghurst, David (CRTS)
2002-06-04  4:28 ` Nicholas Wourms
  -- strict thread matches above, loose matches on Subject: below --
2002-05-27 22:24 Billinghurst, David (CRTS)
2002-05-27 21:31 Andre Leis
2002-05-28 13:45 ` Janis Johnson

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