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

--- Comment #7 from Peter Dyballa <Peter_Dyballa at web dot de> ---
The freshly created Makefile in build/powerpc-apple-darwin9/libgcc clearly has:

 361 # Create links to files specified in config.host.
 362 LIBGCC_LINKS = enable-execute-stack.c \
 363                unwind.h md-unwind-def.h md-unwind-support.h \
 364                sfp-machine.h gthr-default.h
 365 
 366 enable-execute-stack.c: $(srcdir)/$(enable_execute_stack)
 367         -$(LN_S) $< $@
 368 unwind.h: $(srcdir)/$(unwind_header)
 369         -$(LN_S) $< $@
 370 md-unwind-def.h: $(srcdir)/config/$(md_unwind_def_header)
 371         -$(LN_S) $< $@
 372 md-unwind-support.h: $(srcdir)/config/$(md_unwind_header)
 373         -$(LN_S) $< $@
 374 sfp-machine.h: $(srcdir)/config/$(sfp_machine_header)
 375         -$(LN_S) $< $@
 376 gthr-default.h: $(srcdir)/$(thread_header)
 377         -$(LN_S) $< $@

It also has:

1120 all: $(extra-parts)
1121 
1122 $(libgcc-objects) $(libgcc-s-objects) $(libgcc-eh-objects) \
1123         $(libgcov-objects) \
1124         $(libunwind-objects) $(libunwind-s-objects) \
1125         $(EXTRA_PARTS): $(LIBGCC_LINKS) libgcc_tm.h

but the directory only has:

-rw-r--r-- 1 macports admin 53999  4. Feb 21:49 config.log
lrwxr-xr-x 1 macports admin    80  4. Feb 21:49 gthr-default.h ->
/opt/local/var/macports/build/gcc15-678e8911/work/gcc-15.2.0/libgcc/gthr-posix.h
-rw-r--r-- 1 macports admin   216  4. Feb 21:49 libgcc_tm.h
-rw-r--r-- 1 macports admin    10  4. Feb 21:49 libgcc_tm.stamp
lrwxr-xr-x 1 macports admin    86  4. Feb 21:49 md-unwind-support.h ->
/opt/local/var/macports/build/gcc15-678e8911/work/gcc-15.2.0/libgcc/config/no-unwind.h
lrwxr-xr-x 1 macports admin    84  4. Feb 21:49 unwind.h ->
/opt/local/var/macports/build/gcc15-678e8911/work/gcc-15.2.0/libgcc/unwind-generic.h
-rw-r--r-- 1 macports admin 40814  4. Feb 21:48 Makefile
-rw-r--r-- 1 macports admin  3174  4. Feb 21:48 auto-target.h
-rwxr-xr-x 1 macports admin 37630  4. Feb 21:48 config.status
-rw-r--r-- 1 macports admin    10  4. Feb 21:48 stamp-h
-rw-r--r-- 1 macports admin  4117  4. Feb 21:48 config.cache
-rw-r--r-- 1 macports admin     3  4. Feb 21:48 multilib.out

When make enters this build directory and invokes configure, nothing strange
happens, maybe besides using GCC 10 as C pre-processor:

make[3]: Leaving directory
`/opt/local/var/macports/build/gcc15-678e8911/work/build/gcc'
mkdir powerpc-apple-darwin9/libgcc
Checking multilib configuration for libgcc...
Configuring stage 1 in powerpc-apple-darwin9/libgcc
configure: creating cache ./config.cache
checking build system type... powerpc-apple-darwin9
checking host system type... powerpc-apple-darwin9
...
configure: updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating auto-target.h
config.status: executing default commands
make[3]: Entering directory
`/opt/local/var/macports/build/gcc15-678e8911/work/build/powerpc-apple-darwin9/libgcc'
# If this is the top-level multilib, build all the other
# multilibs.
ln -s
/opt/local/var/macports/build/gcc15-678e8911/work/gcc-15.2.0/libgcc/gthr-posix.h
gthr-default.h
ln -s
/opt/local/var/macports/build/gcc15-678e8911/work/gcc-15.2.0/libgcc/config/no-unwind.h
md-unwind-support.h
ln -s
/opt/local/var/macports/build/gcc15-678e8911/work/gcc-15.2.0/libgcc/unwind-generic.h
unwind.h
DEFINES=''
HEADERS='/opt/local/var/macports/build/gcc15-678e8911/work/gcc-15.2.0/libgcc/config/i386/darwin-lib.h'
\
               
/opt/local/var/macports/build/gcc15-678e8911/work/gcc-15.2.0/libgcc/mkheader.sh
> tmp-libgcc_tm.h
/bin/sh
/opt/local/var/macports/build/gcc15-678e8911/work/gcc-15.2.0/libgcc/../move-if-change
tmp-libgcc_tm.h libgcc_tm.h
echo timestamp > libgcc_tm.stamp
/opt/local/var/macports/build/gcc15-678e8911/work/build/./gcc/xgcc ... =>
well-known failure with md-unwind-def.h


I am suspicious about the Makefiles rules – could be GNU Make 3.81 fails to
understand them, as I do. So I am going to try a more up-to-date GNU Make
4.4.1!

Reply via email to