make test failed

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

make test failed

Mick -
After some heavy modifications just to get the paparazzi code
to compile on my non-debian machine, it finally compiled successfully.
The new problem is when I "make test", or "make ac1 (or ac2)".
I get the following errors.
Any suggestions? It appears a package may be missing.



-----------------------8<--------------------------------------------
make[2]: Entering directory `/home/project/paparazzi/sw/simulator'
gcc -Werror -O2 -I /usr/include/glib-2.0 -I /usr/lib/glib-2.0/include -DUBX
-DMOBILE_CAM -DAP -DDOWNLINK -DSITL -DINFRARED -DGPS -I
/home/project/paparazzi/var/Twin1/sim -I /home/project/paparazzi/var/Twin1  
-I /usr/include/rpc -c -o /home/project/paparazzi/var/Twin1/sim/sim_gps.o -I
/home/project/paparazzi/sw/simulator -I ../airborne -I ../airborne -I
../include -I /home/project/paparazzi/var/include -I /usr/lib/ocaml -I
/usr/include/rpc sim_gps.c
In file included from sim_gps.c:9:
/home/project/paparazzi/var/Twin1/flight_plan.h:1: error: syntax error
before ':' token
In file included from sim_gps.c:10:
../airborne/autopilot.h:91: error: syntax error before "auto_pitch"
../airborne/autopilot.h:91: warning: data definition has no type or storage
class
../airborne/autopilot.h:95: error: syntax error before "rc_event_1"
../airborne/autopilot.h:95: warning: data definition has no type or storage
class
../airborne/autopilot.h:99: error: syntax error before "launch"
../airborne/autopilot.h:99: warning: data definition has no type or storage
class
In file included from ../airborne/ppm.h:29,
                 from ../airborne/radio_control.h:6,
                 from ../airborne/autopilot.h:114,
                 from sim_gps.c:10:
/home/project/paparazzi/var/Twin1/radio.h:1: error: syntax error before ':'
token
In file included from ../airborne/radio_control.h:6,
                 from ../airborne/autopilot.h:114,
                 from sim_gps.c:10:
../airborne/ppm.h:33: error: syntax error before "ppm_valid"
../airborne/ppm.h:33: warning: data definition has no type or storage class
In file included from ../airborne/radio_control.h:7,
                 from ../airborne/autopilot.h:114,
                 from sim_gps.c:10:
/home/project/paparazzi/var/Twin1/radio.h:1: error: syntax error before ':'
token
In file included from ../airborne/autopilot.h:114,
                 from sim_gps.c:10:
../airborne/radio_control.h:19: error: syntax error before "rc_values"
../airborne/radio_control.h:19: warning: data definition has no type or
storage class
../airborne/radio_control.h:21: error: syntax error before "avg_rc_values"
../airborne/radio_control.h:21: warning: data definition has no type or
storage class
../airborne/radio_control.h:30: error: syntax error before
"radio_control_periodic_task"
../airborne/radio_control.h:46: error: syntax error before
"radio_control_ppm_event"
../airborne/radio_control.h: In function `radio_control_ppm_event':
../airborne/radio_control.h:50: error: `ppm_pulses' undeclared (first use in
this function)
../airborne/radio_control.h:50: error: (Each undeclared identifier is
reported only once
../airborne/radio_control.h:50: error: for each function it appears in.)
In file included from sim_gps.c:11:
../airborne/gps.h: At top level:
../airborne/gps.h:54: error: syntax error before "gps_pos_available"
../airborne/gps.h:54: warning: data definition has no type or storage class
In file included from ../airborne/ubx.h:56,
                 from ../airborne/gps.h:75,
                 from sim_gps.c:11:
/home/project/paparazzi/var/include/ubx_protocol.h:1: error: syntax error
before numeric constant
make[2]: *** [/home/project/paparazzi/var/Twin1/sim/sim_gps.o] Error 1
make[2]: Leaving directory `/home/project/paparazzi/sw/simulator'
make[1]: *** [sim_sitl] Error 2
make[1]: Leaving directory `/home/project/paparazzi'
make: *** [ac1] Error 2

----------------------->8----------------------------------------------




_______________________________________________
Paparazzi-devel mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/paparazzi-devel
Reply | Threaded
Open this post in threaded view
|

Re: make test failed

antoine.drouin
Hi Mick

I'm not sure what the error is - Could you send the file
/home/project/paparazzi/var/Twin1/flight_plan.h

the second error, ../airborne/autopilot.h:91: error: syntax error before
"auto_pitch" , and also the next  are caused by the bool_t type (extern
bool_t auto_pitch; )
This type is defined in sw/include/std.h and the corresponding -I ( -I
../include ) is there - also gcc doesn't complain about not finding std.h
This is strange
Maybe you could come to freenode #paparazzi so that we dedug that
interactively

Regards

Antoine

Mick - wrote:

> After some heavy modifications just to get the paparazzi code
> to compile on my non-debian machine, it finally compiled successfully.
> The new problem is when I "make test", or "make ac1 (or ac2)".
> I get the following errors.
> Any suggestions? It appears a package may be missing.
>
>
>
> -----------------------8<--------------------------------------------
> make[2]: Entering directory `/home/project/paparazzi/sw/simulator'
> gcc -Werror -O2 -I /usr/include/glib-2.0 -I /usr/lib/glib-2.0/include
> -DUBX -DMOBILE_CAM -DAP -DDOWNLINK -DSITL -DINFRARED -DGPS -I
> /home/project/paparazzi/var/Twin1/sim -I
> /home/project/paparazzi/var/Twin1  -I /usr/include/rpc -c -o
> /home/project/paparazzi/var/Twin1/sim/sim_gps.o -I
> /home/project/paparazzi/sw/simulator -I ../airborne -I ../airborne -I
> ../include -I /home/project/paparazzi/var/include -I /usr/lib/ocaml -I
> /usr/include/rpc sim_gps.c
> In file included from sim_gps.c:9:
> /home/project/paparazzi/var/Twin1/flight_plan.h:1: error: syntax error
> before ':' token
> In file included from sim_gps.c:10:
> ../airborne/autopilot.h:91: error: syntax error before "auto_pitch"
> ../airborne/autopilot.h:91: warning: data definition has no type or
> storage class
> ../airborne/autopilot.h:95: error: syntax error before "rc_event_1"
> ../airborne/autopilot.h:95: warning: data definition has no type or
> storage class
> ../airborne/autopilot.h:99: error: syntax error before "launch"
> ../airborne/autopilot.h:99: warning: data definition has no type or
> storage class
> In file included from ../airborne/ppm.h:29,
>                 from ../airborne/radio_control.h:6,
>                 from ../airborne/autopilot.h:114,
>                 from sim_gps.c:10:
> /home/project/paparazzi/var/Twin1/radio.h:1: error: syntax error
> before ':' token
> In file included from ../airborne/radio_control.h:6,
>                 from ../airborne/autopilot.h:114,
>                 from sim_gps.c:10:
> ../airborne/ppm.h:33: error: syntax error before "ppm_valid"
> ../airborne/ppm.h:33: warning: data definition has no type or storage
> class
> In file included from ../airborne/radio_control.h:7,
>                 from ../airborne/autopilot.h:114,
>                 from sim_gps.c:10:
> /home/project/paparazzi/var/Twin1/radio.h:1: error: syntax error
> before ':' token
> In file included from ../airborne/autopilot.h:114,
>                 from sim_gps.c:10:
> ../airborne/radio_control.h:19: error: syntax error before "rc_values"
> ../airborne/radio_control.h:19: warning: data definition has no type
> or storage class
> ../airborne/radio_control.h:21: error: syntax error before
> "avg_rc_values"
> ../airborne/radio_control.h:21: warning: data definition has no type
> or storage class
> ../airborne/radio_control.h:30: error: syntax error before
> "radio_control_periodic_task"
> ../airborne/radio_control.h:46: error: syntax error before
> "radio_control_ppm_event"
> ../airborne/radio_control.h: In function `radio_control_ppm_event':
> ../airborne/radio_control.h:50: error: `ppm_pulses' undeclared (first
> use in this function)
> ../airborne/radio_control.h:50: error: (Each undeclared identifier is
> reported only once
> ../airborne/radio_control.h:50: error: for each function it appears in.)
> In file included from sim_gps.c:11:
> ../airborne/gps.h: At top level:
> ../airborne/gps.h:54: error: syntax error before "gps_pos_available"
> ../airborne/gps.h:54: warning: data definition has no type or storage
> class
> In file included from ../airborne/ubx.h:56,
>                 from ../airborne/gps.h:75,
>                 from sim_gps.c:11:
> /home/project/paparazzi/var/include/ubx_protocol.h:1: error: syntax
> error before numeric constant
> make[2]: *** [/home/project/paparazzi/var/Twin1/sim/sim_gps.o] Error 1
> make[2]: Leaving directory `/home/project/paparazzi/sw/simulator'
> make[1]: *** [sim_sitl] Error 2
> make[1]: Leaving directory `/home/project/paparazzi'
> make: *** [ac1] Error 2
>
> ----------------------->8----------------------------------------------
>
>
>
>
> _______________________________________________
> Paparazzi-devel mailing list
> [hidden email]
> http://lists.nongnu.org/mailman/listinfo/paparazzi-devel




_______________________________________________
Paparazzi-devel mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/paparazzi-devel