Re: patch to fix grouped_targets test 1

2019-09-14 Thread Paul Smith
On Tue, 2019-09-10 at 20:36 -0400, Dmitry Goncharov via Bug reports and discussion for GNU make wrote: > echo -n is not portable. > Certain implementations of echo everything, including -n. > This makes test 1 of grouped_targets fail. This was already fixed by a patch from Paul Eggert on Aug 27. T

Re: patch locale settings

2019-09-14 Thread Paul Smith
On Sat, 2019-09-14 at 16:19 -0400, Dmitry Goncharov wrote: > On Sat, Sep 14, 2019 at 10:22 AM Paul Smith wrote: > > and, I've checked with a makefile invoked by the test suite and > > this setting is in effect, even if the shell invoking > > run_make_tests.pl has a di

Re: patch locale settings

2019-09-14 Thread Paul Smith
On Sat, 2019-09-14 at 18:27 -0400, Paul Smith wrote: Can you apply the attached patch Oops ignore/delete the diff of m4/.gitignore :( ___ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make

Re: patch out of source builds

2019-09-14 Thread Paul Smith
On Fri, 2019-09-13 at 21:40 -0400, Dmitry Goncharov via Bug reports and discussion for GNU make wrote: > -The third serious problem is that it's not relocatable: the only > -way it works when you build out of the source tree is to create > -symlinks, which doesn't work on every system and is bogus

Re: patch locale settings

2019-09-15 Thread Paul Smith
On Sat, 2019-09-14 at 22:31 -0400, Dmitry Goncharov wrote: > On Sat, Sep 14, 2019 at 6:27 PM Paul Smith wrote: > > Your setting of LANG or LC_MESSAGES > > cannot make any difference to the test suite because the test suite > > does not pass those values to the make that

Re: patch locale settings

2019-09-15 Thread Paul Smith
On Sun, 2019-09-15 at 09:44 -0400, Dmitry Goncharov wrote: > > So, the question is why does your Perl still provide language-specific > > messages? > has_POSIX is uninitialized at the time test_driver.pl reads it, because > (atleast in my testing) the code which initializes has_POSIX hasn't run yet

Re: patch locale settings

2019-09-15 Thread Paul Smith
On Sun, 2019-09-15 at 13:01 -0400, Dmitry Goncharov wrote: > perl will tell you that it does not know what POSIX::LC_MESSAGES is. > > This patch initializes has_posix right here in test_driver.pl and pulls in > locale_h. > This patch sets LC_ALL because we saw that LANG has an affect. > This patc

GNU make 4.2.91 release candidate available

2019-09-16 Thread Paul Smith
GNU make is a tool which controls the generation of executables and other non-source files of a program from the program's source files. You can learn more at: https://www.gnu.org/software/make/ --

Re: vpathplus test 2 patch

2019-09-16 Thread Paul Smith
On Thu, 2019-09-12 at 09:33 +0200, Andreas Schwab wrote: > On Sep 11 2019, Dmitry Goncharov wrote: > > On Wed, Sep 11, 2019 at 2:51 AM Andreas Schwab wrote: > > > > The new hashing mechanism hashes differently on big vs little > > > > endian. > > > > > > Should this be considered as a bug? > >

Re: patch realpath on aix

2019-09-16 Thread Paul Smith
On Fri, 2019-09-13 at 21:42 -0400, Dmitry Goncharov via Bug reports and discussion for GNU make wrote: > aix implementation of realpath returns a path with a trailing slash > given a path with 2 or more trailing slashes. This makes realpath test > fail. This one didn't make it into the current RC

Re: "make check" failure on Solaris 10 with make 4.2.91

2019-09-16 Thread Paul Smith
On Mon, 2019-09-16 at 11:04 -0700, Paul Eggert wrote: > syntax error at ./run_make_tests.pl line 473, near "or continue" Ugh. Can you change this line: -x $prog or continue; to this: -x $prog or next; ? That's a dumb syntax error. Too many different languages. However, I don't

Re: "make check" failure on Solaris 10 with make 4.2.91

2019-09-16 Thread Paul Smith
On Mon, 2019-09-16 at 12:23 -0700, Paul Eggert wrote: > > Can you run this and tell me what it prints: > > > >perl -we 'use File::Spec::Functions qw(splitpath); my @o = > splitpath("../make"); print "@o\n"' > > A single line " ../make". Ugh, that's wrong. It should be " ../ make" (note the

Re: "make check" failure on Solaris 10 with make 4.2.91

2019-09-21 Thread Paul Smith
On Mon, 2019-09-16 at 15:49 -0400, Paul Smith wrote: > Ugh, that's wrong. It should be " ../ make" (note the space before > "make"). File::Spec is not correctly splitting the directory from the > file, apparently. Bogus!! Can you try this one: > >

Re: "make check" failure on Solaris 10 with make 4.2.91

2019-09-21 Thread Paul Smith
On Sat, 2019-09-21 at 12:09 -0700, Paul Eggert wrote: > On 9/21/19 10:55 AM, Paul Smith wrote: > > perl -we 'use File::Spec; my @o = File::Spec->splitpath("../make"); > > print "@o\n"' > > It outputs a single line containing " ../ make&q

Re: patch, test suite fails to run valgrind

2019-09-21 Thread Paul Smith
On Wed, 2019-09-18 at 21:38 -0400, Dmitry Goncharov via Bug reports and discussion for GNU make wrote: > The test suite fails to run valgrind with an error message like the following. I pushed a different fix for this issue. Thanks for noticing! ___ B

Re: patch, test suite fails to run valgrind

2019-09-22 Thread Paul Smith
On Sat, 2019-09-21 at 21:21 -0400, Dmitry Goncharov wrote: > On Sat, Sep 21, 2019 at 04:54:59PM -0400, Paul Smith wrote: > > I pushed a different fix for this issue. Thanks for noticing! > Thank you. > Do you intentionally avoid $! in the "Cannot execute" error message?

Re: Make error messages

2019-09-22 Thread Paul Smith
On Wed, 2019-09-11 at 08:44 +0200, Andreas Schwab wrote: > On Sep 10 2019, Paul Smith wrote: > > > That didn't work, however, because particularly in recursive make > > the makefile name is likely not qualified with a path, but the > > current working directory whe

Re: Documentation issue

2019-09-22 Thread Paul Smith
On Thu, 2019-09-05 at 16:49 -0400, Peter Marshall wrote: > 5.3 Recipe Execution > > foo : bar/lose > cd $(@D) && gobble $(@F) > ../$@ Indeed this is incorrect. I've updated the manual. Thanks for mentioning this! ___ Bug-make mailing list Bu

Re: [PATCH] configure.ac: Fix gettimeofday check for C99 compilers

2019-09-22 Thread Paul Smith
On Tue, 2019-09-10 at 13:33 +0200, Florian Weimer wrote: > * configure.ac (HAVE_GETTIMEOFDAY): Avoid reference to undeclared > exit function. I applied this to Git. Thanks for contributing to GNU make! ___ Bug-make mailing list Bug-make@gnu.org https:

Re: vpathplus test 2 patch

2019-09-22 Thread Paul Smith
On Mon, 2019-09-16 at 15:07 +0200, Andreas Schwab wrote: > > I didn't apply this change because I'm not exactly sure where I want to > > go with this yet. I'm not excited about tweaking the test suite based > > on the endianness of the underlying system but it seems silly to reduce > > the perform

Re: GNU make 4.2.91 release candidate available

2019-09-22 Thread Paul Smith
On Tue, 2019-09-17 at 09:40 +0200, Dagobert Michelsen wrote: > cd tests && perl ./run_make_tests.pl -srcdir > /home/dam/mgar/pkg/gmake/trunk/work/solaris10-i386/build-isa- > pentium_pro-guile-yes/make-4.2.91 -make ../make > syntax error at ./run_make_tests.pl line 473, near "or continue" > Executio

Re: patch realpath on aix

2019-09-22 Thread Paul Smith
On Fri, 2019-09-13 at 21:42 -0400, Dmitry Goncharov via Bug reports and discussion for GNU make wrote: > aix implementation of realpath returns a path with a trailing slash > given a path with 2 or more trailing slashes. This makes realpath test > fail. I changed the realpath function to remove tr

Re: GNU make 4.2.91 release candidate available

2019-09-23 Thread Paul Smith
On Mon, 2019-09-23 at 07:48 +0200, Dagobert Michelsen wrote: > Hi Paul, > > Am 22.09.2019 um 23:42 schrieb Paul Smith : > > On Tue, 2019-09-17 at 09:40 +0200, Dagobert Michelsen wrote: > > > Additionally, I have two failed tests on Solaris 10 borg Sparc > > > x8

Re: gmake-4.2.90 regression (segmentation fault in sum_up_to_nul )

2019-09-24 Thread Paul Smith
On Tue, 2019-09-03 at 04:14 +, Dmitry Goncharov via Bug reports and discussion for GNU make wrote: > sum_up_to_nul reads 4 bytes starting from the passed string 'p'. > 'p' can have fewer than 4 bytes. Usually there more allocated space > after 'p', which prevents this reading from manifesting i

Re: gmake-4.2.90 regression (segmentation fault in sum_up_to_nul )

2019-09-25 Thread Paul Smith
On Wed, 2019-09-25 at 08:29 +, Edward Welbourne wrote: > > With "normal" systems it's safe to read (only) memory beyond the end > > of an array, at least up to the next word size, which is what this > > code does. > > If you want to be able to rely on this "normal" behaviour, for the sake > of

Re: Access to change SPL date on GSI

2019-10-04 Thread Paul Smith
On Fri, 2019-10-04 at 15:50 -0700, Deepasree Mulabagal via Bug-make wrote: > I am Unable to setup the path for "vtslab" under working directory > for changing the SPL Date on GSI. I filed a bug but unable to assign > it to bug-make@gnu.org, could you please take a look at the below > issue. Sorr

Re: gmake-4.2.90 regression (segmentation fault in sum_up_to_nul )

2019-10-05 Thread Paul Smith
On Tue, 2019-09-03 at 04:14 +, Dmitry Goncharov via Bug reports and discussion for GNU make wrote: > sum_up_to_nul reads 4 bytes starting from the passed string 'p'. > 'p' can have fewer than 4 bytes. Usually there more allocated space > after 'p', which prevents this reading from manifesting i

Re: GNU make 4.2.90 release candidate available

2019-10-05 Thread Paul Smith
On Sat, 2019-08-31 at 13:59 +0300, Eli Zaretskii wrote: > The failures where all eyeballed, and the conclusion is that they are > due to non-portable assumptions that are too much work to fix. The > worst offenders are: > > . the assumption that $$FOO gets expanded by the shell into the > v

Re: [bug #57014] make-4.2.91 segfaults under Solaris 10 when many files are involved

2019-10-07 Thread Paul Smith
On Mon, 2019-10-07 at 11:26 -0400, Dmitry Goncharov wrote: > On Mon, Oct 7, 2019 at 9:03 AM anonymous > wrote: > > With the following Makefile, make-4.2.91 segfaults on my Solaris > > 10: > > ... > > include /dev/null > > dummy: subdir/*.c > > include /dev/null > > This reproduces for me. This i

GNU make 4.2.92 release candidate available

2019-10-08 Thread Paul Smith
GNU make is a tool which controls the generation of executables and other non-source files of a program from the program's source files. You can learn more at: https://www.gnu.org/software/make/ --

Re: [PATCH] Port functions/shell to Solaris 10

2019-10-10 Thread Paul Smith
On Tue, 2019-10-08 at 15:28 -0700, Paul Eggert wrote: > * tests/scripts/functions/shell: Port exit-status calculation > to Solaris 10 with Perl 5.8.4. Thanks Paul. I had hoped that my attempts to get Perl to tell me what the expected return codes are on the local system would have been sufficient

Re: [PATCH 2/2] [SV 54161] Fix second expansion of $*

2019-10-12 Thread Paul Smith
On Sat, 2019-10-12 at 13:11 +0200, Jouke Witteveen wrote: > Before, this was only expanded to $(*F) in prerequisites. Sorry but I need more information than this; I can't understand this change. The bug in Savannah, as I understand it, is that directory prefixes which should be present are missin

Re: [build_w32.bat] feature request: add optional command line argument for executable name

2019-11-19 Thread Paul Smith
On Fri, 2019-11-15 at 15:52 +0200, Eli Zaretskii wrote: > Ping! Paul, did you have a chance to look at this issue? Sorry, I'm quite underwater. I hope to be able to do a bit of make work over the next few weeks: get out a final RC and a release. For this, I don't really understand the issue :).

Re: [PATCH v2 2/3] [SV 54161] Fix second expansion of $*

2019-12-18 Thread Paul Smith
On Sat, 2019-11-23 at 12:22 +0100, Jouke Witteveen wrote: > Is there anything I can do to further review and/or acceptance of this > patch I sent last month? I applied your changes although updates were needed. For the future, please note that (a) changes should contain updates to the regression

Re: [PATCH v2 2/3] [SV 54161] Fix second expansion of $*

2019-12-18 Thread Paul Smith
On Wed, 2019-12-18 at 16:02 +0100, Jouke Witteveen wrote: > Your se_implicit test case got left out of your commit. I guess this > was unintentional. I'm not sure what you mean? It's there...? > Presumably, the test case was based on [SV 54161]. The bug can now be > closed. Yes, will do that la

Re: [RFC] Scoped variables, supercharged

2019-12-26 Thread Paul Smith
On Thu, 2019-12-26 at 21:24 +0100, Jouke Witteveen wrote: > > Your proposal has the potential to create variables that would have > > scope local to a single invocation of a user-defined function, but it > > wouldn't provide scoping to Make-proper. For that reason alone, I > > would sugges

GNU make 4.2.93 release candidate available

2020-01-02 Thread Paul Smith
GNU make is a tool which controls the generation of executables and other non-source files of a program from the program's source files. You can learn more at: https://www.gnu.org/software/make/ --

Re: Word repeated

2020-01-03 Thread Paul Smith
On Fri, 2020-01-03 at 18:41 +0530, nilsocket wrote: > In last bullet point, word `that` is repeated twice. Thanks!

Re: patch, new test features/exec.

2020-01-03 Thread Paul Smith
On Mon, 2019-10-14 at 22:21 -0400, Dmitry Goncharov via Bug reports and discussion for GNU make wrote: > This patch adds a new test features/exec. I added this test with a few adjustments.

Re: No rule to make ?

2020-01-03 Thread Paul Smith
On Wed, 2019-10-09 at 06:00 -0400, Jeffrey Walton wrote: > make: *** No rule to make target 'libcrypto.a', needed by > 'test2.exe'. Stop. > > I have a simple makefile: > > $ cat Makefile > all: test.exe test2.exe > > LIBCRYPTO = -l:libcrypto.a > > test.exe: > $(CXX) $(CXXFLAGS) -g2 -O0

Re: ENOEXEC from exec*() functions...?

2020-01-03 Thread Paul Smith
On Tue, 2019-10-08 at 19:00 +, Martin Dorey wrote: > Sorry to reanimate this but I think I've run into a regression in 4.2.92 > over 4.2.1 that's probably related to this old email thread. Bug or > email, bug or email... email: > > martind@swiftboat:~/playpen/make-2019-10-08$ cat > Makefile >

Re: Feature request / patch: dependency-only prerequisites

2020-01-03 Thread Paul Smith
On Fri, 2019-08-09 at 17:52 +0200, Christof Warlich wrote: > attached is the comprehensive (and significantly reworked) patch that > implements the feature of a new internal variable Hi Christof; .EXTRA_PREREQS is provided in 4.2.93 please test in your environment. Note that I did rework some thi

Re: Feature request / patch: dependency-only prerequisites

2020-01-03 Thread Paul Smith
On Fri, 2020-01-03 at 20:42 +0100, Christof Warlich wrote: > By the way, I stumbled into a minor issue entirely unrelated to the > feature above that you may want to fix: The gnulib git repository > referenced in bootstrap seems to have changed its location, so you may > want it to change it accord

Re: ENOEXEC from exec*() functions...?

2020-01-03 Thread Paul Smith
On Fri, 2020-01-03 at 22:51 +, Martin Dorey wrote: > thanks to some new for loop initial declarations in file.c and rule.c, > which weren't legal in -std=gnu90, the compiler's default dialect. Hrm. I had thought that was legal in C90 but I guess I was wrong :(.

Re: make-4.2.93 patch port to c90

2020-01-03 Thread Paul Smith
On Fri, 2020-01-03 at 22:21 -0500, Dmitry Goncharov via Bug reports and discussion for GNU make wrote: > This patch replaced a c99 piece of code with c90 code. > This c99 piece of code does not compile with the default ./configure && > make. > Also, -std=c99 removes __attribute__. I already made s

Re: make-4.2.93 patch fix compilation in -ansi/-std=c99 mode

2020-01-04 Thread Paul Smith
On Fri, 2020-01-03 at 22:18 -0500, Dmitry Goncharov via Bug reports and discussion for GNU make wrote: > This patch replaces __attribute__ with gmake_attribute to retain the > current behavior of getting __attribute__ removed from gmake's internal > function declartions and keep glibc declarations

Re: Feature request / patch: dependency-only prerequisites

2020-01-04 Thread Paul Smith
On Sat, 2020-01-04 at 10:16 +0100, Christof Warlich wrote: > The original doesen't work from my system (Debian Buster) at least: > > > $ ./bootstrap > > ./bootstrap: Bootstrapping from checked-out make sources... > > ./bootstrap: getting gnulib files... > > Cloning into 'gnulib'... > > fatal: unab

Re: make-4.2.93 patch fix compilation in -ansi/-std=c99 mode

2020-01-04 Thread Paul Smith
On Sat, 2020-01-04 at 20:36 -0500, Dmitry Goncharov wrote: > On Sat, Jan 4, 2020 at 3:23 PM Paul Smith wrote: > > Thanks, I did something similar to this but not quite the same. > Have you pushed? I have now.

Re: make-4.2.93 patch port to c90

2020-01-05 Thread Paul Smith
On Fri, 2020-01-03 at 23:30 -0500, Paul Smith wrote: > On Fri, 2020-01-03 at 22:21 -0500, Dmitry Goncharov via Bug reports and > discussion for GNU make wrote: > > This patch replaced a c99 piece of code with c90 code. > > This c99 piece of code does not compile with the d

Re: make-4.2.93 patch enhance error reporting from the test suite

2020-01-05 Thread Paul Smith
On Fri, 2020-01-03 at 22:19 -0500, Dmitry Goncharov via Bug reports and discussion for GNU make wrote: > This patch enhances error reporting from the test suite. Thanks I applied this.

Re: Feature request / patch: dependency-only prerequisites

2020-01-05 Thread Paul Smith
On Sun, 2020-01-05 at 12:12 +0100, Christof Warlich wrote: > Thus, everything looks perfectly fine so far. But the following still > fails: > > > $ git ls-remote git://git.sv.gnu.org/git/gnulib > > fatal: remote error: access denied or repository not exported: > > /git/gnulib That is not the righ

Re: GNU make 4.2.93 release candidate available

2020-01-05 Thread Paul Smith
On Fri, 2020-01-03 at 02:42 -0500, Paul Smith wrote: > A new release candidate for GNU make 4.3 is available now for download: > > 6b252188079b36d13e96d5527f8ca033 make-4.2.93.tar.lz > 929d4d3a216c02d0d86eb379356f4d1c make-4.2.93.tar.gz > > You can obtain a

Next release: signal handling rewrite

2020-01-05 Thread Paul Smith
I have a deeper set of followup changes I am working on for a post-4.3 release that rewrite the signal handling in GNU make, so that we do not do any work in signal handlers other than setting flags. Today, far too much is done in signal handlers resulting in a number of bugs about hangs etc. (and

Re: GNU make 4.2.93 release candidate available

2020-01-07 Thread Paul Smith
On Mon, 2020-01-06 at 05:33 -0500, Dennis Clarke wrote: > The only nit, and it is a little nit, is the strange use of a three > parameter main() in src/main.c line 1054 and this is a "warning". Well > strictly speaking, pun intended, that isn't a terrible sin but it isn't > correct either. Sure, to

Re: GNU make 4.2.93 release candidate available

2020-01-10 Thread Paul Smith
On Fri, 2020-01-10 at 11:02 -0500, Dennis Clarke wrote: > For some reason you say GNU make needs to read in the entire users > environment? Really? OKay ... *shrug* ... Sure; remember this: https://www.gnu.org/software/make/manual/make.html#Environment > Variables in make can come from the envir

Re: GNU make 4.2.93 release candidate available

2020-01-10 Thread Paul Smith
On Fri, 2020-01-10 at 11:02 -0500, Dennis Clarke wrote: > Meanwhile a friend and I are giving 4.2.93 a look on FreeBSD 12.0 and > a whole slew of packages fail to build. I can reproduce these failures trying to build dpkg 1.19.7 on GNU/Linux with the new make. Ugh!! There seems to be some issue

Re: GNU make 4.2.93 release candidate available

2020-01-10 Thread Paul Smith
On Fri, 2020-01-10 at 14:54 -0500, Paul Smith wrote: > On Fri, 2020-01-10 at 11:02 -0500, Dennis Clarke wrote: > > Meanwhile a friend and I are giving 4.2.93 a look on FreeBSD 12.0 > > and > > a whole slew of packages fail to build. > > I can reproduce these failures

Re: GNU make 4.2.93 release candidate available

2020-01-11 Thread Paul Smith
On Fri, 2020-01-10 at 15:07 -0500, Paul Smith wrote: > Oh. It's this change: > > * WARNING: Backward-incompatibility! > Contrary to the documentation, suffix rules with prerequisites were being > treated BOTH as simple targets AND as pattern rules. Behavior now matches &

GNU make 4.3 released!

2020-01-19 Thread Paul Smith
racle Studio 12.6 Pacify Oracle Studio 12.6 in init_switches Remove useless code in eval Port grouped_targets test to Solaris 10 Pacify Oracle Studio c99 Port functions/shell test to Solaris 10 Paul Smith (172): * Update to pre-release version 4.2.90.

Re: REGRESSION: cross compile 4.3 fail on mingw-w64 7.0/GCC 9.2

2020-01-20 Thread Paul Smith
On Mon, 2020-01-20 at 18:03 +, Nan . wrote: > I built latest GNU Make 4.3 and it failed. I use same way/compiler to > build 4.2.1, it works. I think this might be regression issue. > > my configure is > /home/build/src/make-4.3/configure --prefix=/home/build/native --with- > sysroot=/home/bui

RCS / SCCS (was: Re: Documentation - reference not defined query)

2020-01-20 Thread Paul Smith
On Mon, 2020-01-20 at 13:09 -0500, Pete Edwards wrote: > The reference to RCS and SCCS file types on page > https://www.gnu.org/software/make/manual/html_node/Remaking-Makefiles.html#Remaking-Makefiles > > What is an RCS File type? Google references 3D scene data type...I don't > think that's wh

Re: Documentation - reference not defined query

2020-01-20 Thread Paul Smith
In general it's helpful if you use plain text emails, and/or format your email carefully especially with makefiles as things like indentation are crucial to see correctly. Also it's important to ask clear questions, one at a time, and give a very clear description of your environment etc. As a no

Re: Documentation - reference not defined query

2020-01-20 Thread Paul Smith
On Mon, 2020-01-20 at 13:58 -0500, Paul Smith wrote: > > Makefile:8: /home/pete/esp/esp-idf:/home/esp/esp-idf/make/project.mk: > > No such file or directory > > This means make is trying to include the file named, literally, > /make/project.mk and that file (not surprisi

Re: GNU make 4.3 released!

2020-01-20 Thread Paul Smith
On Mon, 2020-01-20 at 20:15 +0100, Antonio Diaz Diaz wrote: > I have built make 4.3 on a x86_64 with Slackware 13.37 in it. The > compilation went well and the resulting 'make' builds all my projects > flawlessly, but 2 tests failed: > > functions/wildcard ..

Re: Documentation - reference not defined query

2020-01-20 Thread Paul Smith
Please always CC the mailing list instead of email me directly (or just reply only to the list). That way others can help even if I'm unavailable. On Mon, 2020-01-20 at 14:44 -0500, Pete Edwards wrote: > Dear paul, Thank you > You are right, I tried to print the IDF_PATH variable contents using

Re: Documentation - reference not defined query

2020-01-20 Thread Paul Smith
On Mon, 2020-01-20 at 16:32 -0500, Paul Smith wrote: > > ...$ make Makefile I also wanted to say, this is wrong as written here... you don't want to give Makefile as a target to be built. You should just run "make" with no arguments. Make will read a file named "Make

Re: REGRESSION: cross compile 4.3 fail on mingw-w64 7.0/GCC 9.2

2020-01-20 Thread Paul Smith
On Mon, 2020-01-20 at 21:37 +, Nan . wrote: > the actual command line is > > make[1]: Entering directory '/home/build/obj/n-make' > depbase=`echo src/arscan.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ > mingw64-gcc -DHAVE_CONFIG_H -Isrc -I/home/build/src/make-4.3/src -Ilib > -I/home/build/src/m

Re: Bug in make?

2020-02-18 Thread Paul Smith
On Tue, 2020-02-18 at 23:00 +0300, Alexander Khomyak wrote: > Why "Grouped targets recipe"in the following Makefile > > targets = target1 target2 > > all : $(targets) > > $(targets) &: > @echo "Grouped targets recipe" > @echo $@ > target1 > @echo $@ > target2 > > clean : > rm -r

Re: Bug with SCCS Suffix Rules

2020-02-19 Thread Paul Smith
On Wed, 2020-02-19 at 17:56 +0100, Jerome Reybert wrote: > I am facing what to seem to be a bug in Gnu make, since at least make > 3.82, and still present in 4.2.1. I'm not sure why your subject mentions SCCS suffix rules, but there is a built-in rule that knows how to convert from a foo.sh to fo

Re: Error In Installing FreeBayes

2020-03-06 Thread Paul Smith
On Fri, 2020-03-06 at 09:38 +0530, Dr Priyanka Jain wrote: > -- Build files have been written to: /home/NFS/37_hg/freebayes/build > /usr/bin/gmake: unrecognized option '--jobserver-auth=3,4' This means that the version of make being invoked as a sub-make is different from the version of make you i

Re: GNU is looking for Google Summer of Code Projects

2020-03-21 Thread Paul Smith
On Thu, 2020-03-19 at 11:16 -0400, Rocky Bernstein wrote: > In another list I see that GNU has been accepted for Summer of Code > and is looking for projects. > > [If this is not appropriate here, let me know. I couldn't find a > general make developers list.] > > My suggesion regarding GNU Make

Re: [RFC] Scoped variables, supercharged

2020-03-30 Thread Paul Smith
On Fri, 2020-03-20 at 20:46 +0100, Jouke Witteveen wrote: > On Thu, Dec 26, 2019 at 2:03 PM Jouke Witteveen < > j.wittev...@gmail.com> wrote: > > I would like make to have scoped variables. Here, I will propose an > > implementation of them. This implementation is currently without > > tests and do

Re: [bug #57674] regression in make 4.3 with makefile from stdin

2020-04-01 Thread Paul Smith
On Wed, 2020-04-01 at 14:14 +0200, Andreas Schwab wrote: > On Mär 31 2020, Paul D. Smith wrote: > > > In GNU make 4.3, for performance reasons we choose to use > > posix_spawn() if it's available on the system. posix_spawn() > > doesn't do any path search, so we do it ourselves and we don't have

Re: make-4.3: wildcard test #9 fails

2020-04-05 Thread Paul Smith
On Sun, 2020-04-05 at 15:33 +0200, Bruno Haible wrote: > Building GNU make 4.3 on Ubuntu 16.04, produces one failing test: This is because the glob() function in the older GNU libc has a bug related to handling symlinks correctly.

Re: make-4.3: wildcard test #9 fails

2020-04-05 Thread Paul Smith
On Sun, 2020-04-05 at 16:19 +0200, Bruno Haible wrote: > Hi Paul, > > > > Building GNU make 4.3 on Ubuntu 16.04, produces one failing test: > > > > This is because the glob() function in the older GNU libc has a bug > > related to handling symlinks correctly. > > Gnulib provides a workaround aga

Re: Missing INSTALL instructions for GNU make 4.3

2020-04-29 Thread Paul Smith
This missing INSTALL file has been reported before. It's surely a poser because I haven't touched that package building stuff in a while. I thought automake just handled it. Clearly something changed :) On Wed, 2020-04-29 at 17:32 -0400, Dennis Clarke wrote: > Sort of causes one to wonder about

Re: Let construct

2020-05-01 Thread Paul Smith
On Fri, 2020-05-01 at 16:05 +0200, Jouke Witteveen wrote: > A month ago, I got in touch with Paul Smith about some paperwork > needed for assigning copyright to the FSF. I did not hear back from > him since and assume he is busy with other things at the moment. > Since Make is quite ol

Re: Incorrect path and shell script error

2020-05-06 Thread Paul Smith
On Wed, 2020-05-06 at 21:06 +, Loch Brandon wrote: > Hello, > I am having the following issue while trying to run make.exe Please cut and paste text into emails rather than insert screenshots... we can't quote, search, etc. a screenshot. > I am using version 3.78.1. I don't know if you're aw

Windows shell discovery (was: Re: Incorrect path and shell script error)

2020-05-07 Thread Paul Smith
On Thu, 2020-05-07 at 18:41 +, Loch Brandon wrote: > dirs: > @$(ECHO) > @$(ECHO) Verifying and building application directory structure... > @if not exist $(OUTPUTDIR) $(MKDIR) $(OUTPUTDIR) > @if not exist $(OUTPUTDIR)\$(notdir $(OBJD

Re: Tail call elimination

2020-05-11 Thread Paul Smith
On Mon, 2020-05-11 at 14:01 -0500, Pete Dietl wrote: > What do you all think about me attempting to implementing tail call > elimination for recursive make functions? This combined with the > proposed (let) construct would be rather powerful. If it's straightforward it doesn't bother me. I'd have

Re: Mailing List Conventions

2020-05-18 Thread Paul Smith
On Mon, 2020-05-18 at 11:54 -0500, Pete Dietl wrote: > Any suggestions? > > On Wed, May 13, 2020 at 4:05 PM Pete Dietl > wrote: > > I am new to using mailing lists in general and I want to use it > > properly. Is there is a document somewhere that explains the > > conventions of using it. There

Re: Tail call elimination

2020-05-18 Thread Paul Smith
On Mon, 2020-05-11 at 16:32 -0500, Pete Dietl wrote: > I would like to know your thoughts about adding something like $(expr > ) to evaluate integer expressions and comparisons. I have no problem with some basic math facilities. We already have functions like $(word ...), $(words ...), and $(word

Re: Tail call elimination

2020-05-18 Thread Paul Smith
On Mon, 2020-05-18 at 21:05 +0200, Jouke Witteveen wrote: > On Mon, May 18, 2020 at 8:50 PM Paul Smith wrote: > > > > On Mon, 2020-05-11 at 16:32 -0500, Pete Dietl wrote: > > > I would like to know your thoughts about adding something like > > > $(expr > >

Re: Tail call elimination

2020-05-18 Thread Paul Smith
On Mon, 2020-05-18 at 21:05 +0200, Jouke Witteveen wrote: > Otherwise, POSIX prescribes an expr command, so with: > expr = $(shell expr '$1') > you can already do $(call expr,2 * 3 + 5). Please remember not every user of GNU make has access to a POSIX environment. I'm not suggesting we re-impleme

string comparison operators (was: Re: Tail call elimination)

2020-05-18 Thread Paul Smith
On Mon, 2020-05-18 at 20:04 +, Tim Murphy wrote: > Re comparing strings: we already have ifeq and what I have often > wanted is to have a function equivalent so I can use it in > expressions. As bad as ifeq may be from the point of view of locale > this need be no better to be an improvement ov

Re: string comparison operators (was: Re: Tail call elimination)

2020-05-18 Thread Paul Smith
On Mon, 2020-05-18 at 16:01 -0500, Pete Dietl wrote: > I concur that string handling and comparison should be considered in > a separate discussion. > > So let’s consider just integer comparison and arithmetic here? The usual method is someone makes a concrete proposal (say, something on the same

Re: error checking version of $(shell)

2020-05-19 Thread Paul Smith
On Mon, 2020-05-18 at 19:16 -0800, Britton Kerin wrote: > # I'm hoping > # for a little more feedback from paul declaring that the parser is indeed > # sequential and .SHELLSTATUS is indeed per-process, so that this is ok. GNU make is not multithreaded and all invocations of $(shell ...) functions

Re: Tail call elimination

2020-05-19 Thread Paul Smith
On Mon, 2020-05-18 at 21:40 -0400, Daniel Herring wrote: > This decision causes a difficult and error-prone ambiguity when the > return value is really true and empty. For example, the operation > succeeded and the result was "", versus the operation failed and thus > returned "". So Scheme added

math expressions (was: Re: Tail call elimination)

2020-05-19 Thread Paul Smith
On Tue, 2020-05-19 at 15:21 +0100, Tim Murphy wrote: > A question would be do we want to use GMP or are 64 bit ints enough? > I'm inclined to say ints are ok of they are wide. Straight 64bit integer arithmetic is fine IMO. I'm definitely not interested in adding another library dependency. > So

math expressions (was: Re: Tail call elimination)

2020-05-20 Thread Paul Smith
On Wed, 2020-05-20 at 10:34 -0500, Pete Dietl wrote: > I really like the idea of using GMP to do the math. No, I'm not willing to make that requirement. If anyone can provide any use case where >64bit math is needed in a makefile I'll be interested to hear about it. But, my position is that if y

Re: Tail call elimination

2020-05-20 Thread Paul Smith
On Wed, 2020-05-20 at 11:13 -0500, Pete Dietl wrote: > > - major added dependency (Make needs to be widely portable, and it > > is often part of a boot-strapping procedure. The core > > functionality needs to be trim. Heavy lifting needs to be > > separable.) > > The shared library for libgmp do

Re: Tail call elimination

2020-05-20 Thread Paul Smith
On Wed, 2020-05-20 at 11:48 -0500, Pete Dietl wrote: > Another option would be to introduce some new syntax like $(()), > but that might break existing Makefiles and would probably be more > work, though it looks cleaner IMO. No, I don't agree with that. Trying to change the base make parser like

Re: Tail call elimination

2020-05-20 Thread Paul Smith
On Wed, 2020-05-20 at 17:17 +, Tim Murphy wrote: > So if guile is a good language which does math in postfix notation > (+ 1 1) You mean prefix notation :) I do have fond memories of postfix notation from my HP calculator but it wouldn't work for GNU make. > then I don't see why make can't b

Re: Tail call elimination

2020-05-20 Thread Paul Smith
On Wed, 2020-05-20 at 19:56 -0500, Pete Dietl wrote: > Paul when you get a chance, could you let me know what you think > about using many prefix functions? I'm not sure. I may need to see the proposal to get a feel for what it really means. Of course we can still do prefix notation with a singl

Re: Tail call elimination

2020-05-21 Thread Paul Smith
On Thu, 2020-05-21 at 00:37 -0500, Kevin R. Bulgrien wrote: > > Of course we can still do prefix notation with a single function we > > just have to choose a name for it and it's a little less slick; for > > example something like: > > > >$(op + 5 7 $(op * 3 2) 9) > > > > or whatever so the f

Re: Tail call elimination

2020-05-21 Thread Paul Smith
On Thu, 2020-05-21 at 15:35 +, Tim Murphy wrote: > There's something to be said for this being able potentially to work > - not that I'm pushing it mind: > > FILE_SIZES:= 5 2 1 4 > TOTAL:=$(+ $(FILE_SIZES)) # TOTAL is 5+2+1+4 > > Here I'm not objecting to ($math +,$(FILE_SIZES)) or $(op > +,$

Re: Tail call elimination

2020-05-21 Thread Paul Smith
On Thu, 2020-05-21 at 11:22 -0500, Kevin R. Bulgrien wrote: >FILE_SIZES := 5 2 1 4 >TOTAL :- $(math +, $(FILE_SIZES)) > > 2) > > FILE_SIZES := 5 2 1 4 > TOTAL :- $(+ $(FILE_SIZES)) > > In my mind, TOTAL obviously ends up with the same value, but, 1) is > more readable in the same way

Re: Tail call elimination

2020-05-21 Thread Paul Smith
On Thu, 2020-05-21 at 11:46 -0400, Paul Smith wrote: > In my discussion of the way to handle conditions I even mentioned > allowing just one operand which would give the identity function. > > After sleeping on it, though, I'm not sure if that's the best idea. > Maybe w

math expressions (was: Re: Tail call elimination)

2020-05-23 Thread Paul Smith
On Fri, 2020-05-22 at 23:14 -0500, Pete Dietl wrote: > So we are back to debating between many functions or (one or two) > functions. Anyone else care to weigh in? I understand what Tim is saying but I still prefer to have a single function. I want to reduce the "namespace leakage" for these capa

Re: math expressions (was: Re: Tail call elimination)

2020-05-24 Thread Paul Smith
On Sat, 2020-05-23 at 15:43 -0500, Pete Dietl wrote: > > I understand what Tim is saying but I still prefer to have a single > > function. I want to reduce the "namespace leakage" for these > > capabilities. If we decide to add more operations to this in the > > future I don't want it colliding w

<    5   6   7   8   9   10   11   12   13   14   >