[MacPorts] #38299: gettext does not build for me on Leopard
#38299: gettext does not build for me on Leopard ---------------------+-------------------------------- Reporter: cdev9@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Keywords: 10.5.8 | Port: gettext ---------------------+-------------------------------- OS is Leopard 10.5.8 on Intel (x86_64) -- Ticket URL: <https://trac.macports.org/ticket/38299> MacPorts <http://www.macports.org/> Ports system for OS X
#38299: gettext does not build for me on Leopard ----------------------+-------------------------- Reporter: cdev9@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: leopard Port: gettext | ----------------------+-------------------------- Changes (by cal@…): * cc: cdev9@… (removed) * keywords: 10.5.8 => leopard * owner: macports-tickets@… => ryandesign@… Comment: You don't need to Cc yourself. -- Ticket URL: <https://trac.macports.org/ticket/38299#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#38299: gettext does not build for me on Leopard ----------------------+-------------------------- Reporter: cdev9@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: leopard Port: gettext | ----------------------+-------------------------- Comment (by egall@…): Relevant part of log: {{{ Undefined symbols: "_libiconv_close", referenced from: _xmlCharEncCloseFunc in libxml_rpl_la-encoding.o _xmlCharEncCloseFunc in libxml_rpl_la-encoding.o _xmlFindCharEncodingHandler in libxml_rpl_la-encoding.o _xmlFindCharEncodingHandler in libxml_rpl_la-encoding.o "_libiconv", referenced from: _xmlIconvWrapper in libxml_rpl_la-encoding.o "_libiconv_open", referenced from: _xmlFindCharEncodingHandler in libxml_rpl_la-encoding.o _xmlFindCharEncodingHandler in libxml_rpl_la-encoding.o _xmlFindCharEncodingHandler in libxml_rpl_la-encoding.o _xmlFindCharEncodingHandler in libxml_rpl_la-encoding.o ld: symbol(s) not found collect2: ld returned 1 exit status make[4]: *** [libgettextlib.la] Error 1 make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gettext/gettext/work/gettext-0.18.2-x86_64 /gettext-tools/gnulib-lib' make[3]: *** [all] Error 2 make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gettext/gettext/work/gettext-0.18.2-x86_64 /gettext-tools/gnulib-lib' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gettext/gettext/work/gettext-0.18.2-x86_64 /gettext-tools' make[1]: *** [all] Error 2 make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gettext/gettext/work/gettext-0.18.2-x86_64 /gettext-tools' make: *** [all-recursive] Error 1 make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gettext/gettext/work/gettext-0.18.2-x86_64' Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gettext/gettext/work/gettext-0.18.2-x86_64" && /usr/bin/make -j2 -w all Exit code: 2 Error: org.macports.build for port gettext returned: command execution failed }}} What does "`port -v installed libiconv`" say for you? How about "`port -v installed libxml*`"? -- Ticket URL: <https://trac.macports.org/ticket/38299#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#38299: gettext does not build for me on Leopard ----------------------+-------------------------- Reporter: cdev9@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: leopard Port: gettext | ----------------------+-------------------------- Comment (by cdev9@…): sudo port -v installed libxml* The following ports are currently installed: libxml2 @2.7.8_0+universal platform='darwin 9' archs='i386 ppc' libxml2 @2.8.0_0+universal (active) platform='darwin 9' archs='i386 ppc' cdev$ sudo port -v installed libiconv The following ports are currently installed: libiconv @1.14_0 platform='darwin 9' archs='i386' libiconv @1.14_0+universal (active) platform='darwin 9' archs='i386 ppc' -- Ticket URL: <https://trac.macports.org/ticket/38299#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#38299: gettext does not build for me on Leopard ----------------------+-------------------------- Reporter: cdev9@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: leopard Port: gettext | ----------------------+-------------------------- Comment (by cdev9@…): Trying to upgrade libxml2 or virtually anything else, I am running into the the same loop- it tries to upgrade gettext and fails. sudo port -v installed libxml* The following ports are currently installed: libxml2 @2.7.8_0+universal platform='darwin 9' archs='i386 ppc' libxml2 @2.8.0_0+universal (active) platform='darwin 9' archs='i386 ppc' cdev$ sudo port -v installed libiconv The following ports are currently installed: libiconv @1.14_0 platform='darwin 9' archs='i386' libiconv @1.14_0+universal (active) platform='darwin 9' archs='i386 ppc' }}} Replying to [comment:3 egall@…]:
Relevant part of log: {{{
Undefined symbols: "_libiconv_close", referenced from: _xmlCharEncCloseFunc in libxml_rpl_la-encoding.o _xmlCharEncCloseFunc in libxml_rpl_la-encoding.o _xmlFindCharEncodingHandler in libxml_rpl_la-encoding.o _xmlFindCharEncodingHandler in libxml_rpl_la-encoding.o "_libiconv", referenced from: _xmlIconvWrapper in libxml_rpl_la-encoding.o "_libiconv_open", referenced from: _xmlFindCharEncodingHandler in libxml_rpl_la-encoding.o _xmlFindCharEncodingHandler in libxml_rpl_la-encoding.o _xmlFindCharEncodingHandler in libxml_rpl_la-encoding.o _xmlFindCharEncodingHandler in libxml_rpl_la-encoding.o ld: symbol(s) not found collect2: ld returned 1 exit status make[4]: *** [libgettextlib.la] Error 1 make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gettext/gettext/work/gettext-0.18.2-x86_64 /gettext-tools/gnulib-lib' make[3]: *** [all] Error 2 make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gettext/gettext/work/gettext-0.18.2-x86_64 /gettext-tools/gnulib-lib' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gettext/gettext/work/gettext-0.18.2-x86_64 /gettext-tools' make[1]: *** [all] Error 2 make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gettext/gettext/work/gettext-0.18.2-x86_64 /gettext-tools' make: *** [all-recursive] Error 1 make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gettext/gettext/work/gettext-0.18.2-x86_64' Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gettext/gettext/work/gettext-0.18.2-x86_64" && /usr/bin/make -j2 -w all Exit code: 2 Error: org.macports.build for port gettext returned: command execution failed }}} What does "`port -v installed libiconv`" say for you? How about "`port -v installed libxml*`"?
-- Ticket URL: <https://trac.macports.org/ticket/38299#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#38299: gettext does not build for me on Leopard ----------------------+-------------------------- Reporter: cdev9@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: leopard Port: gettext | ----------------------+-------------------------- Comment (by egall@…): Looking back at the log, it looks like MacPorts is trying to build gettext for x86_64 while libiconv is only built for i386 and ppc. Try adding x86_64 to your universal_variants in your macports.conf, then rebuilding libiconv, and then rebuilding gettext. -- Ticket URL: <https://trac.macports.org/ticket/38299#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#38299: gettext does not build for me on Leopard ----------------------+-------------------------- Reporter: cdev9@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: leopard Port: gettext | ----------------------+-------------------------- Comment (by ryandesign@…): Replying to [comment:6 egall@…]:
Looking back at the log, it looks like MacPorts is trying to build gettext for x86_64 while libiconv is only built for i386 and ppc.
Agreed.
Try adding x86_64 to your universal_variants in your macports.conf,
You mean universal_archs. It's already there. Look at the first line of the log: {{{ ---> Attempting to fetch gettext-0.18.2_2+universal.darwin_9.i386-x86_64.tbz2 from http://packages.macports.org/gettext }}}
then rebuilding libiconv, and then rebuilding gettext, and then seeing if that does anything.
Yes, you can't go switching universal_archs (or build_arch) after you've already installed ports. To make this work, uninstall all ports that were installed i386 ppc universal, then reinstall them for the new i386 x86_64 universal. -- Ticket URL: <https://trac.macports.org/ticket/38299#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#38299: gettext does not build for me on Leopard ----------------------+-------------------------- Reporter: cdev9@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: leopard Port: gettext | ----------------------+-------------------------- Comment (by cdev9@…): Was the default behavior changed? At some point I noticed that x86_64 ports started showing up, I had thought that Leopard was not capable of building for x86_64. I would like to switch but for now, i would be happy to just have it work. The machine is a macbook with a core2 duo, so it supports x86_64 but the OS is Leopard. I have no use (on this machine) for ppc binaries. -- Ticket URL: <https://trac.macports.org/ticket/38299#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
#38299: gettext does not build for me on Leopard ----------------------+-------------------------- Reporter: cdev9@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: leopard Port: gettext | ----------------------+-------------------------- Comment (by ryandesign@…): The defaults haven't changed. For Leopard on an Intel Mac, the default build_arch is i386, and the default universal_archs are i386 ppc. Leopard is a 64-bit OS and you can change universal_archs to i386 x86_64 if you want; evidence suggests you have already done this, and that's why things are a problem now. Either switch universal_archs back to i386 ppc, or simply refrain from building things universal if you don't need the ppc part, or else leave universal_archs at i386 x86_64 and rebuild all ports you've already installed universal. -- Ticket URL: <https://trac.macports.org/ticket/38299#comment:9> MacPorts <http://www.macports.org/> Ports system for OS X
#38299: gettext does not build for me on Leopard ----------------------+-------------------------- Reporter: cdev9@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: leopard Port: gettext | ----------------------+-------------------------- Comment (by cdev9@…): Is there a script that can tell you which packages are built with what architecture to make it easy to decide what to do? What I think I had done was for a long time I had -universal selected in variants.conf and no universal libraries were built. I think there are only a few currently built with x86_64, however, if it was not that difficult I would love to transition to x86_64 if its faster. If it isn't faster, then I should just leave it on ppc + i386 as it was before, assuming that I haven't done too much damage. What exactly changed with macports? Replying to [comment:9 ryandesign@…]:
The defaults haven't changed. For Leopard on an Intel Mac, the default build_arch is i386, and the default universal_archs are i386 ppc. Leopard is a 64-bit OS and you can change universal_archs to i386 x86_64 if you want; evidence suggests you have already done this, and that's why things are a problem now. Either switch universal_archs back to i386 ppc, or simply refrain from building things universal if you don't need the ppc part, or else leave universal_archs at i386 x86_64 and rebuild all ports you've already installed universal.
-- Ticket URL: <https://trac.macports.org/ticket/38299#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X
#38299: gettext does not build for me on Leopard ----------------------+-------------------------- Reporter: cdev9@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: leopard Port: gettext | ----------------------+-------------------------- Comment (by ryandesign@…): From our side, nothing has changed that would have caused this problem. To see for what architectures your ports are installed, use: {{{ port -v installed }}} So to see which are installed for x86_64 you could use: {{{ port -v installed | grep x86_64 }}} x86_64 might be imperceptibly faster than i386. The x86_64 architecture has more registers available than i386, so some programs might benefit from that. You don't need to build universal if all you want is to build x86_64. You could change build_arch to x86_64. But again you'd have to first uninstall all ports that were already built with the old i386 build_arch. -- Ticket URL: <https://trac.macports.org/ticket/38299#comment:11> MacPorts <http://www.macports.org/> Ports system for OS X
#38299: gettext does not build for me on Leopard ----------------------+-------------------------- Reporter: cdev9@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: leopard Port: gettext | ----------------------+-------------------------- Comment (by larryv@…): Replying to [comment:11 ryandesign@…]:
You don't need to build universal if all you want is to build x86_64.
What would happen in this case if cdev9 wanted to install an i386-only port, but its dependencies were already installed x86_64 and universal_archs was left at `i386 ppc`? Would its dependencies be rebuilt i386/PPC? That seems undesirable. -- Ticket URL: <https://trac.macports.org/ticket/38299#comment:12> MacPorts <http://www.macports.org/> Ports system for OS X
#38299: gettext does not build for me on Leopard ----------------------+-------------------------- Reporter: cdev9@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: leopard Port: gettext | ----------------------+-------------------------- Comment (by ryandesign@…): Yes, that would be undesirable. If you want x86_64, you'd probably set build_arch to x86_64 and set universal_archs to i386 x86_64. Which is of course the default on Snow Leopard and later. -- Ticket URL: <https://trac.macports.org/ticket/38299#comment:13> MacPorts <http://www.macports.org/> Ports system for OS X
#38299: gettext does not build for me on Leopard ----------------------+-------------------------- Reporter: cdev9@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: leopard Port: gettext | ----------------------+-------------------------- Comment (by cdev9@…): This ticket is resolved. It was my configuration mistake, not a bug. -- Ticket URL: <https://trac.macports.org/ticket/38299#comment:14> MacPorts <http://www.macports.org/> Ports system for OS X
#38299: gettext does not build for me on Leopard ----------------------+-------------------------- Reporter: cdev9@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: invalid | Keywords: leopard Port: gettext | ----------------------+-------------------------- Changes (by larryv@…): * status: new => closed * resolution: => invalid -- Ticket URL: <https://trac.macports.org/ticket/38299#comment:15> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts