Opened 3 months ago
Last modified 2 months ago
#73167 new defect
libgcc15 can't find "md-unwind-def.h" (10.5.8)
| Reported by: | nbuwe (Valery Ushakov) | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.11.5 |
| Keywords: | powerpc leopard | Cc: | |
| Port: | libgcc15 |
Description
On MacOS 10.5.8 Leopard, PowerPC (mini g4) with the latest officially
available xcode xcode314_2809_developerdvd.dmg installed
I'm trying to build cmake. I need it to build another piece of old but still maintained software (Self) to understand whether its macos support has bitrotted or not.
After chugging along for a few days (gcc10-bootstrap took quite a
while) it first told me that:
Error: libgcc15 cannot be built while libunwind-headers is active. Error: Please forcibly deactivate libunwind-headers, e.g. by running: Error: Error: sudo port -f deactivate libunwind-headers Error:
I did as I'm told, did port clean libgcc15 for good measure and started port install libgcc15. It fails after a while with:
:info:build /opt/local/var/macports/build/libgcc15-fab548dd/work/gcc-15.2.0/libgcc/unwind-dw2.h:25:10: fatal error: md-unwind-def.h: No such file or directory :info:build 25 | #include "md-unwind-def.h" :info:build | ^~~~~~~~~~~~~~~~~
(full log in the attachment).
Anything I'm doing wrong here? "md-unwind-def.h" sounds like gcc's
internal header.
Thanks for keeping this alive for such an old system! If fixing this in macports is not feasible, any advice on how to get cmake for 10.5.8 is appreciated. TIA.
Attachments (1)
Change History (4)
Changed 3 months ago by nbuwe (Valery Ushakov)
comment:1 Changed 3 months ago by nbuwe (Valery Ushakov)
This https://gcc.gnu.org/pipermail/gcc-patches/2024-September/663221.html seems pertinent.
comment:2 Changed 3 months ago by nbuwe (Valery Ushakov)
$ pwd /opt/local/var/macports/build/libgcc15-fab548dd/work/build/powerpc-apple-darwin9/libgcc $ ls -lF total 176 -rw-r--r-- 1 macports admin 40829 Oct 26 17:30 Makefile -rw-r--r-- 1 macports admin 3174 Oct 26 17:30 auto-target.h -rw-r--r-- 1 macports admin 4117 Oct 26 17:30 config.cache -rw-r--r-- 1 macports admin 54289 Oct 26 17:30 config.log -rwxr-xr-x 1 macports admin 37663 Oct 26 17:30 config.status* lrwxr-xr-x 1 macports admin 83 Oct 26 17:30 gthr-default.h@ -> /opt/local/var/macports/build/libgcc15-fab548dd/work/gcc-15.2.0/libgcc/gthr-posix.h -rw-r--r-- 1 macports admin 219 Oct 26 17:30 libgcc_tm.h -rw-r--r-- 1 macports admin 10 Oct 26 17:30 libgcc_tm.stamp lrwxr-xr-x 1 macports admin 89 Oct 26 17:30 md-unwind-support.h@ -> /opt/local/var/macports/build/libgcc15-fab548dd/work/gcc-15.2.0/libgcc/config/no-unwind.h -rw-r--r-- 1 macports admin 3 Oct 26 17:29 multilib.out -rw-r--r-- 1 macports admin 10 Oct 26 17:30 stamp-h lrwxr-xr-x 1 macports admin 87 Oct 26 17:30 unwind.h@ -> /opt/local/var/macports/build/libgcc15-fab548dd/work/gcc-15.2.0/libgcc/unwind-generic.h
so md-unwind-support.h was created (with a makefile rule congruent to that of the missing md-unwind-def.h.
I gonna create the link manually and restart from there...
comment:3 Changed 2 months ago by nbuwe (Valery Ushakov)
So, after repeating that manual step of creating md-unwind-def.h a few times (for each gcc build stage, I guess) and restarting the build it did build successfully.

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc15/libgcc15/main.log