Ticket #20875 (closed defect: duplicate)
db46: Cannot install with build_arch i386 on 64-bit Mac OS X 10.6
| Reported by: | joseph.spiros@… | Owned by: | blair@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.8.0 |
| Keywords: | Cc: | snc@… | |
| Port: | db46 |
Description
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
Attachments
Change History
Changed 4 years ago by joseph.spiros@…
- Attachment db46-i386-debug.txt added
comment:2 Changed 4 years ago by jmr@…
- Owner changed from macports-tickets@… to blair@…
- Port set to db46
comment:3 Changed 4 years ago 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
comment:4 follow-up: ↓ 5 Changed 4 years ago by snc@…
- Cc snc@… added
Would building universal help, setting it for i386?
comment:5 in reply to: ↑ 4 Changed 4 years ago by ryandesign@…
- Summary changed from Cannot install i386 architecture db46 on 64-bit Mac OS X 10.6 to db46: Cannot install with build_arch i386 on 64-bit Mac OS X 10.6
Replying to 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.
Changed 4 years ago by janngobble@…
- Attachment db46_universal_compile_error.txt added
Compile error for db46 + universal
comment:6 Changed 4 years ago 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


Output of port -d install db46 with build_arch set to i386