Projects
Wiki     New Ticket     View Tickets     Timeline     Browse Source     Search

Ticket #1 (closed defect: fixed)

Opened 3 years ago

Last modified 22 months ago

installXcodebuild incompatible with Xcode 3.0

Reported by: BHuntsman@… Owned by: wsiegrist@…
Priority: blocker Component: darwinbuild
Version: Keywords: xcode
Cc:

Description

The installXcodebuild script does not properly determine the dependencies of Xcode 3.0's xcodebuild script. This prevents darwinbuild from being used to compile projects that require Xcode 3.0 while using the chrooted environment.

Attached is a logfile from an initial run of xcodebuild while using the darwintrace.dylib library, indicating most preliminary dependencies.

Attachments

xctrace.txt Download (26.7 KB) - added by BHuntsman@… 3 years ago.
xcodebuild trace log from Xcode 3.0
xc-files.txt Download (54.3 KB) - added by BHuntsman@… 3 years ago.
darwinxref exportFiles xcodebuild > xc-files.txt
3.txt Download (496 bytes) - added by BHuntsman@… 3 years ago.
Additional dependencies

Change History

Changed 3 years ago by BHuntsman@…

xcodebuild trace log from Xcode 3.0

Changed 3 years ago by BHuntsman@…

darwinxref exportFiles xcodebuild > xc-files.txt

in reply to: ↑ description ; follow-up: ↓ 2   Changed 3 years ago by BHuntsman@…

Replying to BHuntsman@mail2.cu-portland.edu:

The installXcodebuild script does not properly determine the dependencies of Xcode 3.0's xcodebuild script. This prevents darwinbuild from being used to compile projects that require Xcode 3.0 while using the chrooted environment. Attached is a logfile from an initial run of xcodebuild while using the darwintrace.dylib library, indicating most preliminary dependencies.

Please see the file list in the attached xc-files.txt. Instead of using a script to find dependencies and put them into the BuildRoot, I used the dependency list to generate a binary source package, then built and installed it as it's own root. This way, the xref database can track the files in it. I have confirmed it to work by building the files-520 project, which requires xcodebuild.

in reply to: ↑ 1   Changed 3 years ago by BHuntsman@…

Replying to BHuntsman@mail2.cu-portland.edu:

Replying to BHuntsman@mail2.cu-portland.edu:

The installXcodebuild script does not properly determine the dependencies of Xcode 3.0's xcodebuild script. This prevents darwinbuild from being used to compile projects that require Xcode 3.0 while using the chrooted environment. Attached is a logfile from an initial run of xcodebuild while using the darwintrace.dylib library, indicating most preliminary dependencies.

Please see the file list in the attached xc-files.txt. Instead of using a script to find dependencies and put them into the BuildRoot, I used the dependency list to generate a binary source package, then built and installed it as it's own root. This way, the xref database can track the files in it. I have confirmed it to work by building the files-520 project, which requires xcodebuild.

This only works for files-520. A more complicated project such as IOKitUser still requires others. See attachment 3.

Changed 3 years ago by BHuntsman@…

Additional dependencies

  Changed 2 years ago by wsiegrist@…

  • owner changed from kvv@… to wsiegrist@…
  • status changed from new to assigned

Initial work on this is in r367. See  this email for more details.

  Changed 2 years ago by wsiegrist@…

You can work around this issue by building on a UFS volume. I believe any volume that doesnt support volfs will work. I'm still working on a more permanent fix of course.

  Changed 2 years ago by wsiegrist@…

The problem still exists with Xcode 3.1, though it will probably complain about missing a product type in the platform instead of a missing project file.

  Changed 2 years ago by wsiegrist@…

  • status changed from assigned to closed
  • resolution set to fixed

I'm closing this ticket since the dependency issues are fixed. The problem with running Xcode inside of a chroot on HFS is an Xcode bug and has been reported to Apple . The workaround is still to use a UFS disk for building.

  Changed 22 months ago by probono@…

Exporting the directory to localhost over NFS and mounting that export locally seems to be a workaround. See  here.

Note: See TracTickets for help on using tickets.