[MacPorts] #32711: virtualbox: gcc-apple-4.2: not found
#32711: virtualbox: gcc-apple-4.2: not found -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: royliu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: virtualbox -------------------------------------+-------------------------------------- Following the fix for #32602 I am able to install virtualbox on my MacBook Pro. But trying to install virtualbox onto a new system, I notice it fails with: {{{ :info:build gcc-apple-4.2: not found :info:build g++-apple-4.2: not found }}} This new system is running the same Snow Leopard 10.6.8 and Xcode 3.2.6 as my MacBook Pro, and it's a fresh installation of MacPorts. The apple-gcc42 port is not installed. The difference that might be relevant is that this new system uses the 64-bit kernel (`uname -m` returns "x86_64") whereas my MacBook Pro, though 64-bit, uses the 32-bit kernel (`uname -m` returns "i386"). -- Ticket URL: <https://trac.macports.org/ticket/32711> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32711: virtualbox: gcc-apple-4.2: not found -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: royliu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: virtualbox -------------------------------------+-------------------------------------- Comment(by bm55b@…): Think the portfile is missing a dependency on apple-gcc42, try {{{sudo port install apple-gcc42}}} -- Ticket URL: <https://trac.macports.org/ticket/32711#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32711: virtualbox: gcc-apple-4.2: not found -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: royliu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: virtualbox -------------------------------------+-------------------------------------- Comment(by royliu@…): Parts of the build process are actually modified through patching. These parts should be moved into the `gcc` check. My best guess is that clean system installs with Xcode 3 will fail (patch will get applied, but Apple `gcc` won't be installed), while those that do so with Xcode 4 will succeed (patch will get applied, but the conditional block will execute and install Apple `gcc`). Working on a fix now. -- Ticket URL: <https://trac.macports.org/ticket/32711#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32711: virtualbox: gcc-apple-4.2: not found -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: royliu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: virtualbox -------------------------------------+-------------------------------------- Comment(by ryandesign@…): Replying to [comment:1 bm55b@…]:
Think the portfile is missing a dependency on apple-gcc42, try [[br]] [[br]] {{{sudo port install apple-gcc42}}}
I have no interest in installing the apple-gcc42 port. The Xcode 3 installation I already have already contains a perfectly acceptable version of Apple's gcc 4.2 compiler. -- Ticket URL: <https://trac.macports.org/ticket/32711#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32711: virtualbox: gcc-apple-4.2: not found -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: royliu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: virtualbox -------------------------------------+-------------------------------------- Comment(by ryandesign@…): Replying to [comment:2 royliu@…]:
My best guess is that clean system installs with Xcode 3 will fail
Correct; that is what I was doing.
(patch will get applied, but Apple `gcc` won't be installed),
Xcode 3 includes Apple gcc. If you meant that the apple-gcc42 port will not get installed, then you are correct; there is no reason to install the apple-gcc42 port with Xcode < 4.2.
while those that do so with Xcode 4 will succeed (patch will get applied, but the conditional block will execute and install Apple `gcc`). Working on a fix now.
It would be great if we could excise the dozens of lines of code from the virtualbox configuration process that tries to determine what compiler to use, and just make it use the compiler MacPorts is telling it to use via the CC environment variable, like all other ports do. -- Ticket URL: <https://trac.macports.org/ticket/32711#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32711: virtualbox: gcc-apple-4.2: not found --------------------------------------+------------------------------------- Reporter: ryandesign@… | Owner: royliu@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: fixed | Keywords: Port: virtualbox | --------------------------------------+------------------------------------- Changes (by royliu@…): * status: new => closed * resolution: => fixed Comment: Fixed in r89084. -- Ticket URL: <https://trac.macports.org/ticket/32711#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts