public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Newbie: problems building gcc 2.95.2
@ 1999-11-23 18:23 Serge S. Spiridonoff
  1999-11-23 20:30 ` HOWTO build GCC-2.95.2 on Cygb20.1 [Re: Newbie: problems building gcc 2.95.2] Mumit Khan
  1999-11-30 23:39 ` Newbie: problems building gcc 2.95.2 Serge S. Spiridonoff
  0 siblings, 2 replies; 8+ messages in thread
From: Serge S. Spiridonoff @ 1999-11-23 18:23 UTC (permalink / raw)
  To: cygwin

Hi!

I'm trying to build gcc under Windows NT but having troubles with it.

I've done the following things:

- installed Cygwin B20.1
- installed the patch gcc-2.95.2-cygb20.tar.gz
- downloaded and unpacked gcc-2.95.2.tar.bz2 to /usr/local/src/gcc-2.95.2
- created /usr/local/build/gcc-2.95.2

scenario 1.

$ cd /usr/local/build/gcc-2.95.2
$ bash /usr/local/src/gcc-2.95.2/configure -v i586-cygwin32

this works fine

$ make > make.log 2>&1

this fails with
/usr/local/src/gcc-2.95.2/gcc/libgcc2.c:41: stdlib.h: No such file or
directory
/usr/local/src/gcc-2.95.2/gcc/libgcc2.c:42: unistd.h: No such file or
directory


scenario 2.

install the gcc-2.95.2-x86-win32.diff patch first

in this case, configure fails with
Configuring gcc...
: not found
: not found
: not found
: not found
: not found
/usr/local/src/gcc-2.95.2/gcc/configure: 123: Syntax error: Bad for loop
variable
Configure in /Cygnus/usr/local/build/gcc-2.95.2/gcc failed, exiting.


scenario 3.

I tried to not install the full patch (gcc-2.95.2-x86-win32.diff) but only
relative-path and libgcc2 patches.

In this case configure works but make fails telling that nothing to be done
for [all] (or something like that).


What am I doing wrong?


Thanks in advance
Serge S. Spiridonoff


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

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

* HOWTO build GCC-2.95.2 on Cygb20.1 [Re: Newbie: problems building gcc 2.95.2]
  1999-11-23 18:23 Newbie: problems building gcc 2.95.2 Serge S. Spiridonoff
@ 1999-11-23 20:30 ` Mumit Khan
  1999-11-24 12:41   ` Serge S. Spiridonoff
  1999-11-30 23:39   ` Mumit Khan
  1999-11-30 23:39 ` Newbie: problems building gcc 2.95.2 Serge S. Spiridonoff
  1 sibling, 2 replies; 8+ messages in thread
From: Mumit Khan @ 1999-11-23 20:30 UTC (permalink / raw)
  To: Serge S. Spiridonoff; +Cc: cygwin

On Wed, 24 Nov 1999, Serge S. Spiridonoff wrote:

> I'm trying to build gcc under Windows NT but having troubles with it.
> 
> I've done the following things:
> 
> - installed Cygwin B20.1
> - installed the patch gcc-2.95.2-cygb20.tar.gz
> - downloaded and unpacked gcc-2.95.2.tar.bz2 to /usr/local/src/gcc-2.95.2
> - created /usr/local/build/gcc-2.95.2
> 
> scenario 1.
> 
> $ cd /usr/local/build/gcc-2.95.2
> $ bash /usr/local/src/gcc-2.95.2/configure -v i586-cygwin32
> 
> this works fine
> 
> $ make > make.log 2>&1
> 
> this fails with
> /usr/local/src/gcc-2.95.2/gcc/libgcc2.c:41: stdlib.h: No such file or
> directory
> /usr/local/src/gcc-2.95.2/gcc/libgcc2.c:42: unistd.h: No such file or
> directory

The trouble is due to the layout, and where the headers are. It's quite
to trivial to get it to work however, so read on.

> scenario 2.
> 
> install the gcc-2.95.2-x86-win32.diff patch first
> 
> in this case, configure fails with
> Configuring gcc...
> : not found

Yeah, the usual text/binary stuff, and possibly that you don't have
/bin/sh.

Here's what I do:

0. Apologies in advance for all the unintentional typos and accidental 
  omissions in the following recipe that may add hours of frustration 
  ;-)

1. Make mounts binary. You'll thank me someday (before anyone yells, 
  it's just for building gcc, otherwise the specs file won't work on 
  binary mounts). Also patching may have trouble (the trick is to
  use -l or --ignore-whitespace option to tell patch to ignore 
  whitespace).

2. Get gcc-2.95.2.tar.gz and unpack.
3. Get my patches and apply:
   
   $ cd /usr/local/src
   $ tar zxf /tmp/gcc-2.95.2.tar.gz
   $ cd /usr/local/src/gcc-2.95.2
   $ patch -p1 -s < /tmp/gcc-2.95.2-x86-win32.diff

4. The patching process screws up timestamps, and unless you have
  autoheader, and possibly a few other tools, you're in trouble. Fix
  the timestamps with the script. Cut out the section between 
  CUT FROM HERE and CUT TO HERE, put it into a file, and feed it
  bash from the toplevel gcc-2.95.2 directory.

================== CUT FROM HERE ...
#
#! /bin/sh
#

"Fixing local tree timestamps"
touch `find . -name configure -print`
touch `find texinfo -name Makefile.in -print`
touch `find texinfo -name \*.pot -print`
touch `find texinfo -name \*.gmo -print`
for f in gcc/c-parse.y \
	 gcc/c-parse.h \
	 gcc/c-parse.c \
	 gcc/cstamp-h.in \
	 gcc/c-gperf.h \
	 gcc/cexp.c \
	 gcc/cp/parse.c \
	 gcc/cp/parse.h \
	 gcc/objc/objc-parse.y \
	 gcc/objc/objc-parse.c \
	 gcc/java/parse.h \
	 gcc/java/parse.c \
	 gcc/java/parse-scan.c \
	 libf2c/libU77/stamp-h.in \
	 contrib/fixinc/fixincl.x \
	 contrib/fixinc/inclhack.sh \
	 contrib/fixinc/fixincl.sh \
	 gcc/fixinc/fixincl.x \
	 gcc/fixinc/inclhack.sh \
	 gcc/fixinc/fixincl.sh
do
	if [ -f $f ]; then
		touch $f
	fi
done

exit 0
#================== TO HERE 
    
   $ cd /usr/local/src/gcc-2.95.2
   $ bash /tmp/update_timestamps

   Even if you have autoheader, bison, flex, etc, installed, I still
   recommend fixing timestamps since life's easier this way.

5. Configure (NOTE the options, these are crucial).

   $ mkdir /usr/local/build/gcc-2.95.2
   $ cd /usr/local/build/gcc-2.95.2
   $ CONFIG_SHELL=bash bash /usr/local/src/gcc-2.95.2/configure \
     --prefix=/Cygnus/cygwin-b20 \
     --exec-prefix=/Cygnus/cygwin-b20/H-i586-cygwin32 \
     -v i586-cygwin32
   
   If your Cygwin b20.1 install root is something other than /Cygnus,
   use that instead (eg., //D/Cygnus if you installed to D: drive).

   These "interesting" prefix and exec-prefix are needed to make sure
   the compiler can find the standard includes and libraries, which
   are installed as "target" includes and headers instead of to the
   usual /usr/include and /usr/lib.

5. Build: Note that `make bootstrap' fails mysteriously depending on
   the winsup/cygwin dll version, so you're best off making the build,
   installing it, using that to make it again, and installing that 
   again. Poor man's bootstrap, and in fact, I believe that's how
   Cygnus does it. So just repeat the next two steps.
   
   $ make > make.log 2>&1

6. Install: If you want to install over the existing compiler, just run
   
   $ make install > install.log 2>&1

   If you want to install to a different place, which is what I do, pass
   prefix and exec_prefix variables to Make:

   $ make prefix=/usr/local/gcc-2.95.2 \
     exec_prefix=/usr/local/gcc-2.95.2/H-i586-cygwin32 \
     install > install.log 2>&1 
   
   The relative pathname changes will make things work just fine even
   if you install it elsewhere. These patches are finally in mainline
   GCC, thanks to Tom Tromey for finaly taking the time to put it
   together!

7. Repeat 5 and 6 after running `make clean' at least once to get a good
   build, and to make sure the compiler can bootstrap itself. If you've
   installed to a different place (6.b), then prepend that to PATH:
     
   $ export PATH=/usr/local/gcc-2.95.2/H-i586-cygwin32/bin:$PATH

   Go to 5.

> : not found
> : not found
> : not found
> : not found
> /usr/local/src/gcc-2.95.2/gcc/configure: 123: Syntax error: Bad for loop
> variable
> Configure in /Cygnus/usr/local/build/gcc-2.95.2/gcc failed, exiting.
> 
> 
> scenario 3.
> 
> I tried to not install the full patch (gcc-2.95.2-x86-win32.diff) but only
> relative-path and libgcc2 patches.

I recommend installing the whole thing. I don't "support" the individual
pieces -- think of those as for exposition only.

Regards,
Mumit



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

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

* RE: HOWTO build GCC-2.95.2 on Cygb20.1 [Re: Newbie: problems building gcc 2.95.2]
  1999-11-23 20:30 ` HOWTO build GCC-2.95.2 on Cygb20.1 [Re: Newbie: problems building gcc 2.95.2] Mumit Khan
@ 1999-11-24 12:41   ` Serge S. Spiridonoff
  1999-11-30 23:39     ` Serge S. Spiridonoff
  1999-11-30 23:39   ` Mumit Khan
  1 sibling, 1 reply; 8+ messages in thread
From: Serge S. Spiridonoff @ 1999-11-24 12:41 UTC (permalink / raw)
  To: Mumit Khan; +Cc: Cygwin Mailing List

> 1. Make mounts binary. You'll thank me someday (before anyone yells,
>   it's just for building gcc, otherwise the specs file won't work on
>   binary mounts). Also patching may have trouble (the trick is to
>   use -l or --ignore-whitespace option to tell patch to ignore
>   whitespace).

Could you please explain what do you mean by "make mounts binary"?

After installing Cygwin I've made several mounts like
   $ mount -b h:\\cygwin /
and this appears to be the source of all my troubles with building gcc.

As I wrote before configure returned lots of "not found" errors.
It complained about lines in gcc/configure file. Looking at that lines I saw
that they end with CRLF. CRLF appeared there after I applied the
gcc-2.95.2-x86-win32 patch.

Anyway, today I remounted all my mounts without -b (actually, I've changed
"fbinary" value from 1 to 0 directly in the NT registry and re-started
bash).
After that, configure worked (and I'm very happy now:) and even make almost
worked.

"Almost" means that it made gcc and libs. However, after that the following
errors occured:

/Cygnus/usr/local/build/gcc-2.95.2/texinfo/makeinfo/makeinfo   -I/usr/local/
src/gcc-2.95.2/gcc -o gcc.info /usr/local/src/gcc-2.95.2/gcc/gcc.texi
Making info file `gcc.info' from `/usr/local/src/gcc-2.95.2/gcc/gcc.texi'.
/usr/local/src/gcc-2.95.2/gcc/gcc.texi:305: @include invoke.texi: No such
file or directory.
/usr/local/src/gcc-2.95.2/gcc/gcc.texi:305: @include install.texi: No such
file or directory.
/usr/local/src/gcc-2.95.2/gcc/gcc.texi:306: @include extend.texi: No such
file or directory.

It is very strange for me because invoke.texi and other files exist in the
same directory as gcc.texi (the file being compiled) and that directory is
specified by /I option. I don't understand why makeinfo can't find them.

Does anyone have any thoughts how to solve this errors?

Thanks in advance,
Serge S. Spiridonoff


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

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

* RE: HOWTO build GCC-2.95.2 on Cygb20.1 [Re: Newbie: problems building gcc 2.95.2]
  1999-11-24 12:41   ` Serge S. Spiridonoff
@ 1999-11-30 23:39     ` Serge S. Spiridonoff
  0 siblings, 0 replies; 8+ messages in thread
From: Serge S. Spiridonoff @ 1999-11-30 23:39 UTC (permalink / raw)
  To: Mumit Khan; +Cc: Cygwin Mailing List

> 1. Make mounts binary. You'll thank me someday (before anyone yells,
>   it's just for building gcc, otherwise the specs file won't work on
>   binary mounts). Also patching may have trouble (the trick is to
>   use -l or --ignore-whitespace option to tell patch to ignore
>   whitespace).

Could you please explain what do you mean by "make mounts binary"?

After installing Cygwin I've made several mounts like
   $ mount -b h:\\cygwin /
and this appears to be the source of all my troubles with building gcc.

As I wrote before configure returned lots of "not found" errors.
It complained about lines in gcc/configure file. Looking at that lines I saw
that they end with CRLF. CRLF appeared there after I applied the
gcc-2.95.2-x86-win32 patch.

Anyway, today I remounted all my mounts without -b (actually, I've changed
"fbinary" value from 1 to 0 directly in the NT registry and re-started
bash).
After that, configure worked (and I'm very happy now:) and even make almost
worked.

"Almost" means that it made gcc and libs. However, after that the following
errors occured:

/Cygnus/usr/local/build/gcc-2.95.2/texinfo/makeinfo/makeinfo   -I/usr/local/
src/gcc-2.95.2/gcc -o gcc.info /usr/local/src/gcc-2.95.2/gcc/gcc.texi
Making info file `gcc.info' from `/usr/local/src/gcc-2.95.2/gcc/gcc.texi'.
/usr/local/src/gcc-2.95.2/gcc/gcc.texi:305: @include invoke.texi: No such
file or directory.
/usr/local/src/gcc-2.95.2/gcc/gcc.texi:305: @include install.texi: No such
file or directory.
/usr/local/src/gcc-2.95.2/gcc/gcc.texi:306: @include extend.texi: No such
file or directory.

It is very strange for me because invoke.texi and other files exist in the
same directory as gcc.texi (the file being compiled) and that directory is
specified by /I option. I don't understand why makeinfo can't find them.

Does anyone have any thoughts how to solve this errors?

Thanks in advance,
Serge S. Spiridonoff


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

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

* Newbie: problems building gcc 2.95.2
  1999-11-23 18:23 Newbie: problems building gcc 2.95.2 Serge S. Spiridonoff
  1999-11-23 20:30 ` HOWTO build GCC-2.95.2 on Cygb20.1 [Re: Newbie: problems building gcc 2.95.2] Mumit Khan
@ 1999-11-30 23:39 ` Serge S. Spiridonoff
  1 sibling, 0 replies; 8+ messages in thread
From: Serge S. Spiridonoff @ 1999-11-30 23:39 UTC (permalink / raw)
  To: cygwin

Hi!

I'm trying to build gcc under Windows NT but having troubles with it.

I've done the following things:

- installed Cygwin B20.1
- installed the patch gcc-2.95.2-cygb20.tar.gz
- downloaded and unpacked gcc-2.95.2.tar.bz2 to /usr/local/src/gcc-2.95.2
- created /usr/local/build/gcc-2.95.2

scenario 1.

$ cd /usr/local/build/gcc-2.95.2
$ bash /usr/local/src/gcc-2.95.2/configure -v i586-cygwin32

this works fine

$ make > make.log 2>&1

this fails with
/usr/local/src/gcc-2.95.2/gcc/libgcc2.c:41: stdlib.h: No such file or
directory
/usr/local/src/gcc-2.95.2/gcc/libgcc2.c:42: unistd.h: No such file or
directory


scenario 2.

install the gcc-2.95.2-x86-win32.diff patch first

in this case, configure fails with
Configuring gcc...
: not found
: not found
: not found
: not found
: not found
/usr/local/src/gcc-2.95.2/gcc/configure: 123: Syntax error: Bad for loop
variable
Configure in /Cygnus/usr/local/build/gcc-2.95.2/gcc failed, exiting.


scenario 3.

I tried to not install the full patch (gcc-2.95.2-x86-win32.diff) but only
relative-path and libgcc2 patches.

In this case configure works but make fails telling that nothing to be done
for [all] (or something like that).


What am I doing wrong?


Thanks in advance
Serge S. Spiridonoff


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

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

* HOWTO build GCC-2.95.2 on Cygb20.1 [Re: Newbie: problems building gcc 2.95.2]
  1999-11-23 20:30 ` HOWTO build GCC-2.95.2 on Cygb20.1 [Re: Newbie: problems building gcc 2.95.2] Mumit Khan
  1999-11-24 12:41   ` Serge S. Spiridonoff
@ 1999-11-30 23:39   ` Mumit Khan
  1 sibling, 0 replies; 8+ messages in thread
From: Mumit Khan @ 1999-11-30 23:39 UTC (permalink / raw)
  To: Serge S. Spiridonoff; +Cc: cygwin

On Wed, 24 Nov 1999, Serge S. Spiridonoff wrote:

> I'm trying to build gcc under Windows NT but having troubles with it.
> 
> I've done the following things:
> 
> - installed Cygwin B20.1
> - installed the patch gcc-2.95.2-cygb20.tar.gz
> - downloaded and unpacked gcc-2.95.2.tar.bz2 to /usr/local/src/gcc-2.95.2
> - created /usr/local/build/gcc-2.95.2
> 
> scenario 1.
> 
> $ cd /usr/local/build/gcc-2.95.2
> $ bash /usr/local/src/gcc-2.95.2/configure -v i586-cygwin32
> 
> this works fine
> 
> $ make > make.log 2>&1
> 
> this fails with
> /usr/local/src/gcc-2.95.2/gcc/libgcc2.c:41: stdlib.h: No such file or
> directory
> /usr/local/src/gcc-2.95.2/gcc/libgcc2.c:42: unistd.h: No such file or
> directory

The trouble is due to the layout, and where the headers are. It's quite
to trivial to get it to work however, so read on.

> scenario 2.
> 
> install the gcc-2.95.2-x86-win32.diff patch first
> 
> in this case, configure fails with
> Configuring gcc...
> : not found

Yeah, the usual text/binary stuff, and possibly that you don't have
/bin/sh.

Here's what I do:

0. Apologies in advance for all the unintentional typos and accidental 
  omissions in the following recipe that may add hours of frustration 
  ;-)

1. Make mounts binary. You'll thank me someday (before anyone yells, 
  it's just for building gcc, otherwise the specs file won't work on 
  binary mounts). Also patching may have trouble (the trick is to
  use -l or --ignore-whitespace option to tell patch to ignore 
  whitespace).

2. Get gcc-2.95.2.tar.gz and unpack.
3. Get my patches and apply:
   
   $ cd /usr/local/src
   $ tar zxf /tmp/gcc-2.95.2.tar.gz
   $ cd /usr/local/src/gcc-2.95.2
   $ patch -p1 -s < /tmp/gcc-2.95.2-x86-win32.diff

4. The patching process screws up timestamps, and unless you have
  autoheader, and possibly a few other tools, you're in trouble. Fix
  the timestamps with the script. Cut out the section between 
  CUT FROM HERE and CUT TO HERE, put it into a file, and feed it
  bash from the toplevel gcc-2.95.2 directory.

================== CUT FROM HERE ...
#
#! /bin/sh
#

"Fixing local tree timestamps"
touch `find . -name configure -print`
touch `find texinfo -name Makefile.in -print`
touch `find texinfo -name \*.pot -print`
touch `find texinfo -name \*.gmo -print`
for f in gcc/c-parse.y \
	 gcc/c-parse.h \
	 gcc/c-parse.c \
	 gcc/cstamp-h.in \
	 gcc/c-gperf.h \
	 gcc/cexp.c \
	 gcc/cp/parse.c \
	 gcc/cp/parse.h \
	 gcc/objc/objc-parse.y \
	 gcc/objc/objc-parse.c \
	 gcc/java/parse.h \
	 gcc/java/parse.c \
	 gcc/java/parse-scan.c \
	 libf2c/libU77/stamp-h.in \
	 contrib/fixinc/fixincl.x \
	 contrib/fixinc/inclhack.sh \
	 contrib/fixinc/fixincl.sh \
	 gcc/fixinc/fixincl.x \
	 gcc/fixinc/inclhack.sh \
	 gcc/fixinc/fixincl.sh
do
	if [ -f $f ]; then
		touch $f
	fi
done

exit 0
#================== TO HERE 
    
   $ cd /usr/local/src/gcc-2.95.2
   $ bash /tmp/update_timestamps

   Even if you have autoheader, bison, flex, etc, installed, I still
   recommend fixing timestamps since life's easier this way.

5. Configure (NOTE the options, these are crucial).

   $ mkdir /usr/local/build/gcc-2.95.2
   $ cd /usr/local/build/gcc-2.95.2
   $ CONFIG_SHELL=bash bash /usr/local/src/gcc-2.95.2/configure \
     --prefix=/Cygnus/cygwin-b20 \
     --exec-prefix=/Cygnus/cygwin-b20/H-i586-cygwin32 \
     -v i586-cygwin32
   
   If your Cygwin b20.1 install root is something other than /Cygnus,
   use that instead (eg., //D/Cygnus if you installed to D: drive).

   These "interesting" prefix and exec-prefix are needed to make sure
   the compiler can find the standard includes and libraries, which
   are installed as "target" includes and headers instead of to the
   usual /usr/include and /usr/lib.

5. Build: Note that `make bootstrap' fails mysteriously depending on
   the winsup/cygwin dll version, so you're best off making the build,
   installing it, using that to make it again, and installing that 
   again. Poor man's bootstrap, and in fact, I believe that's how
   Cygnus does it. So just repeat the next two steps.
   
   $ make > make.log 2>&1

6. Install: If you want to install over the existing compiler, just run
   
   $ make install > install.log 2>&1

   If you want to install to a different place, which is what I do, pass
   prefix and exec_prefix variables to Make:

   $ make prefix=/usr/local/gcc-2.95.2 \
     exec_prefix=/usr/local/gcc-2.95.2/H-i586-cygwin32 \
     install > install.log 2>&1 
   
   The relative pathname changes will make things work just fine even
   if you install it elsewhere. These patches are finally in mainline
   GCC, thanks to Tom Tromey for finaly taking the time to put it
   together!

7. Repeat 5 and 6 after running `make clean' at least once to get a good
   build, and to make sure the compiler can bootstrap itself. If you've
   installed to a different place (6.b), then prepend that to PATH:
     
   $ export PATH=/usr/local/gcc-2.95.2/H-i586-cygwin32/bin:$PATH

   Go to 5.

> : not found
> : not found
> : not found
> : not found
> /usr/local/src/gcc-2.95.2/gcc/configure: 123: Syntax error: Bad for loop
> variable
> Configure in /Cygnus/usr/local/build/gcc-2.95.2/gcc failed, exiting.
> 
> 
> scenario 3.
> 
> I tried to not install the full patch (gcc-2.95.2-x86-win32.diff) but only
> relative-path and libgcc2 patches.

I recommend installing the whole thing. I don't "support" the individual
pieces -- think of those as for exposition only.

Regards,
Mumit



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

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

* RE: HOWTO build GCC-2.95.2 on Cygb20.1 [Re: Newbie: problems building gcc 2.95.2]
  1999-11-24 13:19 HOWTO build GCC-2.95.2 on Cygb20.1 [Re: Newbie: problems building gcc 2.95.2] Earnie Boyd
@ 1999-11-30 23:39 ` Earnie Boyd
  0 siblings, 0 replies; 8+ messages in thread
From: Earnie Boyd @ 1999-11-30 23:39 UTC (permalink / raw)
  To: Serge S. Spiridonoff; +Cc: Cygwin Mailing List

--- "Serge S. Spiridonoff" <sss@corbina.net> wrote:
> > 1. Make mounts binary. You'll thank me someday (before anyone yells,
> >   it's just for building gcc, otherwise the specs file won't work on
> >   binary mounts). Also patching may have trouble (the trick is to
> >   use -l or --ignore-whitespace option to tell patch to ignore
> >   whitespace).
> 
> Could you please explain what do you mean by "make mounts binary"?
> 

Do an archive search, you'll find plenty of explaination.

> After installing Cygwin I've made several mounts like
>    $ mount -b h:\\cygwin /
> and this appears to be the source of all my troubles with building gcc.
> 

If you didn't change the file endings of scripts and source files from \r\n to
\n only then _YES_ this is your problem.  When changing from text mode
processing that will remove the \r from the files for you to binary mode
processing that gives you the \r in the line you'll have to remove the \r
yourself or the \r becomes part of the command (line).


> As I wrote before configure returned lots of "not found" errors.
> It complained about lines in gcc/configure file. Looking at that lines I saw
> that they end with CRLF. CRLF appeared there after I applied the
> gcc-2.95.2-x86-win32 patch.
> 
> Anyway, today I remounted all my mounts without -b (actually, I've changed
> "fbinary" value from 1 to 0 directly in the NT registry and re-started
> bash).
> After that, configure worked (and I'm very happy now:) and even make almost
> worked.
> 
> "Almost" means that it made gcc and libs. However, after that the following
> errors occured:
> 
> /Cygnus/usr/local/build/gcc-2.95.2/texinfo/makeinfo/makeinfo   -I/usr/local/
> src/gcc-2.95.2/gcc -o gcc.info /usr/local/src/gcc-2.95.2/gcc/gcc.texi
> Making info file `gcc.info' from `/usr/local/src/gcc-2.95.2/gcc/gcc.texi'.
> /usr/local/src/gcc-2.95.2/gcc/gcc.texi:305: @include invoke.texi: No such
> file or directory.
> /usr/local/src/gcc-2.95.2/gcc/gcc.texi:305: @include install.texi: No such
> file or directory.
> /usr/local/src/gcc-2.95.2/gcc/gcc.texi:306: @include extend.texi: No such
> file or directory.
> 
> It is very strange for me because invoke.texi and other files exist in the
> same directory as gcc.texi (the file being compiled) and that directory is
> specified by /I option. I don't understand why makeinfo can't find them.
> 
> Does anyone have any thoughts how to solve this errors?
> 
> Thanks in advance,
> Serge S. Spiridonoff
> 
> 
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com
> 
> 


=====
Earnie Boyd < mailto:earnie_boyd@yahoo.com >
Cygwin Newbies, please visit
< http://www.freeyellow.com/members5/gw32/index.html >
__________________________________________________
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one place.
Yahoo! Shopping: http://shopping.yahoo.com

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

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

* RE: HOWTO build GCC-2.95.2 on Cygb20.1 [Re: Newbie: problems building gcc 2.95.2]
@ 1999-11-24 13:19 Earnie Boyd
  1999-11-30 23:39 ` Earnie Boyd
  0 siblings, 1 reply; 8+ messages in thread
From: Earnie Boyd @ 1999-11-24 13:19 UTC (permalink / raw)
  To: Serge S. Spiridonoff; +Cc: Cygwin Mailing List

--- "Serge S. Spiridonoff" <sss@corbina.net> wrote:
> > 1. Make mounts binary. You'll thank me someday (before anyone yells,
> >   it's just for building gcc, otherwise the specs file won't work on
> >   binary mounts). Also patching may have trouble (the trick is to
> >   use -l or --ignore-whitespace option to tell patch to ignore
> >   whitespace).
> 
> Could you please explain what do you mean by "make mounts binary"?
> 

Do an archive search, you'll find plenty of explaination.

> After installing Cygwin I've made several mounts like
>    $ mount -b h:\\cygwin /
> and this appears to be the source of all my troubles with building gcc.
> 

If you didn't change the file endings of scripts and source files from \r\n to
\n only then _YES_ this is your problem.  When changing from text mode
processing that will remove the \r from the files for you to binary mode
processing that gives you the \r in the line you'll have to remove the \r
yourself or the \r becomes part of the command (line).


> As I wrote before configure returned lots of "not found" errors.
> It complained about lines in gcc/configure file. Looking at that lines I saw
> that they end with CRLF. CRLF appeared there after I applied the
> gcc-2.95.2-x86-win32 patch.
> 
> Anyway, today I remounted all my mounts without -b (actually, I've changed
> "fbinary" value from 1 to 0 directly in the NT registry and re-started
> bash).
> After that, configure worked (and I'm very happy now:) and even make almost
> worked.
> 
> "Almost" means that it made gcc and libs. However, after that the following
> errors occured:
> 
> /Cygnus/usr/local/build/gcc-2.95.2/texinfo/makeinfo/makeinfo   -I/usr/local/
> src/gcc-2.95.2/gcc -o gcc.info /usr/local/src/gcc-2.95.2/gcc/gcc.texi
> Making info file `gcc.info' from `/usr/local/src/gcc-2.95.2/gcc/gcc.texi'.
> /usr/local/src/gcc-2.95.2/gcc/gcc.texi:305: @include invoke.texi: No such
> file or directory.
> /usr/local/src/gcc-2.95.2/gcc/gcc.texi:305: @include install.texi: No such
> file or directory.
> /usr/local/src/gcc-2.95.2/gcc/gcc.texi:306: @include extend.texi: No such
> file or directory.
> 
> It is very strange for me because invoke.texi and other files exist in the
> same directory as gcc.texi (the file being compiled) and that directory is
> specified by /I option. I don't understand why makeinfo can't find them.
> 
> Does anyone have any thoughts how to solve this errors?
> 
> Thanks in advance,
> Serge S. Spiridonoff
> 
> 
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com
> 
> 


=====
Earnie Boyd < mailto:earnie_boyd@yahoo.com >
Cygwin Newbies, please visit
< http://www.freeyellow.com/members5/gw32/index.html >
__________________________________________________
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one place.
Yahoo! Shopping: http://shopping.yahoo.com

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

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

end of thread, other threads:[~1999-11-30 23:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-23 18:23 Newbie: problems building gcc 2.95.2 Serge S. Spiridonoff
1999-11-23 20:30 ` HOWTO build GCC-2.95.2 on Cygb20.1 [Re: Newbie: problems building gcc 2.95.2] Mumit Khan
1999-11-24 12:41   ` Serge S. Spiridonoff
1999-11-30 23:39     ` Serge S. Spiridonoff
1999-11-30 23:39   ` Mumit Khan
1999-11-30 23:39 ` Newbie: problems building gcc 2.95.2 Serge S. Spiridonoff
1999-11-24 13:19 HOWTO build GCC-2.95.2 on Cygb20.1 [Re: Newbie: problems building gcc 2.95.2] Earnie Boyd
1999-11-30 23:39 ` Earnie Boyd

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