Re: Scons Implicity Dependency not found issue
Hua Yanghao <[email protected]>
| Newsgroups | gmane.comp.programming.tools.scons.user |
|---|---|
| Message-ID | <CAPTzt1AL2pq4wd9XU9GeCeMZT-UKZaNv+uvEua4E172G5q0vZA@mail.gmail.com> |
it is the correct path and io.h is actually duplicated from firmware/include/io.h On Tue 16. Oct 2018 at 17:34, Bill Deegan <[email protected]> wrote: > Is `build/configs/pangu/usw/firmware/arch/pangu/include/io.h' the correct > path to io.h? > Are you using duplicate=0, or not specifying in you SConscript()? > Are you using chdir somewhere in your SCons logic? > > Also, please paste the compile line for the compile which should find io.h > when it's passing? > > On Tue, Oct 16, 2018 at 11:14 AM Hua Yanghao <[email protected]> wrote: > >> no it is static file. >> >> On Tue 16. Oct 2018 at 17:08, Bill Deegan <[email protected]> >> wrote: >> >>> Is io.h a generated file? >>> Paste the compile line for the compile which should find io.h when it's >>> passing? >>> >>> >>> On Tue, Oct 16, 2018 at 8:54 AM Hua Yanghao <[email protected]> >>> wrote: >>> >>>> Hi Bill, >>>> Yes io.h is on my CPPPATH. And I am using variant_dir="build" for >>>> SConscript files. So normally all used header files will end up in the >>>> build folder too. But occasionally scons seems missed it. I am >>>> struggling to reproduce it ... >>>> >>>> BR, Yanghao >>>> On Tue, Oct 16, 2018 at 2:51 PM Bill Deegan <[email protected]> >>>> wrote: >>>> > >>>> > Yes. Headers are scanned recursively. >>>> > Implicit cache should only be enable by command line flag or >>>> SetOption() >>>> > >>>> > Where is io.h located? is it in your CPPPATH? >>>> > >>>> > On Tue, Oct 16, 2018 at 6:43 AM Hua Yanghao <[email protected]> >>>> wrote: >>>> >> >>>> >> By the way, is scons scanner scans C file headers recursively? >>>> Thanks. >>>> >> On Tue, Oct 16, 2018 at 12:40 PM Hua Yanghao <[email protected]> >>>> wrote: >>>> >> > >>>> >> > scons: *** [build/configs/pangu/usw/firmware/arch/pangu/test.os] >>>> >> > Implicit dependency >>>> >> > `build/configs/pangu/usw/firmware/arch/pangu/include/io.h' not >>>> found, >>>> >> > needed by target >>>> `build/configs/pangu/usw/firmware/arch/pangu/test.os' >>>> >> > >>>> >> > I recently run into this odd problem, and it is very difficult to >>>> >> > reproduce. I did not explicitly enable the "implicit_cache" option >>>> >> > anywhere in my code. If I simply remove the build folder and then >>>> >> > re-build everything works as normal. the problem happens when >>>> there is >>>> >> > a old build, and then I pulled in some new code where this "test.c" >>>> >> > has included an additional header io.h and scons seems not >>>> re-scanning >>>> >> > the file by default. >>>> >> > >>>> >> > I am using scons 3.0.1, is the implict_cache by default enabled >>>> there >>>> >> > and I have to disable it manually? >>>> >> > >>>> >> > Thanks, >>>> >> > Yanghao Hua >>>> >> _______________________________________________ >>>> >> Scons-users mailing list >>>> >> [email protected] >>>> >> https://pairlist4.pair.net/mailman/listinfo/scons-users >>>> > >>>> > _______________________________________________ >>>> > Scons-users mailing list >>>> > [email protected] >>>> > https://pairlist4.pair.net/mailman/listinfo/scons-users >>>> _______________________________________________ >>>> Scons-users mailing list >>>> [email protected] >>>> https://pairlist4.pair.net/mailman/listinfo/scons-users >>>> >>> _______________________________________________ >>> Scons-users mailing list >>> [email protected] >>> https://pairlist4.pair.net/mailman/listinfo/scons-users >>> >> _______________________________________________ >> Scons-users mailing list >> [email protected] >> https://pairlist4.pair.net/mailman/listinfo/scons-users >> > _______________________________________________ > Scons-users mailing list > [email protected] > https://pairlist4.pair.net/mailman/listinfo/scons-users > _______________________________________________ Scons-users mailing list [email protected] https://pairlist4.pair.net/mailman/listinfo/scons-users