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

--- Comment #77 from Peter Dyballa <Peter_Dyballa at web dot de> ---
Portfile for GCC 16 has:

191 if {${subport} ne ${libcxxname} && ${os.platform} eq "darwin"} {
192     # Patch generated from https://github.com/iains/gcc-16-branch
193     # git diff --no-prefix releases/gcc-16 gcc-16-1-darwin
194     patchfiles-append   patch-darwin-gcc-${version}.diff
195  
196     # gcc has build issues on macOS 11.3 with the use of Xcode 12.5 clang
via cctools for ld
197     # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100340
198     # https://trac.macports.org/ticket/62775
199     # Update for gcc13+ - Similar issues on macOS 10.6, 10.13 ...
200     if {([vercmp ${xcodeversion} >= 12.5] && [vercmp ${xcodeversion} < 13])
|| \
201         ([vercmp ${xcodecltversion} >= 12.5] && [vercmp ${xcodecltversion}
< 13]) || \
202             ${os.major} < 11 || ${os.major} == 17} \
203     {
204         # Skip bootstrap comparison entirely
205         configure.args-replace --with-build-config=bootstrap-debug
--without-build-config
206         post-patch {
207             reinplace {s|^do-compare =|do-compare = /usr/bin/true|g} \
208                 ${worksrcpath}/Makefile.in \
209                 ${worksrcpath}/config/bootstrap-debug.mk \
210                 ${worksrcpath}/config/bootstrap-debug-lean.mk \
211                 ${worksrcpath}/config/bootstrap-debug-lib.mk
212         }            
213     }
214 }
215  
216 # https://github.com/iains/gcc-16-branch/issues/3
217 patchfiles-append   patch-fix-rs6000-host-darwin.diff

MacPorts' log file of my build of GCC 16 has:

:debug:patch Executing reinplace: /usr/bin/sed {s|^do-compare =|do-compare =
/usr/bin/true|g}
</opt/local/var/macports/build/gcc16-f5979bbe/work/gcc-16.1.0/Makefile.in
>@file11
:debug:patch Executing reinplace: /usr/bin/sed {s|^do-compare =|do-compare =
/usr/bin/true|g}
</opt/local/var/macports/build/gcc16-f5979bbe/work/gcc-16.1.0/config/bootstrap-debug.mk
>@file11
:debug:patch Executing reinplace: /usr/bin/sed {s|^do-compare =|do-compare =
/usr/bin/true|g}
</opt/local/var/macports/build/gcc16-f5979bbe/work/gcc-16.1.0/config/bootstrap-debug-lean.mk
>@file11
:debug:patch Executing reinplace: /usr/bin/sed {s|^do-compare =|do-compare =
/usr/bin/true|g}
</opt/local/var/macports/build/gcc16-f5979bbe/work/gcc-16.1.0/config/bootstrap-debug-lib.mk
>@file11

So it's obvious that the if in Portfile evaluates to true, the configure
arguments are changed and then the post-patch action is applied.

Could this be the cause of the make/ln failure? Should I try a new build
without that post-patch action?

Are there more options to pass to GNU Make 3.81 to help find out why it is not
making the other symlinks?


--
Greetings

  Pete

Remember, "Advance too fast, you catch up with death. But advance too slow,
death catches up with *you*."

Reply via email to