www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/10/03:32:36

From: zander AT lysator DOT liu DOT se (Peter Zander)
To: djgpp AT delorie DOT com
Subject: Re: BUG: Long filenames and ypath
Date: Mon, 10 May 1999 07:32:20 GMT
Message-ID: <37368684.496677234@mail.ntc.nokia.com>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 990509120334 DOT 3278N-100000 AT is>
In-Reply-To: <Pine.SUN.3.91.990509120334.3278N-100000@is>
X-Mailer: Forte Free Agent 1.11/32.235
Reply-To: djgpp AT delorie DOT com

On Sun, 9 May 1999 12:03:52 +0300 (IDT), in comp.os.msdos.djgpp you
wrote:
>> the ..\src directory will never be searched (in the directory search,
>> verified with the make "-d" switch) by make, and the rule fail.
>
>I cannot reproduce this problem: the above makefile works for me
>(after I change `ypath' to `vpath') with Make 3.77.
>
>Are you running this on Windows 9X?  If so, make sure you set LFN=y in
>the environment.
>
>If setting LFN doesn't help, please post what the DOS command DIR
>prints in the ..\src directory.

Thank you for answering. The LFN setting does not make it work. Now I
got it working with cygwin make 3.75 (Im using Win NT 4.0).

Enironment settings FYI:
----------------------------------------

COMPUTERNAME=LNWS0002NOK
ComSpec=C:\WINNT\system32\cmd.exe
HOMEDRIVE=C:
HOMEPATH=\users
LFN=y
LOGONSERVER=\\LNSRV01NOK
MAKE_MODE=UNIX
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
Os2LibPath=C:\WINNT\system32\os2\dll;
PATH=c:\winnt\system32
PATHEXT=.COM;.EXE;.BAT;.CMD
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 5 Stepping 2, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=0502
PROMPT=$P$G
SystemDrive=C:
SystemRoot=C:\WINNT
TEMP=C:\TEMP
TMP=C:\TEMP
USERDOMAIN=NOKLN01
USERNAME=nexus
USERPROFILE=C:\WINNT\Profiles\nexus
windir=C:\WINNT

Build result:
------------------
R:\proj\Make>djgppmake -d -p -r -f gurka > r:\log.txt
djgppm~1.exe: *** No rule to make target `dbgmodule.c', needed by
`foo'.  Stop.

makefile ("gurka.")
-------------
vpath %.c / ..

.PHONY=foo
foo: dbgmodule.c
	@echo $<

log.txt
----------
# GNU Make version 3.77, by Richard Stallman and Roland McGrath.
# Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98
# 	Free Software Foundation, Inc.
# This is free software; see the source for copying conditions.
# There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.

# Report bugs to <bug-make AT gnu DOT org>.

Reading makefiles...
Reading makefile `gurka'...
Updating makefiles....
 Considering target file `gurka'.
  Looking for an implicit rule for `gurka'.
  No implicit rule found for `gurka'.
  Finished dependencies of target file `gurka'.
 No need to remake target `gurka'.
Updating goal targets....
Considering target file `foo'.
 File `foo' does not exist.
  Considering target file `dbgmodule.c'.
   File `dbgmodule.c' does not exist.
   Looking for an implicit rule for `dbgmodule.c'.
   No implicit rule found for `dbgmodule.c'.
   Finished dependencies of target file `dbgmodule.c'.
  Must remake target `dbgmodule.c'.

# Make data base, printed on Mon May 10 09:18:13 1999

# Variables

# default
F77 = $(FC)
# default
PREPROCESS.r = $(FC) $(FFLAGS) $(RFLAGS) $(TARGET_ARCH) -F
# makefile
.PHONY = foo
# environment
PROMPT = $P$G
# environment
LOGONSERVER = \\LNSRV01NOK
# automatic
@F = $(notdir $@)
# environment
COMSPEC = C:\WINNT\SYSTEM32\COMMAND.COM
# environment
USERNAME = nexus
# default
MAKE = $(MAKE_COMMAND)
# default
SUFFIXES := 
# default
COMPILE.r = $(FC) $(FFLAGS) $(RFLAGS) $(TARGET_ARCH) -c
# default
LINK.F = $(FC) $(FFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH)
# environment
NUMBER_OF_PROCESSORS = 1
# environment
OS = Windows_NT
# default
LINK.s = $(CC) $(ASFLAGS) $(LDFLAGS) $(TARGET_MACH)
# environment
HOMEPATH = \users
# default
LINK.o = $(CC) $(LDFLAGS) $(TARGET_ARCH)
# default
TEXI2DVI = texi2dvi
# default
CURDIR := r:/proj/make
# automatic
+F = $(notdir $+)
# default
COMPILE.f = $(FC) $(FFLAGS) $(TARGET_ARCH) -c
# automatic
%F = $(notdir $%)
# environment
TMP = C:\TEMP
# default
LINK.c = $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH)
# default
CO = co
# automatic
?D = $(patsubst %/,%,$(dir $?))
# default
PREPROCESS.F = $(FC) $(FFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -F
# automatic
<D = $(patsubst %/,%,$(dir $<))
# default
M2C = m2c
# environment
PROCESSOR_ARCHITECTURE = x86
# default
FC = f77
# default
CC = gcc
# environment
PATHEXT = .COM;.EXE;.BAT;.CMD
# default
LINK.S = $(CC) $(ASFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_MACH)
# default
CXX = gcc
# default
AR = ar
# environment
SYSTEMROOT = C:\WINNT
# default
CWEAVE = cweave
# default
COMPILE.F = $(FC) $(FFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
# automatic
*D = $(patsubst %/,%,$(dir $*))
# automatic
^D = $(patsubst %/,%,$(dir $^))
# default
COMPILE.s = $(AS) $(ASFLAGS) $(TARGET_MACH)
# environment
SHELL := C:\WINNT\SYSTEM32\COMMAND.COM
# default
YACC = bison -y
# default
COMPILE.def = $(M2C) $(M2FLAGS) $(DEFFLAGS) $(TARGET_ARCH)
# default
LINK.C = $(LINK.cc)
# makefile
MAKEFLAGS = rpd
# default
LINK.p = $(PC) $(PFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH)
# default
OUTPUT_OPTION = -o $@
# default
MAKE_VERSION := 3.77
# default
PREPROCESS.S = $(CC) -E $(CPPFLAGS)
# environment
MAKELEVEL := 0
# environment
HOMEDRIVE = C:
# default
YACC.y = $(YACC) $(YFLAGS)
# default
COMPILE.c = $(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
# default
TANGLE = tangle
# default
CHECKOUT,v = +$(patsubst $@-noexist,$(CO) $(COFLAGS) $< $@,
$(filter-out $@,$(firstword $(wildcard $@) $@-noexist)))
# default
LD = ld
# environment
USERDOMAIN = NOKLN01
# environment
MFLAGS = -rpd
# default
GET = get
# default
COMPILE.S = $(CC) $(ASFLAGS) $(CPPFLAGS) $(TARGET_MACH) -c
# default
PC = pc
# default
AS = as
# automatic
@D = $(patsubst %/,%,$(dir $@))
# default
TEX = tex
# default
COMPILE.cpp = $(COMPILE.cc)
# environment
COMPUTERNAME = LNWS0002NOK
# default
COMPILE.C = $(COMPILE.cc)
# default
LINT = lint
# default
F77FLAGS = $(FFLAGS)
# default
COMPILE.p = $(PC) $(PFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
# environment
LFN = y
# default
RM = rm -f
# environment
TEMP = C:\TEMP
# environment
PROCESSOR_LEVEL = 6
# environment
USERPROFILE = C:\WINNT\Profiles\nexus
# automatic
+D = $(patsubst %/,%,$(dir $+))
# default
WEAVE = weave
# automatic
?F = $(notdir $?)
# environment
PROCESSOR_REVISION = 0502
# automatic
%D = $(patsubst %/,%,$(dir $%))
# default
CPP = $(CC) -E
# automatic
<F = $(notdir $<)
# default
LEX = flex
# default
LINK.cc = $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) $(TARGET_ARCH)
# default
LEX.l = $(LEX) $(LFLAGS) -t
# default
COMPILE.mod = $(M2C) $(M2FLAGS) $(MODFLAGS) $(TARGET_ARCH)
# default
ARFLAGS = rv
# environment
SYSTEMDRIVE = C:
# automatic
*F = $(notdir $*)
# automatic
^F = $(notdir $^)
# default
LINT.c = $(LINT) $(LINTFLAGS) $(CPPFLAGS) $(TARGET_ARCH)
# default
LINK.r = $(FC) $(FFLAGS) $(RFLAGS) $(LDFLAGS) $(TARGET_ARCH)
# default
LINK.cpp = $(LINK.cc)
# default
COMPILE.cc = $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
# environment
OS2LIBPATH = C:\WINNT\system32\os2\dll;
# default
MAKEFILES := 
# default
CTANGLE = ctangle
# default
MAKE_COMMAND := r:/proj/make/djgppm~1.exe
# environment
PATH = c:\winnt\system32
# environment
PROCESSOR_IDENTIFIER = x86 Family 6 Model 5 Stepping 2, GenuineIntel
# environment
MAKE_MODE = UNIX
# default
LINK.f = $(FC) $(FFLAGS) $(LDFLAGS) $(TARGET_ARCH)
# default
MAKEINFO = makeinfo
# 105 variables in 523 hash buckets.
# average of 0.2 variables per bucket, max 3 in one bucket.

# Directories

# / (device 17, inode 1): 96 files, no impossibilities.
# .. (device 17, inode 65536): 26 files, no impossibilities.

# 122 files, no impossibilities in 2 directories.

# Implicit Rules

# No implicit rules.

# Pattern-specific variable values

# No pattern-specific variable values.

# Files

# Not a target:
.DEFAULT:
#  Implicit rule search has not been done.
#  Modification time never checked.
#  File has not been updated.

# Not a target:
.SUFFIXES:
#  Implicit rule search has not been done.
#  Modification time never checked.
#  File has not been updated.

# Not a target:
dbgmodule.c:
#  Implicit rule search has been done.
#  File does not exist.
#  File has not been updated.

# Not a target:
gurka:
#  Implicit rule search has been done.
#  Last modified Mon May 10 09:18:08 1999 (926327888)
#  File has been updated.
#  Successfully updated.

foo: dbgmodule.c
#  Implicit rule search has not been done.
#  File does not exist.
#  File has not been updated.
#  commands to execute (from `gurka', line 5):
	@echo $<
	

# 5 files in 1007 hash buckets.
# average 0.005 files per bucket, max 1 files in one bucket.

# VPATH Search Paths

vpath %.c /;..

# 1 `vpath' search paths.

# No general (`VPATH' variable) search path.

# Finished Make data base on Mon May 10 09:18:13 1999


dir ..\*.c
------------
R:\proj\Make>dir ..\*.c
 Volume in drive R has no label.
 Volume Serial Number is 7447-1362

 Directory of R:\proj

07.05.99  08:42                     10 dbgmodule.c
               1 File(s)         10 bytes


Regards
		Peter Zander

- Raw text -


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