Login | Register
My pages Projects Community openCollabNet

Discussions > SCons User General Discussions (OBSOLETE) > Re: [scons-users] Fw: SCons build error

Project highlights:

29 Sep 2014: Release 2.3.4 is now available at the download page.

24 Aug 2014: Release 2.3.3 is now available at the download page.

05 July 2014: Release 2.3.2 is now available at the download page.

02 Feb 2013: Release 2.3.0 is now available at the download page.

scons
Discussion topic

Back to topic list

Re: [scons-users] Fw: SCons build error

Author ybigger
Full name Yaniv Bigger
Date 2008-07-15 05:41:25 PDT
Message Hi Bill,

Yes I did delete the .sconsign.dblite file and ran the scons -c before trying to build my project.
One thing that I forgot to menthion is that I'm using scons version 0.98.5

-Yaniv
> Date: Mon, 14 Jul 2008 10:31:59 -0700
> From: bill at baddogconsulting dot com <bill@baddogconsu​lting.com>
> Content-Type: text/plain; charset=ISO-8859-1
> Subject: [scons-users] Fw: SCons build error
>
>
> Did you try removing your .sconsign file and running scons -c ?
> -Bill
>
> On 7/14/08, Yaniv Bigger <yanivbigger at yahoo dot com> wrote:
>>
>>
>> Hello,
>>
>> I've been working
>> with SCons for the last couple of month and I really like it. Yet in last
>> week I
>> encountered a strange behavior which resembles SCons bug
>> #2020 (http://scons.tigris.​org/issues/show_bug.​cgi?id=2020).
>>
>> I'm using SCons on
>> my Linux machine and when I try building on my Clear Case view my project
>> builds
>> just fine. The problem occurs when I copy my view directory to a different
>> location on the same machine and try to execute SCons. When I try to execute
>> SCons each library that require a specific include directory
>> ('/home/users/myUser​/autoBuild/buildScri​pt/tempBuildDir/prod​uct/common/include/u​tility')
>> report this error:
>> scons: *** [common/DataCache/sb​uild/boxfactory.o] TypeError `Tried to
>> lookup File
>> '/home/users/myUser/​autoBuild/buildScrip​t/tempBuildDir/produ​ct/common/include/ut​ility'
>> as a Dir.' trying to evaluate `${_concat(INCPREFIX, CPPPATH, INCSUFFIX,
>> __env__, RDirs, TARGET, SOURCE)}'
>> scons: building terminated because of errors.
>> While SCons
>> bug #2020 report such an error when using the argument --debug=explain I
>> execute
>> SCons with no arguments at all.
>>
>> The
>> SConstruct file at the product directory looks like
>> this:
>> import os
>>
>> OS_TYPE = os.environ['OSTYPE']
>> ROOT_DIR = os.environ['PRODUCT_ROOT']
>>
>> env = Environment(CC = 'g++',
>> CCFLAGS = '-O3 -Wall -fmessage-length=0 -MMD -MP',
>> CPPDEFINES = '__' + OS_TYPE + '__')
>>
>> Export('env')
>> ...
>> #Building the DATACACHE project
>> env.SConscript('comm​on/DataCache/SConscr​ipt',
>> variant_dir='common/​DataCache/sbuild', duplicate=0)
>> ...
>>
>> The Sconscript file at the procuct/common/DataCache/ directory looks like
>> this:
>> import os
>> Import('env')
>> ROOT_DIR = os.environ[PRODUCT_ROOT']
>> XERCES_ROOT = os.environ['XERCES_ROOT']
>> include = [ROOT_DIR + '/common/XML',
>> XERCES_ROOT + '/include',
>> ROOT_DIR + '/common/include',
>> ROOT_DIR + '/common/utility/util',
>> ROOT_DIR + '/common/include/utility']
>> env = env.Clone(CPPPATH = include)
>> dataCache = env.StaticLibrary('DataCache', Glob('*.cpp'))
>> env.Install(ROOT_DIR + '/bin', dataCache)
>>
>>
>> If I
>> merge the SConscript file and the SConstruct file to a new SConstruct file
>> at
>> the procuct/common/DataCache/ directory the DataCache library builds
>> succesfully on the new location.
>>
>>
>> Please advaise.
>>
>> Thanks in advance,
>> Yaniv
>>
>>
>>
Attachments

« Previous message in topic | 1 of 3 | Next message in topic »

Messages

Show all messages in topic

Re: [scons-users] Fw: SCons build error ybigger Yaniv Bigger 2008-07-15 05:41:25 PDT
     Re: [scons-users] Fw: SCons build error bdbaddog William Deegan 2008-07-15 11:23:07 PDT
         Re: [scons-users] Fw: SCons build error jtc J.T. Conklin 2008-07-15 14:46:35 PDT
Messages per page: