delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/17/11:02:34

Message-Id: <1.5.4.32.19970917150341.00693d1c@dce03.ipt.br>
Mime-Version: 1.0
Date: Wed, 17 Sep 1997 12:03:41 -0300
To: djgpp AT delorie DOT com
From: Cesar Scarpini Rabak <csrabak AT dce03 DOT ipt DOT br>
Subject: make 3.75 ported to DJGPP not handling correctly comments

The comment character is not being handled correctly when it appears in a
rule of a makefile.

consider the following

------Makefile starts --------------

all : foo

.c.o:
	$(CC) -c $(CCOPT) $(INCDIR) $*.c -o $*.o

foo: foo.o
	$(CC) $(LDOPT) -o  $@ $^ # this comment breaks DJGPP make

------Makefile ends --------------

Where foo.c is the proverbial hello world example.

Using make 3.75 in a Linux box does not show this bug, however in DJGPP you get:

cd ~/
make
gcc  -o  foo foo.o # this comment breaks DJGPP
gcc.exe: #: No such file or directory (ENOENT)
gcc.exe: this: No such file or directory (ENOENT)
gcc.exe: comment: No such file or directory (ENOENT)
gcc.exe: breaks: No such file or directory (ENOENT)
gcc.exe: DJGPP: No such file or directory (ENOENT)
make.exe: *** [foo] Error 1

Compilation finished at Wed Sep 17 12:02:56


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Cesar Scarpini Rabak                      E-mail: csrabak AT ipt DOT br
DME/ASC                                   Phone: 55-11-268-3522 Ext.350
IPT - Instituto de Pesquisas Tecnologicas Fax:   55-11-268-5996
Av. Prof. Almeida Prado, 532.  Sao Paulo - SP 05508-901 BRAZIL
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- Raw text -


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