Opened 11 years ago

Last modified 11 years ago

#38175 closed defect

gimp2 @2.8.2 - "Unable to open port" — at Version 1

Reported by: max.ebbinghaus@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: ryandesign@…, devans@…
Port: gimp2

Description (last modified by ryandesign (Ryan Carsten Schmidt))

When trying to upgrade gimp2, I got this message:

Error: Unable to open port: can't set "compiler.blacklist": gcc-4.2: error trying to exec '/usr/bin/i686-apple-darwin11-gcc-4.2.1': execvp: No such file or directory
child process exited abnormally

The message repeats every time I try to clean or upgrade gimp2. When upgrading or installing another port, I see that there are broken files and a broken port (gimp2), but MacPorts fails to rebuild gimp2 correctly.

I would be very happy to get some advice on how to avoid this compiler.blacklist problem. Thanks.

Change History (1)

comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… devans@… added
Description: modified (diff)
Keywords: gimp2 compiler.blacklist removed

The gimp2 portfile includes this line:

compiler.blacklist-append {gcc-4.2 >= 5646}

This means that MacPorts will check if the program gcc-4.2 exists. If so, it will run "gcc -v" and examine its output. If the build number mentioned in the output is less than 5646 then gcc-4.2 will be blacklisted (i.e. not allowed to be used).

In your case, MacPorts apparently determined that gcc-4.2 does exist, but running it caused it to crash, because /usr/bin/i686-apple-darwin11-gcc-4.2.1 doesn't exist. This points to a broken Xcode command line tools installation.

What version of OS X and Xcode do you have? If Lion or later, please upgrade to Xcode 4.6, then visit the Xcode application's Preferences window, click Downloads, and ensure the command line tools are installed and up to date. Hopefully that's all that's needed. Xcode 4.3 and later aren't supposed to contain gcc-4.2 anymore, so if the problem persists and gcc-4.2 is still on your system after installing the latest Xcode correctly, gcc-4.2 will have to be removed manually.

Note: See TracTickets for help on using tickets.