|
From: | alonso |
Subject: | [Paparazzi-devel] Problem compiling |
Date: | Tue, 09 Jul 2013 04:17:05 -0600 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 |
Hello. I am trying to learn Paparazzi and have just installed it but
I am having some trouble. The initial make had some issuesOC input2ivy.ml I had to edit input2ivy.ml in order to remove calls to those funtions, then I managed to complete the make. Now when I run make AIRCRAFT=Microjet sim Q='' I get the output below. I read in some other message that the above command could be usefull in order to debug this problem but I don't really know what I am doing yet. I am using Mandriva Linux which I understand is not supported but perhaps this is not too complicated to fix? Thanks Alonso Acuña Paparazzi version v5.0.0_stable ----------------------------------------------------------------------- make -C sw/lib/ocaml make[1]: Entering directory `/usr/datos/prog/uav/paparazzi/sw/lib/ocaml' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/usr/datos/prog/uav/paparazzi/sw/lib/ocaml' make -C sw/simulator make[1]: Entering directory `/usr/datos/prog/uav/paparazzi/sw/simulator' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/usr/datos/prog/uav/paparazzi/sw/simulator' cd sw/airborne; make TARGET=sim ARCHI=sim ARCH=sim all make[1]: Entering directory `/usr/datos/prog/uav/paparazzi/sw/airborne' CC /usr/datos/prog/uav/paparazzi/var/Microjet/sim/./inter_mcu.o test -d /usr/datos/prog/uav/paparazzi/var/Microjet/sim/./ || mkdir -p /usr/datos/prog/uav/paparazzi/var/Microjet/sim/./ gcc -W -Wall -I/usr/datos/prog/uav/paparazzi/sw/include -I/usr/datos/prog/uav/paparazzi/sw/airborne -I/usr/datos/prog/uav/paparazzi/conf/autopilot -I/usr/datos/prog/uav/paparazzi/sw/airborne/arch/sim -I/usr/datos/prog/uav/paparazzi/var/include -I/usr/datos/prog/uav/paparazzi/var/Microjet -I /usr/lib/ocaml -DAGR_CLIMB -DAHRS_TYPE_H=\"subsystems/ahrs/ahrs_infrared.h\" -DAP -DBOARD_CONFIG=\"boards/pc_sim.h\" -DCTRL_TYPE_H=\"firmwares/fixedwing/guidance/guidance_v.h\" -DDC_SHUTTER_SERVO=COMMAND_SHUTTER -DDIGITAL_CAM -DDOWNLINK -DDOWNLINK_TRANSPORT=IvyTransport -DFBW -DFIRMWARE=FIXEDWING -DGPS_TYPE_H=\"subsystems/gps/gps_sim.h\" -DINS_TYPE_H=\"subsystems/ins/ins_alt_float.h\" -DINTER_MCU -DLOITER_TRIM -DNAV -DPERIODIC_FREQUENCY=60 -DPERIPHERALS_AUTO_INIT -DRADIO_CONTROL -DRADIO_CONTROL_TYPE_H=\"subsystems/radio_control/ppm.h\" -DRADIO_CONTROL_TYPE_PPM -DSENSOR_SYNC_SEND=1 -DSITL -DTELEMETRY_FREQUENCY=60 -DTRAFFIC_INFO -DUSE_AHRS -DUSE_GPS -DUSE_INFRARED -DUSE_INFRARED_TELEMETRY -DUSE_LED -DUSE_SYS_TIME -DWIND_INFO -I. -Iarch/sim/modules -Iboards/pc -Ifirmwares/fixedwing -Imodules -fPIC -O2 -g -std=gnu99 -c -o /usr/datos/prog/uav/paparazzi/var/Microjet/sim/./inter_mcu.o inter_mcu.c In file included from inter_mcu.h:43:0, from inter_mcu.c:23: /usr/datos/prog/uav/paparazzi/var/Microjet/generated/airframe.h:1:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token In file included from /usr/include/stdio.h:75:0, from /usr/datos/prog/uav/paparazzi/sw/airborne/arch/sim/led_hw.h:4, from /usr/datos/prog/uav/paparazzi/sw/airborne/led.h:34, from subsystems/radio_control.h:28, from inter_mcu.h:44, from inter_mcu.c:23: /usr/include/libio.h:332:3: error: unknown type name 'size_t' /usr/include/libio.h:336:67: error: 'size_t' undeclared here (not in a function) /usr/include/libio.h:364:62: error: expected declaration specifiers or '...' before 'size_t' /usr/include/libio.h:373:6: error: expected declaration specifiers or '...' before 'size_t' /usr/include/libio.h:495:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_IO_sgetn' In file included from /usr/datos/prog/uav/paparazzi/sw/airborne/arch/sim/led_hw.h:4:0, from /usr/datos/prog/uav/paparazzi/sw/airborne/led.h:34, from subsystems/radio_control.h:28, from inter_mcu.h:44, from inter_mcu.c:23: /usr/include/stdio.h:316:35: error: expected declaration specifiers or '...' before 'size_t' /usr/include/stdio.h:322:47: error: expected declaration specifiers or '...' before 'size_t' /usr/include/stdio.h:334:20: error: expected declaration specifiers or '...' before 'size_t' /usr/include/stdio.h:341:10: error: expected declaration specifiers or '...' before 'size_t' /usr/include/stdio.h:383:44: error: expected declaration specifiers or '...' before 'size_t' /usr/include/stdio.h:387:45: error: expected declaration specifiers or '...' before 'size_t' /usr/include/stdio.h:659:11: error: expected declaration specifiers or '...' before 'size_t' /usr/include/stdio.h:662:9: error: expected declaration specifiers or '...' before 'size_t' /usr/include/stdio.h:672:8: error: expected declaration specifiers or '...' before 'size_t' /usr/include/stdio.h:702:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fread' /usr/include/stdio.h:708:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fwrite' /usr/include/stdio.h:730:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fread_unlocked' /usr/include/stdio.h:732:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fwrite_unlocked' In file included from /usr/lib/ocaml/caml/misc.h:29:0, from /usr/lib/ocaml/caml/mlvalues.h:23, from /usr/datos/prog/uav/paparazzi/sw/airborne/arch/sim/led_hw.h:5, from /usr/datos/prog/uav/paparazzi/sw/airborne/led.h:34, from subsystems/radio_control.h:28, from inter_mcu.h:44, from inter_mcu.c:23: /usr/include/stdlib.h:140:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__ctype_get_mb_cur_max' In file included from /usr/lib/ocaml/caml/misc.h:29:0, from /usr/lib/ocaml/caml/mlvalues.h:23, from /usr/datos/prog/uav/paparazzi/sw/airborne/arch/sim/led_hw.h:5, from /usr/datos/prog/uav/paparazzi/sw/airborne/led.h:34, from subsystems/radio_control.h:28, from inter_mcu.h:44, from inter_mcu.c:23: /usr/include/stdlib.h:337:4: error: expected declaration specifiers or '...' before 'size_t' /usr/include/stdlib.h:367:4: error: expected declaration specifiers or '...' before 'size_t' /usr/include/stdlib.h:471:22: error: expected declaration specifiers or '...' before 'size_t' /usr/include/stdlib.h:473:22: error: expected declaration specifiers or '...' before 'size_t' /usr/include/stdlib.h:473:38: error: expected declaration specifiers or '...' before 'size_t' /usr/include/stdlib.h:485:36: error: expected declaration specifiers or '...' before 'size_t' In file included from /usr/include/stdlib.h:497:0, from /usr/lib/ocaml/caml/misc.h:29, from /usr/lib/ocaml/caml/mlvalues.h:23, from /usr/datos/prog/uav/paparazzi/sw/airborne/arch/sim/led_hw.h:5, from /usr/datos/prog/uav/paparazzi/sw/airborne/led.h:34, from subsystems/radio_control.h:28, from inter_mcu.h:44, from inter_mcu.c:23: /usr/include/alloca.h:33:22: error: expected declaration specifiers or '...' before 'size_t' In file included from /usr/lib/ocaml/caml/misc.h:29:0, from /usr/lib/ocaml/caml/mlvalues.h:23, from /usr/datos/prog/uav/paparazzi/sw/airborne/arch/sim/led_hw.h:5, from /usr/datos/prog/uav/paparazzi/sw/airborne/led.h:34, from subsystems/radio_control.h:28, from inter_mcu.h:44, from inter_mcu.c:23: /usr/include/stdlib.h:503:22: error: expected declaration specifiers or '...' before 'size_t' /usr/include/stdlib.h:508:45: error: expected declaration specifiers or '...' before 'size_t' /usr/include/stdlib.h:508:65: error: expected declaration specifiers or '...' before 'size_t' /usr/include/stdlib.h:756:9: error: expected declaration specifiers or '...' before 'size_t' /usr/include/stdlib.h:756:25: error: expected declaration specifiers or '...' before 'size_t' /usr/include/stdlib.h:761:34: error: expected declaration specifiers or '...' before 'size_t' /usr/include/stdlib.h:761:50: error: expected declaration specifiers or '...' before 'size_t' /usr/include/stdlib.h:840:6: error: expected declaration specifiers or '...' before 'size_t' /usr/include/stdlib.h:843:6: error: expected declaration specifiers or '...' before 'size_t' /usr/include/stdlib.h:847:31: error: expected declaration specifiers or '...' before 'size_t' /usr/include/stdlib.h:851:31: error: expected declaration specifiers or '...' before 'size_t' /usr/include/stdlib.h:860:38: error: expected declaration specifiers or '...' before 'size_t' /usr/include/stdlib.h:864:36: error: expected declaration specifiers or '...' before 'size_t' /usr/include/stdlib.h:871:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'mbstowcs' /usr/include/stdlib.h:874:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'wcstombs' In file included from /usr/lib/ocaml/caml/mlvalues.h:23:0, from /usr/datos/prog/uav/paparazzi/sw/airborne/arch/sim/led_hw.h:5, from /usr/datos/prog/uav/paparazzi/sw/airborne/led.h:34, from subsystems/radio_control.h:28, from inter_mcu.h:44, from inter_mcu.c:23: /usr/lib/ocaml/caml/misc.h:33:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'asize_t' In file included from /usr/datos/prog/uav/paparazzi/sw/airborne/arch/sim/led_hw.h:6:0, from /usr/datos/prog/uav/paparazzi/sw/airborne/led.h:34, from subsystems/radio_control.h:28, from inter_mcu.h:44, from inter_mcu.c:23: /usr/lib/ocaml/caml/memory.h:35:1: warning: parameter names (without types) in function declaration [enabled by default] /usr/lib/ocaml/caml/memory.h:37:45: error: unknown type name 'asize_t' /usr/lib/ocaml/caml/memory.h:38:28: error: unknown type name 'asize_t' In file included from subsystems/radio_control.h:29:0, from inter_mcu.h:44, from inter_mcu.c:23: /usr/datos/prog/uav/paparazzi/var/Microjet/generated/airframe.h:1:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token In file included from /usr/datos/prog/uav/paparazzi/sw/airborne/subsystems/radio_control/ppm.h:38:0, from subsystems/radio_control.h:33, from inter_mcu.h:44, from inter_mcu.c:23: /usr/datos/prog/uav/paparazzi/var/Microjet/generated/radio.h:1:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token make[1]: *** [/usr/datos/prog/uav/paparazzi/var/Microjet/sim/./inter_mcu.o] Error 1 make[1]: Leaving directory `/usr/datos/prog/uav/paparazzi/sw/airborne' make: *** [sim] Error 2 |
[Prev in Thread] | Current Thread | [Next in Thread] |