Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#8189 - gcc-objc: cannot compile any objc code

Attached to Project: Arch Linux
Opened by Jan Smydke (crocus) - Monday, 01 October 2007, 08:47 GMT
Last edited by Andreas Radke (AndyRTR) - Friday, 12 October 2007, 20:53 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Jan de Groot (JGC)
Architecture i686
Severity Medium
Priority Normal
Reported Version 2007.08.1
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

I cannot compile any objc code after the separation of gcc in September. If I try to compile, it says:

"Objective-C compiler not installed on this system"

I have gcc 4.2.1-5, gcc-objc 4.2.1-1
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Friday, 12 October 2007, 20:53 GMT
Reason for closing:  Fixed
Comment by Roman Kyrylych (Romashka) - Wednesday, 03 October 2007, 09:10 GMT
also reported in  FS#8199 
Comment by Matthew William Cox (mwc) - Wednesday, 03 October 2007, 22:15 GMT
The problem is that the separation of GCC breaks GCC. It shouldn't have been done, at least not in the way it was.

/usr/bin/gcc is a driver that determines the language of source code, feeds it through the compilers that live in /usr/lib/gcc/i686-pc-linux-gnu/4.2.1, the resulting assembler through as, and then links it all up with ld.

/usr/bin/gcc is owned by the gcc package, which is configured to support c,c++. The driver only knows about c,c++. All the other languages "supported" by gcc are out of luck.

gcc-fortran seems to work because that package provides an alternatively named driver, gfortran, that does a similar job to the gcc driver. Still, gcc should be able to compile fortran, or objective c, or java, or ada.

This can be fixed. GCC should be built for all languages in a single monolithic tree. Then we can separate out the language-specific compilers, headers, and libraries into gcc-fortran, gcc-objc, gcc-gcj, and gcc-gnat (why not include ada?) respectively.

makepkg doesn't support this. I'll play around with this and see what I can work out. Maybe subpackage support?
Comment by Anders Bergh (anders) - Friday, 12 October 2007, 19:02 GMT
It would be cool if objc was just added to --enable-languages in the gcc package. It's not that big really.

Loading...