Opened 14 years ago

Closed 13 years ago

#23796 closed defect (duplicate)

no support for build_arch in boost

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

Description (last modified by mf2k (Frank Schima))

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 (1)

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

Download all attachments as: .zip

Change History (7)

Changed 14 years ago by johannes.behr@…

error output of "sudo port -d install boost"

comment:1 Changed 14 years ago by mf2k (Frank Schima)

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

comment:2 Changed 14 years ago by mf2k (Frank Schima)

Description: modified (diff)

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

Cc: johannes.behr@… added

Cc Me!

comment:4 Changed 14 years ago by nox@…

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

Maintainership relinquished in r69969.

comment:5 Changed 13 years ago by jmroot (Joshua Root)

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

comment:6 Changed 13 years ago by jmroot (Joshua Root)

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.