[MacPorts] #64996: Why nhc98 fails to build, any ideas?

MacPorts noreply at macports.org
Wed Apr 13 00:43:29 UTC 2022


#64996: Why nhc98 fails to build, any ideas?
---------------------------+-------------------------------------------
  Reporter:  barracuda156  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.7.2
Resolution:                |   Keywords:  powerpc, leopard, snowleopard
      Port:  nhc98         |
---------------------------+-------------------------------------------

Comment (by barracuda156):

 So I am running into two different errors now. If I retain previously
 existing post-patch to Makefile, then I get the following:

 {{{
 cd src/cpphs;          /usr/bin/make -f Makefile.nhc98 fromC
 make[1]: Entering directory
 `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_nhc98/nhc98/work/nhc98-1.22/src/runtime'
 cd Kernel; /usr/bin/make links
 script/hmake-PRAGMA.hc:1:10: fatal error: newmacros.h: No such file or
 directory
     1 | #include "newmacros.h"
       |          ^~~~~~~~~~~~~
 compilation terminated.
 …
 collect2: error: ld returned 1 exit status
 strip
 /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_nhc98/nhc98/work/nhc98-1.22/lib
 /powerpc-Darwin10/greencard-nhc98
 error: strip: can't open file:
 /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_nhc98/nhc98/work/nhc98-1.22/lib
 /powerpc-Darwin10/greencard-nhc98 (No such file or directory)
 make[1]: *** [fromC] Error 1
 make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_nhc98/nhc98/work/nhc98-1.22/src/greencard'
 make: *** [targets/powerpc-Darwin10/greencard-gcc] Error 2
 }}}

 If I remove the patch, then compilation terminates early with:

 {{{
 --->  Building nhc98
 Executing:  cd
 "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_nhc98/nhc98/work/nhc98-1.22"
 && /usr/bin/make -j4 -w all
 make: Entering directory
 `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_nhc98/nhc98/work/nhc98-1.22'
 make: *** No rule to make target `basic-gcc', needed by `all-gcc'.  Stop.
 }}}

 P. S. Post-patch in question:

 {{{
 post-patch {
     reinplace "s|-\$(CC)|-\${BUILDCOMP}|g" ${worksrcpath}/Makefile
 }
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/64996#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list