Re: [bug #33034] "Makefile:23: *** mixed implicit and normal rules. Stop." for Linux kernel out of source builds

2011-11-10 Thread Sam Ravnborg
On Thu, Nov 10, 2011 at 10:45:07AM -0600, Jonathan Nieder wrote: > David Boyce wrote: > > > I'm unsurprised at seeing no public response to > > yours either. But disappointed. > > I'm not disappointed. Paul doesn't work for me so there is no obligation > for him to write patches or design specs

Re: make 3.82 performing more stat() calls than 3.81

2011-09-16 Thread Sam Ravnborg
On Fri, Sep 16, 2011 at 07:18:32PM +, Troy Runkel wrote: > FYI, > > I believe I've located the fix in the GNU make CVS repository that resolves > the > excessive stat() call problem. I've back-ported the fix into 3.82 and it > appears > to be working in our build system. The patch for 'rea

Re: make 3.82 fails on powerpc defconfig update [was: Linux 2.6.35]

2010-08-02 Thread Sam Ravnborg
On Tue, Aug 03, 2010 at 12:03:35AM +0300, Thomas Backlund wrote: > 02.08.2010 23:51, Sam Ravnborg skrev: > >> > >> Thanks, this seems to fix the first issue, but then I get the same erro on > >> the following line 190: > >> > >> 190: bootwrapper_

Re: make 3.82 fails on powerpc defconfig update [was: Linux 2.6.35]

2010-08-02 Thread Sam Ravnborg
> > Thanks, this seems to fix the first issue, but then I get the same erro on > the following line 190: > > 190: bootwrapper_install %.dtb: > 191:$(Q)$(MAKE) ARCH=ppc64 $(build)=$(boot) $(patsubst %,$(boot)/%,$@) > Obviously - dunno how I missed that. Updated patch below. I will do a

Re: make 3.82 fails on powerpc defconfig update [was: Linux 2.6.35]

2010-08-02 Thread Sam Ravnborg
owerpc build broke with make 3.82. It failed with the following message: arch/powerpc/Makefile:183: *** mixed implicit and normal rules. Stop. The fix is to avoid mixing non-wildcard and wildcard targets. Reported-by: Thomas Backlund Cc: Michal Marek Signed-off-by: Sam Ravnborg --- d

Re: make error but no message

2009-03-12 Thread Sam Ravnborg
On Thu, Mar 12, 2009 at 02:07:56PM -0700, Jeremiah Perry wrote: > Hi, > > I don't know if the following is a bug or not, but it came to my > attention recently. I ran make on a project only to have make stop > abruptly with no error messages. After some digging, I found one of my > dependencies re

Re: Bug in pattern rule parsing: how to handle?

2008-12-13 Thread Sam Ravnborg
On Wed, Oct 29, 2008 at 07:24:50PM -0700, Philip Guenther wrote: > On Wed, Oct 29, 2008 at 2:12 PM, Sam Ravnborg wrote: > > On Sun, Oct 26, 2008 at 07:12:53PM -0400, Paul Smith wrote: > ... > >> Makefile:442: *** mixed implicit and normal rules. Stop. > >&g

Re: Bug in pattern rule parsing: how to handle?

2008-11-02 Thread Sam Ravnborg
On Wed, Oct 29, 2008 at 07:24:50PM -0700, Philip Guenther wrote: > On Wed, Oct 29, 2008 at 2:12 PM, Sam Ravnborg <[EMAIL PROTECTED]> wrote: > > On Sun, Oct 26, 2008 at 07:12:53PM -0400, Paul Smith wrote: > ... > >> Makefile:442: *** mixed impli

Re: Bug in pattern rule parsing: how to handle?

2008-10-29 Thread Sam Ravnborg
On Sun, Oct 26, 2008 at 07:12:53PM -0400, Paul Smith wrote: > On Sun, 2008-10-26 at 23:15 +0100, Sam Ravnborg wrote: > > Can you give me a more precise pointer where we have this issue > > so I can get it fixed. I guess it is Makefile.build... > > If you mean in the Linux

Re: Bug in pattern rule parsing: how to handle?

2008-10-26 Thread Sam Ravnborg
On Sun, Oct 26, 2008 at 05:48:11PM -0400, Paul Smith wrote: > Hi all; > > While working on some changes to 2nd expansion etc. to try to reduce > total heap usage in GNU make, I've discovered that there is a bug in the > current makefile parsing. My new version doesn't have this bug (or, > more pr

Re: Reg Make build on LINUX

2008-06-17 Thread Sam Ravnborg
On Tue, Jun 17, 2008 at 04:00:22PM +0530, A, Sravanthi wrote: > Team, > > Can any one of you help to resolve this issue. > My file structure will have root make file which will call makefiles in > each subfolder. Some of the CC files which are dependant on other folder > object files are getting

Re: Help : how to use $(or condition ) & $(and condition ) in makefiles

2008-06-05 Thread Sam Ravnborg
On Thu, Jun 05, 2008 at 05:36:56AM -0700, rakesh aggarwal wrote: > Hi, > > I read the GNU make manual and found there are $(or condition ) and $(and > condition ) functions. ( at > http://www.gnu.org/software/make/manual/make.html#Conditional-Functions ) > But i didnt get in which format i have

Re: query

2008-01-03 Thread Sam Ravnborg
On Wed, Jan 02, 2008 at 09:59:41PM -0800, rohith s wrote: > hi > > this is rohith.s i am very new to this embedded field i have some doubt on > make gnu tool(make-3.8) windowsxp platform my project is porting linux > into some target processor so i need to generate linux kernel image so can > i

Re: [bug #21854] Dependency to a -l to be made in a not yet existing directory doesn't match(?)

2007-12-20 Thread Sam Ravnborg
> > gmake > > will fail, giving > > gmake: *** No rule to make target `-lfunny_name', needed by `my_program'. > Stop. > > while > > "mkdir temp; gmake" To create a directory I usually do: obj := temp # Create output directory if not already present _dummy := $(shell [ -d $(obj) ] || mkdir

Re: Switching from CVS to GIT

2007-10-14 Thread Sam Ravnborg
On Sat, Oct 13, 2007 at 09:10:48PM +0200, Eli Zaretskii wrote: > > From: Paul Smith <[EMAIL PROTECTED]> > > Date: Sat, 13 Oct 2007 12:37:46 -0400 > > Cc: > > > > I'm considering switching from CVS to another form of SCM. > > Can you tell why? Paul already wrote: "I would like some more advance

Re: problem

2007-07-27 Thread Sam Ravnborg
On Fri, Jul 27, 2007 at 04:13:57PM +0530, Gupta, Sonia (Product Engineering Services, Mumbai) wrote: > Hi, > While doing qmake calculator.pro we get an error Qfile:: file not > specified.atleast 100 times. Can you tell us why is that. I can only tell this is not a make error. So please direct you

Re: problem

2007-07-27 Thread Sam Ravnborg
On Fri, Jul 27, 2007 at 12:13:16PM +0530, Laxman wrote: > Hi, > > > > While creating a executable for x86 target - Lynx OS found following error > > > > > > Reading makefiles... > Updating goal targets > File `first' does not exist. >File `all' does not exist. > File `cal

Re: bug? $(warning)/$(error) evaluated from inside a comment in a 'define'?

2007-06-20 Thread Sam Ravnborg
On Tue, Jun 19, 2007 at 08:50:32PM +0200, Stephan Beal wrote: > Hi, Makers! > > i just discovered a Make behaviour which really surprises me. While that > in itself is nothing new ;), this one certainly violates the principal > of least astonishment: > > When a $(warning) or $(error) is inside

Re: mention how to quote a comma in "call"

2007-06-01 Thread Sam Ravnborg
On Sat, Jun 02, 2007 at 05:25:50AM +0800, [EMAIL PROTECTED] wrote: > Your > reverse = $(2) $(1) > example in the manual is great, however if one day your users happen > to want to quote a comma, > OK:;echo $(call reverse,a,b) > SORRY1:;echo $(call reverse,a\,b,c) > SORRY2:;echo $(call reverse,"a,

Re: Error in kernel module

2007-05-24 Thread Sam Ravnborg
On Thu, May 24, 2007 at 05:24:21AM +0100, ajay parashar wrote: > Hi, > I am using fedora 6. i write a simple hello world kernel module > i write following makefile for building this module. > ### > > obj-m+=hello.o > all: > make -c /lib/modules/ $(sh

Re: build breaks

2007-02-28 Thread Sam Ravnborg
On Wed, Feb 28, 2007 at 07:36:27AM +, Guyeng Gankhuyag wrote: > on PIII 800 PC System, Ubuntu 5.04, kernel 2.6.10-5-386 > > the build breaks whenever I include the ext2_fs.h header into C file as > simple as following: > > #include > #include > #include > #include > #include > #include

Re: [bug #17880] Manual needs example for order-only prerequisites

2006-09-28 Thread Sam Ravnborg
> Details: > > This section needs an example and/or more clarification. > > http://www.gnu.org/software/make/manual/make.html#index-order_002donly-prerequisites-155 > Last time this was requested there was noone that could cook up a sensible example for this strange feature. So unless you come u

Re: [bug #17529] Variable set with $(shell date '+%Y%m%d-%H%M%S') changes mid-make

2006-08-26 Thread Sam Ravnborg
On Sat, Aug 26, 2006 at 03:06:33AM +0200, Terry Jones wrote: > Hi Martin > > | > base = xxx-$(shell date '+%Y%m%d-%H%M%S') > | > | Perhaps you wanted := instead of =. The difference is explained in (for > | example): > | > | http://www.gnu.org/software/make/manual/html_node/Reading-Makefiles.ht

Re: make removes trailing '/' when dir does not exists

2006-04-10 Thread Sam Ravnborg
Any reply for this one? I still do not get the rationale behind it. A quick (very quick) grep in the make soruce did not tell me anything. Sam On Wed, Apr 05, 2006 at 11:57:51PM +0200, Sam Ravnborg wrote: > This is with GNU Make 3.80 > > Consider following Makefile: &g

make removes trailing '/' when dir does not exists

2006-04-05 Thread Sam Ravnborg
This is with GNU Make 3.80 Consider following Makefile: .PHONY: $(MAKECMDGOALS) $(MAKECMDGOALS): @echo $@ As expected it prints out the targetname when supplied with a filename as parameter (no matter if the file exists or not): make foo.c => foo.c When I try specifying an existing dir

Re: kbuild: Problem with latest GNU make rc

2006-03-10 Thread Sam Ravnborg
[linux-kernel added. Please keep both bug-make and linux-kernel] On Wed, Mar 01, 2006 at 10:46:25AM -0500, [EMAIL PROTECTED] wrote: Content-Description: message body text > Hi all. I've set Reply-To: to the bug-make@gnu.org list; I'm hoping we > can keep the discussion there since I don't subscri

Re: kbuild: Problem with latest GNU make rc

2006-03-06 Thread Sam Ravnborg
On Sun, Mar 05, 2006 at 05:21:08PM -0500, Paul D. Smith wrote: > %% Sam Ravnborg <[EMAIL PROTECTED]> writes: > > sr> I foresee a lot of mails to lkml the next year or more with this > sr> issue if kept. People do build older kernels and continue to do so > sr>

Re: submake messages not perfect

2004-08-29 Thread Sam Ravnborg
On Sun, Aug 29, 2004 at 01:44:48AM -0400, Paul D. Smith wrote: > %% Dan Jacobson <[EMAIL PROTECTED]> writes: > > dj> The messages on submakes aren't perfect. > dj> make[1]: Entering directory `/tmp' > dj> make[1]: Leaving directory `/tmp' > dj> You mean "starting submake 1" and especially

Re: bugs fixed in -bk4

2004-06-26 Thread Sam Ravnborg
On Sat, Jun 26, 2004 at 05:17:55PM -0500, Boris Kolpackov wrote: > Sam Ravnborg <[EMAIL PROTECTED]> writes: > > > >From info make: > > >>>>>>>>>>>>>>>>>>>>> > > Rule Definition > > ---

Re: bugs fixed in -bk4

2004-06-26 Thread Sam Ravnborg
On Sat, Jun 26, 2004 at 04:18:06PM -0500, Boris Kolpackov wrote: > > Another patch, which I think you may be interested in, is > pattern-specific-expansion.patch. Here is the description: > > The following makefile prints 'B' instead of 'A'. > > a := A > > %bar : arg := $a >

Re: Using % in a variable name as a static pattern prereq?

2004-03-13 Thread Sam Ravnborg
On Thu, Mar 11, 2004 at 06:05:24PM -0800, Carl Miller wrote: > > $(filter %.a,$(TARGETLIBS)) : %.a : $(%_OBJS) > $(AR) rc $@ $^ > $(RANLIB) $@ Form 'info make': Reading Makefiles | How 'make' Reads a makefile --

Re: return codes

2004-03-12 Thread Sam Ravnborg
On Sun, Mar 07, 2004 at 11:27:38PM +, J. Grant wrote: > Greetings > > Could someone direct me to documentation on the various return codes > make returns please? I could not spot any so far in the man/info pages > or source code. info make Look for the menu "* Invoking make: Running."

Re: Hi

2004-03-02 Thread Sam Ravnborg
On Tue, Mar 02, 2004 at 03:58:04PM +0700, Do Manh Hung wrote: > I'm installed Qt right way with threading support, I think so. > (configure -thread then make and make install) > But I can not install kdeverlop on Solaris9 x86 because of error : > configure:27069: error: Qt (>= Qt 3.0) (library qt-

Re: filter-out, very slow?

2004-01-30 Thread Sam Ravnborg
On Fri, Jan 30, 2004 at 12:34:50PM -0500, Daniel Shane wrote: > For users, that means that instead of > > $(filter-out $(str1), $(str2)) > > it woudl become > > $(filter-out ($sort $(str1)), ($sort $(str2))) That would in some usages have influence on linking order, which will be a disaster to

Re: Enhancement request regarding make variable names

2004-01-10 Thread Sam Ravnborg
On Fri, Jan 09, 2004 at 01:41:45PM -0500, Dale R. Worley wrote: > It would be a useful thing if Make variable names were forbidden to > contain slash (`/'), as well as `:', `#', and `='. If you take a look at the linux 2.6 kernel you will see '/' used all over the place in variables. So my vote is

Re: Mode_perl make test errrors

2003-11-02 Thread Sam Ravnborg
On Sun, Nov 02, 2003 at 12:46:24PM +, sudhakar Avirneni wrote: > > Server version: Apache/2.0.48 > Server built: Nov 1 2003 05:42:18 Hi Sudhakar. This mailing list is used to report bugs in make itself, not in the build process of Apache or similar tools. What you report looks like a bug i

Re: makefile:71: *** Recursive variable `LIBS' references itself (eventually). Stop

2003-10-27 Thread Sam Ravnborg
On Tue, Oct 28, 2003 at 12:21:49PM +0900, Dominique DEUFF wrote: > > Hello, > > I have to rebuild a project with the makefile I join at the end. > I obtain this error : > makefile:71: *** Recursive variable `LIBS' references itself > (eventually). Stop > >

Re: Hi.

2003-10-18 Thread Sam Ravnborg
On Sat, Oct 18, 2003 at 12:33:48AM -0700, Erkin Borucu wrote: > My name is Erkin. > I have small problem > I m first install this program. > Can you help me ? > > Report bugs to <[EMAIL PROTECTED]>. > [EMAIL PROTECTED] src]# make > g++ -O2 --pipe -I/usr/local/include -c -o > LDAPException.o LDAPE

Re: Static pattern usage

2003-10-06 Thread Sam Ravnborg
On Mon, Oct 06, 2003 at 01:53:48PM +0400, Peter A. Kerzum wrote: > I used this trick with rather complex define/eval constructs > It really works but sometimes gives me 'virtual memory exhaused' > If you (Sam) are interested, I can give you precise example. I would be glad to see that - if not for

Re: Static pattern usage

2003-10-03 Thread Sam Ravnborg
On Fri, Oct 03, 2003 at 05:18:04PM -0400, Paul D. Smith wrote: > > sr> Is it coorect behaviour that make does not expand the variable > sr> $(deps_foo.o)? > > Yes, because that's not the variable you asked to expand. You asked it > to expand the variable $(deps_%). Got it now, found the rig

Re: Static pattern usage

2003-10-03 Thread Sam Ravnborg
On Fri, Oct 03, 2003 at 05:26:54PM -0400, Paul D. Smith wrote: > > No make expands $* in the prerequisites list to the name of the target. Hmmm.. foo.o : _$* FORCE echo $^ FORCE: I expected make to print out: make: *** No rule to make target `_foo.o', needed by `foo.o'. Stop. But I g

Static pattern usage

2003-10-03 Thread Sam Ravnborg
I'm having troubles using static patters. See following example: deps_foo.o := foo.h foo.o : % : $(deps_%) bar.h FORCE @echo $^ FORCE: When executed I expected it to print: foo.h bar.h FORCE But it only prints bar

Re: Static pattern usage

2003-10-03 Thread Sam Ravnborg
On Fri, Oct 03, 2003 at 11:01:02PM +0200, Sam Ravnborg wrote: > I'm having troubles using static patters. > See following example: > > deps_foo.o := foo.h > > foo.o : % : $(deps_%) bar.h FORCE >

Re: GNU make: Please give an example for the 'if' function (chapter 8 .5 of 'make.html')

2003-09-23 Thread Sam Ravnborg
On Tue, Sep 23, 2003 at 02:42:36PM +0200, Haeusler Reinhard wrote: > > I wanted to set a variable depending on another variable to different > values. You need to use a few tricks to do this. I have rewritten the code you provided: > VAR2 = $(if ??? $(VAR1), S1, s, $(if ??? $(VAR1), M, m)) # ???

Re: [FEATURE Request] Please add an option to list all dependenciesof a target (recursively)

2003-08-27 Thread Sam Ravnborg
On Wed, Aug 27, 2003 at 12:12:38AM -0500, Manoj Srivastava wrote: > Hi, > [Please retain the CC to [EMAIL PROTECTED] so >that the Debian Bug Tracking system can record your input] > > This was a feature request from a Debian user. > > I would like a way to list all d

Re: Variable is assigned wrong value

2003-07-30 Thread Sam Ravnborg
On Wed, Jul 30, 2003 at 04:36:20PM -0400, Paul D. Smith wrote: > %% Sam Ravnborg <[EMAIL PROTECTED]> writes: > > sr> When a variable is followed by a comment the variable is assigned > sr> a value containing a space. > > Yes. This is documented in the manual a

Variable is assigned wrong value

2003-07-30 Thread Sam Ravnborg
When a variable is followed by a comment the variable is assigned a value containing a space. Sample Makefile: -- var1 := X var2 := X # Comment $(warning var1=-$(var1)-) $(warning var2=-$(var2)-) all: -- Output: $make -v GNU Make 3.80 Copyri

Re: Output line too long.

2003-07-23 Thread Sam Ravnborg
On Wed, Jul 23, 2003 at 02:23:04PM +0200, Anton van Oosten wrote: > L.S. > > When building KOffice 1.2.91 (Kpresenter) gmake 3.79 warns:"Output line too > long." Then gmake exits in a way that suggests that some output line was > truncated. I tried to grep the make sources (3.80), and there was

Re: gmake and embedded PL/SQL block

2003-07-23 Thread Sam Ravnborg
On Wed, Jul 23, 2003 at 02:52:49PM -0500, Pankratz, Theresa wrote: > I am trying to compile a Pro*C project using gmake. One of the pc files in > the project contains embedded PL/SQL. I have set SQLCHECK=SEMANTICS > USERID=scott/tiger in the mk file. I keep getting errors that look like > gmake

Re: ..:: DREAMCAST PROGRAMMING WITH Dev-C++ : ERROR WITH "MAKE.EXE"::..

2003-07-20 Thread Sam Ravnborg
On Sun, Jul 20, 2003 at 02:53:32PM +0200, DeZNiUS wrote: > But when i try to compile any program, i have this error : > > Compilator : Dreamcast Profil > Building Makefile: "E:\Documents and Settings\DEZNIUS\Bureau\COOL\Makefile.win" > Finding dependencies for file: E:\Documents and > Settings\DE

Re: make is deleting the c files created during compilation

2003-06-22 Thread Sam Ravnborg
On Sun, Jun 22, 2003 at 04:15:13PM +0100, J. Grant wrote: > Hello, > > I'm experiencing an odd effect using GNU Make version 3.79.1. > > When the file created during the execution of the makefile is deleted > based on this line "$(BMP2C) $< $(*F) > $@" in the Makefile below. > > Does make have

Re: Canned command sequences

2003-06-20 Thread Sam Ravnborg
On Fri, Jun 20, 2003 at 06:17:45PM -0400, Paul D. Smith wrote: > > Yes, exactly. > > In fact, it was a regression in 3.79.1 which allowed it to "work" there, > and I fixed that bug in 3.80. If you use older versions of GNU make > you'll see they work like 3.80, not 3.79.1. Thanks! Then I apolog

Re: Canned command sequences

2003-06-20 Thread Sam Ravnborg
Hi all. Posted the following a few weeks ago - wondered if anyone could explain it. I have stripped down the background info a bit - so the essense is kept. TIA, Sam On Tue, Jun 03, 2003 at 10:50:53PM +0200, Sam Ravnborg wrote: > The following makefile exhibit the problem, also at

Re: Suffix rule not applied - make says its impossible(sometimes....)

2003-06-18 Thread Sam Ravnborg
On Wed, Jun 18, 2003 at 03:21:46PM +0100, Alex Hornby wrote: > > I've looked into this a bit more and it is VPATH related. > > If I copy PnL.idl from the source area into the build area then make > thinks the suffix rule is fine. > > Alex. > > > On Thu, 2003-04-03 at 12:40, Alex Hornby wrote:

Re: Brahms bug report

2003-06-14 Thread Sam Ravnborg
On Sat, Jun 14, 2003 at 01:59:46PM +0400, Aleksej Mazunin wrote: > Hello! > I have a problem when trying to make Brahms application. > Logfiles are attached. Could you please attach them as plain text files. Neither gunzip nor bunzip2 understand the format of the .zip file you have attached. May

Re: problems with directory in make

2003-06-11 Thread Sam Ravnborg
On Wed, Jun 11, 2003 at 10:36:11AM -0400, Paul D. Smith wrote: > > This would work: > > install: > cd LINUX/mod; mod2=`echo *` Or without launching a shell: install:mod2 := $(patsubst LINUX/%,%,$(wildcard LINUX/*)) $(wildcard LINUX/*) will list all files in the LINUX directory

Canned command sequences

2003-06-04 Thread Sam Ravnborg
I have a few reports that when building the Linux 2.5.70 kernel the build system is more noisy than supposed to be. The problem is tracked down to usage of canned command sequences. The following is from the makefiles: #General definition (scripts/Makefile.lib) if_changed_rule = $(if $(strip $? \