Defining new targets with eval during secondary expansion?

2017-03-07 Thread Ismail Badawi
Hi folks, I'm trying to define new targets with eval during secondary expansion, but apparently this is not allowed -- with make 4.2.1 I get an error like this: Makefile:94: *** prerequisites cannot be defined in recipes. Stop. I found bugs #24588 and #24622 related to this. My use case is

errors in "make"

2017-03-07 Thread thutt
wu writes: > Dear gnu group, > > I work on Ubuntu. I tried to install a program, but there are some errors > when > I do "make". my make version is as follows: > > "GNU Make 4.1 > Built for x86_64-pc-linux-gnu > Copyright (C) 1988-2014 Free Software Foundation, Inc. > License GPLv3+:

Re: errors in "make"

2017-03-07 Thread Edward Welbourne
wu (7 March 2017 08:55): > the software reports the following errors: > > ... relocation ... against `.rodata' can not be used when making a shared > object; recompile with -fPIC I recommend you do as it says; change your CFLAGS or CXXFLAGS to use -fPIC (replacing -fpic,

[bug #42125] Explicit rules do not support multiple targets

2017-03-07 Thread Dietmar Schindler
Follow-up Comment #7, bug #42125 (project make): Regarding comment #5: Thanks for contemplating my suggestion! Indeed I paid insufficient attention to the implications of allowing some other pattern rule to be chosen, and I see that this is undesirable and that the static pattern rule shall be

errors in "make"

2017-03-07 Thread wu
Dear gnu group, I work on Ubuntu. I tried to install a program, but there are some errors when I do "make". my make version is as follows: /"GNU Make 4.1// //Built for x86_64-pc-linux-gnu// //Copyright (C) 1988-2014 Free Software Foundation, Inc.// //License GPLv3+: GNU GPL version 3 or later