Re: Failed: phase compiling: xcode-0-0 failed

Alexander Hansen <[email protected]>
Newsgroups gmane.os.apple.fink.beginners
Message-ID <[email protected]>

> On Aug 4, 2020, at 13:43, Heinz Nabielek <[email protected]> wrote:
> 
> On 04.08.2020, at 17:11, Alexander Hansen <[email protected] <mailto:[email protected]>> wrote:
>> 
>> 
>> 
>>> On Aug 3, 2020, at 06:24, [email protected] wrote:
>>> 
>>> Installing Xcode on
>>> 
>>> Package manager version: 0.45.1
>>> Distribution version: selfupdate-rsync Mon Aug  3 15:18:25 2020, 10.15, x86_64
>>> Trees: local/main stable/main
>>> Xcode.app: 11.6
>>> No recognized Xcode CLI installed
>>> Max. Fink build jobs:  16
>>> 
>>> failed with
>>> 
>>> sudo -u fink-bld [ENV] sh -c /tmp/fink.1yA52
>>> /tmp/fink.5Rlqg
>>> 
>>> +----------
>>> |
>>> | Attention!
>>> |
>>> | Package xcode is an autogenerated virtual package.
>>> |
>>> | You cannot manipulate this type of package using the usual Fink tools.
>>> | A detailed description of this package follows...
>>> |
>>> | This package represents the C/C++/ObjC developer tools
>>> | provided by Apple.  If it does not show as installed,
>>> | download the Command Line Tools For Xcode by running
>>> |
>>> |   sudo xcode-select --install
>>> |
>>> | or get them via the App Store or directly from Apple at:
>>> |
>>> |   http://developer.apple.com/
>>> |
>>> | (free registration required).
>>> |
>>> | Web site: http://www.finkproject.org/faq/usage-general.php#virtpackage
>>> |
>>> +----------
>>> 
>>> ### execution of /tmp/fink.5Rlqg failed, exit code 1
>>> ### execution of /tmp/fink.1yA52 failed, exit code 1
>>> Removing runtime build-lock...
>>> Removing build-lock package...
>>> /opt/sw/bin/dpkg-lockwait -r fink-buildlock-xcode-0-0
>>> (Reading database ... 406739 files and directories currently installed.)
>>> Removing fink-buildlock-xcode-0-0 ...
>>> Failed: phase compiling: xcode-0-0 failed
>>> 
>>> TIA
>>> 
>>> Dominique
>>> 
>>> 
>> 
>> The “Xcode” package is actually a pointer to the Xcode Command Line Tools, for historical reasons.  When it’s missing this means either: 1) you don’t have the command-line tools installed, or 2) a system update erased the package receipt file—this now happens on essentially every OS update.
>> 
>> I normally just download and install the Command-Line Tools installer again from developer.apple.com when this happens to me.
> 
> 
> I have Xcode 11.6, however, the update system downloaded and installed Xcode tools for 12beta, but FINK seems to be completely happy with it.....
> 
> Heinz


Our detection system isn’t very sophisticated.  We just read a version string from the receipt.  As long as betas provide compatible versioning, fink can get the information.  Where it fails is:

1)  The receipt gets deleted by an OS update or by other means.
2)  Apple changes the name of the receipt
3)  Apple changes the versioning.

The other thing that can occur is warnings about mismatched command-line-tools and Xcode.  We don’t really account for the situation where Apple puts out different versions, so fink may warn that Xcode and the Command Line Tools are mismatched.  This doesn’t stop builds, though—we just put that warning in because that condition is very often the cause of build failures.

-- 
Alexander Hansen, Ph.D.
Fink User Liaison

_______________________________________________
Fink-beginners mailing list
[email protected]
List archive:
https://sourceforge.net/p/fink/mailman/fink-users/
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-beginners
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.