Opened 12 years ago

Closed 12 years ago

#35990 closed defect (fixed)

tbb 4.0 doesn't support non-default build_arch

Reported by: realmightycat@… Owned by: mnick@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: tbb

Description


Attachments (1)

main.log (17.4 KB) - added by realmightycat@… 12 years ago.
main.log

Download all attachments as: .zip

Change History (7)

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

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

Judging by the Portfile, tbb is supposed to support i386. Could you attach a main.log file showing what problem you experienced?

Changed 12 years ago by realmightycat@…

Attachment: main.log added

main.log

comment:2 Changed 12 years ago by realmightycat@…

Maybe I do something wrong.

Averich-iMac:Desktop anton$ sudo port install tbb
--->  Fetching archive for tbb
--->  Attempting to fetch tbb-4.0-20120613_0.darwin_12.i386.tbz2 from http://lil.fr.packages.macports.org/tbb
--->  Attempting to fetch tbb-4.0-20120613_0.darwin_12.i386.tbz2 from http://packages.macports.org/tbb
--->  Fetching distfiles for tbb
--->  Verifying checksum(s) for tbb
--->  Extracting tbb
--->  Applying patches to tbb
--->  Configuring tbb
--->  Building tbb
Error: org.macports.build for port tbb returned: command execution failed
Please see the log file for port tbb for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_tbb/tbb/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port tbb failed

comment:3 Changed 12 years ago by jmroot (Joshua Root)

Summary: tbb 4.0 doesn't support i386 archtbb 4.0 doesn't support non-default build_arch

It's certainly not passing any archflags to the compiler.

comment:4 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

It does add -m64 when building for 64-bit, but does not add -arch i386 or -m32 when building for 32-bit.

comment:5 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

Reading the file build/macos.inc in the source, it expects the arch variable to be one of "ia32", "intel64", "ppc32" pr "ppc64".

Reading the portfile, it sets the arch_flag variable to "intel32", "intel64", "ppc" or "ppc64".

So it appears the port is doing the right thing on 64-bit Intel and PowerPC systems, but the wrong thing on 32-bit Intel or PowerPC systems.

Ticket #23944 about PowerPC build problems with tbb remains open.

comment:6 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

I've fixed the arch_flag variable in r100563 and verified it allows me to build for i386 on a 64-bit Intel Mac with Mountain Lion. Haven't tested PowerPC yet but will leave that for the other ticket.

Note: See TracTickets for help on using tickets.