Opened 8 years ago
Closed 4 years ago
#53398 closed defect (worksforme)
ghostscript 9.19 build fails
Reported by: | bruce-r-sutherland | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.5 |
Keywords: | Cc: | ||
Port: | ghostscript |
Description
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
Attachments (1)
Change History (9)
Changed 8 years ago by bruce-r-sutherland
comment:1 Changed 8 years ago by mf2k (Frank Schima)
Cc: | bruce-r-sutherland removed |
---|---|
Keywords: | command execution failed removed |
As reporter, you do not need to Cc yourself.
comment:2 Changed 8 years ago by jmroot (Joshua Root)
What is the output of these three commands?
xcode-select -print-path xcodebuild -version /usr/bin/clang -v
comment:3 Changed 8 years ago 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
comment:4 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)
Try reinstalling the latest version of the command line tools (which is what provides the files in /usr/include).
comment:5 Changed 8 years ago 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.
comment:6 Changed 8 years ago by yaseppochi (Stephen J. Turnbull)
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.
comment:7 Changed 8 years ago 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.
comment:8 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → worksforme |
---|---|
Status: | new → closed |
main.log