* [uml-devel] Problems in make @ 2004-11-22 18:59 Bodo Stroesser 2004-11-22 22:01 ` [uml-devel] " Blaisorblade 0 siblings, 1 reply; 5+ messages in thread From: Bodo Stroesser @ 2004-11-22 18:59 UTC (permalink / raw) To: BlaisorBlade; +Cc: Jeff Dike, user-mode-linux devel If arch/um/kernel/tt/include/mode-tt.h is changed, make doesn't compile tracer.c, the resulting kernel is inconsistent and crashes! Bodo ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel ^ permalink raw reply [flat|nested] 5+ messages in thread
* [uml-devel] Re: Problems in make 2004-11-22 18:59 [uml-devel] Problems in make Bodo Stroesser @ 2004-11-22 22:01 ` Blaisorblade 2004-11-23 15:19 ` Bodo Stroesser 0 siblings, 1 reply; 5+ messages in thread From: Blaisorblade @ 2004-11-22 22:01 UTC (permalink / raw) To: Bodo Stroesser; +Cc: Jeff Dike, user-mode-linux devel On Monday 22 November 2004 19:59, Bodo Stroesser wrote: > If arch/um/kernel/tt/include/mode-tt.h is changed, make doesn't compile > tracer.c, the resulting kernel is inconsistent and crashes! This is true for any dependency of files listed in USER_OBJS, which is broken. This problem is known and is pending fixing (and fixing requires designing a clean and Kbuild-supported replacement of USER_OBJS). I fixed it some time ago, around 2.6.1, but the fix was not integrated because it was too invasive. So: use always make clean ARCH=um before rebuilding (this even holds for dependencies on CONFIG_*). If that slows you down too much, then install ccache (I'm not explaining it here because there is nothing special on ccache with kernel compilation and because there is plenty of tutorials onto the net). Bye -- Paolo Giarrusso, aka Blaisorblade Linux registered user n. 292729 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel ^ permalink raw reply [flat|nested] 5+ messages in thread
* [uml-devel] Re: Problems in make 2004-11-22 22:01 ` [uml-devel] " Blaisorblade @ 2004-11-23 15:19 ` Bodo Stroesser 2004-11-23 18:04 ` Blaisorblade 0 siblings, 1 reply; 5+ messages in thread From: Bodo Stroesser @ 2004-11-23 15:19 UTC (permalink / raw) To: Blaisorblade; +Cc: Jeff Dike, user-mode-linux devel Blaisorblade wrote: > On Monday 22 November 2004 19:59, Bodo Stroesser wrote: > >>If arch/um/kernel/tt/include/mode-tt.h is changed, make doesn't compile >>tracer.c, the resulting kernel is inconsistent and crashes! > > > This is true for any dependency of files listed in USER_OBJS, which is broken. > This problem is known and is pending fixing (and fixing requires designing a > clean and Kbuild-supported replacement of USER_OBJS). I fixed it some time > ago, around 2.6.1, but the fix was not integrated because it was too > invasive. > > So: use always make clean ARCH=um before rebuilding (this even holds for > dependencies on CONFIG_*). > > If that slows you down too much, then install ccache (I'm not explaining it > here because there is nothing special on ccache with kernel compilation and > because there is plenty of tutorials onto the net). > > Bye As a quick solution to guarantee a correct result of the build, would it be possible to remove all USER_OBJS, when starting to build? Or, if this isn't enough, even remove all objects in the arch/um subtree? ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [uml-devel] Re: Problems in make 2004-11-23 15:19 ` Bodo Stroesser @ 2004-11-23 18:04 ` Blaisorblade 2004-11-24 12:06 ` Bodo Stroesser 0 siblings, 1 reply; 5+ messages in thread From: Blaisorblade @ 2004-11-23 18:04 UTC (permalink / raw) To: user-mode-linux-devel; +Cc: Bodo Stroesser, Jeff Dike On Tuesday 23 November 2004 16:19, Bodo Stroesser wrote: > Blaisorblade wrote: > > On Monday 22 November 2004 19:59, Bodo Stroesser wrote: > >>If arch/um/kernel/tt/include/mode-tt.h is changed, make doesn't compile > >>tracer.c, the resulting kernel is inconsistent and crashes! > > > > This is true for any dependency of files listed in USER_OBJS, which is > > broken. This problem is known and is pending fixing (and fixing requires > > designing a clean and Kbuild-supported replacement of USER_OBJS). I fixed > > it some time ago, around 2.6.1, but the fix was not integrated because it > > was too invasive. > > > > So: use always make clean ARCH=um before rebuilding (this even holds for > > dependencies on CONFIG_*). > > > > If that slows you down too much, then install ccache (I'm not explaining > > it here because there is nothing special on ccache with kernel > > compilation and because there is plenty of tutorials onto the net). > > Bye > As a quick solution to guarantee a correct result of the build, would it be > possible to remove all USER_OBJS, when starting to build? This is not a so bad idea, however if I interrupt a build with Ctrl-C and restart it without changes, it shouldn't clean all USER_OBJS. It is not also a one-liner (can be dumbly implemented easily, but some changes). What about adding a target like "rebuildclean" (a better name is welcome)? However, until I don't have the time to work on this, use the solution I suggested above. > Or, if this isn't > enough, even remove all objects in the arch/um subtree? We don't need to be this aggressive. -- Paolo Giarrusso, aka Blaisorblade Linux registered user n. 292729 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [uml-devel] Re: Problems in make 2004-11-23 18:04 ` Blaisorblade @ 2004-11-24 12:06 ` Bodo Stroesser 0 siblings, 0 replies; 5+ messages in thread From: Bodo Stroesser @ 2004-11-24 12:06 UTC (permalink / raw) To: Blaisorblade; +Cc: user-mode-linux-devel, Jeff Dike Blaisorblade wrote: > On Tuesday 23 November 2004 16:19, Bodo Stroesser wrote: > >>Blaisorblade wrote: >> >>>On Monday 22 November 2004 19:59, Bodo Stroesser wrote: >>> >>>>If arch/um/kernel/tt/include/mode-tt.h is changed, make doesn't compile >>>>tracer.c, the resulting kernel is inconsistent and crashes! >>> >>>This is true for any dependency of files listed in USER_OBJS, which is >>>broken. This problem is known and is pending fixing (and fixing requires >>>designing a clean and Kbuild-supported replacement of USER_OBJS). I fixed >>>it some time ago, around 2.6.1, but the fix was not integrated because it >>>was too invasive. >>> >>>So: use always make clean ARCH=um before rebuilding (this even holds for >>>dependencies on CONFIG_*). >>> >>>If that slows you down too much, then install ccache (I'm not explaining >>>it here because there is nothing special on ccache with kernel >>>compilation and because there is plenty of tutorials onto the net). > > >>>Bye > > >>As a quick solution to guarantee a correct result of the build, would it be >>possible to remove all USER_OBJS, when starting to build? > > This is not a so bad idea, however if I interrupt a build with Ctrl-C and > restart it without changes, it shouldn't clean all USER_OBJS. Is this really necessary? What's the time for a complete build and what's the time for building the USER_OBJS? Would not removing the USER_OBJS enable make to build consistent kernels in all cases without being as inefficient as make clean ARCH=um? Getting consistent kernels from make IMHO has the highest priority. Even when using ccache, after make clean the build takes some time. > > It is not also a one-liner (can be dumbly implemented easily, but some > changes). > > What about adding a target like "rebuildclean" (a better name is welcome)? > > However, until I don't have the time to work on this, use the solution I > suggested above. > > >>Or, if this isn't >>enough, even remove all objects in the arch/um subtree? > > > We don't need to be this aggressive. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-11-24 12:07 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2004-11-22 18:59 [uml-devel] Problems in make Bodo Stroesser 2004-11-22 22:01 ` [uml-devel] " Blaisorblade 2004-11-23 15:19 ` Bodo Stroesser 2004-11-23 18:04 ` Blaisorblade 2004-11-24 12:06 ` Bodo Stroesser
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox