delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/04/07/13:17:12

From: rkarpel AT usa DOT net (Ron Karpel)
Subject: Redirection under Makefile
7 Apr 1998 13:17:12 -0700 :
Message-ID: <35211C3C.8E4BD38B.cygnus.gnu-win32@usa.net>
Mime-Version: 1.0
To: gnu-win32 <gnu-win32 AT cygnus DOT com>

Hi,

I have a funny problem with make. I use binutils-2.8.1 configured to
generate mips binaries under gnu-win32. This works generally, except for
this funny problem with redirection in make. The command line:

mips-ecoff-objdump -j .text -s test > test.obj
mips-ecoff-objdump: permission denied
make: *** [test.hex] Error 2

fails on the redirection. It works if I take the redirection to test.obj
out. Only then I get the output on stdout. The redirection works fine
from the bash command line. it fails only from make. The only solution I
found is to copy bash.exe to  /bin/sh.exe (seems that ash is not really
that stable), and to add:

SHELL = /bin/sh

to the makefile

Please note that X86 objdump in the B19 distribution does not have this
problem, only  mips-ecoff-objdump which I compiled myself. I tried to
copy all the changes that where made to B19 objdump into the
binutils-2.8.1 objdump, but that didn't help.

Thanks,

--
Ron Karpel
email: rkarpel AT usa DOT net
home page: http://home.earthlink.net/~karpel/ron.html


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019