https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123976

--- Comment #43 from Peter Dyballa <Peter_Dyballa at web dot de> ---
8 hrs ago the three symlinks powerpc-apple-darwin9/libgcc were not built.
Before I created them manually I invoked 'gmake -d' and also 'make -d' and
saved their output to files. Searching them I can only see that both makes,
MacPorts' GNU Make 4.4.1 and the system's/Apple's GNU Make 3.81, do not "see"
the three missing symlinks – how can I find the rule(s) for their
invisibility/inexistence?!

grep'ing for the symlinks in the debug logs and counting them I get:

pete 256 /\ grep md-unwind-def.h ~/GNU\ Make\ 4.4.1-d.log | wc -l
       2
pete 257 /\ grep md-unwind-def.h ~/GNU\ Make\ 3.81-d.log | wc -l
       2
pete 258 /\ grep sfp-machine.h ~/GNU\ Make\ 4.4.1-d.log | wc -l
       0
pete 259 /\ grep sfp-machine.h ~/GNU\ Make\ 3.81-d.log | wc -l
       0
pete 260 /\ grep enable-execute-stack.c ~/GNU\ Make\ 4.4.1-d.log | wc -l
       0
pete 261 /\ grep enable-execute-stack.c ~/GNU\ Make\ 3.81-d.log | wc -l
       0
pete 262 /\ grep md-unwind-support.h ~/GNU\ Make\ 4.4.1-d.log | wc -l
       4
pete 263 /\ grep md-unwind-support.h ~/GNU\ Make\ 3.81-d.log | wc -l
       4
pete 264 /\ grep gthr-default.h ~/GNU\ Make\ 4.4.1-d.log | wc -l
       4
pete 265 /\ grep gthr-default.h ~/GNU\ Make\ 3.81-d.log | wc -l
       4
pete 266 /\ grep unwind.h ~/GNU\ Make\ 4.4.1-d.log | wc -l
      25
pete 267 /\ grep unwind.h ~/GNU\ Make\ 3.81-d.log | wc -l
      20

md-unwind-def.h has a count of two because gcc complains on two lines:

/opt/local/var/macports/build/gcc16-f5979bbe/work/gcc-16.1.0/libgcc/unwind-dw2.h:25:10:
fatal error: md-unwind-def.h: No such file or directory
   25 | #include "md-unwind-def.h"

The symlinks created have counts of greater zero. Their "blocks" start with:

   Considering target file 'gthr-default.h'.

and end with

   Finished prerequisites of target file 'gthr-default.h'.
    Prerequisite
'/opt/local/var/macports/build/gcc16-f5979bbe/work/gcc-16.1.0/libgcc/gthr-posix.h'
is older than target 'gthr-default.h'.
   No need to remake target 'gthr-default.h'.

just reflecting that their symlinks already exist. So next time I better should
remove the created symlinks manually and then invoke make. Maybe this could
explain why the other symlinks never get considered as targets. It should show
why leastwise three symlinks get considered as targets. Could be this is
enlightening!

Reply via email to