Buildbot: Failure building Xenomai kernel for TQM860
Hi
I get an error building the TQM860 image (2.4 based kernel). Last successful build was with revision 1920 (didn't build between).
Log is available under
http://ngiger.dyndns.org:8011/tqm_f/builds/30/step-mk_kernel/1
Best regards
Signature · 1 line
Niklaus Giger
Hi Niklaus,
I just compiled my Linux 2.4 kernel for TQM860L with the latest revision of Xenomai and I cannot reproduce your problem. In you linker path there are no Xenomai objects. How does it come? Do you use --arch=ppc with prepare_kernel (--arch=powerpc is not valid any more for the ppc tree).
Wolfgang.
Quoted 7 lines · Niklaus Giger
Hi
I get an error building the TQM860 image (2.4 based kernel). Last successful build was with revision 1920 (didn't build between). Log is available under http://ngiger.dyndns.org:8011/tqm_f/builds/30/step-mk_kernel/1
Best regards
Quoted 7 lines · Wolfgang Grandegger
Hi Niklaus,
I just compiled my Linux 2.4 kernel for TQM860L with the latest revision of Xenomai and I cannot reproduce your problem. In you linker path there are no Xenomai objects. How does it come? Do you use --arch=ppc with
prepare_kernel(--arch=powerpc is not valid any more for the ppc tree).
The problem pops up with CONFIG_XENO_OPT_SCALABLE_SCHED.
The definition of xnlogerr is not visible to queue.h, namely to the inline function getmlq. Here is possible solution at XENO_ASSERT level.
Jan
nucleus/assert.h +1 -1
@@ -27,7 +27,7 @@#define XENO_ASSERT (subsystem,cond,action) do { \ if (unlikely(CONFIG_XENO_OPT_DEBUG_##subsystem > 0 && !(cond))) { \ xnarch_trace_panic_freeze(); \ - xnlogerr("assertion failed at %s:%d (%s)\n", __FILE__, __LINE__, (#cond)); \ + xnarch_logerr("assertion failed at %s:%d (%s)\n", __FILE__, __LINE__, (#cond)); \ xnarch_trace_panic_dump(); \ action; \ } \
Am Freitag, 8. Dezember 2006 13:43 schrieb Jan Kiszka:
Quoted 8 lines
Quoted 6 lines · Wolfgang Grandegger
Hi Niklaus,
I just compiled my Linux 2.4 kernel for TQM860L with the latest revision of Xenomai and I cannot reproduce your problem. In you linker path there are no Xenomai objects. How does it come? Do you use --arch=ppc with
prepare_kernel(--arch=powerpc is not valid any more for the ppc tree).
Quoted 6 lines
The problem pops up with
CONFIG_XENO_OPT_SCALABLE_SCHED.The definition of xnlogerr is not visible to
queue.h, namely to the inline function getmlq. Here is possible solution atXENO_ASSERTlevel.Jan
Thanks. I applied the patch and the TQM860L compiled cleanly.
Best regards
Signature · 1 line
Niklaus Giger
Am Freitag, 8. Dezember 2006 13:43 schrieb Jan Kiszka:
Quoted 8 lines
Quoted 6 lines · Wolfgang Grandegger
Hi Niklaus,
I just compiled my Linux 2.4 kernel for TQM860L with the latest revision of Xenomai and I cannot reproduce your problem. In you linker path there are no Xenomai objects. How does it come? Do you use --arch=ppc with
prepare_kernel(--arch=powerpc is not valid any more for the ppc tree).
Quoted 6 lines
The problem pops up with
CONFIG_XENO_OPT_SCALABLE_SCHED.The definition of xnlogerr is not visible to
queue.h, namely to the inline function getmlq. Here is possible solution atXENO_ASSERTlevel.Jan
Why didn't you apply your patch? It solved my problem and I don't see any risk why you shouldn't apply it and didn't see any objections on this mailing list.
Best regards
Signature · 1 line
Niklaus Giger
Quoted 11 lines · Niklaus Giger
Am Freitag, 8. Dezember 2006 13:43 schrieb Jan Kiszka:
Quoted 10 lines
Quoted 6 lines · Wolfgang Grandegger
Hi Niklaus,
I just compiled my Linux 2.4 kernel for TQM860L with the latest revision of Xenomai and I cannot reproduce your problem. In you linker path there are no Xenomai objects. How does it come? Do you use --arch=ppc with
prepare_kernel(--arch=powerpc is not valid any more for the ppc tree).The problem pops up with
CONFIG_XENO_OPT_SCALABLE_SCHED.
Quoted 7 lines
Quoted 4 lines
The definition of xnlogerr is not visible to
queue.h, namely to the inline function getmlq. Here is possible solution atXENO_ASSERTlevel.Jan
Why didn't you apply your patch? It solved my problem and I don't see any risk why you shouldn't apply it and didn't see any objections on this mailing list.
A more general change also fixing this issue has been committed to the trunk.
Quoted 3 lines
Best regards
Signature · 1 line
Philippe.
Am Freitag, 8. Dezember 2006 13:40 schrieb Wolfgang Grandegger:
Quoted 6 lines
Hi Niklaus,
I just compiled my Linux 2.4 kernel for TQM860L with the latest revision of Xenomai and I cannot reproduce your problem. In you linker path there are no Xenomai objects. How does it come? Do you use --arch=ppc with
prepare_kernel(--arch=powerpc is not valid any more for the ppc tree).
As seen in http://ngiger.dyndns.org:8011/tqm_f/builds/30/step-prep_bb/0
Exec in /var/buildbot/slave/tqm_f/xenomai:scripts/prepare-kernel.sh --arch=ppc --adeos=ksrc/arch/powerpc/patches/adeos-ipipe-2.4.25-*.patch --linux=/var/buildbot/slave/tqm_f/linux Then in http://ngiger.dyndns.org:8011/tqm_f/builds/30/step-cfg_kernel/0/var/buildbot/scripts/configure.sh /var/buildbot/configs/TQM860L_defconfig
CROSS_COMPILE=powerpc-860-linux-gnu- ARCH=ppc
and finally the build with
make --jobs=4 uImage modules
The http logs also show all environment variables (e.g. CROSS_COMPILE, PATH).
You can navigate between the different builds and buildsteps on
http://ngiger.dyndns.org:8011/. I tried to make all steps transparent to the observer, to enable them to verify themselves all the build step. If you are unable to reach this site please tell me so. I updated my apache2 server and since this time the proxy/reverse proxy form
http://ngiger.dyndns.org/buildbot to http://ngiger.dyndns.org:8011/ does not work anymore (but that is another problem I am investigating).
I did not change my Buildbot master setup since December 4. The prepare_slave.rb was updated on December 3
I updated today the TQM860L_defconfig to enable more CAN drivers etc, but that didn't change the error.
Build 28 (revision 1920) completed without any problem on December 6, and the build on December 7 (revision 1930). All these build are full build, meaning that all the build directories get removed before starting the prepare_kernel.sh
Did you also clean rebuild?
Is there somewhere a missing include?
I see that include/xenomai/nucleus/pod.h has #define xnlogerr(fmt,args...) xnarch_logerr(fmt , ##args But grep finds xnlogerr in the following object files kernel/xenomai/nucleus/xeno_nucleus.o. kernel/xenomai/nucleus/built-in.o.
Quoted 11 lines
Wolfgang.
Quoted 8 lines · Niklaus Giger
Hi
I get an error building the TQM860 image (2.4 based kernel). Last successful build was with revision 1920 (didn't build between). Log is available under
http://ngiger.dyndns.org:8011/tqm_f/builds/30/step-mk_kernel/1Best regards
Signature · 1 line
Niklaus Giger