On Thu, Jan 29, 2015 at 12:10 PM, Drasko DRASKOVIC < drasko.draskovic at gmail.com> wrote: > Hello Caiwen, > > On Thu, Jan 29, 2015 at 2:08 AM, Zhang, Caiwen <caiwen.zhang at intel.com> wrote: >> It seems you have set "SCONSFLAGS". Please unset it then retry and upload the log. > > Not really: > > drasko at Hegel:~/iotivity$ echo $SCONSFLAGS > > drasko at Hegel:~/iotivity$ scons > scons: Reading SConscript files ... > Checking for C library boost_program_options... (cached) yes > Checking for C library boost_program_options... (cached) yes > Checking for C library boost_program_options... (cached) yes > Checking for C library boost_program_options... (cached) yes > Checking for C library boost_program_options... (cached) yes > Checking for C library boost_thread... (cached) yes > Checking for C library boost_system... (cached) yes > Checking for C library boost_thread... (cached) yes > Checking for C library boost_system... (cached) yes > Checking for C library boost_thread... (cached) yes > Checking for C library boost_system... (cached) yes > Checking for C library boost_thread... (cached) yes > Checking for C library boost_system... (cached) yes > Checking for C library boost_thread... (cached) yes > Checking for C library boost_system... (cached) yes > Checking for C library boost_thread... (cached) yes > Checking for C library boost_system... (cached) yes > Checking for C library boost_thread... (cached) yes > Checking for C library boost_system... (cached) yes > Checking for C library boost_thread... (cached) yes > Checking for C library boost_system... (cached) yes > Checking for C library boost_thread... (cached) yes > Checking for C library boost_system... (cached) yes > Checking for C library boost_thread... (cached) yes > Checking for C library boost_system... (cached) yes > Checking for C library boost_thread... (cached) yes > Checking for C library boost_system... (cached) yes > Checking for C library boost_thread... (cached) yes > Checking for C library boost_system... (cached) yes > Checking for C library boost_thread... (cached) yes > Checking for C library boost_system... (cached) yes > Checking for C library boost_thread... (cached) yes > Checking for C library boost_system... (cached) yes > Checking for C library boost_thread... (cached) yes > Checking for C library boost_system... (cached) yes > Checking for C library boost_thread... (cached) yes > Checking for C library boost_system... (cached) yes > scons: done reading SConscript files. > scons: Building targets ... > scons: building associated VariantDir targets: out/linux/x86_64/release > gcc -o out/linux/x86_64/release/extlibs/cjson/cJSON.o -c -std=c99 > -Wall -fPIC -Os -m64 -DNDEBUG -DWITH_POSIX > -Iout/linux/x86_64/release/extlibs/cjson -Iextlibs/cjson > -Iout/linux/x86_64/release/resource/csdk/ocsocket/include > -Iresource/csdk/ocsocket/include > -Iout/linux/x86_64/release/resource/csdk/logger/include > -Iresource/csdk/logger/include > -Iout/linux/x86_64/release/resource/csdk/ocrandom/include > -Iresource/csdk/ocrandom/include > -Iout/linux/x86_64/release/resource/csdk/ocmalloc/include > -Iresource/csdk/ocmalloc/include > -Iout/linux/x86_64/release/resource/csdk/libcoap > -Iresource/csdk/libcoap > -Iout/linux/x86_64/release/resource/csdk/occoap/include > -Iresource/csdk/occoap/include > -Iout/linux/x86_64/release/resource/csdk/stack/include > -Iresource/csdk/stack/include > -Iout/linux/x86_64/release/resource/csdk/stack/include/internal > -Iresource/csdk/stack/include/internal > -Iout/linux/x86_64/release/resource/oc_logger/include > -Iresource/oc_logger/include -Iextlibs/cereal/include > extlibs/cjson/cJSON.c > gcc -o out/linux/x86_64/release/extlibs/cjson/cJSON.os -c -std=c99 > -Wall -fPIC -Os -m64 -fPIC -DNDEBUG -DWITH_POSIX > -Iout/linux/x86_64/release/extlibs/cjson -Iextlibs/cjson > -Iout/linux/x86_64/release/resource/csdk/ocsocket/include > -Iresource/csdk/ocsocket/include > -Iout/linux/x86_64/release/resource/csdk/logger/include > -Iresource/csdk/logger/include > -Iout/linux/x86_64/release/resource/csdk/ocrandom/include > -Iresource/csdk/ocrandom/include > -Iout/linux/x86_64/release/resource/csdk/ocmalloc/include > -Iresource/csdk/ocmalloc/include > -Iout/linux/x86_64/release/resource/csdk/libcoap > -Iresource/csdk/libcoap > -Iout/linux/x86_64/release/resource/csdk/occoap/include > -Iresource/csdk/occoap/include > -Iout/linux/x86_64/release/resource/csdk/stack/include > -Iresource/csdk/stack/include > -Iout/linux/x86_64/release/resource/csdk/stack/include/internal > -Iresource/csdk/stack/include/internal > -Iout/linux/x86_64/release/resource/oc_logger/include > -Iresource/oc_logger/include -Iextlibs/cereal/include > extlibs/cjson/cJSON.c > o out/linux/x86_64/release/service/soft-sensor-manager/SoftSensorPlugin/DiscomfortIndexSensor/src/DiscomfortIndexSensor.os > -c -std=c++0x -Wall -DLINUX -pthread -Os -m64 -fPIC -fPIC -DNDEBUG > -Iextlibs/cereal/include -Iresource -Iresource/include > -Iresource/oc_logger/include -Iresource/csdk/stack/include > -Iresource/csdk/ocsocket/include -Iresource/csdk/ocrandom/include > -Iresource/csdk/logger/include > -Iout/linux/x86_64/release/service/soft-sensor-manager/SoftSensorPlugin/DiscomfortIndexSensor/include > -Iservice/soft-sensor-manager/SoftSensorPlugin/DiscomfortIndexSensor/include > -Iout/linux/x86_64/release/service/soft-sensor-manager/SSMCore/src/SSMInterface > -Iservice/soft-sensor-manager/SSMCore/src/SSMInterface > service/soft-sensor-manager/SoftSensorPlugin/DiscomfortIndexSensor/src/DiscomfortIndexSensor.cpp > sh: 1: o: not found > o out/linux/x86_64/release/service/soft-sensor-manager/SoftSensorPlugin/DiscomfortIndexSensor/src/SysTimer.os > -c -std=c++0x -Wall -DLINUX -pthread -Os -m64 -fPIC -fPIC -DNDEBUG > -Iextlibs/cereal/include -Iresource -Iresource/include > -Iresource/oc_logger/include -Iresource/csdk/stack/include > -Iresource/csdk/ocsocket/include -Iresource/csdk/ocrandom/include > -Iresource/csdk/logger/include > -Iout/linux/x86_64/release/service/soft-sensor-manager/SoftSensorPlugin/DiscomfortIndexSensor/include > -Iservice/soft-sensor-manager/SoftSensorPlugin/DiscomfortIndexSensor/include > -Iout/linux/x86_64/release/service/soft-sensor-manager/SSMCore/src/SSMInterface > -Iservice/soft-sensor-manager/SSMCore/src/SSMInterface > service/soft-sensor-manager/SoftSensorPlugin/DiscomfortIndexSensor/src/SysTimer.cpp > sh: 1: o: not found > o out/linux/x86_64/release/service/soft-sensor-manager/libDiscomfortIndexSensor.so > -s -m64 -shared > out/linux/x86_64/release/service/soft-sensor-manager/SoftSensorPlugin/DiscomfortIndexSensor/src/DiscomfortIndexSensor.os > out/linux/x86_64/release/service/soft-sensor-manager/SoftSensorPlugin/DiscomfortIndexSensor/src/SysTimer.os > -Lout/linux/x86_64/release -L. -lboost_thread -lboost_system > sh: 1: o: not found > Install file: "out/linux/x86_64/release/service/soft-sensor-manager/libDiscomfortIndexSensor.so" > as "out/linux/x86_64/release/libDiscomfortIndexSensor.so" > scons: *** [out/linux/x86_64/release/libDiscomfortIndexSensor.so] > out/linux/x86_64/release/service/soft-sensor-manager/libDiscomfortIndexSensor.so: > No such file or directory > scons: building terminated because of errors. > drasko at Hegel:~/iotivity$ > > > Looks like some bad parsing to me, missing "gcc -", so that out of > "gcc -o" we are left with only "o"... > > drasko at Hegel:~/iotivity$ scons --version > SCons by Steven Knight et al.: > script: v2.3.1, 2014/03/02 14:18:15, by garyo on lubuntu > engine: v2.3.1, 2014/03/02 14:18:15, by garyo on lubuntu > engine path: ['/usr/lib/scons/SCons'] > Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, > 2010, 2011, 2012, 2013, 2014 The SCons Foundation > drasko at Hegel:~/iotivity$
Whoops, it turned out that I did not have installed g++ at all... I started with the fresh Debain distro, no g++ by default. Anyway, seems like SCons files hardcode CXX to g++ withouteven checking it's presence in the system. BR, Drasko -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150129/cf2e2f88/attachment.html>
