cpp_wrappers not updated for 3.0?

This forum is dedicated to feedback, discussions about ongoing or future developments, ideas and suggestions regarding the ChibiOS projects are welcome. This forum is NOT for support.
Post Reply
Legath
Posts: 21
Joined: Thu Oct 17, 2013 3:24 pm

cpp_wrappers not updated for 3.0?

Post by Legath »

i have the next error

Code: Select all

cc1plus: warning: command line option '-std=gnu99' is valid for C/ObjC but not for C++ [enabled by default]
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp:119:37: error: macro "chDbgAssert" passed 3 arguments, but takes just 2
                 "already referenced");
                                     ^
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp:133:37: error: macro "chDbgAssert" passed 3 arguments, but takes just 2
                 "already referenced");
                                     ^
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp:146:33: error: macro "chDbgAssert" passed 3 arguments, but takes just 2
                 "not referenced");
                                 ^
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp:161:33: error: macro "chDbgAssert" passed 3 arguments, but takes just 2
                 "not referenced");
                                 ^
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp:175:33: error: macro "chDbgAssert" passed 3 arguments, but takes just 2
                 "not referenced");
                                 ^
In file included from /home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp:24:0:
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.hpp:185:5: error: 'VirtualTimer' in namespace '::' does not name a type
     ::VirtualTimer timer_ref;
     ^
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.hpp:239:5: error: 'Thread' in namespace '::' does not name a type
     ::Thread *thread_ref;
     ^
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.hpp:250:28: error: expected ')' before '*' token
     ThreadReference(Thread *tp) : thread_ref(tp) {
                            ^
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.hpp:761:18: error: 'wa' has not been declared
     WORKING_AREA(wa, N);
                  ^
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.hpp:761:22: error: 'N' is not a type
     WORKING_AREA(wa, N);
                      ^
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.hpp:761:23: error: ISO C++ forbids declaration of 'WORKING_AREA' with no type [-fpermissive]
     WORKING_AREA(wa, N);
                       ^
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.hpp: In member function 'virtual chibios_rt::ThreadReference chibios_rt::BaseStaticThread<N>::start(tprio_t)':
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.hpp:787:7: error: 'thread_ref' was not declared in this scope
       thread_ref = chThdCreateStatic(wa, sizeof(wa), prio, _thd_start, this);
       ^
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.hpp:787:38: error: 'wa' was not declared in this scope
       thread_ref = chThdCreateStatic(wa, sizeof(wa), prio, _thd_start, this);
                                      ^
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp: In static member function 'static void chibios_rt::System::lockFromIsr()':
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp:48:22: error: 'chSysLockFromIsr' was not declared in this scope
     chSysLockFromIsr();
                      ^
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp: In static member function 'static void chibios_rt::System::unlockFromIsr()':
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp:53:24: error: 'chSysUnlockFromIsr' was not declared in this scope
     chSysUnlockFromIsr();
                        ^
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp: In static member function 'static systime_t chibios_rt::System::getTime()':
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp:58:22: error: 'chTimeNow' was not declared in this scope
     return chTimeNow();
                      ^
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp: In static member function 'static bool chibios_rt::System::isTimeWithin(systime_t, systime_t)':
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp:63:43: error: 'chTimeIsWithin' was not declared in this scope
     return (bool)chTimeIsWithin(start, end);
                                           ^
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp: In member function 'void chibios_rt::Timer::setI(systime_t, vtfunc_t, void*)':
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp:89:15: error: 'timer_ref' was not declared in this scope
     chVTSetI(&timer_ref, time, vtfunc, par);
               ^
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp: In member function 'void chibios_rt::Timer::resetI()':
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp:94:23: error: 'timer_ref' was not declared in this scope
     if (chVTIsArmedI(&timer_ref))
                       ^
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp: In member function 'bool chibios_rt::Timer::isArmedI()':
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp:100:32: error: 'timer_ref' was not declared in this scope
     return (bool)chVTIsArmedI(&timer_ref);
                                ^
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp: In member function 'virtual void chibios_rt::ThreadReference::stop()':
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp:109:53: error: 'chDbgPanic' was not declared in this scope
     chDbgPanic("invoked unimplemented method stop()");
                                                     ^
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp: In member function 'msg_t chibios_rt::ThreadReference::suspend()':
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp:117:5: error: 'chDbgAssert' was not declared in this scope
     chDbgAssert(thread_ref != NULL,
     ^
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp:121:5: error: 'thread_ref' was not declared in this scope
     thread_ref = chThdSelf();
     ^
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp:121:28: error: 'chThdSelf' was not declared in this scope
     thread_ref = chThdSelf();
                            ^
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp:122:19: error: 'THD_STATE_SUSPENDED' was not declared in this scope
     chSchGoSleepS(THD_STATE_SUSPENDED);
                   ^
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp: In member function 'msg_t chibios_rt::ThreadReference::suspendS()':
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp:131:5: error: 'chDbgAssert' was not declared in this scope
     chDbgAssert(thread_ref == NULL,
     ^
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp:135:5: error: 'thread_ref' was not declared in this scope
     thread_ref = chThdSelf();
     ^
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp:135:28: error: 'chThdSelf' was not declared in this scope
     thread_ref = chThdSelf();
                            ^
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp:136:19: error: 'THD_STATE_SUSPENDED' was not declared in this scope
     chSchGoSleepS(THD_STATE_SUSPENDED);
                   ^
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp: In member function 'void chibios_rt::ThreadReference::resume(msg_t)':
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp:144:5: error: expected ';' before 'chDbgAssert'
     chDbgAssert(thread_ref != NULL,
     ^
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp:148:9: error: 'thread_ref' was not declared in this scope
     if (thread_ref) {
         ^
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp:149:7: error: 'Thread' was not declared in this scope
       Thread *tp = thread_ref;
       ^
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp:149:15: error: 'tp' was not declared in this scope
       Thread *tp = thread_ref;
               ^
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp: In member function 'void chibios_rt::ThreadReference::resumeI(msg_t)':
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp:159:5: error: 'chDbgAssert' was not declared in this scope
     chDbgAssert(thread_ref != NULL,
     ^
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp:163:9: error: 'thread_ref' was not declared in this scope
     if (thread_ref) {
         ^
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp:164:7: error: 'Thread' was not declared in this scope
       Thread *tp = thread_ref;
       ^
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp:164:15: error: 'tp' was not declared in this scope
       Thread *tp = thread_ref;
               ^
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp: In member function 'void chibios_rt::ThreadReference::requestTerminate()':
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp:173:5: error: 'chDbgAssert' was not declared in this scope
     chDbgAssert(thread_ref != NULL,
     ^
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp:177:20: error: 'thread_ref' was not declared in this scope
     chThdTerminate(thread_ref);
                    ^
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp: In constructor 'chibios_rt::BaseThread::BaseThread()':
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp:257:50: error: no matching function for call to 'chibios_rt::ThreadReference::ThreadReference(NULL)'
   BaseThread::BaseThread() : ThreadReference(NULL) {
                                                  ^
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp:257:50: note: candidates are:
In file included from /home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp:24:0:
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.hpp:234:9: note: chibios_rt::ThreadReference::ThreadReference()
   class ThreadReference {
         ^
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.hpp:234:9: note:   candidate expects 0 arguments, 1 provided
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.hpp:234:9: note: chibios_rt::ThreadReference::ThreadReference(const chibios_rt::ThreadReference&)
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.hpp:234:9: note:   no known conversion for argument 1 from 'int' to 'const chibios_rt::ThreadReference&'
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp: In static member function 'static bool chibios_rt::BaseThread::shouldTerminate()':
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp:300:39: error: 'chThdShouldTerminate' was not declared in this scope
     return (bool)chThdShouldTerminate();
                                       ^
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp: In static member function 'static systime_t chibios_rt::System::getTime()':
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp:59:3: warning: control reaches end of non-void function [-Wreturn-type]
   }
   ^
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp: In static member function 'static bool chibios_rt::System::isTimeWithin(systime_t, systime_t)':
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp:64:3: warning: control reaches end of non-void function [-Wreturn-type]
   }
   ^
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp: In member function 'bool chibios_rt::Timer::isArmedI()':
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp:101:3: warning: control reaches end of non-void function [-Wreturn-type]
   }
   ^
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp: In member function 'msg_t chibios_rt::ThreadReference::suspendS()':
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp:138:3: warning: control reaches end of non-void function [-Wreturn-type]
   }
   ^
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp: In static member function 'static bool chibios_rt::BaseThread::shouldTerminate()':
/home/legath/rusefi/port3/chibios/os/various/cpp_wrappers/ch.cpp:301:3: warning: control reaches end of non-void function [-Wreturn-type]
   }
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: cpp_wrappers not updated for 3.0?

Post by Giovanni »

Post Reply