[MacPorts] #53398: ghostscript 9.19 build fails

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[MacPorts] #53398: ghostscript 9.19 build fails

MacPorts
#53398: ghostscript 9.19 build fails
--------------------------------------+-------------------------
 Reporter:  bruce-r-sutherland        |      Owner:
     Type:  defect                    |     Status:  new
 Priority:  Normal                    |  Milestone:
Component:  ports                     |    Version:  2.3.5
 Keywords:  command execution failed  |       Port:  ghostscript
--------------------------------------+-------------------------
 ghostscript 9.19 fails to build for me with MacPorts 2.3.5 on MacOS Sierra
 desktop computer.   I have uninstalled and reinstalled, clean all ports,
 etc but the problem persists. From the main.log file, the problem is a
 percieved error with line 423 in /usr/include/pthread.h.

 Key lines in main.log are:


 {{{
 :info:build In file included from ./base/gp_psync.c:21:
 :info:build /usr/include/pthread.h:423:25: error: expected parameter
 declarator
 :info:build __SWIFT_UNAVAILABLE_MSG("Use lazily initialized globals
 instead")
 :info:build                         ^
 :info:build /usr/include/pthread.h:423:25: error: expected ')'
 :info:build /usr/include/pthread.h:423:24: note: to match this '('
 :info:build __SWIFT_UNAVAILABLE_MSG("Use lazily initialized globals
 instead")
 :info:build                        ^
 :info:build /usr/include/pthread.h:424:51: error: expected ';' after top
 level declarator
 :info:build __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
 }}}



 Strangely, I do not have a problem compiling the save version of
 ghostscript on my laptop even though the pthread.h file is identical.

 Help would be appreciated.   Full main.log file is attached

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

Re: [MacPorts] #53398: ghostscript 9.19 build fails

MacPorts
#53398: ghostscript 9.19 build fails
---------------------------------+--------------------------------------
  Reporter:  bruce-r-sutherland  |      Owner:
      Type:  defect              |     Status:  new
  Priority:  Normal              |  Milestone:
 Component:  ports               |    Version:  2.3.5
Resolution:                      |   Keywords:  command execution failed
      Port:  ghostscript         |
---------------------------------+--------------------------------------
Changes (by bruce-r-sutherland):

 * Attachment "main.log" added.

 main.log

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

Re: [MacPorts] #53398: ghostscript 9.19 build fails

MacPorts
In reply to this post by MacPorts
#53398: ghostscript 9.19 build fails
---------------------------------+-------------------
  Reporter:  bruce-r-sutherland  |      Owner:
      Type:  defect              |     Status:  new
  Priority:  Normal              |  Milestone:
 Component:  ports               |    Version:  2.3.5
Resolution:                      |   Keywords:
      Port:  ghostscript         |
---------------------------------+-------------------
Changes (by mf2k):

 * keywords:  command execution failed =>
 * cc: bruce-r-sutherland (removed)


Comment:

 As reporter, you do not need to Cc yourself.

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

Re: [MacPorts] #53398: ghostscript 9.19 build fails

MacPorts
In reply to this post by MacPorts
#53398: ghostscript 9.19 build fails
---------------------------------+-------------------
  Reporter:  bruce-r-sutherland  |      Owner:
      Type:  defect              |     Status:  new
  Priority:  Normal              |  Milestone:
 Component:  ports               |    Version:  2.3.5
Resolution:                      |   Keywords:
      Port:  ghostscript         |
---------------------------------+-------------------

Comment (by jmroot):

 What is the output of these three commands?
 {{{
 xcode-select -print-path
 xcodebuild -version
 /usr/bin/clang -v
 }}}

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

Re: [MacPorts] #53398: ghostscript 9.19 build fails

MacPorts
In reply to this post by MacPorts
#53398: ghostscript 9.19 build fails
---------------------------------+-------------------
  Reporter:  bruce-r-sutherland  |      Owner:
      Type:  defect              |     Status:  new
  Priority:  Normal              |  Milestone:
 Component:  ports               |    Version:  2.3.5
Resolution:                      |   Keywords:
      Port:  ghostscript         |
---------------------------------+-------------------

Comment (by bruce-r-sutherland):

 xcode-select -print-path

 {{{
 /Applications/Xcode.app/Contents/Developer
 }}}


 xcodebuild -version

 {{{
 Xcode 8.2.1
 Build version 8C1002
 }}}


 /usr/bin/clang -v

 {{{
 Apple LLVM version 8.0.0 (clang-800.0.42.1)
 Target: x86_64-apple-darwin16.3.0
 Thread model: posix
 InstalledDir:
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
 }}}

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

Re: [MacPorts] #53398: ghostscript 9.19 build fails

MacPorts
In reply to this post by MacPorts
#53398: ghostscript 9.19 build fails
---------------------------------+-------------------
  Reporter:  bruce-r-sutherland  |      Owner:
      Type:  defect              |     Status:  new
  Priority:  Normal              |  Milestone:
 Component:  ports               |    Version:  2.3.5
Resolution:                      |   Keywords:
      Port:  ghostscript         |
---------------------------------+-------------------

Comment (by ryandesign):

 Try reinstalling the latest version of the command line tools (which is
 what provides the files in /usr/include).

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

Re: [MacPorts] #53398: ghostscript 9.19 build fails

MacPorts
In reply to this post by MacPorts
#53398: ghostscript 9.19 build fails
---------------------------------+-------------------
  Reporter:  bruce-r-sutherland  |      Owner:
      Type:  defect              |     Status:  new
  Priority:  Normal              |  Milestone:
 Component:  ports               |    Version:  2.3.5
Resolution:                      |   Keywords:
      Port:  ghostscript         |
---------------------------------+-------------------

Comment (by bruce-r-sutherland):

 Unfortunately, this did not work.  I uninstalled command line tools using
 sudo rm -rf /Library/Developer/CommandLineTools, then reinstalled using
 sudo xcode-select --install.  Then I tried once more to install
 ghostscript having previously uninstalled and cleaned the port: sudo port
 install ghostscript.   I get the same error in main.log with pthread.h as
 reported above.

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

Re: [MacPorts] #53398: ghostscript 9.19 build fails

MacPorts
In reply to this post by MacPorts
#53398: ghostscript 9.19 build fails
---------------------------------+-------------------
  Reporter:  bruce-r-sutherland  |      Owner:
      Type:  defect              |     Status:  new
  Priority:  Normal              |  Milestone:
 Component:  ports               |    Version:  2.3.5
Resolution:                      |   Keywords:
      Port:  ghostscript         |
---------------------------------+-------------------

Comment (by yaseppochi):

 Hi Bruce,
 Did you ever resolve this?
 I can't confirm 100% because I did this seredipitously, but I believe I
 had old copies of /usr/include/Availability*.h in /opt/local/include.
 Removing them seems to have allowed a bunch of builds to proceed.  I
 haven't gotten to ghostscript yet, though.

 What I did exactly:
 {{{
 Read https://trac.macports.org/ticket/48471. As suggested there
 Copy /usr/include/Availability.h to /opt/local/include.
 Try to edit them but this didn't work because the configuration of bad
 #ifdefs in
     48471 wasn't present.
 Deleted them because it's unclean to have them around.
 "Oh! Maybe I had wrong ones there!", retry the upgrades and voilĂ ! compile
 happened.
 }}}

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

Re: [MacPorts] #53398: ghostscript 9.19 build fails

MacPorts
In reply to this post by MacPorts
#53398: ghostscript 9.19 build fails
---------------------------------+-------------------
  Reporter:  bruce-r-sutherland  |      Owner:
      Type:  defect              |     Status:  new
  Priority:  Normal              |  Milestone:
 Component:  ports               |    Version:  2.3.5
Resolution:                      |   Keywords:
      Port:  ghostscript         |
---------------------------------+-------------------

Comment (by bruce-r-sutherland):

 Thanks for the suggestion.   In the end I took the drastic step of
 deleting all my ports (effectively uninstalling MacPorts) and reinstalling
 everything.  This did the trick.

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