[Xenomai-core] Strange results with ARM EABI, gcc 4.3.2

2009-07-18 Thread Richard Cochran
A certain xenomai project on ARM Linux of mine has been working fine
using gcc 3.4.5. I wanted to use a more recent compiler and the EABI,
so I used a default setting from crosstool-NG-1.4.1, which produces
gcc version 4.3.2.

However, I get the following result running the trivial-periodic
example program:

# ./trivial-periodic 
# cat /proc/xenomai/sched 
CPU  PIDPRI  PERIOD TIMEOUTTIMEBASE  STAT   NAME
  0  0   -1  0  0  masterR  ROOT
  0  850 99  10 79513195085358725 masterD  trivial

Looks like I will be waiting a long, long time for the timeout ;^)
Any ideas?

Thanks,
Richard


___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core


Re: [Xenomai-core] Strange results with ARM EABI, gcc 4.3.2

2009-07-18 Thread Gilles Chanteperdrix
Richard Cochran wrote:
 A certain xenomai project on ARM Linux of mine has been working fine
 using gcc 3.4.5. I wanted to use a more recent compiler and the EABI,
 so I used a default setting from crosstool-NG-1.4.1, which produces
 gcc version 4.3.2.
 
 However, I get the following result running the trivial-periodic
 example program:
 
 # ./trivial-periodic 
 # cat /proc/xenomai/sched 
 CPU  PIDPRI  PERIOD TIMEOUTTIMEBASE  STAT   NAME
   0  0   -1  0  0  masterR  ROOT
   0  850 99  10 79513195085358725 masterD  trivial
 
 Looks like I will be waiting a long, long time for the timeout ;^)
 Any ideas?

gcc 4.3 has a bug with Xenomai on arm. You should stay with gcc 4.2
(which also has a bug, but we know how to workaround it).

I think I will add a dynamic detection of this bug, print an error
message when it happens and exit.

-- 
Gilles.

___
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core