From: "Dave Korn" <dave.korn@artimi.com>
To: <gdb@sourceware.org>
Subject: RE: Problem building cross-debugger
Date: Wed, 13 Feb 2008 20:49:00 -0000 [thread overview]
Message-ID: <01b801c86e81$d4263750$2e08a8c0@CAM.ARTIMI.COM> (raw)
In-Reply-To: <15461364.post@talk.nabble.com>
On 13 February 2008 17:49, Michael Shatz wrote:
> Finally found the problem.
>
> It's all about cygwin "textmode" mount huck.
And that really *is* a hack. We deeply advise not using it, or just using
it as somewhere to store some datafiles so that when you copy them from there
to/from your main filesystem tree they get converted back and forth
automatically, but working in a textmode-mounted tree is just very very hard
to get right.
> When the build drive (or may be source, or both, in my case they were the
> same) is mounted in the text mode the following command misbehaves:
> /bin/sh ./libtool --tag=CC --mode=link i686-pc-cygwin-gcc -W -Wall
> -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -o libbfd.la
> -rpath /usr/local/emb386/i686-pc-cygwin/i386-elf/lib -release `cat
> libtool-soversion` archive.lo archures.lo bfd.lo bfdio.lo bfdwin.lo
> cache.lo coffgen.lo corefile.lo format.lo init.lo libbfd.lo opncls.lo
> reloc.lo section.lo syms.lo targets.lo hash.lo linker.lo srec.lo binary.lo
> tekhex.lo ihex.lo stabs.lo stab-syms.lo merge.lo dwarf2.lo simple.lo `cat
> ofiles`
>
> Either 'libtool' or, more likely, 'sh' somehow ignores the tail of the
> 'ofiles' file which happens to contain the cpu-i386.o
Ah, yes, it would. "cat" always opens files in binary mode (by design, this
is part of the spec) so when it reads "ofiles" the entries in it
(one-per-line) don't look like a filename plus a CRLF line-end, they look like
a filename (of which the last char is coincidentally a CR) plus a LF line-end.
As there is no such file as "../bfd/cpu-i386.o^M", it gets skipped.
cheers,
DaveK
--
Can't think of a witty .sigline today....
prev parent reply other threads:[~2008-02-13 20:49 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-16 22:20 Gerrit van Niekerk
2008-01-18 9:36 ` Gerrit van Niekerk
2008-01-18 16:26 ` Gerrit van Niekerk
2008-01-18 18:53 ` Jim Blandy
2008-01-18 19:27 ` Gerrit van Niekerk
2008-02-11 20:02 ` Michael Shatz
2008-02-13 17:49 ` Michael Shatz
2008-02-13 20:21 ` Gerrit van Niekerk
2008-02-13 21:19 ` Brian Dessent
2008-02-13 20:49 ` Dave Korn [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='01b801c86e81$d4263750$2e08a8c0@CAM.ARTIMI.COM' \
--to=dave.korn@artimi.com \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox