[MacPorts] #35533: Keep getting Failed to install p5.12-xml-parser error when installing Wine
#35533: Keep getting Failed to install p5.12-xml-parser error when installing Wine -----------------------------------+---------------------------------------- Reporter: Onemer117@… | Owner: macports-tickets@… Type: defect | Status: new Priority: High | Milestone: Component: ports | Version: 2.1.2 Keywords: p5.12-xml-parser | Port: p5.12-xml-parser -----------------------------------+---------------------------------------- I'm very new to using MacPorts, and I don't really understand what anything does, but I really want to install wine. I keep getting the same error - ---> Configuring p5.12-xml-parser Error: org.macports.configure for port p5.12-xml-parser returned: configure failure: command execution failed Error: Failed to install p5.12-xml-parser Please see the log file for port p5.12-xml-parser for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5 -xml-parser/p5.12-xml-parser/main.log Error: The following dependencies were not installed: gst-plugins-base gnome-vfs gconf gtk2 shared-mime-info intltool p5.12-xml-parser xorg- libXcomposite xorg-compositeproto xorg-libXext autoconf help2man p5.12 -locale-gettext m4 automake libtool xorg-util-macros xorg-libXfixes xorg- fixesproto xorg-libXcursor xorg-libXdamage xorg-damageproto xorg-libXi xorg-libXinerama xorg-xineramaproto xorg-libXrandr xorg-randrproto orbit2 libidl policykit eggdbus p5-xml-parser gnome-mime-data gstreamer bison flex gzip libtheora libvorbis libogg orc lcms mesa makedepend xorg- dri2proto xorg-glproto xorg-libXmu xorg-libXt xorg-libsm xorg-libice xorg- libXxf86vm xorg-xf86vidmodeproto I've tried doing the upgrade thing but it didn't work either. Please help, thank you! -- Ticket URL: <https://trac.macports.org/ticket/35533> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35533: p5.12-xml-parser: Couldn't find your C compiler -----------------------------------+---------------------------------------- Reporter: Onemer117@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: p5.12-xml-parser -----------------------------------+---------------------------------------- Changes (by ryandesign@…): * priority: High => Normal * keywords: p5.12-xml-parser => Old description:
I'm very new to using MacPorts, and I don't really understand what anything does, but I really want to install wine. I keep getting the same error - ---> Configuring p5.12-xml-parser Error: org.macports.configure for port p5.12-xml-parser returned: configure failure: command execution failed Error: Failed to install p5.12-xml-parser Please see the log file for port p5.12-xml-parser for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5 -xml-parser/p5.12-xml-parser/main.log Error: The following dependencies were not installed: gst-plugins-base gnome-vfs gconf gtk2 shared-mime-info intltool p5.12-xml-parser xorg- libXcomposite xorg-compositeproto xorg-libXext autoconf help2man p5.12 -locale-gettext m4 automake libtool xorg-util-macros xorg-libXfixes xorg- fixesproto xorg-libXcursor xorg-libXdamage xorg-damageproto xorg-libXi xorg-libXinerama xorg-xineramaproto xorg-libXrandr xorg-randrproto orbit2 libidl policykit eggdbus p5-xml-parser gnome-mime-data gstreamer bison flex gzip libtheora libvorbis libogg orc lcms mesa makedepend xorg- dri2proto xorg-glproto xorg-libXmu xorg-libXt xorg-libsm xorg-libice xorg-libXxf86vm xorg-xf86vidmodeproto
I've tried doing the upgrade thing but it didn't work either. Please help, thank you!
New description: I'm very new to using MacPorts, and I don't really understand what anything does, but I really want to install wine. I keep getting the same error - {{{ ---> Configuring p5.12-xml-parser Error: org.macports.configure for port p5.12-xml-parser returned: configure failure: command execution failed Error: Failed to install p5.12-xml-parser Please see the log file for port p5.12-xml-parser for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5 -xml-parser/p5.12-xml-parser/main.log Error: The following dependencies were not installed: gst-plugins-base gnome-vfs gconf gtk2 shared-mime-info intltool p5.12-xml-parser xorg- libXcomposite xorg-compositeproto xorg-libXext autoconf help2man p5.12 -locale-gettext m4 automake libtool xorg-util-macros xorg-libXfixes xorg- fixesproto xorg-libXcursor xorg-libXdamage xorg-damageproto xorg-libXi xorg-libXinerama xorg-xineramaproto xorg-libXrandr xorg-randrproto orbit2 libidl policykit eggdbus p5-xml-parser gnome-mime-data gstreamer bison flex gzip libtheora libvorbis libogg orc lcms mesa makedepend xorg- dri2proto xorg-glproto xorg-libXmu xorg-libXt xorg-libsm xorg-libice xorg- libXxf86vm xorg-xf86vidmodeproto }}} I've tried doing the upgrade thing but it didn't work either. Please help, thank you! -- Comment: The log says "Couldn't find your C compiler" so this suggests you haven't installed Xcode and its command line tools properly. See: * wiki:FAQ#missingxcode * wiki:ProblemHotlist#clt -- Ticket URL: <https://trac.macports.org/ticket/35533#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35533: p5.12-xml-parser: Couldn't find your C compiler -----------------------------------+---------------------------------------- Reporter: Onemer117@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: p5.12-xml-parser -----------------------------------+---------------------------------------- Comment(by piet@…): Replying to [comment:1 ryandesign@…]:
The log says "Couldn't find your C compiler" so this suggests you haven't installed Xcode and its command line tools properly.
I had the same problem, and really I had the C compiler (XCode) installed. I tried everything I could find to solve the problem but to no avail.[[BR]] Today I decided to dig deeper in the problem and with a lot of patch work I could get the thing installed. If you look into the log file, you will see the following lines: {{{ :info:configure Couldn't find your C compiler :info:configure Compilation failed in require at Makefile.PL line 5. :info:configure BEGIN failed--compilation aborted at Makefile.PL line 5. }}} So the real error seems to be in line 5 of Makefile.PL, This line contains: {{{ use Devel::CheckLib; }}} However in my Macports perl5.12 installation there is no Devel::CheckLib module. And I couldn't find a port to install it. [[BR]] So I decided to take that out, and to disable the check_lib call at line 32.[[BR]] This line checks for the presence of the expat library, which isn't really necessary in Macports because of the dependency on expat. [[BR]] It would be wiser IMHO to add a port for Devel::CheckLib and take this as a dependency. The following problem was with the compilation of the Expat Perl module. The Makefiles have /usr/bin/gcc-42 as the required C compiler, which I don't have. [[BR]] I have /usr/bin/gcc, which is a link to llvm-gcc-4.2. So I made /usr/bin/gcc-4.2 a link to /usr/bin/gcc and that finally solved the problem. Apparently the install procedure needs some additional patches. -- Ticket URL: <https://trac.macports.org/ticket/35533#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35533: p5.12-xml-parser: Couldn't find your C compiler -----------------------------------+---------------------------------------- Reporter: Onemer117@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: p5.12-xml-parser -----------------------------------+---------------------------------------- Changes (by ryandesign@…): * cc: piet@…, ryandesign@… (added) Comment: Piet, I would be surprised if those changes are necessary in general, since the port installs fine for tons of other people. -- Ticket URL: <https://trac.macports.org/ticket/35533#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35533: p5.12-xml-parser: Couldn't find your C compiler -----------------------------------+---------------------------------------- Reporter: Onemer117@… | Owner: mjg@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: p5.12-xml-parser -----------------------------------+---------------------------------------- Changes (by jmr@…): * owner: macports-tickets@… => mjg@… Comment: Where are you seeing gcc-4.2 required? We should be specifying an appropriate compiler explicitly; for example in the attached main.log you can see that the configure command is: {{{ /opt/local/bin/perl5.12 Makefile.PL INSTALLDIRS=vendor CC="/usr/bin/clang" LD="/usr/bin/clang" }}} -- Ticket URL: <https://trac.macports.org/ticket/35533#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35533: p5.12-xml-parser: Couldn't find your C compiler -----------------------------------+---------------------------------------- Reporter: Onemer117@… | Owner: mjg@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: p5.12-xml-parser -----------------------------------+---------------------------------------- Comment(by jmr@…): Devel::CheckLib is included in the XML::Parser source BTW. -- Ticket URL: <https://trac.macports.org/ticket/35533#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35533: p5.12-xml-parser: Couldn't find your C compiler -----------------------------------+---------------------------------------- Reporter: Onemer117@… | Owner: mjg@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: haspatch | Port: p5.12-xml-parser -----------------------------------+---------------------------------------- Changes (by jmr@…): * keywords: => haspatch Comment: So actually the problem is that Devel::CheckLib ignores the compiler we asked for and just uses $Config{cc}. This doesn't affect the compiler used in the generated Makefile at all, but only the one used to check for expat. -- Ticket URL: <https://trac.macports.org/ticket/35533#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35533: p5.12-xml-parser: Couldn't find your C compiler -----------------------------------+---------------------------------------- Reporter: Onemer117@… | Owner: mjg@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: haspatch | Port: p5.12-xml-parser -----------------------------------+---------------------------------------- Comment(by piet@…): Replying to [comment:4 jmr@…]:
Where are you seeing gcc-4.2 required? We should be specifying an appropriate compiler explicitly; for example in the attached main.log you can see that the configure command is: {{{ /opt/local/bin/perl5.12 Makefile.PL INSTALLDIRS=vendor CC="/usr/bin/clang" LD="/usr/bin/clang" }}}
I saw them in the generated Makefiles: {{{ ./Expat/Makefile:32:CC = /usr/bin/gcc-4.2 ./Expat/Makefile:39:LD = env MACOSX_DEPLOYMENT_TARGET=10.6 /usr/bin/gcc-4.2 ./Expat/Makefile:305: /usr/bin/gcc-4.2 -E -c $(PASTHRU_INC) $(INC) \ ./Makefile:412: /usr/bin/gcc-4.2 -E -c $(PASTHRU_INC) $(INC) \ }}} -- Ticket URL: <https://trac.macports.org/ticket/35533#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35533: p5.12-xml-parser: Couldn't find your C compiler -----------------------------------+---------------------------------------- Reporter: Onemer117@… | Owner: mjg@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: haspatch | Port: p5.12-xml-parser -----------------------------------+---------------------------------------- Comment(by piet@…): Replying to [comment:6 jmr@…]:
So actually the problem is that Devel::CheckLib ignores the compiler we asked for and just uses $Config{cc}. This doesn't affect the compiler used in the generated Makefile at all, but only the one used to check for expat.
OK, The Devel::CheckLib doc says: You must have a C compiler installed. We check for $Config{cc}, both literally as it is in Config.pm and also in the $PATH. And indeed, the error message "Couldn't find your C compiler" comes from Devel::CheckLib, and it bails out. That's the reason it fails on the "use Devel::Config" line. -- Ticket URL: <https://trac.macports.org/ticket/35533#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35533: p5.12-xml-parser: Couldn't find your C compiler -----------------------------------+---------------------------------------- Reporter: Onemer117@… | Owner: mjg@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: haspatch | Port: p5.12-xml-parser -----------------------------------+---------------------------------------- Comment(by devans@…): I ran into this same problem today while doing a clean install of MacPorts on a Snow Leopard test machine. My configuration: {{{ Mac OSX 10.6.8, x86_64, XCode 3.2.6, MacPorts 2.1.2 }}} As reported above, I agree that this port (and possibly other Perl ports) are using Config.pm alone to determine the correct compiler path to use. The trouble occurs when this does not match the current Xcode compiler path (which MacPorts correctly identifies). If my case, Config.pm says {{{ '/usr/bin/gcc-4.2' (doesn't exist here) }}} but MacPorts says {{{ '/Developer/usr/bin/gcc-4.2' (which is correct) }}} perl5 (perl5.12 @5.12.4_1+universal) was installed from binary archive. Rebuilding perl5 from source on this machine {{{ sudo port -f uninstall perl5.12 @5.12.4_1+universal sudo port -s install perl5.12 @5.12.4_1+universal }}} solved the problem without any further patches. So I conclude that the build environment for the binary archive and mine are different, possibly an Xcode installation problem. I'm thinking there is a missing symbolic link from /usr/bin/gcc-4.2 -> /Developer/usr/bin/gcc-4.2 here? -- Ticket URL: <https://trac.macports.org/ticket/35533#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35533: p5.12-xml-parser: Couldn't find your C compiler -----------------------------------+---------------------------------------- Reporter: Onemer117@… | Owner: mjg@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: haspatch | Port: p5.12-xml-parser -----------------------------------+---------------------------------------- Changes (by jmr@…): * cc: devans@… (added) Comment: @devans: You don't have the same problem. If you don't have /usr/bin/gcc-4.2 with Xcode 3.2.6, you haven't installed the UNIX Development component correctly. Nobody using Xcode 4.2 has yet reported whether the patch works for them. -- Ticket URL: <https://trac.macports.org/ticket/35533#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35533: p5.12-xml-parser: Couldn't find your C compiler -----------------------------------+---------------------------------------- Reporter: Onemer117@… | Owner: mjg@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: haspatch | Port: p5.12-xml-parser -----------------------------------+---------------------------------------- Comment(by piet@…): Replying to [comment:9 devans@…]:
As reported above, I agree that this port (and possibly other Perl ports) are using Config.pm alone to determine the correct compiler path to use. The trouble occurs when this does not match the current Xcode compiler path (which MacPorts correctly identifies).
If my case, Config.pm says {{{ '/usr/bin/gcc-4.2' (doesn't exist here) }}} but MacPorts says {{{ '/Developer/usr/bin/gcc-4.2' (which is correct) }}}
I have XCode 4.2 but there is no /Developer/usr/bin/gcc-4.2.
perl5 (perl5.12 @5.12.4_1+universal) was installed from binary archive.
Rebuilding perl5 from source on this machine
{{{ sudo port -f uninstall perl5.12 @5.12.4_1+universal sudo port -s install perl5.12 @5.12.4_1+universal }}}
solved the problem without any further patches.
I also did this and now the Config.pm has /usr/bin/clang as C compiler. With this setting now uninstalling p5-xml-parser and reinstalling it from source succeeds without problems. Why my previous upgrade of perl5 did not solve it I don't know. Maybe just an upgrade isn't thorough enough. -- Ticket URL: <https://trac.macports.org/ticket/35533#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35533: p5.12-xml-parser: Couldn't find your C compiler -----------------------------------+---------------------------------------- Reporter: Onemer117@… | Owner: mjg@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: haspatch | Port: p5.12-xml-parser -----------------------------------+---------------------------------------- Comment(by devans@…): Replying to [comment:10 jmr@…]:
@devans: You don't have the same problem. If you don't have /usr/bin/gcc-4.2 with Xcode 3.2.6, you haven't installed the UNIX Development component correctly.
Nobody using Xcode 4.2 has yet reported whether the patch works for them. @jmr: Yes, I agree. After doing a clean re-install of Xcode from the SL install disk and then upgrading to 3.2.6 via Software Update, the miss match between the Config.pm installed with the archived binary and my build environment was resolved.
-- Ticket URL: <https://trac.macports.org/ticket/35533#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35533: p5.12-xml-parser: Couldn't find your C compiler -----------------------------------+---------------------------------------- Reporter: Onemer117@… | Owner: mjg@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: haspatch | Port: p5.12-xml-parser -----------------------------------+---------------------------------------- Comment(by jmr@…): Replying to [comment:11 piet@…]:
I have XCode 4.2 but there is no /Developer/usr/bin/gcc-4.2. Yes, there is no gcc-4.2 in Xcode 4.2 or later.
-- Ticket URL: <https://trac.macports.org/ticket/35533#comment:13> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35533: p5.12-xml-parser: Couldn't find your C compiler ------------------------------------+--------------------------------------- Reporter: Onemer117@… | Owner: mjg@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: haspatch Port: p5.12-xml-parser | ------------------------------------+--------------------------------------- Changes (by jmr@…): * status: new => closed * resolution: => fixed Comment: Well, since piet rebuilt perl locally and is thus no longer able to test this, and the original reporter doesn't seem inclined to reply, I went ahead and committed the patch in r97424. Feel free to reopen if the problem isn't fixed. -- Ticket URL: <https://trac.macports.org/ticket/35533#comment:14> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts