#60397: ld64-127 install fails at applying patch stage

classic Classic list List threaded Threaded
27 messages Options
12
Reply | Threaded
Open this post in threaded view
|

#60397: ld64-127 install fails at applying patch stage

macports-4
#60397: ld64-127 install fails at applying patch stage
-----------------------------+----------------------------
 Reporter:  programmingkidx  |      Owner:  (none)
     Type:  defect           |     Status:  new
 Priority:  Normal           |  Milestone:  MacPorts 2.6.3
Component:  ports            |    Version:  2.6.2
 Keywords:  ld64-127 patch   |       Port:
-----------------------------+----------------------------
 When installing ld64-127, the install fails when trying to apply a patch.
 Here is the message:

 --->  Applying patches to ld64-127
 Error: reinplace: couldn't read file
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_ld64/ld64-127/work/ld64-127.2/src/ld/MachOWriterExecutable.hpp":
 no such file or directory
 Error: Failed to patch ld64-127: reinplace sed(1) failed

 Here is more information on the error:

 :info:patch Hunk #1 succeeded at 810 (offset 185 lines).
 :debug:patch Executing proc-post-org.macports.patch-patch-0
 :info:patch --->  Patching Options.cpp: s|@@VERSION@@|127.2|g
 :debug:patch Executing reinplace: /usr/bin/sed s|@@VERSION@@|127.2|g
 </opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_ld64/ld64-127/work/ld64-127.2/src/ld/Options.cpp
 >@file10
 :debug:patch euid/egid changed to: 0/0
 :debug:patch chowned
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_ld64/ld64-127/work/ld64-127.2/src/ld/Options.cpp
 to macports
 :debug:patch euid/egid changed to: 502/500
 :debug:patch euid/egid changed to: 0/0
 :debug:patch setting attributes on
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_ld64/ld64-127/work/ld64-127.2/src/ld/Options.cpp
 :debug:patch euid/egid changed to: 502/500
 :info:patch --->  Patching MachOWriterExecutable.hpp:
 s:<CommonCrypto/CommonDigest.h>:<openssl/md5.h>:
 :debug:patch Executing reinplace: /usr/bin/sed
 s:<CommonCrypto/CommonDigest.h>:<openssl/md5.h>:
 </opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_ld64/ld64-127/work/ld64-127.2/src/ld/MachOWriterExecutable.hpp
 >@file10
 :debug:patch couldn't read file
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_ld64/ld64-127/work/ld64-127.2/src/ld/MachOWriterExecutable.hpp":
 no such file or directory
 :debug:patch     while executing
 :debug:patch "exec -ignorestderr -- {*}$cmdline"
 :error:patch reinplace: couldn't read file
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_ld64/ld64-127/work/ld64-127.2/src/ld/MachOWriterExecutable.hpp":
 no such file or directory
 :error:patch Failed to patch ld64-127: reinplace sed(1) failed
 :debug:patch Error code: NONE
 :debug:patch Backtrace: reinplace sed(1) failed
 :debug:patch     while executing
 :debug:patch "$post $targetname"
 :error:patch See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_ld64/ld64-127/main.log
 for details.


 OS: Mac OS 10.4.11 Server (x86)

--
Ticket URL: <https://trac.macports.org/ticket/60397>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: #60397: ld64-127 install fails at applying patch stage on Tiger (was: ld64-127 install fails at applying patch stage)

macports-4
#60397: ld64-127 install fails at applying patch stage on Tiger
------------------------------+----------------------------
  Reporter:  programmingkidx  |      Owner:  (none)
      Type:  defect           |     Status:  new
  Priority:  Normal           |  Milestone:  MacPorts 2.6.3
 Component:  ports            |    Version:  2.6.2
Resolution:                   |   Keywords:  tiger
      Port:  ld64-127         |
------------------------------+----------------------------
Changes (by kencu):

 * keywords:  ld64-127 patch => tiger
 * port:   => ld64-127


--
Ticket URL: <https://trac.macports.org/ticket/60397#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: #60397: ld64-127 install fails at applying patch stage on Tiger

macports-4
In reply to this post by macports-4
#60397: ld64-127 install fails at applying patch stage on Tiger
------------------------------+----------------------------
  Reporter:  programmingkidx  |      Owner:  kencu
      Type:  defect           |     Status:  assigned
  Priority:  Normal           |  Milestone:  MacPorts 2.6.3
 Component:  ports            |    Version:  2.6.2
Resolution:                   |   Keywords:  tiger
      Port:  ld64-127         |
------------------------------+----------------------------
Changes (by kencu):

 * owner:  (none) => kencu
 * status:  new => assigned


Old description:

> When installing ld64-127, the install fails when trying to apply a patch.
> Here is the message:
>
> --->  Applying patches to ld64-127
> Error: reinplace: couldn't read file
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_ld64/ld64-127/work/ld64-127.2/src/ld/MachOWriterExecutable.hpp":
> no such file or directory
> Error: Failed to patch ld64-127: reinplace sed(1) failed
>
> Here is more information on the error:
>
> :info:patch Hunk #1 succeeded at 810 (offset 185 lines).
> :debug:patch Executing proc-post-org.macports.patch-patch-0
> :info:patch --->  Patching Options.cpp: s|@@VERSION@@|127.2|g
> :debug:patch Executing reinplace: /usr/bin/sed s|@@VERSION@@|127.2|g
> </opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_ld64/ld64-127/work/ld64-127.2/src/ld/Options.cpp
> >@file10
> :debug:patch euid/egid changed to: 0/0
> :debug:patch chowned
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_ld64/ld64-127/work/ld64-127.2/src/ld/Options.cpp
> to macports
> :debug:patch euid/egid changed to: 502/500
> :debug:patch euid/egid changed to: 0/0
> :debug:patch setting attributes on
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_ld64/ld64-127/work/ld64-127.2/src/ld/Options.cpp
> :debug:patch euid/egid changed to: 502/500
> :info:patch --->  Patching MachOWriterExecutable.hpp:
> s:<CommonCrypto/CommonDigest.h>:<openssl/md5.h>:
> :debug:patch Executing reinplace: /usr/bin/sed
> s:<CommonCrypto/CommonDigest.h>:<openssl/md5.h>:
> </opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_ld64/ld64-127/work/ld64-127.2/src/ld/MachOWriterExecutable.hpp
> >@file10
> :debug:patch couldn't read file
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_ld64/ld64-127/work/ld64-127.2/src/ld/MachOWriterExecutable.hpp":
> no such file or directory
> :debug:patch     while executing
> :debug:patch "exec -ignorestderr -- {*}$cmdline"
> :error:patch reinplace: couldn't read file
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_ld64/ld64-127/work/ld64-127.2/src/ld/MachOWriterExecutable.hpp":
> no such file or directory
> :error:patch Failed to patch ld64-127: reinplace sed(1) failed
> :debug:patch Error code: NONE
> :debug:patch Backtrace: reinplace sed(1) failed
> :debug:patch     while executing
> :debug:patch "$post $targetname"
> :error:patch See
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_ld64/ld64-127/main.log
> for details.
>

> OS: Mac OS 10.4.11 Server (x86)

New description:

 When installing ld64-127, the install fails when trying to apply a patch.
 Here is the message:
 {{{
 --->  Applying patches to ld64-127
 Error: reinplace: couldn't read file
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_ld64/ld64-127/work/ld64-127.2/src/ld/MachOWriterExecutable.hpp":
 no such file or directory
 Error: Failed to patch ld64-127: reinplace sed(1) failed

 Here is more information on the error:

 :info:patch Hunk #1 succeeded at 810 (offset 185 lines).
 :debug:patch Executing proc-post-org.macports.patch-patch-0
 :info:patch --->  Patching Options.cpp: s|@@VERSION@@|127.2|g
 :debug:patch Executing reinplace: /usr/bin/sed s|@@VERSION@@|127.2|g
 </opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_ld64/ld64-127/work/ld64-127.2/src/ld/Options.cpp
 >@file10
 :debug:patch euid/egid changed to: 0/0
 :debug:patch chowned
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_ld64/ld64-127/work/ld64-127.2/src/ld/Options.cpp
 to macports
 :debug:patch euid/egid changed to: 502/500
 :debug:patch euid/egid changed to: 0/0
 :debug:patch setting attributes on
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_ld64/ld64-127/work/ld64-127.2/src/ld/Options.cpp
 :debug:patch euid/egid changed to: 502/500
 :info:patch --->  Patching MachOWriterExecutable.hpp:
 s:<CommonCrypto/CommonDigest.h>:<openssl/md5.h>:
 :debug:patch Executing reinplace: /usr/bin/sed
 s:<CommonCrypto/CommonDigest.h>:<openssl/md5.h>:
 </opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_ld64/ld64-127/work/ld64-127.2/src/ld/MachOWriterExecutable.hpp
 >@file10
 :debug:patch couldn't read file
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_ld64/ld64-127/work/ld64-127.2/src/ld/MachOWriterExecutable.hpp":
 no such file or directory
 :debug:patch     while executing
 :debug:patch "exec -ignorestderr -- {*}$cmdline"
 :error:patch reinplace: couldn't read file
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_ld64/ld64-127/work/ld64-127.2/src/ld/MachOWriterExecutable.hpp":
 no such file or directory
 :error:patch Failed to patch ld64-127: reinplace sed(1) failed
 :debug:patch Error code: NONE
 :debug:patch Backtrace: reinplace sed(1) failed
 :debug:patch     while executing
 :debug:patch "$post $targetname"
 :error:patch See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_ld64/ld64-127/main.log
 for details.

 }}}
 OS: Mac OS 10.4.11 Server (x86)

--

--
Ticket URL: <https://trac.macports.org/ticket/60397#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: #60397: ld64-127 install fails at applying patch stage on Tiger

macports-4
In reply to this post by macports-4
#60397: ld64-127 install fails at applying patch stage on Tiger
------------------------------+----------------------------
  Reporter:  programmingkidx  |      Owner:  kencu
      Type:  defect           |     Status:  assigned
  Priority:  Normal           |  Milestone:  MacPorts 2.6.3
 Component:  ports            |    Version:  2.6.2
Resolution:                   |   Keywords:  tiger
      Port:  ld64-127         |
------------------------------+----------------------------
Changes (by kencu):

 * cc: jeremyhu (added)


--
Ticket URL: <https://trac.macports.org/ticket/60397#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: #60397: ld64-127 install fails at applying patch stage on Tiger

macports-4
In reply to this post by macports-4
#60397: ld64-127 install fails at applying patch stage on Tiger
------------------------------+----------------------------
  Reporter:  programmingkidx  |      Owner:  kencu
      Type:  defect           |     Status:  assigned
  Priority:  Normal           |  Milestone:  MacPorts 2.6.3
 Component:  ports            |    Version:  2.6.2
Resolution:                   |   Keywords:  tiger
      Port:  ld64-127         |
------------------------------+----------------------------

Comment (by kencu):

 ld64-127 in the MacPorts repo does not currently install on MacOSX 10.4
 Tiger.

 Tiger is presently limited to ld64-97 in MacPorts (and most everywhere
 else on Earth).

 I have, however, modified ld64-127 to build and install on Tiger:

 {{{
 $ port -v installed ld64-127
 The following ports are currently installed:
   ld64-127 @127.2_14+llvm33 platform='darwin 8' archs='ppc'
 date='2020-02-03T18:00:47-0800'
 }}}

 but so far I have not enabled that on MacPorts. It is quite possible that
 even newer versions of ld64 could be made to work on Tiger -- it just
 requires some effort and a bit of attention to detail to do it.

 To be honest, so far, ld64-97 links most things on Tiger that need
 linking, though ... was there a specific reason you were wanting it? Or
 just generally trying to see what would build.

 Ken

--
Ticket URL: <https://trac.macports.org/ticket/60397#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: #60397: ld64-127 install fails at applying patch stage on Tiger

macports-4
In reply to this post by macports-4
#60397: ld64-127 install fails at applying patch stage on Tiger
------------------------------+-----------------------------
  Reporter:  programmingkidx  |      Owner:  kencu
      Type:  defect           |     Status:  assigned
  Priority:  Normal           |  Milestone:  MacPorts Future
 Component:  ports            |    Version:  2.6.2
Resolution:                   |   Keywords:  tiger
      Port:  ld64-127         |
------------------------------+-----------------------------
Changes (by kencu):

 * milestone:  MacPorts 2.6.3 => MacPorts Future


--
Ticket URL: <https://trac.macports.org/ticket/60397#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: #60397: ld64-127 install fails at applying patch stage on Tiger

macports-4
In reply to this post by macports-4
#60397: ld64-127 install fails at applying patch stage on Tiger
------------------------------+-----------------------------
  Reporter:  programmingkidx  |      Owner:  kencu
      Type:  defect           |     Status:  assigned
  Priority:  Normal           |  Milestone:  MacPorts Future
 Component:  ports            |    Version:  2.6.2
Resolution:                   |   Keywords:  tiger
      Port:  ld64-127         |
------------------------------+-----------------------------

Comment (by programmingkidx):

 Hi, I am trying to build TenFourFox on Mac OS 10.4. It is fork of Firefox
 for older Macs. It currently fails to build on my computer because the ld
 command does not accept the -allow_heap_execute option. ld64-127 does
 support this command-line option. Once I have ld64-127 up and running I
 will be able to build TenFourFox :)

--
Ticket URL: <https://trac.macports.org/ticket/60397#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: #60397: ld64-127 install fails at applying patch stage on Tiger

macports-4
In reply to this post by macports-4
#60397: ld64-127 install fails at applying patch stage on Tiger
------------------------------+-----------------------------
  Reporter:  programmingkidx  |      Owner:  kencu
      Type:  defect           |     Status:  assigned
  Priority:  Normal           |  Milestone:  MacPorts Future
 Component:  ports            |    Version:  2.6.2
Resolution:                   |   Keywords:  tiger
      Port:  ld64-127         |
------------------------------+-----------------------------

Comment (by programmingkidx):

 Would you be willing to share your ld64-127 binary?

--
Ticket URL: <https://trac.macports.org/ticket/60397#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: #60397: ld64-127 install fails at applying patch stage on Tiger

macports-4
In reply to this post by macports-4
#60397: ld64-127 install fails at applying patch stage on Tiger
------------------------------+-----------------------------
  Reporter:  programmingkidx  |      Owner:  kencu
      Type:  defect           |     Status:  assigned
  Priority:  Normal           |  Milestone:  MacPorts Future
 Component:  ports            |    Version:  2.6.2
Resolution:                   |   Keywords:  tiger
      Port:  ld64-127         |
------------------------------+-----------------------------

Comment (by kencu):

 I have tenfourfox building on 10.4 PPC now, using ld64-97. It doesn't need
 ld64-127, or at least it didn't when I last built it a few weeks ago. If
 you are having an issue building it with ld64-97, perhaps I can help you
 sort out what the issue is with that.

 I made a Portfile to build it to make it really easy, and put it here
 <https://github.com/kencu/tenfourfox-macports>. I haven't submitted this
 one to MacPorts as yet either, but it is pretty much ready to go. We just
 got stuck with the {{{strip7}}} modified {{{strip}}} command from
 {{{cctools}}} -- people weren't happy having that in MacPorts, so that
 shut down the rest of it too.

 To use my custom repo, you need to add it to MacPorts' list of
 repositories. It's really quite easy to do this, and with the kind of
 programming you're doing, you are going to need to do it very soon :> The
 instructions on how to use a custom repo are here
 <https://guide.macports.org/chunked/development.local-repositories.html>.
 Basically you just clone mine to some spot on your hard drive, like
 {{{/opt/local/tenfourfox-macports}}}, and then add that repo to the
 sources.conf list, as it says in the instructions.

 Of course you are welcome to my Tiger ld64-127 stuff -- I have not
 uploaded that to github yet -- I'll find a place to put it and give you
 the link.

--
Ticket URL: <https://trac.macports.org/ticket/60397#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: #60397: ld64-127 install fails at applying patch stage on Tiger

macports-4
In reply to this post by macports-4
#60397: ld64-127 install fails at applying patch stage on Tiger
------------------------------+-----------------------------
  Reporter:  programmingkidx  |      Owner:  kencu
      Type:  defect           |     Status:  assigned
  Priority:  Normal           |  Milestone:  MacPorts Future
 Component:  ports            |    Version:  2.6.2
Resolution:                   |   Keywords:  tiger
      Port:  ld64-127         |
------------------------------+-----------------------------

Comment (by kencu):

 Did Cameron change something in the TenFourFox build with the latest
 release to make it require ld64-127?

--
Ticket URL: <https://trac.macports.org/ticket/60397#comment:9>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: #60397: ld64-127 install fails at applying patch stage on Tiger

macports-4
In reply to this post by macports-4
#60397: ld64-127 install fails at applying patch stage on Tiger
------------------------------+-----------------------------
  Reporter:  programmingkidx  |      Owner:  kencu
      Type:  defect           |     Status:  assigned
  Priority:  Normal           |  Milestone:  MacPorts Future
 Component:  ports            |    Version:  2.6.2
Resolution:                   |   Keywords:  tiger
      Port:  ld64-127         |
------------------------------+-----------------------------

Comment (by programmingkidx):

 I think he did. The configure command fails at a test of the c++ compiler.
 This is the error I see:

 {{{
 checking for -dead_strip option to ld... no
 checking for -allow_heap_execute option to ld... no
 checking whether the C++ compiler (c++  -fno-exceptions -fno-strict-
 aliasing -fno-rtti ) actually is a C++ compiler... no
 configure: error: c++  -fno-exceptions -fno-strict-aliasing -fno-rtti
 failed to compile and link a simple C++ source.
 ------ config.log ------
 return 0;
 ; return 0; }
 configure:9536: checking for -allow_heap_execute option to ld
 configure:9547: gcc -o conftest  -std=gnu99 -fno-strict-aliasing -fno-
 exceptions   -Wl,-allow_heap_execute conftest.c  1>&5
 ld: library not found for -lcrt1.10.6.o
 collect2: error: ld returned 1 exit status
 configure: failed program was:
 #line 9540 "configure"
 #include "confdefs.h"

 int main() {
 return 0;
 ; return 0; }
 }}}

 I cannot go past the configure command without having a linker that
 supports -allow_heap_execute.

--
Ticket URL: <https://trac.macports.org/ticket/60397#comment:10>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: #60397: ld64-127 install fails at applying patch stage on Tiger

macports-4
In reply to this post by macports-4
#60397: ld64-127 install fails at applying patch stage on Tiger
------------------------------+-----------------------------
  Reporter:  programmingkidx  |      Owner:  kencu
      Type:  defect           |     Status:  assigned
  Priority:  Normal           |  Milestone:  MacPorts Future
 Component:  ports            |    Version:  2.6.2
Resolution:                   |   Keywords:  tiger
      Port:  ld64-127         |
------------------------------+-----------------------------

Comment (by kencu):

 I think this is your error:
 {{{
 ld: library not found for -lcrt1.10.6.o
 }}}
 and that happens because you're not setting the deployment target to 10.4.

 Here's my TFF mozconfig:
 {{{
 . $topsrcdir/browser/config/mozconfig

 # optimized buildÃ¥
 export CC="/opt/local/bin/gcc-mp-4.8 -Wa,-Q -flax-vector-conversions -O3
 -m32 -read_only_relocs suppress"
 export CXX="/opt/local/bin/g++-mp-4.8 -Wa,-Q -flax-vector-conversions
 -fpermissive -O3 -m32 -read_only_relocs suppress"

 # spec a version of clang that can compile the newer assembly code in
 libvpx
 export TFF_VPX_CC="/opt/local/bin/clang-mp-3.4 -arch i386 -O3"

 ac_add_options --enable-optimize
 ac_add_options --disable-debug
 ac_add_options --enable-strip
 ac_add_options --enable-install-strip

 mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-ff-dbg
 mk_add_options AUTOCONF=autoconf213
 ac_add_options --disable-tests
 ac_add_options --disable-static
 ac_add_options --disable-cpp-exceptions
 ac_add_options --disable-crashreporter
 ac_add_options --enable-printing
 ac_add_options --enable-prebinding
 ac_add_options --enable-macos-target=10.4
 ac_add_options --enable-chrome-format=jar
 ac_add_options --with-macos-sdk=/Developer/SDKs/MacOSX10.4u.sdk
 ac_add_options --with-distribution-id=com.floodgap
 ac_add_options --enable-webrtc
 ac_add_options --disable-ion
 }}}

 but you will possibly have more success using my Portfile, at least to
 begin with, especially building TFF for Intel -- Riccardo and I had to do
 some moderate surgery, and there are still a couple of patches needed to
 make it build on Intel, and these are in my repo.

--
Ticket URL: <https://trac.macports.org/ticket/60397#comment:11>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: #60397: ld64-127 install fails at applying patch stage on Tiger

macports-4
In reply to this post by macports-4
#60397: ld64-127 install fails at applying patch stage on Tiger
------------------------------+-----------------------------
  Reporter:  programmingkidx  |      Owner:  kencu
      Type:  defect           |     Status:  assigned
  Priority:  Normal           |  Milestone:  MacPorts Future
 Component:  ports            |    Version:  2.6.2
Resolution:                   |   Keywords:  tiger
      Port:  ld64-127         |
------------------------------+-----------------------------

Comment (by kencu):

 Oh, one more thing -- Cameron's latest TFF version pulled in some newer
 parts, and so far I haven't had the time with Riccardo to sort out how to
 get that last version of TFF to build on Intel Tiger... so we're still at
 FPR19, I believe -- for the moment.

--
Ticket URL: <https://trac.macports.org/ticket/60397#comment:12>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: #60397: ld64-127 install fails at applying patch stage on Tiger

macports-4
In reply to this post by macports-4
#60397: ld64-127 install fails at applying patch stage on Tiger
------------------------------+-----------------------------
  Reporter:  programmingkidx  |      Owner:  kencu
      Type:  defect           |     Status:  assigned
  Priority:  Normal           |  Milestone:  MacPorts Future
 Component:  ports            |    Version:  2.6.2
Resolution:                   |   Keywords:  tiger
      Port:  ld64-127         |
------------------------------+-----------------------------

Comment (by kencu):

 I haven't uploaded any of my TFF Intel builds recently to Cameron's
 sourceforge sit -- just lazy -- here's where I put them
 <https://sourceforge.net/projects/tenfourfox/files/unstable/contrib/> but
 my TFF FPR19 build for Tiger Intel isn't there... too many things to do I
 guess.

--
Ticket URL: <https://trac.macports.org/ticket/60397#comment:13>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: #60397: ld64-127 install fails at applying patch stage on Tiger

macports-4
In reply to this post by macports-4
#60397: ld64-127 install fails at applying patch stage on Tiger
------------------------------+-----------------------------
  Reporter:  programmingkidx  |      Owner:  kencu
      Type:  defect           |     Status:  assigned
  Priority:  Normal           |  Milestone:  MacPorts Future
 Component:  ports            |    Version:  2.6.2
Resolution:                   |   Keywords:  tiger
      Port:  ld64-127         |
------------------------------+-----------------------------

Comment (by kencu):

 Here's what I did to build ld64-127 on Tiger (PPC). First copied over the
 MacOS10.5.sdk from a Leopard system, and then did these changes to the
 ld64 Portfile:
 {{{
 diff --git a/devel/ld64/Portfile b/devel/ld64/Portfile
 index 2aba025c888..39184ee1eed 100644
 --- a/devel/ld64/Portfile
 +++ b/devel/ld64/Portfile
 @@ -79,6 +79,10 @@ subport ld64-127 {
      # This was the last ld64 release that supported linking ppc
 executables.
      version             127.2
      revision            14
 +configure.sdkroot /Developer/SDKs/MacOSX10.5.sdk
 +configure.cppflags-append -isysroot ${configure.sdkroot}
 +configure.cxxflags-append -isysroot ${configure.sdkroot}
 +configure.cflags-append -isysroot ${configure.sdkroot}

      # multiple errors with macports clang versions newer than 3.7
      compiler.blacklist-append {macports-clang-[5-9].0} macports-clang-
 devel
 @@ -396,11 +400,20 @@ if {${subport} eq ${name}} {

          if {${os.major} < 9} {
              # No CommonCrypto, use openssl
 +
 +if {$ld64_ver == 97} {
              reinplace "s:<CommonCrypto/CommonDigest.h>:<openssl/md5.h>:"
 \
                  ${worksrcpath}/src/ld/MachOWriterExecutable.hpp
              reinplace "s:CC_MD5:MD5:" \
                  ${worksrcpath}/src/ld/MachOWriterExecutable.hpp
 +}

 +if {$ld64_ver == 127} {
 +            reinplace "s:<CommonCrypto/CommonDigest.h>:<openssl/md5.h>:"
 \
 +                ${worksrcpath}/src/ld/OutputFile.cpp
 +            reinplace "s:CC_MD5:MD5:" \
 +                ${worksrcpath}/src/ld/OutputFile.cpp
 +}
              reinplace "s:-Wl,-exported_symbol,__mh_execute_header::g" \
                  ${worksrcpath}/Makefile

 @@ -512,8 +525,8 @@ if {![variant_isset universal]} {
      test.run     yes
      test.dir     ${workpath}/ld64-${version}/unit-tests/test-cases
      test.cmd     perl ../bin/make-recursive.pl \
 -                 CXX="${configure.cxx} -arch ${configure.build_arch}"  \
 -                 CC="${configure.cc} -arch ${configure.build_arch}" \
 +                 CXX="${configure.cxx} -arch ${configure.build_arch}
 -isysroot ${configure.sdkroot}"  \
 +                 CC="${configure.cc} -arch ${configure.build_arch}
 -isysroot ${configure.sdkroot}" \
                   BUILT_PRODUCTS_DIR="${workpath}/ld64-${version}" \
                   LD_SYSROOT="${configure.sdkroot}" \
                   LD="${workpath}/ld64-${version}/ld" \
 }}}

 there is a slight issue that I haven't sorted out completely with the
 {{{crt0.o}}} files --- the one in the 10.5 SDK is different than the one
 in the 10.4 SDK. I forget just now which way I got around that -- I think
 I copied the 10.4 one into the 10.5 SDK to build this -- I'm sorry, it was
 a couple of months ago now and I don't fully recall.

--
Ticket URL: <https://trac.macports.org/ticket/60397#comment:14>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: #60397: ld64-127 install fails at applying patch stage on Tiger

macports-4
In reply to this post by macports-4
#60397: ld64-127 install fails at applying patch stage on Tiger
------------------------------+----------------------
  Reporter:  programmingkidx  |      Owner:  kencu
      Type:  defect           |     Status:  assigned
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.6.2
Resolution:                   |   Keywords:  tiger
      Port:  ld64-127         |
------------------------------+----------------------
Changes (by jmroot):

 * milestone:  MacPorts Future =>


--
Ticket URL: <https://trac.macports.org/ticket/60397#comment:15>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: #60397: ld64-127 install fails at applying patch stage on Tiger

macports-4
In reply to this post by macports-4
#60397: ld64-127 install fails at applying patch stage on Tiger
------------------------------+----------------------
  Reporter:  programmingkidx  |      Owner:  kencu
      Type:  defect           |     Status:  assigned
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.6.2
Resolution:                   |   Keywords:  tiger
      Port:  ld64-127         |
------------------------------+----------------------

Comment (by programmingkidx):

 Thank you very much for the TenFourFox binary. It brought new life to my
 core duo MacBook. With your TenFourFox I am now able to watch Youtube
 videos on it :)

 Because it took days to compile all the tools I needed to build
 TenFourFox, I was thinking about making a binary distribution that would
 save others literally days of work. It will include GCC 4.8 and all the
 other tools I was required to build.

 As for building TenFourFox, I may do that at a later time. I would really
 suggest your x86 binary be made available on the main TenFourFox site. It
 would help a lot of people who still love their older Macs. I actually
 plan on bying a MacPro 3,1 to run Mac OS 10.4 on it. With the ability to
 play Youtube videos on it I can use it as my main computer now.

 Thank you so much for you help.

--
Ticket URL: <https://trac.macports.org/ticket/60397#comment:16>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: #60397: ld64-127 install fails at applying patch stage on Tiger

macports-4
In reply to this post by macports-4
#60397: ld64-127 install fails at applying patch stage on Tiger
------------------------------+----------------------
  Reporter:  programmingkidx  |      Owner:  kencu
      Type:  defect           |     Status:  assigned
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.6.2
Resolution:                   |   Keywords:  tiger
      Port:  ld64-127         |
------------------------------+----------------------

Comment (by kencu):

 That binary you downloaded from SourceForge already has all the libgcc
 parts and all the supporting libraries in it, so it is already self-
 contained and you don't need MacPorts or anything else to use it. So that
 part is done already.

 I will (am) make a new TenFourFox FPR 18, 19, or 20 binary that is up-to-
 date, and I'll put it up on that sourceforge site for anyone to use.

 If you are interested (and it seems like you are) then we could sure use
 some help keeping these things up-to-date...feel free to reach out. The
 GitHub repo that contains our TenFourFox Intel changes is held by Riccardo
 -- and most of the changes are upstreamed to Cameron, unless they are too
 wild for his main TFF repo. I'll let you know when I have a newer TFF
 Intel done.

 One problem we have is that MacPorts has updated libgcc to a version that
 breaks on all older systems. So to make things work, we have to hold back
 the libgcc version to 7.4.0 (or go through nutty lengths to set the
 default library path in every piece of software that uses libgcc, which
 does not fit in with Cameron's current plans). So I have held back to
 libgcc 7.4.0 on all my systems (although MacPorts has decided to give the
 library_path idea a shot).

--
Ticket URL: <https://trac.macports.org/ticket/60397#comment:17>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: #60397: ld64-127 install fails at applying patch stage on Tiger

macports-4
In reply to this post by macports-4
#60397: ld64-127 install fails at applying patch stage on Tiger
------------------------------+----------------------
  Reporter:  programmingkidx  |      Owner:  kencu
      Type:  defect           |     Status:  assigned
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.6.2
Resolution:                   |   Keywords:  tiger
      Port:  ld64-127         |
------------------------------+----------------------

Comment (by kencu):

 TenFourFox FPR18 built overnight on my Tiger Intel system, and it seems to
 be working as expected, so I uploaded that to
 <https://sourceforge.net/projects/tenfourfox/files/unstable/contrib/> as
 well just now. Please let me know if somehow isn't working as expected for
 you.

 Later this week perhaps I'll work on FPR20 -- just trying to get updates
 of clang-10 and cctools out the door first.

--
Ticket URL: <https://trac.macports.org/ticket/60397#comment:18>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: #60397: ld64-127 install fails at applying patch stage on Tiger

macports-4
In reply to this post by macports-4
#60397: ld64-127 install fails at applying patch stage on Tiger
------------------------------+----------------------
  Reporter:  programmingkidx  |      Owner:  kencu
      Type:  defect           |     Status:  assigned
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.6.2
Resolution:                   |   Keywords:  tiger
      Port:  ld64-127         |
------------------------------+----------------------

Comment (by programmingkidx):

 When I watch a youtube video in full screen mode, I can see the top and
 bottom of the desktop. The full screen mode does not fully hide the
 everything.

 I was using TenFourFox 18 on Mac OS 10.12.

 Thank you.

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