0

How to see compiler command line when scons script executed

asked 2014-09-19 05:14:02 -0700

Marina Gorshkova gravatar image

updated 2014-09-19 09:34:28 -0700

stevek gravatar image

Hello,

I am not familiar with SCons. Could you help me please? How can I see compiler command line when execute "scons" command to build AllJoyn for "openwrt".

I set all of needed environment variables (like TARGET_CFLAGS, TARGET_CPPLAGS..) and execute the command

scons BINDINGS=cpp ICE=off WS=off SERVICES="about,notification,config,controlpanel,onboarding" OS=openwrt CPU=openwrt --warn=all

I see the following output

scons: done reading SConscript files. scons: Building targets ...

scons: warning: No dependency generated for file: string.h (included from: alljoyn_core/src/AllJoynCrypto.cc) -- file not found File "/usr/bin/scons", line 192, in <module></module>

scons: warning: No dependency generated for file: assert.h (included from: common/inc/qcc/Crypto.h) -- file not found File "/usr/bin/scons", line 192, in <module></module>

scons: warning: No dependency generated for file: string.h (included from: common/inc/qcc/Crypto.h) -- file not found File "/usr/bin/scons", line 192, in <module></module>

It look like some pathes for include files are not set.

I would like to see full compiler command line like:

gcc -Iinclude/asdfasdfasdf/asdf/adfasdfasdf/asdf/asdf/asdf/ -Isdfg/sdfg/sdfg/sdfg/sdfg/sdfg/sdfg/sdfg/ -Iqwer/qwer/qwer/qwer/qwer/qwer/qwer/qwer/ -Ierty/erty/erty/erty/erty/er/y -Izxcv/zxcv/zxcv/zxcv/zxcv/zxcv/zxc/vzxc/v -Ihjkl/njkl/hjkl/hjkl/hjkl/hjkl/hjkl/ -Iuytr/uytr/uytr/uytr/uyr/uytr/uyr/urt -o view.o view.c

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-09-19 09:33:06 -0700

stevek gravatar image

Add V=1 to enable verbose build output. Actually, any value other than 0 (zero) will enable verbose build output.

Be aware that when OS=openwrt and CPU=openwrt, you need to specify several more parameters. See my answer to "How to compile suite-14.06.00 on BeagleBone Black?" for details on the scons command line parameters

edit flag offensive delete publish link more

Comments

Thanks for reply. V=1 works. By some reason, env variable option "-I/<path> from TARGET_CPPFLAGS is not included in the command line.

Marina Gorshkova ( 2014-09-21 23:59:51 -0700 )edit

I've addressed this in your other question that you posted.

stevek ( 2014-09-22 12:04:20 -0700 )edit
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2014-09-19 05:14:02 -0700

Seen: 2,217 times

Last updated: Sep 19 '14