[MacPorts] #23944: tbb 2.2-20090809 Build failure with "no such variable"
MacPorts
noreply at macports.org
Fri Mar 19 08:25:05 PDT 2010
#23944: tbb 2.2-20090809 Build failure with "no such variable"
--------------------------------+-------------------------------------------
Reporter: leducvin@… | Owner: mnick@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.8.2
Keywords: ppc haspatch | Port: tbb
--------------------------------+-------------------------------------------
Comment(by leducvin@…):
Replying to [comment:5 raphael@…]:
> I can compile tbb on Mac OS X 10.5 for ppc and ppc64 with the attached
patches.
Thank you for the patches. Most likely they work, but for some strange
reason after applying them, macports is spitting out stuff about using gcc
4.2, while originally it was saying it was using gcc 4.0. I do have both
installed.
{{{
DEBUG: Found port in
file:///opt/local/var/macports/sources/www.macports.org/files/ports/devel/tbb
DEBUG: Changing to port directory:
/opt/local/var/macports/sources/www.macports.org/files/ports/devel/tbb
DEBUG: OS Platform: darwin
DEBUG: OS Version: 8.11.0
DEBUG: Mac OS X Version: 10.4
DEBUG: System Arch: powerpc
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing
procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-
existing procedure. Target override will not be provided
DEBUG: Reading variant descriptions from
/opt/local/var/macports/sources/www.macports.org/files/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: 'universal_variant no' specified, so not adding the default
universal variant
DEBUG: Requested variant powerpc is not provided by port tbb.
DEBUG: Requested variant darwin is not provided by port tbb.
DEBUG: Requested variant macosx is not provided by port tbb.
DEBUG: Executing variant darwin_powerpc provides darwin_powerpc
---> Computing dependencies for tbb
DEBUG: Executing org.macports.main (tbb)
DEBUG: Skipping completed org.macports.fetch (tbb)
DEBUG: Skipping completed org.macports.checksum (tbb)
DEBUG: Skipping completed org.macports.extract (tbb)
DEBUG: Skipping completed org.macports.patch (tbb)
DEBUG: Skipping completed org.macports.configure (tbb)
---> Building tbb
DEBUG: Executing org.macports.build (tbb)
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.4'
DEBUG: Assembled command: 'cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_www.macports.org_files_ports_devel_tbb/work/tbb22_20090809oss"
&& /usr/bin/make -j3 tbb tbbmalloc'
cd "./build/macos_ppc64_gcc_cc4.4.2_os10.4.11_release" && sh
../../build/generate_tbbvars.sh macos_ppc64_gcc_cc4.4.2_os10.4.11_release
cd "./build/macos_ppc64_gcc_cc4.4.2_os10.4.11_debug" && sh
../../build/generate_tbbvars.sh macos_ppc64_gcc_cc4.4.2_os10.4.11_debug
/usr/bin/make -C "./build/macos_ppc64_gcc_cc4.4.2_os10.4.11_debug" -r -f
../../build/Makefile.tbb cfg=debug tbb_root=../..
../../build/Makefile.tbb:39: CONFIG: cfg=debug arch=ppc64 compiler=gcc
os=macos runtime=cc4.4.2_os10.4.11
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_PTHREAD -arch ppc64 -fPIC
-D__TBB_BUILD=1 -Wall -I../../src -I../../include
../../src/tbb/concurrent_hash_map.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_PTHREAD -arch ppc64 -fPIC
-D__TBB_BUILD=1 -Wall -I../../src -I../../include
../../src/tbb/concurrent_queue.cpp
g++ -c -MMD -g -O0 -DTBB_USE_DEBUG -DUSE_PTHREAD -arch ppc64 -fPIC
-D__TBB_BUILD=1 -Wall -I../../src -I../../include
../../src/tbb/concurrent_vector.cpp
cc1plus: error: unrecognized command line option "-arch"
cc1plus: error: unrecognized command line option "-arch"
cc1plus: error: unrecognized command line option "-arch"
make[1]: *** [concurrent_hash_map.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [concurrent_vector.o] Error 1
make[1]: *** [concurrent_queue.o] Error 1
make: *** [tbb] Error 2
Error: Target org.macports.build returned: shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_www.macports.org_files_ports_devel_tbb/work/tbb22_20090809oss"
&& /usr/bin/make -j3 tbb tbbmalloc " returned error 2
DEBUG: Backtrace: shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_www.macports.org_files_ports_devel_tbb/work/tbb22_20090809oss"
&& /usr/bin/make -j3 tbb tbbmalloc " returned error 2
while executing
"command_exec build"
(procedure "portbuild::build_main" line 9)
invoked from within
"$procedure $targetname"
Warning: the following items did not execute (for tbb):
org.macports.activate org.macports.build org.macports.destroot
org.macports.install
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
}}}
This seems to be the problem :
{{{
cc1plus: error: unrecognized command line option "-arch"
}}}
I think macports is using a GNU project gcc (that I installed with
macports), not Apple's gcc, which is why the "arch" flag is not
recognized. I tried using gcc_select, but it only lets me select between
various GNU gcc versions, never Apple's gcc. This probably has nothing to
do with the port itself, but any pointers on how to fix this would help
greatly. Thanks.
PS sorry about the unnecessary cc.
--
Ticket URL: <http://trac.macports.org/ticket/23944#comment:6>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list