This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Problems with installing bfd
- From: Danny Smith <dannysmith at clear dot net dot nz>
- To: Chris Sutcliffe <ironhead at walled dot net>, binutils at sources dot redhat dot com
- Date: Thu, 20 Jan 2005 20:31:29 +1300
- Subject: Re: Problems with installing bfd
- References: <3405.64.231.207.189.1106179919.squirrel@webmail.walled.net>
- Reply-to: Danny Smith <dannysmith at users dot sourceforge dot net>
Chris Sutcliffe wrote:
> I've compiled bfd using MinGW (using the Bourne shell in MSYS). I
> configured it with:
>
> './configure --prefix=/mingw --disable-nls'
>
> and 'make' ran and exited cleanly. However, on 'make install' I get the
> following error:
>
> $ make install
> Making install in doc
> make[1]: Entering directory `/mingw/src/bfd/doc'
> restore=: && backupdir=".am$$" && \
> am__cwd=`pwd` && cd . && \
> rm -rf $backupdir && mkdir $backupdir && \
> for f in bfd.info bfd.info-[0-9] bfd.info-[0-9][0-9] bfd.i[0-9]
> bfd.i[0-9][0-9]; do \
> if test -f $f; then mv $f $backupdir; restore=mv; else :; fi; \
> done; \
> cd "$am__cwd"; \
> if /bin/sh /mingw/src/missing --run makeinfo -I . \
> -o bfd.info bfd.texinfo; \
> then \
> rc=0; \
> cd .; \
> else \
> rc=$?; \
> cd . && \
> $restore $backupdir/* `echo "./bfd.info" | sed 's|[^/]*$||'`; \
> fi; \
> rm -rf $backupdir; exit $rc
> section mapping'.ss reference to nonexistent node `mmo
> a New Hash Table Type'.ference to nonexistent node `Deriving
> makeinfo: Removing output file `bfd.info' due to errors; use --force to
> preserve.
> make[1]: *** [bfd.info] Error 1
> make[1]: Leaving directory `/mingw/src/bfd/doc'
> make: *** [install-recursive] Error 1
>
> Is there something I missed?
>
Some versions of the makeinfo that ships with msys are buggy. 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 -- they trip a bug in Msys makeinfo. */
+ #include <fcntl.h>
+ unsigned int _CRT_fmode = _O_BINARY;
+ #endif
+
int internal_wanted;
int internal_mode;
> Thanx!
>
> Chris