Re: Macro arguments

2022-08-09 Thread Paul Smith
On Tue, 2022-08-09 at 16:45 +0200, Gisle Vanem wrote: > So does a "foo (arg1, arg2, arg3)" becomes one > argument due to the parenthesis or something? I agree it's strange. I'm not sure I agree with the change proposed in the patch in the Savannah bug: modifying the way all function arguments

Re: The order of compiling multiple c++ source files

2022-08-09 Thread Paul Smith
On Wed, 2022-08-10 at 04:32 +0800, ljh wrote: > make manual / 10.2 Catalogue of Built-In Rules / Linking a single > object file The example in the manual is wrong. The output you're getting from GNU make is correct. The reason is that the implicit rule that make chooses for the rule: x: y.o

The order of compiling multiple c++ source files

2022-08-09 Thread ljh
make manual / 10.2 Catalogue of Built-In Rules / Linking a single object file x: y.o z.o when x.c, y.c and z.c all exist will execute: cc -c x.c -o x.o # x.c compiles first cc -c y.c -o y.o cc -c z.c -o z.o cc x.o y.o z.o -o x rm -f x.o rm -f y.o rm -f z.o --- Q1: The

[bug #62881] parentheses confuse make parser

2022-08-09 Thread Dmitry Goncharov
Additional Item Attachment, bug #62881 (project make): File name: sv62881_test.diff Size:1 KB File name: sv62881_fix.diff Size:0 KB

Re: Bug with collect2.exe: error: ld returned 1 exit status make: *** [Makefile:2: all] Error 1

2022-08-09 Thread Paul Smith
On Tue, 2022-08-09 at 17:38 +0200, Ibrahim Salma wrote: > Hi, i am having problem with makefile or make command can you please > help me it's giving me an error message like this: > > collect2.exe: error: ld returned 1 exit status > make: *** [Makefile:2: all] Error 1 This is not the error

Re: Macro arguments

2022-08-09 Thread Dmitry Goncharov
On Tue, Aug 9, 2022 at 10:48 AM Gisle Vanem wrote: Thanks for your report. See here https://savannah.gnu.org/bugs/index.php?62881 regards, Dmitry

[bug #62881] parentheses confuse make parser

2022-08-09 Thread Dmitry Goncharov
Follow-up Comment #1, bug #62881 (project make): A user reported the following here https://lists.gnu.org/archive/html/bug-make/2022-08/msg00017.html in GNU-make macros. Like in: msg = @echo "$(1)" ptest_1: $(call msg, foo (arg1, arg2, arg3)) ... A

[bug #62881] parentheses confuse make parser

2022-08-09 Thread Dmitry Goncharov
URL: Summary: parentheses confuse make parser Project: make Submitter: dgoncharov Submitted: Tue 09 Aug 2022 07:02:50 PM UTC Severity: 3 - Normal Item Group: Bug

Bug with collect2.exe: error: ld returned 1 exit status make: *** [Makefile:2: all] Error 1

2022-08-09 Thread Ibrahim Salma
Hi, i am having problem with makefile or make command can you please help me it's giving me an error message like this: collect2.exe: error: ld returned 1 exit status make: *** [Makefile:2: all] Error 1 This is the code in the Makefile: all: g++ -I src/include -L src/lib -o main main.cpp

Macro arguments

2022-08-09 Thread Gisle Vanem
Hello folks. I have a question regarding parenthesis in GNU-make macros. Like in: msg = @echo "$(1)" ptest_1: $(call msg, foo (arg1, arg2, arg3)) ptest_2: $(call msg, foo, arg1, arg2, arg3) A 'make ptest_1' shows: foo (arg1, arg2, arg3) and

[bug #57242] Non-recursive command passes invalid jobserver file descriptors

2022-08-09 Thread Martin Liška
Follow-up Comment #14, bug #57242 (project make): > One note: an ideal implementation would look for the _last_ instance of --jobserver-auth in MAKEFLAGS, not the first instance. In the current code in Git, if we are using anonymous pipes and we invoke a sub-process which is not considered to be