This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Build fails in makeinfo
- From: Danny Smith <dannysmith at clear dot net dot nz>
- To: binutils <binutils at sources dot redhat dot com>,"Aaron W. LaFramboise" <aaron98wiridge9 at aaronwl dot com>
- Date: Sun, 27 Feb 2005 14:15:07 +1300
- Subject: Re: Build fails in makeinfo
- References: <42210FA2.2030705@aaronwl.com>
- Reply-to: Danny Smith <dannysmith at users dot sourceforge dot net>
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;