Opened 14 years ago

Closed 14 years ago

Last modified 10 years ago

#28327 closed defect (fixed)

boost does not follow build_arch

Reported by: andrebragareis@… Owned by: adfernandes (Andrew Fernandes)
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc:
Port: boost

Description

I'm trying to build boost with 'build_arch i386' in my macports.conf, but the linker complains that it's trying to link x86_64 objects with the i386 dependencies:

ld: warning: in /opt/local/lib/libbz2.dylib, file was built for i386 which is not the architecture being linked (x86_64)
ld: warning: in /opt/local/lib/libz.dylib, file was built for i386 which is not the architecture being linked (x86_64)

My best guess is that boost is ignoring build_arch. This macports installation was deployed from the start with the i386 arch, and boost is the first package to exhibit this kind of problem.

I'm attaching boost's build log in a bit.

Attachments (2)

log-boost.txt (666.7 KB) - added by andrebragareis@… 14 years ago.
Log of port -dv install boost
Portfile.diff (910 bytes) - added by adfernandes (Andrew Fernandes) 14 years ago.

Download all attachments as: .zip

Change History (8)

Changed 14 years ago by andrebragareis@…

Attachment: log-boost.txt added

Log of port -dv install boost

comment:1 Changed 14 years ago by jmroot (Joshua Root)

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

comment:2 Changed 14 years ago by adfernandes (Andrew Fernandes)

I think I say the same thing every time I need to build boost... I hate boost's bjam build system... :-)

Please try the attached patch and let me know if the build_arch is being correctly honoured.

Changed 14 years ago by adfernandes (Andrew Fernandes)

Attachment: Portfile.diff added

comment:3 Changed 14 years ago by andrebragareis@…

Works flawlessly, thank you! I can't vouch for the PPC part, but it looks good to send upstream. Many thanks.

comment:4 Changed 14 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

This was committed in r75847.

comment:5 Changed 10 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:6 Changed 10 years ago by cooljeanius (Eric Gallager)

Cc: egall@… removed

Cc Me!

Note: See TracTickets for help on using tickets.