Opened 6 years ago

Closed 4 years ago

#53450 closed defect (worksforme)

xorg-server @1.18.4_1 Error: Failed to build xorg-server: command execution failed

Reported by: tapfeifer Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.4.0
Keywords: Cc:
Port: xorg-server

Description (last modified by mf2k (Frank Schima))

It appears either my system or the build process is looking for a header file, CoreGraphics/CGBase.h

Attached is the main.log

My system is macOS Sierra, 10.12.3 on a MacBook Pro (17-inch, Mid 2010)

  • Xcode version 8.2.1
  • MacPorts version 2.4.0
  • Developer Tools are installed at /Library/Developer/CommandLineTools

What else do you need from my system? From my rudimentary knowledge of what's where finds CGBase.h in several locations throughout the filesystem, but MacPorts xorg-server is wanting to look for it in a very specific directory and its not in that directory.

Attachments (5)

main.log (1.3 MB) - added by tapfeifer 6 years ago.
main.log for the xorg-server build that failed
ls.txt.gz (2.2 MB) - added by tapfeifer 6 years ago.
zipped up text file containing ls -laR for Xcode.app directories
dev.txt.gz (272.9 KB) - added by tapfeifer 6 years ago.
zip file containing ls -laR directory listing for /Library/Developer
main2.log (1.3 MB) - added by tapfeifer 6 years ago.
Results after switching Xcode to use /Library/Developer for command line tools
main3.log (1.3 MB) - added by tapfeifer 6 years ago.
Results after resetting Xcode to defaults for command line tool locations

Change History (12)

Changed 6 years ago by tapfeifer

Attachment: main.log added

main.log for the xorg-server build that failed

comment:1 Changed 6 years ago by mf2k (Frank Schima)

Cc: jeremyhu@… removed
Owner: set to jeremyhu
Status: newassigned

In the future, please use WikiFormatting.

comment:2 Changed 6 years ago by mf2k (Frank Schima)

Description: modified (diff)

Changed 6 years ago by tapfeifer

Attachment: ls.txt.gz added

zipped up text file containing ls -laR for Xcode.app directories

comment:3 Changed 6 years ago by tapfeifer

Added zipped up text file containing the directory contents of /Applications/Xcode.app. I hope this helps.

Changed 6 years ago by tapfeifer

Attachment: dev.txt.gz added

zip file containing ls -laR directory listing for /Library/Developer

Changed 6 years ago by tapfeifer

Attachment: main2.log added

Results after switching Xcode to use /Library/Developer for command line tools

comment:4 Changed 6 years ago by tapfeifer

Found Xcode was using the default setting of /Applications/Xcode.app/Contents/Developer for command line tools. I switched Xcode to /Library/Developer/CommandLineTools for the command line tools. Same fatal error resulted when building xcode-server. Please see attached main2.log for those results.

Toms-MBP:~ tompfeifer$ xcode-select -p
/Applications/Xcode.app/Contents/Developer
Toms-MBP:~ tompfeifer$ sudo xcode-select -r
Toms-MBP:~ tompfeifer$ xcode-select -p
/Applications/Xcode.app/Contents/Developer
Toms-MBP:~ tompfeifer$ sudo xcode-select --switch /Library/Developer/CommandLineTools/
Toms-MBP:Downloads tompfeifer$ xcode-select -p
/Library/Developer/CommandLineTools
Toms-MBP:~ tompfeifer$ sudo port install xorg-server
Warning: xcodebuild exists but failed to execute
Warning: Xcode does not appear to be installed; most ports will likely fail to build.
--->  Computing dependencies for xorg-server
--->  Building xorg-server
Error: Failed to build xorg-server: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_xorg-server/xorg-server/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port xorg-server failed
Toms-MBP:~ tompfeifer$ sudo port clean xorg-server
Warning: xcodebuild exists but failed to execute
--->  Cleaning xorg-server
Toms-MBP:~ tompfeifer$ sudo port install xorg-server
Warning: xcodebuild exists but failed to execute
Warning: Xcode does not appear to be installed; most ports will likely fail to build.
--->  Computing dependencies for xorg-server
--->  Fetching archive for xorg-server
--->  Attempting to fetch xorg-server-1.18.4_1.darwin_16.x86_64.tbz2 from https://packages.macports.org/xorg-server
--->  Attempting to fetch xorg-server-1.18.4_1.darwin_16.x86_64.tbz2 from http://sea.us.packages.macports.org/macports/packages/xorg-server
--->  Attempting to fetch xorg-server-1.18.4_1.darwin_16.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/xorg-server
--->  Fetching distfiles for xorg-server
--->  Verifying checksums for xorg-server
--->  Extracting xorg-server
--->  Applying patches to xorg-server
--->  Configuring xorg-server
--->  Building xorg-server
Error: Failed to build xorg-server: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_xorg-server/xorg-server/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port xorg-server failed
Toms-MBP:~ tompfeifer$ cp /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_xorg-server/xorg-server/main.log ~/main2.log
Toms-MBP:~ tompfeifer$ xcode-select -p
/Library/Developer/CommandLineTools

comment:5 Changed 6 years ago by tapfeifer

And one last final check of Xcode. I reset to the default path for the command line tools and cleaned then tried to build xorg-server and it failed with the same error as the other 2 times. The results of this test are attached in main3.log

I'm at a loss of how to resolve this fatal build error.

Toms-MBP:~ tompfeifer$ sudo xcode-select -r
Toms-MBP:~ tompfeifer$ sudo xcode-select -p
/Applications/Xcode.app/Contents/Developer
Toms-MBP:~ tompfeifer$ sudo port clean xorg-server
--->  Cleaning xorg-server
Toms-MBP:~ tompfeifer$ sudo port install xorg-server
--->  Computing dependencies for xorg-server
--->  Fetching archive for xorg-server
--->  Attempting to fetch xorg-server-1.18.4_1.darwin_16.x86_64.tbz2 from https://packages.macports.org/xorg-server
--->  Attempting to fetch xorg-server-1.18.4_1.darwin_16.x86_64.tbz2 from http://sea.us.packages.macports.org/macports/packages/xorg-server
--->  Attempting to fetch xorg-server-1.18.4_1.darwin_16.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/xorg-server
--->  Fetching distfiles for xorg-server
--->  Verifying checksums for xorg-server
--->  Extracting xorg-server
--->  Applying patches to xorg-server
--->  Configuring xorg-server
--->  Building xorg-server
Error: Failed to build xorg-server: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_xorg-server/xorg-server/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port xorg-server failed

Changed 6 years ago by tapfeifer

Attachment: main3.log added

Results after resetting Xcode to defaults for command line tool locations

comment:6 Changed 6 years ago by tapfeifer

I have resolved this issue by doing the following:

  1. Executed command rm -rf /Applications/Xcode.app using Terminal deleted /Applications/Xcode.app
  2. Executed command rm -rf /Library/Developer using Terminal deleted /Library/Developer using Terminal
  3. Rebooted MacBook Pro to clear any caches and reset all temp directories along with swap file
  4. Opened AppStore and installed Xcode
  5. Executed command xcode-select --install using Terminal to install command line tools after Xcode was finished installing
  6. Executed command xcode-select -p using Terminal verified the correct settings in Xcode to ensure it is /Applications/Xcode.app/Contents/Developer
  7. Executed command sudo port clean --all xorg-server using Terminal to ensure the system was clean before attempting to install
  8. Executed command sudo port install xorg-server using Terminal and the entire app was installed without error.

This exercise in macOS apps is highly dependent on ensuring that Xcode goes through its entire install process. There are hidden config files or environment variables or other hidden items that are set up when Xcode is installed. Even though I was able to successfully execute the Xcode app, there was something behind the scenes going on an no errors were being revealed.

comment:7 Changed 4 years ago by kencu (Ken)

Resolution: worksforme
Status: assignedclosed

Thanks for the report. There doesn't seem to be anything to fix in MacPorts or in the xorg-server-* ports as in the end the issue appears to have been resolved by reinstalling Xcode.

Note: See TracTickets for help on using tickets.