public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Build fails in makeinfo
@ 2005-02-27 16:53 Aaron W. LaFramboise
  2005-02-27 16:56 ` Danny Smith
  0 siblings, 1 reply; 5+ messages in thread
From: Aaron W. LaFramboise @ 2005-02-27 16:53 UTC (permalink / raw)
  To: binutils

The last few times I've tried to build binutils, I've encountered a
build problem.  I haven't been building binutils regularly recently, so
I really have no idea when this started, or if it might be a problem
with my configuration.

cd "$am__cwd"; \
if makeinfo --split-size=5000000   -I
/aaronwl/cs/compilers/binutils/src/cvs/src/bfd/doc \
 -o /aaronwl/cs/compilers/binutils/src/cvs/src/bfd/doc/bfd.info
/aaronwl/cs/compilers/binutils/src/cvs/src/bfd/doc/bfd.texinfo; \
then \
  rc=0; \
  cd /aaronwl/cs/compilers/binutils/src/cvs/src/bfd/doc; \
else \
  rc=$?; \
  cd /aaronwl/cs/compilers/binutils/src/cvs/src/bfd/doc && \
  $restore $backupdir/* `echo
".//aaronwl/cs/compilers/binutils/src/cvs/src/bfd/doc/bfd.info" | sed
's|[^/]*$||'`; \
fi; \
rm -rf $backupdir; exit $rc
 section mapping' (perhaps incorrect sectioning?). `mmo
 a New Hash Table Type' (perhaps incorrect sectioning?).iving
makeinfo: Removing output file
`/aaronwl/cs/compilers/binutils/src/cvs/src/bfd/doc/bfd.info' due to
errors; use --force to preserve.
make[3]: ***
[/aaronwl/cs/compilers/binutils/src/cvs/src/bfd/doc/bfd.info] Error 1

I know next to nothing about makeinfo, but the error message appears to
be messed up.  Could this be a line ending problem?  I'm on this
configuration:

i686-pc-mingw32
Windows XP SP2 Professional
Pentium 4 256MB
Cygwin Current Thu Feb 24 03:40:25 2005
host gcc 3.4.1 (mingw special)
host binutils 2.15.91 20040904 (mingw)
host mingwrt 3.5
host w32api 3.1
msvcrt 7.0.2600.2180
libiconv 1.9.1
GNU Make 3.80
expect 5.26
tcl 8.4
dejagnu 1.4.2.x
ln with softlinks disabled


Aaron W. LaFramboise

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

* Re: Build fails in makeinfo
  2005-02-27 16:53 Build fails in makeinfo Aaron W. LaFramboise
@ 2005-02-27 16:56 ` Danny Smith
  2005-02-28  9:01   ` Aaron W. LaFramboise
  0 siblings, 1 reply; 5+ messages in thread
From: Danny Smith @ 2005-02-27 16:56 UTC (permalink / raw)
  To: binutils, Aaron W. LaFramboise

Aaron W. LaFramboise wrote:
> The last few times I've tried to build binutils, I've encountered a
> build problem.  I haven't been building binutils regularly recently, so
> I really have no idea when this started, or if it might be a problem
> with my configuration.
> 
> cd "$am__cwd"; \
> if makeinfo --split-size=5000000   -I
> /aaronwl/cs/compilers/binutils/src/cvs/src/bfd/doc \
>  -o /aaronwl/cs/compilers/binutils/src/cvs/src/bfd/doc/bfd.info
> /aaronwl/cs/compilers/binutils/src/cvs/src/bfd/doc/bfd.texinfo; \
> then \
>   rc=0; \
>   cd /aaronwl/cs/compilers/binutils/src/cvs/src/bfd/doc; \
> else \
>   rc=$?; \
>   cd /aaronwl/cs/compilers/binutils/src/cvs/src/bfd/doc && \
>   $restore $backupdir/* `echo
> ".//aaronwl/cs/compilers/binutils/src/cvs/src/bfd/doc/bfd.info" | sed
> 's|[^/]*$||'`; \
> fi; \
> rm -rf $backupdir; exit $rc
>  section mapping' (perhaps incorrect sectioning?). `mmo
>  a New Hash Table Type' (perhaps incorrect sectioning?).iving
> makeinfo: Removing output file
> `/aaronwl/cs/compilers/binutils/src/cvs/src/bfd/doc/bfd.info' due to
> errors; use --force to preserve.
> make[3]: ***
> [/aaronwl/cs/compilers/binutils/src/cvs/src/bfd/doc/bfd.info] Error 1
> 
> I know next to nothing about makeinfo, but the error message appears to
> be messed up.  Could this be a line ending problem?  I'm on this
> configuration:
> 

Does this help:

Index: src/bfd/doc/chew.c
===================================================================
RCS file: /cvs/src/src/bfd/doc/chew.c,v
retrieving revision 1.12
diff -c -3 -p -r1.12 chew.c
*** src/bfd/doc/chew.c 29 Jun 2003 10:06:40 -0000 1.12
--- src/bfd/doc/chew.c 18 Jan 2005 08:57:57 -0000
*************** Foundation, Inc., 59 Temple Place - Suit
*** 91,96 ****
--- 91,102 ----
  #define DEF_SIZE 5000
  #define STACK 50
  
+ #ifdef __MINGW32__
+ /* Prevent \r\n line endings.  */
+ #include <fcntl.h>
+ unsigned int _CRT_fmode = _O_BINARY;
+ #endif
+ 
  int internal_wanted;
  int internal_mode;
  


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

* Re: Build fails in makeinfo
  2005-02-27 16:56 ` Danny Smith
@ 2005-02-28  9:01   ` Aaron W. LaFramboise
  2005-03-01 11:35     ` Nick Clifton
  0 siblings, 1 reply; 5+ messages in thread
From: Aaron W. LaFramboise @ 2005-02-28  9:01 UTC (permalink / raw)
  To: Danny Smith; +Cc: binutils

Danny Smith wrote:
> Aaron W. LaFramboise wrote:

>> section mapping' (perhaps incorrect sectioning?). `mmo
>> a New Hash Table Type' (perhaps incorrect sectioning?).iving
>>makeinfo: Removing output file
>>`/aaronwl/cs/compilers/binutils/src/cvs/src/bfd/doc/bfd.info' due to
>>errors; use --force to preserve.
>>make[3]: ***
>>[/aaronwl/cs/compilers/binutils/src/cvs/src/bfd/doc/bfd.info] Error 1

> Does this help:

> + #ifdef __MINGW32__
> + /* Prevent \r\n line endings.  */
> + #include <fcntl.h>
> + unsigned int _CRT_fmode = _O_BINARY;
> + #endif
> + 

Yes!  It does.

However, is it a good idea to apply this sort of thing?  It seems that
the real trouble is in my makeinfo, not in chew.  makeinfo should be
able to accomidate Windows line endings when it is built on Windows.

I'm a little curious why I am suddenly having this problem now, when I
didn't have it before.

For what its worth, I have a similar problem with GCC too.


Aaron W. LaFramboise

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

* Re: Build fails in makeinfo
  2005-02-28  9:01   ` Aaron W. LaFramboise
@ 2005-03-01 11:35     ` Nick Clifton
  2005-03-02  2:08       ` Aaron W. LaFramboise
  0 siblings, 1 reply; 5+ messages in thread
From: Nick Clifton @ 2005-03-01 11:35 UTC (permalink / raw)
  To: Aaron W. LaFramboise; +Cc: Danny Smith, binutils

Hi Aaron,

> It seems that the real trouble is in my makeinfo, not in chew.  makeinfo should be
> able to accomidate Windows line endings when it is built on Windows.

Well ideally it should cope with them anywhere, not just when built on 
Windows.

> I'm a little curious why I am suddenly having this problem now, when I
> didn't have it before.

Have you changed something about your build environment ?  Are you using 
a networked drive or a different file system ?

I assume for now though that you are not asking for Danny's patch to be 
applied to the sources ?

Cheers
   Nick

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

* Re: Build fails in makeinfo
  2005-03-01 11:35     ` Nick Clifton
@ 2005-03-02  2:08       ` Aaron W. LaFramboise
  0 siblings, 0 replies; 5+ messages in thread
From: Aaron W. LaFramboise @ 2005-03-02  2:08 UTC (permalink / raw)
  To: Nick Clifton; +Cc: Danny Smith, binutils

Nick Clifton wrote:

> Have you changed something about your build environment ?  Are you using 
> a networked drive or a different file system ?

I've made some trivial changes, but nothing that seems significant.  The
build tree is now accessed through a NTFS function point, but I can't
see that making a difference.

It's more likely that a recent Cygwin update broke the semantics somehow.

> I assume for now though that you are not asking for Danny's patch to be 
> applied to the sources ?

Correct.  However, if someone else is having this problem, then I have
no problem with it being applied.


Aaron W. LaFramboise

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

end of thread, other threads:[~2005-03-02  2:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-27 16:53 Build fails in makeinfo Aaron W. LaFramboise
2005-02-27 16:56 ` Danny Smith
2005-02-28  9:01   ` Aaron W. LaFramboise
2005-03-01 11:35     ` Nick Clifton
2005-03-02  2:08       ` Aaron W. LaFramboise

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