On 2019-09-30 01:21, nikhil jain wrote:
Hi Tony,
1) I always set -j 4.
2) No, I do not set -l flag.
3) The BUILD never fails. The binary which is generated causes
segmentation
fault. It works perfectly If I build in 3.81 GMAKE.
Possibly, what is going on that you have some $(wildcard ...) material
in
the Makefile. In 3.81, the output of wildcard is lexicographically
sorted.
In newer GNU Make, a change was made not to sort this. The users have to
apply
the $(sort ...) function explicitly.
This can make a difference because if you have, say, a list of object
files generated from source files, then the linking order of your
program will
change; you've scrambled the image compared to earlier builds. Moreover,
it will be different on different build machines.
Such a change can expose bugs.
4) Makefile is handwritten.
5) No, It never succeed on any number of invocation.
You can simply capture the full command sequence from the working build
with the old gmake and the newer build and compare. There has to be some
difference in how some toolchain command is being invoked.
That order issue is the first thing that comes to my mind; but it could
be something else.
_______________________________________________
Help-make mailing list
Help-make@gnu.org
https://lists.gnu.org/mailman/listinfo/help-make