Objective C tries to use 4.8 even if not installed and 4.9 is the default
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gcc-defaults (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Write the following simple program in file prog.m:
#import<stdio.h>
int main(int argc, char **argv) {
return 0;
}
Then in a fresh install of utopic do this:
apt-get install gobjc
Then try to compile the app:
cc -o prog prog.m
The result is this error message:
cc: error trying to exec 'cc1obj': execvp: No such file or directory
The package gobjc installs gobjc 4.9 but for some reason cc tries to invoke the one from 4.8. This can be verified by issuing the following command:
apt-get install gobjc-4.8
After this the compilation succeeds.
This issue causes e.g. this build failure in the unit test suite of a different package blocking its migration from Debian into Ubuntu:
https:/
ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: gobjc 4:4.9.0-3ubuntu5
ProcVersionSign
Uname: Linux 3.16.0-3-generic x86_64
ApportVersion: 2.14.4-0ubuntu2
Architecture: amd64
CurrentDesktop: Unity
Date: Tue Jul 15 14:05:21 2014
EcryptfsInUse: Yes
InstallationDate: Installed on 2014-05-22 (53 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64+mac (20140417)
SourcePackage: gcc-defaults
UpgradeStatus: Upgraded to utopic on 2014-05-27 (49 days ago)
Changed in gcc-defaults (Ubuntu): | |
status: | New → Fix Committed |
Yeah, we were meant to switch the default to gcc-4.9, but that was partially reverted. I've already uploaded a single fix that added the extra 4.8 dependency to make objective c to work. Let me upload gcc-default to fix this interim problem.