[MacPorts] #23944: tbb 2.2-20090809 Build failure with "no such variable"
#23944: tbb 2.2-20090809 Build failure with "no such variable" ---------------------------------------------+------------------------------ Reporter: leducvin@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: build failure, no such variable | Port: tbb ---------------------------------------------+------------------------------ Using MacOS 10.4.11 on ppc, with Apple gcc 4.0 $ sudo port -d install tbb 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: '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. ---> 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) ---> Configuring tbb DEBUG: Using compiler 'Mac OS X gcc 4.0' DEBUG: Executing org.macports.configure (tbb) Error: Target org.macports.configure returned: can't read "arch_flag": no such variable DEBUG: Backtrace: can't read "arch_flag": no such variable while executing "$procedure $targetname" Warning: the following items did not execute (for tbb): org.macports.activate org.macports.configure 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> Output included in a file (tbb-debug-output.txt) for readability. -- Ticket URL: <http://trac.macports.org/ticket/23944> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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: | Port: tbb --------------------------------+------------------------------------------- Changes (by jmr@…): * keywords: build failure, no such variable => * owner: macports-tickets@… => mnick@… * cc: leducvin@… (removed) Comment: Please remember to preview and use WikiFormatting, and to cc the maintainer. You don't need to be in cc when you are the reporter. -- Ticket URL: <http://trac.macports.org/ticket/23944#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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: tiger | Port: tbb --------------------------------+------------------------------------------- Changes (by jmr@…): * keywords: => tiger Old description:
Using MacOS 10.4.11 on ppc, with Apple gcc 4.0
$ sudo port -d install tbb 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: '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. ---> 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) ---> Configuring tbb DEBUG: Using compiler 'Mac OS X gcc 4.0' DEBUG: Executing org.macports.configure (tbb) Error: Target org.macports.configure returned: can't read "arch_flag": no such variable DEBUG: Backtrace: can't read "arch_flag": no such variable while executing "$procedure $targetname" Warning: the following items did not execute (for tbb): org.macports.activate org.macports.configure 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>
Output included in a file (tbb-debug-output.txt) for readability.
New description: Using MacOS 10.4.11 on ppc, with Apple gcc 4.0 {{{ $ sudo port -d install tbb 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: '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. ---> 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) ---> Configuring tbb DEBUG: Using compiler 'Mac OS X gcc 4.0' DEBUG: Executing org.macports.configure (tbb) Error: Target org.macports.configure returned: can't read "arch_flag": no such variable DEBUG: Backtrace: can't read "arch_flag": no such variable while executing "$procedure $targetname" Warning: the following items did not execute (for tbb): org.macports.activate org.macports.configure 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> }}} Output included in a file (tbb-debug-output.txt) for readability. -- -- Ticket URL: <http://trac.macports.org/ticket/23944#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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 | Port: tbb --------------------------------+------------------------------------------- Changes (by jmr@…): * keywords: tiger => ppc Comment: The port appears to be i386/x86_64 only. -- Ticket URL: <http://trac.macports.org/ticket/23944#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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 --------------------------------+------------------------------------------- Changes (by raphael@…): * cc: raphael@… (added) * keywords: ppc => ppc haspatch Comment: I can compile tbb on Mac OS X 10.5 for ppc and ppc64 with the attached patches. -- Ticket URL: <http://trac.macports.org/ticket/23944#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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
#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@…): Also, I noticed it has wrongly selected ppc64 : {{{ ../../build/Makefile.tbb:39: CONFIG: cfg=debug arch=ppc64 compiler=gcc os=macos runtime=cc4.4.2_os10.4.11 }}} -- Ticket URL: <http://trac.macports.org/ticket/23944#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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 raphael@…): Replying to [comment:6 leducvin@…]:
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.
I modified the attached patches so that the port always uses {{{/usr/bin/gcc}}} and {{{/usr/bin/g++}}}. I hope these patches fix your problems. -- Ticket URL: <http://trac.macports.org/ticket/23944#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23944: tbb: "no such variable" on PowerPC --------------------------------+------------------------------------------- Reporter: leducvin@… | Owner: mnick@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: ppc haspatch | Port: tbb --------------------------------+------------------------------------------- Changes (by ryandesign@…): * cc: ryandesign@… (added) Comment: Replying to [comment:8 raphael@…]:
I modified the attached patches so that the port always uses {{{/usr/bin/gcc}}} and {{{/usr/bin/g++}}}. I hope these patches fix your problems.
It really needs to be using the values of the variables ${configure.cc} and ${configure.cxx}. -- Ticket URL: <http://trac.macports.org/ticket/23944#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23944: tbb: "no such variable" on PowerPC --------------------------------+------------------------------------------- Reporter: leducvin@… | Owner: mnick@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: ppc haspatch | Port: tbb --------------------------------+------------------------------------------- Comment(by ryandesign@…): Replying to [ticket:23944 leducvin@…]:
Error: Target org.macports.configure returned: can't read "arch_flag": no such variable
This was fixed in r71975. Replying to [comment:9 ryandesign@…]:
It really needs to be using the values of the variables ${configure.cc} and ${configure.cxx}.
This was fixed in r71980. -- Ticket URL: <https://trac.macports.org/ticket/23944#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23944: tbb fails to build on PowerPC --------------------------------+------------------------------------------- Reporter: leducvin@… | Owner: mnick@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: ppc haspatch | Port: tbb --------------------------------+------------------------------------------- -- Ticket URL: <https://trac.macports.org/ticket/23944#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23944: tbb fails to build on PowerPC -------------------------+-------------------------- Reporter: leducvin@… | Owner: mnick@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Resolution: | Keywords: ppc haspatch Port: tbb | -------------------------+-------------------------- Comment (by egall@…): There's a proposal to add a +universal variant to tbb in #37320, but I'm assuming that this would have to be fixed first before that can go through, right? -- Ticket URL: <https://trac.macports.org/ticket/23944#comment:12> MacPorts <http://www.macports.org/> Ports system for OS X
#23944: tbb fails to build on PowerPC -------------------------+-------------------------------- Reporter: leducvin@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Resolution: | Keywords: ppc haspatch Port: tbb | -------------------------+-------------------------------- Changes (by macsforever2000@…): * owner: mnick@… => macports-tickets@… Comment: mnick has retired. -- Ticket URL: <https://trac.macports.org/ticket/23944#comment:14> MacPorts <http://www.macports.org/> Ports system for OS X
#23944: tbb fails to build on PowerPC -------------------------+-------------------------------- Reporter: leducvin@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Resolution: | Keywords: powerpc haspatch Port: tbb | -------------------------+-------------------------------- Changes (by mf2k@…): * keywords: ppc haspatch => powerpc haspatch Comment: Unify powerpc keywords. -- Ticket URL: <https://trac.macports.org/ticket/23944#comment:15> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts