public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Long Command lines in makefile
@ 2001-04-03  6:53 Andrea Minosu
  2001-04-03  7:44 ` Andrew Markebo
  0 siblings, 1 reply; 6+ messages in thread
From: Andrea Minosu @ 2001-04-03  6:53 UTC (permalink / raw)
  To: earnie_boyd; +Cc: cygwin

Dear Earnie,

I'm new at using cygwin, so I'm not sure if I'm doing good to send this
e-mail to you.

The company where I work is using cygwin since a few months.
All of my collegues have non problems using it (both with Windows 98 and
Windows NT).

I have a strange problem on my machine (Windows 98): when the command line
of makefile is very long (because it uses something like $(OBJ)), then my PC
crashes completely (not only the cygwin windows).
PC gets completely crashed and my only choice is to turn the power off
(sometime also the CTRL-ALT-DEL works).

I've searched the mailing list archives but I didn't find a solution.

I'm using cygwin 1.1.8.

Please could anyone help me ?
Thank you in advance for your help
Andrea



--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

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

* Re: Long Command lines in makefile
  2001-04-03  6:53 Long Command lines in makefile Andrea Minosu
@ 2001-04-03  7:44 ` Andrew Markebo
  2001-04-03  8:46   ` Andrea Minosu
  0 siblings, 1 reply; 6+ messages in thread
From: Andrew Markebo @ 2001-04-03  7:44 UTC (permalink / raw)
  To: Andrea Minosu; +Cc: cygwin

Sounds like a problem with the make-program you use, do you use
gnumake that comes with cygwin or??

Tried to split the line, can you give us an example?? 

What does happen on your co-workers machines when you run this??

        /Andy


/ "Andrea Minosu" <minosu@sitek.it> wrote:
| [...]
| I have a strange problem on my machine (Windows 98): when the command line
| of makefile is very long (because it uses something like $(OBJ)), then my PC
| crashes completely (not only the cygwin windows).

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

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

* RE: Long Command lines in makefile
  2001-04-03  7:44 ` Andrew Markebo
@ 2001-04-03  8:46   ` Andrea Minosu
  2001-04-03 12:28     ` Mark Paulus
  2001-04-03 13:31     ` Andrew Markebo
  0 siblings, 2 replies; 6+ messages in thread
From: Andrea Minosu @ 2001-04-03  8:46 UTC (permalink / raw)
  To: Andrew Markebo; +Cc: cygwin

Dear Andrew,
Thank you very much for your help.

Yes I'm using gnumake that comes with cygwin.

On my co-workers machines the command works (it is the "make clean"
command), which calls the "rm" command as you can see in the below extract.
The "rm ...." line expands very long (I can see it just for a second before
Windows switches to the usual crash blue screen).
I've tryed to do something with a "for loop" so to call "rm" with a file at
a time, but it crashes in the "for $(OBJS)..." expansion.

Here it is an extract from makefile I'm using:

OBJS =  ./src/tast0mai.o \
        ./src/tats0mai.o \
        ./user/grcn0lib.o \
        ./user/grfb1lib.o \
...
...
clean:
        rm -f $(TARGET_LIB) $(DEPEND_FILES) $(OBJS) .depend

-----Original Message-----
From: flognat@master.athome [ mailto:flognat@master.athome]On Behalf Of
Andrew Markebo
Sent: Tuesday, April 03, 2001 4:44 PM
To: Andrea Minosu
Cc: cygwin@cygwin.com
Subject: Re: Long Command lines in makefile


Sounds like a problem with the make-program you use, do you use
gnumake that comes with cygwin or??

Tried to split the line, can you give us an example??

What does happen on your co-workers machines when you run this??

        /Andy


/ "Andrea Minosu" <minosu@sitek.it> wrote:
| [...]
| I have a strange problem on my machine (Windows 98): when the command line
| of makefile is very long (because it uses something like $(OBJ)), then my
PC
| crashes completely (not only the cygwin windows).



--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

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

* RE: Long Command lines in makefile
  2001-04-03  8:46   ` Andrea Minosu
@ 2001-04-03 12:28     ` Mark Paulus
  2001-04-03 13:31     ` Andrew Markebo
  1 sibling, 0 replies; 6+ messages in thread
From: Mark Paulus @ 2001-04-03 12:28 UTC (permalink / raw)
  To: Andrea Minosu, Andrew Markebo; +Cc: cygwin

could you do something with xargs:
echo $(TARGET_LIB) $(DEPEND_FILES) $(OBJS) .depend | xargs rm -f 

On Tue, 3 Apr 2001 17:43:39 +0200, Andrea Minosu wrote:

>Dear Andrew,
>Thank you very much for your help.
>
>Yes I'm using gnumake that comes with cygwin.
>
>On my co-workers machines the command works (it is the "make clean"
>command), which calls the "rm" command as you can see in the below extract.
>The "rm ...." line expands very long (I can see it just for a second before
>Windows switches to the usual crash blue screen).
>I've tryed to do something with a "for loop" so to call "rm" with a file at
>a time, but it crashes in the "for $(OBJS)..." expansion.
>
>Here it is an extract from makefile I'm using:
>
>OBJS =  ./src/tast0mai.o \
>        ./src/tats0mai.o \
>        ./user/grcn0lib.o \
>        ./user/grfb1lib.o \
>...
>...
>clean:
>        rm -f $(TARGET_LIB) $(DEPEND_FILES) $(OBJS) .depend
>
>-----Original Message-----
>From: flognat@master.athome [ mailto:flognat@master.athome]On Behalf Of
>Andrew Markebo
>Sent: Tuesday, April 03, 2001 4:44 PM
>To: Andrea Minosu
>Cc: cygwin@cygwin.com
>Subject: Re: Long Command lines in makefile
>
>
>Sounds like a problem with the make-program you use, do you use
>gnumake that comes with cygwin or??
>
>Tried to split the line, can you give us an example??
>
>What does happen on your co-workers machines when you run this??
>
>        /Andy
>
>
>/ "Andrea Minosu" <minosu@sitek.it> wrote:
>| [...]
>| I have a strange problem on my machine (Windows 98): when the command line
>| of makefile is very long (because it uses something like $(OBJ)), then my
>PC
>| crashes completely (not only the cygwin windows).
>
>
>
>--
>Want to unsubscribe from this list?
>Check out: http://cygwin.com/ml/#unsubscribe-simple




--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

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

* Re: Long Command lines in makefile
  2001-04-03  8:46   ` Andrea Minosu
  2001-04-03 12:28     ` Mark Paulus
@ 2001-04-03 13:31     ` Andrew Markebo
  2001-04-04 12:37       ` Andrea Minosu
  1 sibling, 1 reply; 6+ messages in thread
From: Andrew Markebo @ 2001-04-03 13:31 UTC (permalink / raw)
  To: Andrea Minosu; +Cc: cygwin

Step 1: Blame something else :-) 

As long as it works on your co-workes computers.. It is your computer
that is faulty.. :-) Get a new one ;-)

Step 2: Try workaround.

Well here are a bunch of workarounds.. all of them expanding objs,
maybe another one is splitting objs into two and doing rm objs1, rm
objs2.. 

Step 3: Find the error.

Hmm are you running gmake from the bash-window? Or command? You other
folks out there, what does gmake use for shell when compiling?? 

Do you have any other rm.exe, bash.exe, sh.exe, gmake lying around,
what does cygcheck say?

        /Andy

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

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

* RE: Long Command lines in makefile
  2001-04-03 13:31     ` Andrew Markebo
@ 2001-04-04 12:37       ` Andrea Minosu
  0 siblings, 0 replies; 6+ messages in thread
From: Andrea Minosu @ 2001-04-04 12:37 UTC (permalink / raw)
  To: Andrew Markebo, commpg; +Cc: cygwin

Thanks again for your help.

> Step 1: Blame something else :-)
>
> As long as it works on your co-workes computers.. It is your computer
> that is faulty.. :-) Get a new one ;-)
hehehe, good idea, I'm always looking for a more powerful computer.
Anyway my PC is 3 months old, I only installed "MS Office 2000" and a few
development kit like "CodeWarrior for MIPS" and others.

>
> Step 2: Try workaround.
>
> Well here are a bunch of workarounds.. all of them expanding objs,
> maybe another one is splitting objs into two and doing rm objs1, rm
> objs2..
Yes splitting objs works.
"echo $(TARGET_LIB) $(DEPEND_FILES) $(OBJS) .depend" works too.
But "echo $(TARGET_LIB) $(DEPEND_FILES) $(OBJS) .depend | xargs rm -f" does
NOT work (i.e. it crashes in the same way).

>
> Step 3: Find the error.
>
> Hmm are you running gmake from the bash-window? Or command? You other
> folks out there, what does gmake use for shell when compiling??
I run from bash-window.

>
> Do you have any other rm.exe, bash.exe, sh.exe, gmake lying around,
> what does cygcheck say?
There are no other executables with same name around (I've scanned all the
harddisk).
cygcheck reports are shown below:

********************************************************
"cygchek -v -h make" output:
********************************************************

Here is where the OS will find your program, and which dlls
will be used for it.  Use -v to see DLL version info

Found: C:\cygwin\bin\make.exe
C:\cygwin\bin\make.exe - os=4.0 img=1.0 sys=4.0
  C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
    "cygwin1.dll" v0.0 ts=2001/1/31 16:08
    C:\WINDOWS\SYSTEM\KERNEL32.dll - os=4.0 img=1.9 sys=4.0
      "KERNEL32.dll" v0.0 ts=1999/4/23 2:45
  C:\WINDOWS\SYSTEM\KERNEL32.dll (already done)

********************************************************
"cygchek -s -h" output:
********************************************************

Cygnus Win95/NT Configuration Diagnostics
Current System Time: Wed Apr  4 11:19:06 2001

Win9X Ver 4.10 build 67766446  A

Path:	/usr/local/bin
	/usr/bin
	/bin
	/ecos/tools/bin
	/cygdrive/c/WINDOWS
	/cygdrive/c/WINDOWS/COMMAND
	/cygdrive/c/PROGRA~1/ROCKWE~1/RSCOMMON
	/cygdrive/c/UTIL
	/cygdrive/c/NU

SysDir: C:\WINDOWS\SYSTEM
WinDir: C:\WINDOWS

Here's some environment variables that may affect cygwin:
PWD = `/ecos/work/ISaGRAF-20010228/isagraf/src'
USER = `minosu'
MAKE_MODE = `unix'
HOME = `/home/minosu'

Here's the rest of your environment variables:
PROMPT = `$p$g'
COMSPEC = `C:\WINDOWS\COMMAND.COM'
!C: = `C:\cygwin\bin'
CMDLINE = `bash --login -i'
HOSTNAME = `AM'
SBPCI = `C:\SBPCI'
WINDIR = `C:\WINDOWS'
WINBOOTDIR = `C:\WINDOWS'
PS1 = `^[]0;\w\a
^[[32m\u@\h ^[[33m\w^[[0m
$ '
BLASTER = `A220 I7 D1 H7 P330 T6'
MACHTYPE = `i686-pc-cygwin'
OLDPWD = `/home/minosu'
TEMP = `/cygdrive/c/WINDOWS/TEMP'
SHLVL = `1'
SHELL = `/bin/sh'
!M: = `M:\AV-Update'
HOSTTYPE = `i686'
OSTYPE = `cygwin'
TERM = `cygwin'
_ = `/usr/bin/cygcheck'
TZ = `WEST-1WEDT-2,M3.5.0/2,M10.5.0/3'

Use `-r' to scan registry

Listing available drives...
Drv Type        Size   Free Flags              Name
a:  fd           N/A    N/A
c:  hd  FAT32   8212Mb  82% CP    UN
d:  cd           N/A    N/A
m:  net NTFS    6197Mb  87% CP CS UN PA FC     Sitek
fd=floppy, hd=hard drive, cd=CD-ROM, net=Network Share
CP=Case Preserving, CS=Case Sensitive, UN=Unicode
PA=Persistent ACLS, FC=File Compression, VC=Volume Compression

Mount entries: these map POSIX directories to your NT drives.
-NT-  -POSIX-  -Type-  -Flags-
c:\cygwin\ecos  /ecos    user    textmode
C:\cygwin\bin  /usr/bin  user    binmode
C:\cygwin\lib  /usr/lib  user    binmode
C:\cygwin  /        user    binmode

Looking to see where common programs can be found, if at all...
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cpp.exe
Found: c:\cygwin\ecos\tools\bin\cpp.exe
Warning: C:\cygwin\bin\cpp.exe hides c:\cygwin\ecos\tools\bin\cpp.exe
Found: C:\cygwin\bin\find.exe
Found: c:\WINDOWS\COMMAND\find.exe
Warning: C:\cygwin\bin\find.exe hides c:\WINDOWS\COMMAND\find.exe
Found: C:\cygwin\bin\gcc.exe
Found: C:\cygwin\bin\gdb.exe
Found: C:\cygwin\bin\ld.exe
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\make.exe
Found: C:\cygwin\bin\sh.exe

Looking for various Cygnus DLLs...  (-v gives version info)
   81k 2000/12/05 C:\cygwin\bin\cygitcl30.dll - os=4.0 img=1.0 sys=4.0
                  "cygitcl30.dll" v0.0 ts=2000/11/26 2:43
   35k 2000/12/05 C:\cygwin\bin\cygitk30.dll - os=4.0 img=1.0 sys=4.0
                  "cygitk30.dll" v0.0 ts=2000/11/26 2:43
  390k 2000/12/05 C:\cygwin\bin\cygtcl80.dll - os=4.0 img=1.0 sys=4.0
                  "cygtcl80.dll" v0.0 ts=2000/11/26 2:39
    5k 2000/12/05 C:\cygwin\bin\cygtclpip80.dll - os=4.0 img=1.0 sys=4.0
   10k 2000/12/05 C:\cygwin\bin\cygtclreg80.dll - os=4.0 img=1.0 sys=4.0
                  "cygtclreg80.dll" v0.0 ts=2000/11/26 2:39
  623k 2000/12/05 C:\cygwin\bin\cygtk80.dll - os=4.0 img=1.0 sys=4.0
                  "cygtk80.dll" v0.0 ts=2000/11/26 2:43
   56k 2000/12/03 C:\cygwin\bin\cygbz21.0.dll - os=4.0 img=1.0 sys=4.0
                  "cygbz21.0.dll" v0.0 ts=2000/11/21 0:53
   18k 2000/10/23 C:\cygwin\bin\cyggdbm.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm.dll" v0.0 ts=2000/10/23 4:26
   14k 2000/10/23 C:\cygwin\bin\cygintl.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl.dll" v0.0 ts=2000/10/23 21:02
   45k 2000/10/22 C:\cygwin\bin\cygjbig1.dll - os=4.0 img=1.0 sys=4.0
                  "cygjbig1.dll" v0.0 ts=2000/10/23 1:06
  119k 2000/10/22 C:\cygwin\bin\cygjpeg6b.dll - os=4.0 img=1.0 sys=4.0
                  "cygjpeg6b.dll" v0.0 ts=2000/10/23 2:58
  163k 2001/02/03 C:\cygwin\bin\cygpng2.dll - os=4.0 img=1.0 sys=4.0
                  "cygpng2.dll" v0.0 ts=2001/2/3 22:21
   82k 2001/01/21 C:\cygwin\bin\cygform5.dll - os=4.0 img=1.0 sys=4.0
                  "cygform5.dll" v0.0 ts=2001/1/21 21:39
   53k 2001/01/21 C:\cygwin\bin\cygmenu5.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu5.dll" v0.0 ts=2001/1/21 21:39
  414k 2001/01/21 C:\cygwin\bin\cygncurses++5.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++5.dll" v0.0 ts=2001/1/21 21:40
  299k 2001/01/21 C:\cygwin\bin\cygncurses5.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses5.dll" v0.0 ts=2001/1/21 21:38
   34k 2001/01/21 C:\cygwin\bin\cygpanel5.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel5.dll" v0.0 ts=2001/1/21 21:38
   17k 2001/01/07 C:\cygwin\bin\cyghistory4.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory4.dll" v0.0 ts=2001/1/7 5:34
  108k 2001/01/07 C:\cygwin\bin\cygreadline4.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline4.dll" v0.0 ts=2001/1/7 5:34
  243k 2000/10/23 C:\cygwin\bin\cygtiff3.dll - os=4.0 img=1.0 sys=4.0
                  "cygtiff3.dll" v0.0 ts=2000/10/23 3:14
   41k 2000/11/20 C:\cygwin\bin\cygXpm-noX4.dll - os=4.0 img=1.0 sys=4.0
                  "cygXpm-noX4.dll" v0.0 ts=2000/11/20 3:41
   45k 2000/11/20 C:\cygwin\bin\cygXpm-X4.dll - os=4.0 img=1.0 sys=4.0
                  "cygXpm-X4.dll" v0.0 ts=2000/11/20 3:45
   49k 2001/02/03 C:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
                  "cygz.dll" v0.0 ts=2001/2/3 21:35
  615k 2001/01/31 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2001/1/31 16:08
    Cygwin DLL version info:
        dll major: 1001
        dll minor: 8
        dll epoch: 19
        dll bad signal mask: 19005
        dll old termios: 5
        dll malloc env: 28
        api major: 0
        api minor: 34
        shared data: 3
        dll identifier: cygwin1
        mount registry: 2
        cygnus registry name: Cygnus Solutions
        cygwin registry name: Cygwin
        program options name: Program Options
        cygwin mount registry name: mounts v2
        cygdrive flags: cygdrive flags
        cygdrive prefix: cygdrive prefix
        cygdrive default prefix:
        build date: Wed Jan 31 10:08:38 EST 2001
        shared id: cygwin1S3

  408k 2000/10/16 c:\cygwin\ecos\tools\bin\cygitcl30.dll - os=4.0 img=1.0
sys=4.0
                  "cygitcl30.dll" v0.0 ts=2000/10/16 17:34
  299k 2000/10/16 c:\cygwin\ecos\tools\bin\cygitk30.dll - os=4.0 img=1.0
sys=4.0
                  "cygitk30.dll" v0.0 ts=2000/10/16 17:34
 1514k 2000/10/16 c:\cygwin\ecos\tools\bin\cygtcl80.dll - os=4.0 img=1.0
sys=4.0
                  "cygtcl80.dll" v0.0 ts=2000/10/16 17:23
   24k 2000/10/16 c:\cygwin\ecos\tools\bin\cygtclpip80.dll - os=4.0 img=1.0
sys=4.0
  183k 2000/10/16 c:\cygwin\ecos\tools\bin\cygtclreg80.dll - os=4.0 img=1.0
sys=4.0
                  "cygtclreg80.dll" v0.0 ts=2000/10/16 17:23
 2073k 2000/10/16 c:\cygwin\ecos\tools\bin\cygtk80.dll - os=4.0 img=1.0
sys=4.0
                  "cygtk80.dll" v0.0 ts=2000/10/16 17:31



--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

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

end of thread, other threads:[~2001-04-04 12:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-03  6:53 Long Command lines in makefile Andrea Minosu
2001-04-03  7:44 ` Andrew Markebo
2001-04-03  8:46   ` Andrea Minosu
2001-04-03 12:28     ` Mark Paulus
2001-04-03 13:31     ` Andrew Markebo
2001-04-04 12:37       ` Andrea Minosu

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