[MacPorts] #20875: Cannot install i386 architecture db46 on 64-bit Mac OS X 10.6
#20875: Cannot install i386 architecture db46 on 64-bit Mac OS X 10.6 ----------------------------------------+----------------------------------- Reporter: joseph.spiros@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: ----------------------------------------+----------------------------------- After a fresh installation of MacPorts 1.8.0, I uncommented and set the build_arch setting in macports.conf to "i386" on my 64-bit capable system (for compatibility with wine) prior to the installation of any ports. Upon attempting to install git-core+svn, db46 fails. It seems that it is being built as 64-bit despite the build_arch setting. Attached log is the result of running `port -d install db46` after running `port clean --all -f db46` following initial failure. The result of running `file /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_db46/work/db-4.6.21/build_unix/.libs/libdb-4.6.dylib`:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_db46/work/db-4.6.21/build_unix/.libs/libdb-4.6.dylib: Mach-O 64-bit dynamically linked shared library x86_64 -- Ticket URL: <http://trac.macports.org/ticket/20875> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20875: Cannot install i386 architecture db46 on 64-bit Mac OS X 10.6 ----------------------------------------+----------------------------------- Reporter: joseph.spiros@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: ----------------------------------------+----------------------------------- Comment(by toby@…): Yeah, build_arch isn't going to be all that reliable... -- Ticket URL: <http://trac.macports.org/ticket/20875#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20875: Cannot install i386 architecture db46 on 64-bit Mac OS X 10.6 ----------------------------------------+----------------------------------- Reporter: joseph.spiros@… | Owner: blair@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: db46 ----------------------------------------+----------------------------------- Changes (by jmr@…): * owner: macports-tickets@… => blair@… * port: => db46 -- Ticket URL: <http://trac.macports.org/ticket/20875#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20875: Cannot install i386 architecture db46 on 64-bit Mac OS X 10.6 ----------------------------------------+----------------------------------- Reporter: joseph.spiros@… | Owner: blair@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: db46 ----------------------------------------+----------------------------------- Comment(by blair@…): This is not a configuration I run db46 in, so I'll need a patch to implement the behavior you're looking for. Regards, Blair -- Ticket URL: <http://trac.macports.org/ticket/20875#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20875: Cannot install i386 architecture db46 on 64-bit Mac OS X 10.6 ----------------------------------------+----------------------------------- Reporter: joseph.spiros@… | Owner: blair@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: db46 ----------------------------------------+----------------------------------- Changes (by snc@…): * cc: snc@… (added) Comment: Would building universal help, setting it for i386? -- Ticket URL: <http://trac.macports.org/ticket/20875#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20875: db46: Cannot install with build_arch i386 on 64-bit Mac OS X 10.6 ----------------------------------------+----------------------------------- Reporter: joseph.spiros@… | Owner: blair@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: db46 ----------------------------------------+----------------------------------- Comment(by ryandesign@…): Replying to [comment:4 snc@…]:
Would building universal help, setting it for i386? I believe so, because the muniversal portgroup, which db46 uses, uses `-m64` and `-m32` instead of `-arch` flags when possible, and db46 seems to respond well to this. But building a port "universal" for a single architecture is a hack. The universal variant is designed for building for multiple architectures. So it would make most sense to build db46 (and your other ports) universal for x86_64 and i386, which works for me on Snow Leopard.
-- Ticket URL: <http://trac.macports.org/ticket/20875#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20875: db46: Cannot install with build_arch i386 on 64-bit Mac OS X 10.6 ----------------------------------------+----------------------------------- Reporter: joseph.spiros@… | Owner: blair@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: db46 ----------------------------------------+----------------------------------- Comment(by janngobble@…): +universal does not compile for me on a clean install of MacPorts 1.8 db46_universal_compile_error.txt attached to ticket. Jann -- Ticket URL: <http://trac.macports.org/ticket/20875#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20875: db46: Cannot install with build_arch i386 on 64-bit Mac OS X 10.6 ----------------------------------------+----------------------------------- Reporter: joseph.spiros@… | Owner: blair@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: db46 ----------------------------------------+----------------------------------- Comment(by me@…): I can confirm that adding -m32 to LDFLAGS compiles this package for me with 1.8.1 on 10.6.1 -- Ticket URL: <http://trac.macports.org/ticket/20875#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20875: db46: Cannot install with build_arch i386 on 64-bit Mac OS X 10.6 -----------------------------------------+---------------------------------- Reporter: joseph.spiros@… | Owner: blair@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Resolution: duplicate | Keywords: Port: db46 | -----------------------------------------+---------------------------------- Changes (by jmr@…): * status: new => closed * resolution: => duplicate Comment: Superseded by #21898. -- Ticket URL: <http://trac.macports.org/ticket/20875#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts