New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #23796 (closed defect: duplicate)

Opened 3 years ago

Last modified 2 years ago

no support for build_arch in boost

Reported by: johannes.behr@… Owned by: adfernandes@…
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc:
Port: boost

Description (last modified by macsforever2000@…) (diff)

I tried to install a pure 32-bit version on snow leopard but failed since boost does not support the build_arch since boost. To verify this bug do the following:

  1. install macports pkg
  2. edit etc/macports/macports.conf and activate "build_arch i386"
  3. sudo port install boost

The (attached) errot output says:

ld: warning: in /opt/local/lib/libbz2.dylib, file is not of required architecture
ld: warning: in /opt/local/lib/libz.dylib, file is not of required architecture

So the bzip2 and zlib ports are not installed for the same architecture as that for which the system tries to build boost.

guessed reason: bzip2 and zlib are built for i386, since build_arch is set to i386 in macports.conf and they suport build_arch. boost does not support changing build_arch and is therefore still trying to build for x86_64. A quick glance in the portfile shows that it doesn't use the standard configure phase (which is how ports automatically acquire support for changing build_arch) and searching the portfile for "arch" doesn't show any code that would cause the port to respect build_arch.

Attachments

port-install-boost-output.txt (24.6 KB) - added by johannes.behr@… 3 years ago.
error output of "sudo port -d install boost"

Change History

Changed 3 years ago by johannes.behr@…

error output of "sudo port -d install boost"

comment:1 Changed 3 years ago by macsforever2000@…

  • Keywords build_arch i386 32 removed
  • Owner changed from macports-tickets@… to nox@…
  • Description modified (diff)

comment:2 Changed 3 years ago by macsforever2000@…

  • Description modified (diff)

comment:3 Changed 3 years ago by johannes.behr@…

  • Cc johannes.behr@… added

Cc Me!

comment:4 Changed 3 years ago by nox@…

  • Owner changed from nox@… to macports-tickets@…

Maintainership relinquished in r69969.

comment:5 Changed 2 years ago by jmr@…

  • Owner changed from macports-tickets@… to adfernandes@…
  • Cc johannes.behr@… removed

comment:6 Changed 2 years ago by jmr@…

  • Status changed from new to closed
  • Resolution set to duplicate
Note: See TracTickets for help on using tickets.