Re: Goodbye to GNU make's "build.sh" ... ?

2022-06-25 Thread Sven C. Dack
Hello, developers causing a "Catch 22" paradox is not new. You want to avoid such software, or at least work around it with a big margin. Sharply limiting the use of gnulib here may not provide such a margin and cause repeated trouble in the future. Your condition of "to those with trivial-enough

[PATCH] new option -u, --memory-used

2022-02-12 Thread Sven C. Dack
struct child *); @@ -1616,7 +1617,7 @@ /* If we are running at least one job already and the load average is too high, make this one wait. */ if (!c->remote - && ((job_slots_used > 0 && load_too_high ()) + && ((job_slots_used > 0 &a

Re: Linux /proc/loadavg (graphs)

2022-01-16 Thread Sven C. Dack
memory use. https://i.imgur.com/9oshAfc.png On 15/01/2022 10:29, Sven C. Dack wrote: Hello, the ChangeLog says the following: 2019-12-17  Paul Smith ...     * src/job.c (load_too_high): Disable Linux /proc/loadavg for now     This new feature has a problem: if you provide a load which is

Linux /proc/loadavg

2022-01-15 Thread Sven C. Dack
Hello, the ChangeLog says the following: 2019-12-17  Paul Smith ...     * src/job.c (load_too_high): Disable Linux /proc/loadavg for now     This new feature has a problem: if you provide a load which is     larger than the number of cores then it will always run every job.     Before we can

Re: Regression caused by Commit: 5bd7ad2b225b ("Preserve the real value of -jN in MAKEFLAGS using jobserver.")

2017-10-30 Thread Sven C. Dack
On 30/10/17 21:22, Paul Smith wrote: If we see -j in a makefile setting of MAKEFLAGS, we could: 1. Always silently ignore it (today's behavior). 2. Always print a message then ignore it. 3. Treat it the same way as a recipe with $(MAKE) -j: that is, start a new jobserver grou

Re: Regression caused by Commit: 5bd7ad2b225b ("Preserve the real value of -jN in MAKEFLAGS using jobserver.")

2017-10-30 Thread Sven C. Dack
On 30/10/17 07:33, Tim Murphy wrote: For my money -j is always a top-level setting.   To have it per makefile and then let makefiles depend on that behaviour would open the door to lots of scary bugs. Regards, Tim Agreed. Using -j in a Makefile is not portable, because it can cause a sys

Re: Converting make rules into other file formats

2017-10-15 Thread Sven C. Dack
I apologise for the mix up. I've pasted the wrong e-mail address into my response. I meant to say that you will have to be more specific when you ask on help-m...@gnu.org. If you could please continue the conversation there, thank you. On 14/10/17 17:06, Sven C. Dack wrote: ... You

Re: Converting make rules into other file formats

2017-10-14 Thread Sven C. Dack
Hello Markus, you've picked the wrong mailing list. The bug-make@gnu.org is a mailing list only for discussing bugs and issues with the make program itself. Please use help-m...@gnu.org for your question. You can subscribe to help mailing list here: https://lists.gnu.org/mailman/listinfo/hel

Re: A little help with Makefile.

2017-10-09 Thread Sven C. Dack
to be read. See here:     http://www.gnu.org/software/make/manual/html_node/index.html Cheers On 09/10/17 15:01, Sambhav dutt wrote: Greetings, I am completely new to Makefile and I must run linux/unix commands and not C,CPP at all. I am confused how to start writing a Makefile, like a

Re: [bug #52076] wildcard/glob should be sorted

2017-09-21 Thread Sven C. Dack
One thought I have here is that the sorting algorithm itself may not have a significant impact, but hard disk latencies may well make a difference. What one sees as an (alphabetically) unordered list may well be an ordering significant to a file system's performance, meaning, it's not a compl

Updated patch (was: Re: improving the -l option)

2017-08-22 Thread Sven C. Dack
igure script checks for a useable /proc/loadavg file, but the result can be overwritten manually with --enable-proc-loadavg={yes,no}. Cheers, Sven On 09/10/16 19:58, Sven C. Dack wrote: Hello, I have created a patch to improve make's behaviour with regards to parallel execution and s

Re: TP-LINK Archer T2UH HELP

2017-08-17 Thread Sven C. Dack
Hello Jason, only judging by the output you've send has the compiler been called with -Werror and therefore is treating warnings as errors. You may want to find the flag -Werror in the Makefile and remove it. See if it compiles with only the warnings. On 17/08/17 00:53, th...@vmware.com wro

Fwd: Re: Target-specific variable in subdirectory problem

2017-08-03 Thread Sven C. Dack
efile sub-z/Makefile --- Makefile --- SUBS := $(wildcard sub-*/) SUB_TARGETS := $(patsubst %,%%,$(SUBS)) $(SUB_TARGETS): make -C $(dir $@) $(notdir $@) FOO := "Makefiles" include Makefile.subs --- Makefile.subs --- test-%: @echo "$(FOO)" --- sub-a/Makefile --- FOO := &

Re: Target-specific variable in subdirectory problem

2017-08-02 Thread Sven C. Dack
and whatever he wants to do isn't going to work with make, but until then it's best to keep an open mind, to stay positive and to try to find something that might work for him and not tell each other whose wrong and right. Cheers On 02/08/17 21:36, Paul Smith wrote: On Wed, 2017-0

Re: Target-specific variable in subdirectory problem

2017-08-02 Thread Sven C. Dack
e. Or am I missing something? We are all adults here, right? On 02/08/17 20:55, Paul Smith wrote: On Wed, 2017-08-02 at 20:40 +0100, Sven C. Dack wrote: It's my understanding that we don't actually know what Benjamin wants to do, because nobody has asked. So I don't see how this would m

Re: Target-specific variable in subdirectory problem

2017-08-02 Thread Sven C. Dack
subdir/test-stem", which is what he will get when he uses $(eval ...). Respectfully, Sven On 02/08/17 20:12, Kyle Rose wrote: On Wed, Aug 2, 2017 at 3:03 PM, Sven C. Dack wrote: Hello, try it with the following rules: test-%: $(eval FOO = BAR) test-%: echo $(FOO) FOO is a globa

Re: Target-specific variable in subdirectory problem

2017-08-02 Thread Sven C. Dack
Hello, try it with the following rules: test-%: $(eval FOO = BAR) test-%: echo $(FOO) $ make test-stem echo BAR BAR $ make subdir/test-stem echo BAR BAR I cannot tell you why it fails in your example. My guess is that it's just not good practise to use a plain assignment for a prerequisit

Re: Baffled by cc -o in Make manual

2017-08-01 Thread Sven C. Dack
Hello, this is completely normal. The compiler calls the assembler and linker automatically when needed and depending on the input files. One doesn't actually call the assembler and linker manually in most cases. You can do: cc -c prog.c -o prog.o This will compile the file &#

Re: [bug #49844] 'make -j' without explicit process count sometimes doesn't parallelize

2017-06-22 Thread Sven C. Dack
Hello Paul, I was thinking of "--", but didn't test it, because it isn't being mentioned in the man page nor in the info page. Cheers On 22/06/17 13:10, Paul Smith wrote: On Thu, 2017-06-22 at 13:01 +0100, Sven C. Dack wrote: You either have to restrict the number

Re: [bug #49844] 'make -j' without explicit process count sometimes doesn't parallelize

2017-06-22 Thread Sven C. Dack
00 | sed 's,^,t,' | xargs -n1000 make -j which results in: $ make -j t1 t2 t3 ... Or if it needs to be unlimited and it has to be numerical arguments can you simply do this: $ seq 1000 | xargs -n1000 make -j -C . which results in: $ make -j -C . 1 2 3 ... The -C option tells

improving the -l option (addendum)

2016-10-09 Thread Sven C. Dack
A minor correction. I've missed a test for an error case. Updated patch can be found in the attachments. Sven --- make-4.2.1/configure.ac 2016-06-06 13:27:31.0 +0100 +++ make-4.2.1.1/configure.ac 2016-10-09 18:33:34.574257275 +0100 @@ -176,10 +176,30 @@ AS_IF([test "$have_guile"

improving the -l option

2016-10-09 Thread Sven C. Dack
Hello, I have created a patch to improve make's behaviour with regards to parallel execution and system load. On Linux do the load averages refresh only every 5 seconds. Further do load averages only ever represent past but not present load. As a consequence does this lead to idle times duri

Re: Crashing when using make with option -j.

2010-03-22 Thread Thiago C. Santini
On Fri, Mar 19, 2010 at 4:39 AM, Eli Zaretskii wrote: > > Date: Thu, 18 Mar 2010 16:26:19 -0700 > > From: tom honermann > > Cc: bug-make@gnu.org > > > > > > On 3/18/2010 2:22 PM, Thiago C. Santini wrote: > > > Yeah, that was my first thought when usi

Re: Crashing when using make with option -j.

2010-03-18 Thread Thiago C. Santini
On Thu, Mar 18, 2010 at 5:41 PM, Paul Smith wrote: > On Thu, 2010-03-18 at 14:57 -0300, Thiago C. Santini wrote: > > We have a computer in our lab we use to run simulations and sometimes > > compiling. It's been working just fine for over 6 months now but > > during

Crashing when using make with option -j.

2010-03-18 Thread Thiago C. Santini
i686 GNU/Linux Ubuntu version is 9.04(32 bits) (yeah we do also have a 64 bits version installed =p) If any info is needed or I sent this message to the wrong place just let me know. Thanks in advance, -- Thiago C. Santini ECP/07 ___ Bug-make mail

PATCH: make-3.81 - read.c bug?

2006-04-26 Thread Michael C Thompson
Hi, In file read.c, the function multi_glob() has #ifndef NO_ARCHIVES code which I believe has a bug. Once you enter the large encompassing for loop memname get sets to either NULL or non-NULL (due to a malloc). Then, entering case 0, i gets set to gl.gl_patchc, and a while loop churns over

PATCH: make-3.81

2006-04-26 Thread Michael C Thompson
Hi, In file implicit.c, there seems to be a variable 'remove_explicit_deps' which, as far as I can tell, serves as a flag to "remove all the dependencies that didn't come from this implicit rule", as per the comment in the code. However, this variable is initialized to 0, then set to 0, then

implicit rule invocation issue

2004-07-26 Thread Hakenson, Gary C.
Hi developers, I have an issue with make that I am unable to resolve on my own. My makefile contains an implicit rule as follows: %.d : %.c (command to create a .d file from the .c file here) I also have the VPATH variable set as follows: VPATH = /d When I run

A bug with libpanel_status.so.0

2002-12-26 Thread c
Hi there, When I compile my program, I get this message: firestarter: error while loading shared libraries: libpanel_status.so.0: cannot open shared object file: No such file or directory How can I solve this problem knowing that I downloaded libpanel_status.so.0? Big thanks. __

RE: Bug with semicolon in target specific variable?

2002-04-18 Thread Bhatt, Milan C
n in GMAKE ;) Milan -Original Message- From: Johan Bezem [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 17, 2002 5:05 AM To: Bhatt Milan C Cc: '[EMAIL PROTECTED]' Subject: Re: Bug with semicolon in target specific variable? Semicolons have a special meaning in GNU-make. RTFM! Escapin

Bug with semicolon in target specific variable?

2002-04-15 Thread Bhatt, Milan C
Hello,   It seems GMAKE doesn't like having semicolons within the value of a target specific variable.     a : SOME_VAR := c; d a :    @echo $(SOME_VAR)   The above exampe gives me the following error:   c/bin/sh: d: Execute permission denied.gmake: *** [a] Error 127   So it prin

RE: Recursive GMAKE with -j option

2001-06-29 Thread Bhatt, Milan C
ut I'm not too sure about how POSIX compliant it is. Thanks, Milan -Original Message- From: Paul D. Smith [mailto:[EMAIL PROTECTED]] Sent: Friday, June 29, 2001 12:06 PM To: Bhatt, Milan C Cc: '[EMAIL PROTECTED]' Subject: Re: Recursive GMAKE with -j option %% "Bhatt

Recursive GMAKE with -j option

2001-06-29 Thread Bhatt, Milan C
Hello,   Has anyone run into problems when performing recursive GMAKE AND specifying the -j option?  I've noticed that there are no problems with the following:   gmake -j   when you're doing recursive gmake.  But I run into problems when I specify an integer value for the -j option:   gmak

Documentation bugs?

2000-09-06 Thread C Dasgupta
This is the manual for GNU make 3.77, May 1998 1) On P 79 (Sec 9.7), looks like '--jobs=[jobs]' should have been '--jobs[=jobs]' (I sent this bug also to [EMAIL PROTECTED] since I was not sure where to send it). 2) By P 43 ( sec 5.7), there have been at least two references to '+' character