Opened 15 years ago
Closed 15 years ago
#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 (Blair Zajac) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.8.0 |
Keywords: | Cc: | nerdling (Jeremy Lavergne) | |
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 (2)
Change History (10)
Changed 15 years ago by joseph.spiros@…
Attachment: | db46-i386-debug.txt added |
---|
comment:1 Changed 15 years ago by tobypeterson
Yeah, build_arch isn't going to be all that reliable...
comment:2 Changed 15 years ago by jmroot (Joshua Root)
Owner: | changed from macports-tickets@… to blair@… |
---|---|
Port: | db46 added |
comment:3 Changed 15 years ago by blair (Blair Zajac)
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 15 years ago by nerdling (Jeremy Lavergne)
Cc: | snc@… added |
---|
Would building universal help, setting it for i386?
comment:5 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Summary: | Cannot install i386 architecture db46 on 64-bit Mac OS X 10.6 → 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 15 years ago by janngobble@…
Attachment: | db46_universal_compile_error.txt added |
---|
Compile error for db46 + universal
comment:6 Changed 15 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
comment:7 Changed 15 years ago by me@…
I can confirm that adding -m32 to LDFLAGS compiles this package for me with 1.8.1 on 10.6.1
comment:8 Changed 15 years ago by jmroot (Joshua Root)
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Superseded by #21898.
Output of
port -d install db46
with build_arch set to i386