Opened 13 years ago

Closed 13 years ago

#32711 closed defect (fixed)

virtualbox: gcc-apple-4.2: not found

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: royliu@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc:
Port: virtualbox

Description

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").

Attachments (1)

main.log (34.1 KB) - added by ryandesign (Ryan Carsten Schmidt) 13 years ago.

Download all attachments as: .zip

Change History (6)

Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: main.log added

comment:1 Changed 13 years ago by bm55b@…

Think the portfile is missing a dependency on apple-gcc42, try

sudo port install apple-gcc42

comment:2 Changed 13 years ago 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.

comment:3 in reply to:  1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to bm55b@…:

Think the portfile is missing a dependency on apple-gcc42, try

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.

comment:4 in reply to:  2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to 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.

comment:5 Changed 13 years ago by royliu@…

Resolution: fixed
Status: newclosed

Fixed in r89084.

Note: See TracTickets for help on using tickets.