#38175: gimp2 @2.8.2 - "Unable to open port" -------------------------------+-------------------------------- Reporter: max.ebbinghaus@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: gimp2 | -------------------------------+-------------------------------- Changes (by ryandesign@…): * cc: ryandesign@…, devans@… (added) * keywords: gimp2, compiler.blacklist => Old description:
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.
New description: 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. -- Comment: 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. -- Ticket URL: <https://trac.macports.org/ticket/38175#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS