Build report: Successful build of gcc 4.1.2 on Cygwin (Win XP Pro SP2)

2007-04-05 Thread Jesper de Jong

I successfully build gcc-4.1.2 on Cygwin running on Windows XP
Professional with SP2.

Output from running /home/jesper/gcc-4.1.2/config.guess:
   i686-pc-cygwin

Output of 'gcc -v':
   Using built-in specs.
   Target: i686-pc-cygwin
   Configured with: /home/jesper/gcc-4.1.2/configure
--enable-threads=win32 --with-cpu=i686 --with-arch=i686
--with-tune=i686 --enable-languages=c,c++
   Thread model: win32
   gcc version 4.1.2

Languages: C, C++

Here are my notes about the process:

Followed the instructions at: http://gcc.gnu.org/install/index.html

Check prerequisites (http://gcc.gnu.org/install/prerequisites.html):
   gzip version 1.2.4  OK, I have 1.3.9
   bzip2 version 1.0.2 OK, I have 1.0.3
   GNU make version 3.79.1 OK, I have 3.81
   GNU tar version 1.14OK, I have 1.16.1
   GNU Multiple Precision Library (GMP) version 4.1Not yet
installed. Run Cygwin setup and get version 4.2.1-1 (category Libs)
   MPFR Library version 2.2.1  Not yet
installed. Run Cygwin setup and get version 2.2.1-1 (category Libs)

Download (http://gcc.gnu.org/install/download.html):
   I am only interested in the C and C++ compiler, so I download the
core and g++ packages (not the full distribution):
gcc-core-4.1.2.tar.bz2, gcc-g++-4.1.2.tar.bz2
   Unzip and untar these (using 7-Zip) into /home/jesper (which maps
to C:\cygwin\home\jesper)

Configuration (http://gcc.gnu.org/install/configure.html):
   cd /home/jesper
   mkdir gccobj
   cd gccobj
   /home/jesper/gcc-4.1.2/configure --enable-threads=win32
--with-cpu=i686 --with-arch=i686 --with-tune=i686
--enable-languages=c,c++

   The configuration seems to complain that the right version of GMP
is not installed, even though I installed it (see above).
   I ignore the message.

Building (http://gcc.gnu.org/install/build.html):
   make

Final install (http://gcc.gnu.org/install/finalinstall.html):
   make install


Jesper de Jong
The Netherlands


Re: Build report: Successful build of gcc 4.1.2 on Cygwin (Win XP Pro SP2)

2007-04-05 Thread Jesper de Jong

Hello Brian,

Maybe because the configuration instructions:
http://gcc.gnu.org/install/configure.html
suggest that there is a choice and if you don't know better you will
think "I'm using Windows so I can use win32 threads".

Jesper

2007/4/5, Brian Dessent <[EMAIL PROTECTED]>:

Jesper de Jong wrote:

> /home/jesper/gcc-4.1.2/configure --enable-threads=win32

Where do people keep getting this idea that Cygwin uses win32 threads?
It doesn't, and you've most likely built a compiler that is subtly
broken in some way.  Cygwin uses pthreads, this should be
--enable-threads=posix.

Brian





--
Jesper de Jong
[EMAIL PROTECTED]


Build report: Successful build of gcc 4.1.2 on Cygwin (pthreads)

2007-04-06 Thread Jesper de Jong

I built gcc 4.1.2 again on Cygwin but this time with pthreads. No
problems at all during compilation.

Output of config.guess:

i686-pc-cygwin

Output of gcc -v:

Using built-in specs.
Target: i686-pc-cygwin
Configured with: /home/jesper/gcc-4.1.2/configure
--enable-threads=posix --with-cpu=i686 --with-arch=i686
--with-tune=i686 --enable-languages=c,c++
Thread model: posix
gcc version 4.1.2

Languages: C, C++

Jesper de Jong
The Netherlands


Build report for gcc 4.1.1 on Cygwin

2006-09-07 Thread Jesper de Jong

I successfully built GCC version 4.1.1 on Cygwin. The details:

Output of running config.guess:

i686-pc-cygwin

Output of gcc -v:

Using built-in specs.
Target: i686-pc-cygwin
Configured with: ../gcc-4.1.1/configure --prefix=/usr/local/gcc-4.1.1 
--program-suffix=-4.1.1 --enable-threads=win32 --with-cpu=i686 
--with-arch=i686 --with-tune=i686 --enable-languages=c,c++

Thread model: win32
gcc version 4.1.1

Language subset: C, C++

Operating system and environment:
Microsoft Windows 2000 Professional, Service Pack 4

The build went without problems.

Jesper de Jong
The Netherlands