[MacPorts] #57491: Ghostscript fails to build

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

[MacPorts] #57491: Ghostscript fails to build

MacPorts
#57491: Ghostscript fails to build
----------------------+-------------------------
 Reporter:  jswoboda  |      Owner:  (none)
     Type:  defect    |     Status:  new
 Priority:  Normal    |  Milestone:
Component:  ports     |    Version:
 Keywords:            |       Port:  ghostscript
----------------------+-------------------------
 ghostscript @ @9.25_1 (print) fails to build, on MacOS Mojave.

 Build output log:
 {{{
 :info:build     /bin/sh <./soobj/ldt.tr
 :info:build ld: file not found: /usr/lib/system/libsystem_network.dylib
 for architecture x86_64
 :info:build clang: error: linker command failed with exit code 1 (use -v
 to see invocation)
 :info:build make[2]: *** [sobin/libgs.9.25.dylib] Error 1
 :info:build make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_print_ghostscript/ghostscript/work/ghostscript-9.25'
 :info:build make[1]: *** [so-only-subtarget] Error 2
 :info:build make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_print_ghostscript/ghostscript/work/ghostscript-9.25'
 :info:build make: *** [so] Error 2
 :info:build make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_print_ghostscript/ghostscript/work/ghostscript-9.25'
 :info:build Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_print_ghostscript/ghostscript/work/ghostscript-9.25"
 && /usr/bin/make -j8 -w so
 :info:build Exit code: 2
 :error:build Failed to build ghostscript: command execution failed
 :debug:build Error code: CHILDSTATUS 92242 2
 :debug:build Backtrace: command execution failed
 :debug:build     while executing
 :debug:build "system {*}$notty {*}$nice $fullcmdstring"
 :debug:build     invoked from within
 :debug:build "command_exec build"
 :debug:build     (procedure "portbuild::build_main" line 8)
 :debug:build     invoked from within
 :debug:build "$procedure $targetname"
 :error:build See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_print_ghostscript/ghostscript/main.log
 for details.}}}

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

Re: [MacPorts] #57491: Ghostscript fails to build

MacPorts
#57491: Ghostscript fails to build
--------------------------+--------------------
  Reporter:  jswoboda     |      Owner:  (none)
      Type:  defect       |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:  ghostscript  |
--------------------------+--------------------

Comment (by kencu):

 We'll need the whole log, John. Can you attach it to this ticket please?

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

Re: [MacPorts] #57491: Ghostscript fails to build

MacPorts
In reply to this post by MacPorts
#57491: Ghostscript fails to build
--------------------------+--------------------
  Reporter:  jswoboda     |      Owner:  (none)
      Type:  defect       |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:  ghostscript  |
--------------------------+--------------------

Comment (by kencu):

 FYI:
 {{{
 $ port -v installed ghostscript
 The following ports are currently installed:
   ghostscript @9.25_0+x11 platform='darwin 18' archs='x86_64'
 date='2018-09-27T19:39:05-0700'
   ghostscript @9.25_1+x11 (active) platform='darwin 18' archs='x86_64'
 date='2018-10-26T18:53:03-0700'
 }}}

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

Re: [MacPorts] #57491: Ghostscript fails to build

MacPorts
In reply to this post by MacPorts
#57491: Ghostscript fails to build
--------------------------+--------------------
  Reporter:  jswoboda     |      Owner:  (none)
      Type:  defect       |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:  ghostscript  |
--------------------------+--------------------
Changes (by jswoboda):

 * Attachment "ghostscriptmain.log" added.

 Build log

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

Re: [MacPorts] #57491: Ghostscript fails to build

MacPorts
In reply to this post by MacPorts
#57491: Ghostscript fails to build
--------------------------+--------------------
  Reporter:  jswoboda     |      Owner:  (none)
      Type:  defect       |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:  ghostscript  |
--------------------------+--------------------

Comment (by kencu):

 I take it you might be running a pre-release darwin beta? :
 {{{
 OS darwin/18.2.0 (Mac OS X 10.14) arch i386
 }}}

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

Re: [MacPorts] #57491: Ghostscript fails to build

MacPorts
In reply to this post by MacPorts
#57491: Ghostscript fails to build
--------------------------+--------------------
  Reporter:  jswoboda     |      Owner:  (none)
      Type:  defect       |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:  ghostscript  |
--------------------------+--------------------

Comment (by jswoboda):

 I updated mine on Oct 30. This was the darwin version they pushed on that
 one.

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

Re: [MacPorts] #57491: Ghostscript fails to build

MacPorts
In reply to this post by MacPorts
#57491: Ghostscript fails to build
--------------------------+--------------------
  Reporter:  jswoboda     |      Owner:  (none)
      Type:  defect       |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:  ghostscript  |
--------------------------+--------------------

Comment (by kencu):

 I am learning something new. On my App Store Updates pane there is nothing
 new listed.

 But from the About This Mac Software Update button, on first click it says
 no updates available. Then on second click it finds the 10.14.1 update...

 So indeed, my OS is .1 behind right now, although who knows when I would
 have found out :>

 Updating now. I dunno if that is why your build failed at present.

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

Re: [MacPorts] #57491: ghostscript @9.25: ld: file not found: /usr/lib/system/libsystem_network.dylib for architecture x86_64 (was: Ghostscript fails to build)

MacPorts
In reply to this post by MacPorts
#57491: ghostscript @9.25: ld: file not found:
/usr/lib/system/libsystem_network.dylib for architecture x86_64
--------------------------+--------------------
  Reporter:  jswoboda     |      Owner:  (none)
      Type:  defect       |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:  mojave
      Port:  ghostscript  |
--------------------------+--------------------
Changes (by ryandesign):

 * keywords:   => mojave


Comment:

 I agree with the error message—there is no
 /usr/lib/system/libsystem_network.dylib on Mojave—but I don't know why the
 build is looking for it. There's no mention of that file in the log before
 the error message. I don't see this build failure on Mojave 10.14.0 with
 Xcode 10.0. I will update and see if I see the problem with 10.14.1 and
 10.1.

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

Re: [MacPorts] #57491: ghostscript @9.25: ld: file not found: /usr/lib/system/libsystem_network.dylib for architecture x86_64

MacPorts
In reply to this post by MacPorts
#57491: ghostscript @9.25: ld: file not found:
/usr/lib/system/libsystem_network.dylib for architecture x86_64
--------------------------+--------------------
  Reporter:  jswoboda     |      Owner:  (none)
      Type:  defect       |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:  mojave
      Port:  ghostscript  |
--------------------------+--------------------

Comment (by kencu):

 Ok, I'll leave this then and let Ryan work on it. I don't think that
 `libsystem_network.dylib` has been around for a while, so the question
 indeed is why is ld looking for it all of a sudden.

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

Re: [MacPorts] #57491: ghostscript @9.25: ld: file not found: /usr/lib/system/libsystem_network.dylib for architecture x86_64

MacPorts
In reply to this post by MacPorts
#57491: ghostscript @9.25: ld: file not found:
/usr/lib/system/libsystem_network.dylib for architecture x86_64
--------------------------+--------------------
  Reporter:  jswoboda     |      Owner:  (none)
      Type:  defect       |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:  mojave
      Port:  ghostscript  |
--------------------------+--------------------

Comment (by kencu):

 John, can you show us exactly what version of `ld64` you have installed?
 {{{
 port -v installed ld64
 }}}

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

Re: [MacPorts] #57491: ghostscript @9.25: ld: file not found: /usr/lib/system/libsystem_network.dylib for architecture x86_64

MacPorts
In reply to this post by MacPorts
#57491: ghostscript @9.25: ld: file not found:
/usr/lib/system/libsystem_network.dylib for architecture x86_64
--------------------------+--------------------
  Reporter:  jswoboda     |      Owner:  (none)
      Type:  defect       |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:  mojave
      Port:  ghostscript  |
--------------------------+--------------------

Comment (by jswoboda):

 I have this installed

 {{{ld64 @3_1+ld64_xcode (active) platform='darwin 18' archs='x86_64'
 date='2018-10-31T11:53:48-0400'}}}

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

Re: [MacPorts] #57491: ghostscript @9.25: ld: file not found: /usr/lib/system/libsystem_network.dylib for architecture x86_64

MacPorts
In reply to this post by MacPorts
#57491: ghostscript @9.25: ld: file not found:
/usr/lib/system/libsystem_network.dylib for architecture x86_64
--------------------------+--------------------
  Reporter:  jswoboda     |      Owner:  (none)
      Type:  defect       |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:  mojave
      Port:  ghostscript  |
--------------------------+--------------------

Comment (by kencu):

 are you perhaps setting a deployment_target somewhere, like in your
 macports.conf ?

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

Re: [MacPorts] #57491: ghostscript @9.25: ld: file not found: /usr/lib/system/libsystem_network.dylib for architecture x86_64

MacPorts
In reply to this post by MacPorts
#57491: ghostscript @9.25: ld: file not found:
/usr/lib/system/libsystem_network.dylib for architecture x86_64
--------------------------+--------------------
  Reporter:  jswoboda     |      Owner:  (none)
      Type:  defect       |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:  mojave
      Port:  ghostscript  |
--------------------------+--------------------

Comment (by ryandesign):

 Replying to [comment:7 kencu]:
 > I don't think that `libsystem_network.dylib` has been around for a
 while,

 It is present on Lion through High Sierra.

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

Re: [MacPorts] #57491: ghostscript @9.25: ld: file not found: /usr/lib/system/libsystem_network.dylib for architecture x86_64

MacPorts
In reply to this post by MacPorts
#57491: ghostscript @9.25: ld: file not found:
/usr/lib/system/libsystem_network.dylib for architecture x86_64
--------------------------+--------------------
  Reporter:  jswoboda     |      Owner:  (none)
      Type:  defect       |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:  mojave
      Port:  ghostscript  |
--------------------------+--------------------

Comment (by ryandesign):

 Replying to [comment:10 kencu]:
 > are you perhaps setting a deployment_target somewhere, like in your
 macports.conf ?

 His log shows that the deployment target is 10.14 as it should be.

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

Re: [MacPorts] #57491: ghostscript @9.25: ld: file not found: /usr/lib/system/libsystem_network.dylib for architecture x86_64

MacPorts
In reply to this post by MacPorts
#57491: ghostscript @9.25: ld: file not found:
/usr/lib/system/libsystem_network.dylib for architecture x86_64
--------------------------+--------------------
  Reporter:  jswoboda     |      Owner:  (none)
      Type:  defect       |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:  mojave
      Port:  ghostscript  |
--------------------------+--------------------

Comment (by kencu):

 OK. Something is wrong here.

 I assume the migration instructions were followed, and we're not left with
 any stuff built on 10.13 still installed. Also, I assume no personal
 modifications have been made to any of macports *.conf files, and there is
 nothing in `/usr/local` to cause trouble.

 Next step I would do is to clean and try a trace mode build.
 {{{
 sudo port clean ghostscript
 sudo port -v -t install ghostscript
 }}}

 If that works, then some offending installed port is most likely messing
 with you, somehow.

 If that doesn't work -- after several days with no success, I'd most
 likely blow out MacPorts (there are instructions how to do that) and
 reinstall from scratch. Something has to be wrong here, and it looks like
 something local on your end. Reinstalling MacPorts takes only a few
 minutes and eliminates almost all local issues.

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

Re: [MacPorts] #57491: ghostscript @9.25: ld: file not found: /usr/lib/system/libsystem_network.dylib for architecture x86_64

MacPorts
In reply to this post by MacPorts
#57491: ghostscript @9.25: ld: file not found:
/usr/lib/system/libsystem_network.dylib for architecture x86_64
--------------------------+--------------------
  Reporter:  jswoboda     |      Owner:  (none)
      Type:  defect       |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:  mojave
      Port:  ghostscript  |
--------------------------+--------------------

Comment (by jswoboda):

 Hi I did a clean reinstall of mac ports and it fixed the problem. This
 ticket can be closed out.

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

Re: [MacPorts] #57491: ghostscript @9.25: ld: file not found: /usr/lib/system/libsystem_network.dylib for architecture x86_64

MacPorts
In reply to this post by MacPorts
#57491: ghostscript @9.25: ld: file not found:
/usr/lib/system/libsystem_network.dylib for architecture x86_64
--------------------------+--------------------
  Reporter:  jswoboda     |      Owner:  (none)
      Type:  defect       |     Status:  closed
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:  invalid      |   Keywords:  mojave
      Port:  ghostscript  |
--------------------------+--------------------
Changes (by kencu):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 Great! Glad we got you working. We will never probably know exactly was
 the issue was...

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