Argument error after upgrading to Snow Leopard
Hi, after upgrading to Snow Leopard I get following error message compiling even a simple Hello World program with bjam: *** argument error * rule SHELL ( command : * ) * called with: ( ) * missing argument command (builtin):see definition of rule 'SHELL' being called ... The .cpp file is: #include <iostream> int main() { cout "Hello World!" << endl; return 0; } The Jamroot file contains: exe HelloWorld : HelloWorld.cpp ; I have: - bjam installed in /usr/local/bin - boost-build libraries in /usr/share/boost-build - in /usr/share/boost-build/user-config.jam the line: using darwin; This is as far as I know exactly the same as I had it under Leopard. What am I missing here? Thanks. Markus
s seelenluft wrote:
Hi,
Hi Markus,
after upgrading to Snow Leopard I get following error message compiling even a simple Hello World program with bjam: *** argument error * rule SHELL ( command : * ) * called with: ( ) * missing argument command (builtin):see definition of rule 'SHELL' being called ...
You have snipped the backtrace, which is the only thing that can help diagnose this.
The .cpp file is: #include <iostream> int main() { cout "Hello World!" << endl; return 0; } The Jamroot file contains: exe HelloWorld : HelloWorld.cpp ; I have: - bjam installed in /usr/local/bin - boost-build libraries in /usr/share/boost-build - in /usr/share/boost-build/user-config.jam the line: using darwin;
This is as far as I know exactly the same as I had it under Leopard. What am I missing here?
You did not say what version of Boost.Build you are using. I recommend that you grab a nightly build from http://boost.org/boost-build2 and give it a try. - Volodya
Thanks for answering (on a weekend)!
On Sat, Sep 26, 2009 at 5:16 PM, Vladimir Prus
You have snipped the backtrace, which is the only thing that can help diagnose this.
Sorry, here it is: (builtin):see definition of rule 'SHELL' being called /usr/share/boost-build/build/toolset.jam:36: in toolset.using /usr/share/boost-build/build/project.jam:825: in using /usr/share/boost-build/user-config.jam:20: in modules.load /usr/share/boost-build/build-system.jam:104: in load-config /usr/share/boost-build/build-system.jam:154: in load /usr/share/boost-build/kernel/modules.jam:261: in import /usr/share/boost-build/kernel/bootstrap.jam:132: in boost-build /usr/share/boost-build/boost-build.jam:1: in module scope
You did not say what version of Boost.Build you are using. I recommend that you grab a nightly build from http://boost.org/boost-build2 and give it a try.
I am not sure it was labelled as such but I installed it at the same time
when boost 1.39 was the current boost library.
I have not downloaded a nightly build and things progress much further (I
did not yet upgrade the developer tools, ie, I still run XCode 3.1.3 that I
had installed on Leopard):
bjam
sh: g++: command not found
...found 9 targets...
...updating 2 targets...
darwin.compile.c++ bin/darwin/debug/HelloWorld.o
/bin/sh: line 1: g++: command not found
"g++" -ftemplate-depth-128 -fcoalesce-templates -O0 -fno-inline -Wall
-g -dynamic -no-cpp-precomp -gdwarf-2 -Wno-long-double -fPIC -c -o
"bin/darwin/debug/HelloWorld.o" "HelloWorld.cpp"
...failed darwin.compile.c++ bin/darwin/debug/HelloWorld.o...
...skipped
On Sep 26, 2009, at 8:42 AM, s seelenluft wrote:
Thanks for answering (on a weekend)!
On Sat, Sep 26, 2009 at 5:16 PM, Vladimir Prus
wrote: You have snipped the backtrace, which is the only thing that can help diagnose this. Sorry, here it is: (builtin):see definition of rule 'SHELL' being called /usr/share/boost-build/build/toolset.jam:36: in toolset.using /usr/share/boost-build/build/project.jam:825: in using /usr/share/boost-build/user-config.jam:20: in modules.load /usr/share/boost-build/build-system.jam:104: in load-config /usr/share/boost-build/build-system.jam:154: in load /usr/share/boost-build/kernel/modules.jam:261: in import /usr/share/boost-build/kernel/bootstrap.jam:132: in boost-build /usr/share/boost-build/boost-build.jam:1: in module scope
You did not say what version of Boost.Build you are using. I recommend that you grab a nightly build from http://boost.org/boost-build2 and give it a try. I am not sure it was labelled as such but I installed it at the same time when boost 1.39 was the current boost library. I have not downloaded a nightly build and things progress much further (I did not yet upgrade the developer tools, ie, I still run XCode 3.1.3 that I had installed on Leopard): bjam sh: g++: command not found ...found 9 targets... ...updating 2 targets... darwin.compile.c++ bin/darwin/debug/HelloWorld.o /bin/sh: line 1: g++: command not found
I suggest that you update your developer tools, then. Xcode 3.1.3 is not supported (by Apple) on Snow Leopard. -- Marshall
I suggest that you update your developer tools, then. Xcode 3.1.3 is not supported (by Apple) on Snow Leopard.
Interestingly, an existing C++ project in Xcode 3.1.3 on Snow Leopard (which also uses a Jamroot file) does compile and run fine. Yes, I intended to upgrade but I am surprised that compiling with Xcode 3.1.3 does work but using the command line does not.
On Sat, Sep 26, 2009 at 6:00 PM, s seelenluft
I suggest that you update your developer tools, then. Xcode 3.1.3 is not
supported (by Apple) on Snow Leopard.
Interestingly, an existing C++ project in Xcode 3.1.3 on Snow Leopard (which also uses a Jamroot file) does compile and run fine. Yes, I intended to upgrade but I am surprised that compiling with Xcode 3.1.3 does work but using the command line does not.
After updating Xcode to 3.2 (incl. all the developer tools), things work again. However, I also needed to upgrade boost-build to the latest version (not too surprising, I just had hoped to somewhere find a note via Google which version of boost-build is required for Snow Leopard, I am now using the last nightly build).
participants (3)
-
Marshall Clow
-
s seelenluft
-
Vladimir Prus