[Scons-dev] [Scons-users] Dependency cycles. 2.4.1 -> 2.5.1

William Blevins wblevins001 at gmail.com
Sat Jan 7 14:37:14 EST 2017


Bill,

And perhaps I should move this to another thread since I am somewhat
deviating.

SConstruct

> env = Environment(CPPPATH=".")
>
> env.Program('main', 'main.c')
>

main.c

> #include <B.h>
>
> int main() {
>     return 0;
> }
>

A.h

> #include <B.h>
>

B.h

> #include <A.h>


Tree

> +-.
>
  +-A.h
>   +-B.h
>   +-SConstruct
>   +-main
>   | +-main.o
>   | | +-main.c
>   | | +-B.h
>   | | +-A.h
>   | | +-/usr/bin/gcc
>   | +-/usr/bin/gcc
>   +-main.c
>   +-main.o
>     +-main.c
>     +-B.h
>     +-A.h
>     +-/usr/bin/gcc
>

Thoughts?
William

On Sat, Jan 7, 2017 at 11:36 AM, Bill Deegan <bill at baddogconsulting.com>
wrote:

> What's your dependency tree look like?
>
> On Fri, Jan 6, 2017 at 10:44 PM, William Blevins <wblevins001 at gmail.com>
> wrote:
>
>> I haven't but I know that the code for this is in Taskmaster. Jobs call
>> Taskmaster.cleanup which calls the check for cycle logic.
>>
>> I am currently using Debian test build, and I am seeing odd behavior in
>> SCons not finding cycles even when they should be obvious. At first I
>> thought it maybe have been an issue with 2.5.0 as released via apt, but I
>> tried running against my local repo with 2.4 and 2.3 with the same results.
>> If I have a header include itself or two headers include each other, SCons
>> is happy as a lark. GCC not so much...
>>
>> Or is this expected?
>>
>> V/R,
>> William
>>
>> On Fri, Jan 6, 2017 at 2:56 PM, Tom Tanner <trtanner at btinternet.com>
>> wrote:
>>
>>> On an aside, the 'no cycle found for node' in these reports is
>>> exceedingly annoying and has I think been around for more than a while. Has
>>> anyone had any success in finding what causes it?
>>>
>>>
>>> On 5/1/17 20:28, Pierre-Luc Boily wrote:
>>>
>>>> Hello,
>>>>
>>>> I am trying to migrate from 2.4.1 to 2.5.1 and I stumbled on new error
>>>> messages that were not there before.  I already found the reason why :
>>>> http://scons-users.scons.narkive.com/FNiXcOKz/found-dependency-cycle-s
>>>>
>>>> But I need a clue on which file is problematic regarding the error
>>>> message
>>>> below.  And I am worrying too that I won't be able to resolve this,
>>>> because
>>>> ccpp_file.h are files generated automatically from the opensplice
>>>> 3rdParty
>>>> we have :(
>>>>
>>>> scons: *** Found dependency cycle(s):
>>>>    LINK\include\adacel\speech\ccpp_TtsNotification.h ->
>>>> LINK\include\adacel\speech\ccpp_ContextData.h ->
>>>> LINK\include\adacel\speech\ccpp_TtsNotification.h
>>>>    Internal Error: no cycle found for node
>>>> LINK\include\adacel\speech\RadioParametersDef.h (<SCons.Node.FS.File
>>>> object
>>>> at 0x04DCF030>) in state pending
>>>>    Internal Error: no cycle found for node
>>>> build\debug\sr\speechGenerator\src\core\win32\SpeechGenerator.exe
>>>> (<SCons.Node.FS.File object at 0x05375168>) in state pending
>>>>    Internal Error: no cycle found for node
>>>> build\debug\sr\speech\Recognizer\Verbyx\win32\VerbyxRecognizer.lib
>>>> (<SCons.Node.FS.File object at 0x04C9A648>) in state pending
>>>>    Internal Error: no cycle found for node
>>>> build\debug\sr\speech\Recognizer\Nuance\win32\NuanceSpeechCo
>>>> ntroller.obj
>>>> (<SCons.Node.FS.File object at 0x04F8E168>) in state pending
>>>>    Internal Error: no cycle found for node
>>>> build\debug\sr\speech\Recognizer\Verbyx\win32\SisrInterpreta
>>>> tionParser.obj
>>>> (<SCons.Node.FS.File object at 0x04F9F8B8>) in state pending
>>>>    Internal Error: no cycle found for node
>>>> LINK\include\adacel\speech\GenericTTSRequest.h (<SCons.Node.FS.File
>>>> object
>>>> at 0x04DAFED0>) in state pending
>>>>    Internal Error: no cycle found for node
>>>> build\debug\sr\speech\batchrec\app\win32\BatchrecRunner.obj
>>>> (<SCons.Node.FS.File object at 0x04C9AC60>) in state pending
>>>>    Internal Error: no cycle found for node
>>>> build\debug\sr\speech\Recognizer\Verbyx\win32\SisrErrorHandler.obj
>>>> (<SCons.Node.FS.File object at 0x04F9F780>) in state pending
>>>>    Internal Error: no cycle found for node
>>>> build\debug\sr\speech\Recognizer\Verbyx\win32\VerbyxRecognizer.dll
>>>> (<SCons.Node.FS.File object at 0x04FAD030>) in state pending
>>>>    Internal Error: no cycle found for node
>>>> build\debug\sr\speechGenerator\src\core\win32\libsr_speechGe
>>>> nerator_src_core-debug.lib
>>>> (<SCons.Node.FS.File object at 0x05355168>) in state pending
>>>>    Internal Error: no cycle found for node
>>>> build\debug\sr\speech\Recognizer\Nuance\win32\AsrResultNuanc
>>>> eBuilder.obj
>>>> (<SCons.Node.FS.File object at 0x04F54D98>) in state pending
>>>>    Internal Error: no cycle found for node
>>>> build\debug\sr\speech\Recognizer\Nuance\win32\NuanceRecognizer.lib
>>>> (<SCons.Node.FS.File object at 0x04C9A3D8>) in state pending
>>>>
>>>> thx
>>>>
>>>>
>>>>
>>>> --
>>>> View this message in context: http://scons.1086193.n5.nabble
>>>> .com/Dependency-cycles-2-4-1-2-5-1-tp40926.html
>>>> Sent from the Users mailing list archive at Nabble.com.
>>>> _______________________________________________
>>>> Scons-users mailing list
>>>> Scons-users at scons.org
>>>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>>>
>>>
>>>
>>> _______________________________________________
>>> Scons-users mailing list
>>> Scons-users at scons.org
>>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>>
>>
>>
>> _______________________________________________
>> Scons-users mailing list
>> Scons-users at scons.org
>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>
>>
>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist2.pair.net/pipermail/scons-dev/attachments/20170107/11f9f242/attachment.html>


More information about the Scons-dev mailing list