epics-motor / motorAutomation1

EPICS motor drivers for Aerotech Automation1 controllers
Other
2 stars 1 forks source link

some errors of installed driver #31

Closed PeiyuQuan closed 2 months ago

PeiyuQuan commented 10 months ago

Hello Everyone

There are some errors when i installed Automation1 EPICS driver. Could you tell me how to cause them and how to fix them? Thank you. Base version is 7.0.7 Ubuntu version is 22.04.3 LTS gcc version is 11.4.0 glibc version is 2.35

Common is too long, I only pasted part of results Thank you Peiyu Quan

make -C ./configure install make[1]: Entering directory '/home/quan/epics/support/motor/modules/motorAutomation1/configure' make -C O.linux-x86_64 -f ../Makefile TOP=../.. \ T_A=linux-x86_64 install make[2]: Entering directory '/home/quan/epics/support/motor/modules/motorAutomation1/configure/O.linux-x86_64' perl -CSD /home/quan/epics/base/bin/linux-x86_64/convertRelease.pl checkRelease make[2]: Leaving directory '/home/quan/epics/support/motor/modules/motorAutomation1/configure/O.linux-x86_64' make[1]: Leaving directory '/home/quan/epics/support/motor/modules/motorAutomation1/configure' make -C ./automation1Sup install make[1]: Entering directory '/home/quan/epics/support/motor/modules/motorAutomation1/automation1Sup' make -C O.linux-x86_64 -f ../Makefile TOP=..//.. \ T_A=linux-x86_64 install make[2]: Entering directory '/home/quan/epics/support/motor/modules/motorAutomation1/automation1Sup/O.linux-x86_64' Installing libautomation1c.so Installing libautomation1compiler.so make[2]: Leaving directory '/home/quan/epics/support/motor/modules/motorAutomation1/automation1Sup/O.linux-x86_64' make[1]: Leaving directory '/home/quan/epics/support/motor/modules/motorAutomation1/automation1Sup' make -C ./automation1App install make[1]: Entering directory '/home/quan/epics/support/motor/modules/motorAutomation1/automation1App' make -C ./src install make[2]: Entering directory '/home/quan/epics/support/motor/modules/motorAutomation1/automation1App/src' perl -CSD /home/quan/epics/base/bin/linux-x86_64/makeMakefile.pl O.linux-x86_64 ../../.. mkdir -p O.Common make -C O.linux-x86_64 -f ../Makefile TOP=../../.. \ T_A=linux-x86_64 install make[3]: Entering directory '/home/quan/epics/support/motor/modules/motorAutomation1/automation1App/src/O.linux-x86_64' /usr/bin/g++ -D_GNU_SOURCE -D_DEFAULT_SOURCE -D_X8664 -DUNIX -Dlinux -O3 -g -Wall -DDEBUG -mtune=generic -m64 -fPIC -I. -I../O.Common -I. -I. -I.. -I/home/quan/epics/support/motor/include/compiler/gcc -I/home/quan/epics/support/motor/include/os/Linux -I/home/quan/epics/support/motor/include -I/home/quan/epics/support/motor/include -I/home/quan/epics/support/asyn/include -I/home/quan/epics/support/seq-2-2-9/include -I/home/quan/epics/support/busy/include -I/home/quan/epics/support/ipac/include -I/home/quan/epics/support/lua/include -I/home/quan/epics/support/modbus/include -I/home/quan/epics/base/include/compiler/gcc -I/home/quan/epics/base/include/os/Linux -I/home/quan/epics/base/include -MM -MF Automation1MotorController.d ../Automation1MotorController.cpp /usr/bin/g++ -D_GNU_SOURCE -D_DEFAULT_SOURCE -D_X8664 -DUNIX -Dlinux -O3 -g -Wall -DDEBUG -mtune=generic -m64 -fPIC -I. -I../O.Common -I. -I. -I.. -I/home/quan/epics/support/motor/include/compiler/gcc -I/home/quan/epics/support/motor/include/os/Linux -I/home/quan/epics/support/motor/include -I/home/quan/epics/support/motor/include -I/home/quan/epics/support/asyn/include -I/home/quan/epics/support/seq-2-2-9/include -I/home/quan/epics/support/busy/include -I/home/quan/epics/support/ipac/include -I/home/quan/epics/support/lua/include -I/home/quan/epics/support/modbus/include -I/home/quan/epics/base/include/compiler/gcc -I/home/quan/epics/base/include/os/Linux -I/home/quan/epics/base/include -MM -MF Automation1MotorAxis.d ../Automation1MotorAxis.cpp /usr/bin/g++ -D_GNU_SOURCE -D_DEFAULT_SOURCE -D_X8664 -DUNIX -Dlinux -O3 -g -Wall -DDEBUG -mtune=generic -m64 -fPIC -I. -I../O.Common -I. -I. -I.. -I/home/quan/epics/support/motor/include/compiler/gcc -I/home/quan/epics/support/motor/include/os/Linux -I/home/quan/epics/support/motor/include -I/home/quan/epics/support/motor/include -I/home/quan/epics/support/asyn/include -I/home/quan/epics/support/seq-2-2-9/include -I/home/quan/epics/support/busy/include -I/home/quan/epics/support/ipac/include -I/home/quan/epics/support/lua/include -I/home/quan/epics/support/modbus/include -I/home/quan/epics/base/include/compiler/gcc -I/home/quan/epics/base/include/os/Linux -I/home/quan/epics/base/include -c ../Automation1MotorAxis.cpp In file included from ../Automation1MotorAxis.cpp:21: ../Automation1MotorAxis.h:12:1: error: stray ‘##’ in program 12 | ##include "Include/Automation1.h" | ^~ In file included from ../Automation1MotorAxis.cpp:22: ../Automation1MotorController.h:13:1: error: stray ‘##’ in program 13 | ##include "Include/Automation1.h" | ^~ In file included from ../Automation1MotorAxis.cpp:21: ../Automation1MotorAxis.h:12:3: error: ‘include’ does not name a type 12 | ##include "Include/Automation1.h" | ^~~ In file included from /home/quan/epics/support/motor/include/Include/Automation1.h:8, from ../Automation1MotorAxis.h:13, from ../Automation1MotorAxis.cpp:21: /home/quan/epics/support/motor/include/Include/Automation1Command.h:35:51: error: ‘Automation1Controller’ was not declared in this scope; did you mean ‘Automation1WaitMode’? 35 | AUTOMATION1_CAPI bool Automation1_Command_Execute(Automation1Controller controller, int32_t executionTaskIndex, const char aeroScriptText); | ^~~~~ | Automation1WaitMode /home/quan/epics/support/motor/include/Include/Automation1Command.h:35:93: error: expected primary-expression before ‘executionTaskIndex’ 35 | AUTOMATION1_CAPI bool Automation1_Command_Execute(Automation1Controller controller, int32_t executionTaskIndex, const char aeroScriptText); | ^~~~~~ /home/quan/epics/support/motor/include/Include/Automation1Command.h:35:113: error: expected primary-expression before ‘const’ 35 | AUTOMATION1_CAPI bool Automation1_Command_Execute(Automation1Controller controller, int32_t executionTaskIndex, const char aeroScriptText); | ^~~~~ In file included from /home/quan/epics/support/motor/include/Include/Automation1.h:8, from ../Automation1MotorAxis.h:13, from ../Automation1MotorAxis.cpp:21: /home/quan/epics/support/motor/include/Include/Automation1Command.h:35:139: error: expression list treated as compound expression in initializer [-fpermissive] 35 | AUTOMATION1_CAPI bool Automation1_Command_Execute(Automation1Controller controller, int32_t executionTaskIndex, const char aeroScriptText); | ^ /home/quan/epics/support/motor/include/Include/Automation1Command.h:48:74: error: ‘Automation1Controller’ was not declared in this scope; did you mean ‘Automation1WaitMode’? 48 | AUTOMATION1_CAPI bool Automation1_Command_ExecuteAndReturnAeroScriptAxis(Automation1Controller controller, int32_t executionTaskIndex, const char aeroScriptText, int32_t aeroScriptAxisIndexOut); | ^~~~~ | Automation1WaitMode /home/quan/epics/support/motor/include/Include/Automation1Command.h:48:116: error: expected primary-expression before ‘executionTaskIndex’ 48 | AUTOMATION1_CAPI bool Automation1_Command_ExecuteAndReturnAeroScriptAxis(Automation1Controller controller, int32_t executionTaskIndex, const char aeroScriptText, int32_t aeroScriptAxisIndexOut); | ^~~~~~ /home/quan/epics/support/motor/include/Include/Automation1Command.h:48:136: error: expected primary-expression before ‘const’ 48 | AUTOMATION1_CAPI bool Automation1_Command_ExecuteAndReturnAeroScriptAxis(Automation1Controller controller, int32_t executionTaskIndex, const char aeroScriptText, int32_t aeroScriptAxisIndexOut); | ^~~~~ /home/quan/epics/support/motor/include/Include/Automation1Command.h:48:171: error: expected primary-expression before ‘’ token 48 | ommand_ExecuteAndReturnAeroScriptAxis(Automation1Controller controller, int32_t executionTaskIndex, const char aeroScriptText, int32_t* aeroScriptAxisIndexOut); | ^

/home/quan/epics/support/motor/include/Include/Automation1Command.h:48:173: error: ‘aeroScriptAxisIndexOut’ was not declared in this scope 48 | mand_ExecuteAndReturnAeroScriptAxis(Automation1Controller controller, int32_t executionTaskIndex, const char aeroScriptText, int32_t aeroScriptAxisIndexOut); | ^~~~~~

./Automation1MotorAxis.cpp:310:50: error: ‘class Automation1MotorController’ has no member named ‘controller_’ 310 | if (!Automation1_ParameterGetAxisValue(pC->controller_, | ^~~ ../Automation1MotorAxis.cpp:310:44: error: ‘Automation1_Parameter_GetAxisValue’ cannot be used as a function 310 | if (!Automation1_ParameterGetAxisValue(pC->controller, | ~~~~~~~~^~~~ 311 | axisNo, | ~~~~
312 | Automation1AxisParameterIdCountsPerUnit, | ~~~~~~~~~ 313 | &countsPerUnitParam)) | ~~~~~
../Automation1MotorAxis.cpp: In member function ‘virtual asynStatus Automation1MotorAxis::home(double, double, double, int)’: ../Automation1MotorAxis.cpp:141:20: warning: control reaches end of non-void function [-Wreturn-type] 141 | setIntegerParam(pC->motorStatusProblem,0); // Unset "Problem" status bit. A logError call will set it. | ~~~^~~~~~~~ ../Automation1MotorAxis.cpp: In member function ‘virtual asynStatus Automation1MotorAxis::moveVelocity(double, double, double)’: ../Automation1MotorAxis.cpp:199:1: warning: control reaches end of non-void function [-Wreturn-type] 199 | } | ^ ../Automation1MotorAxis.cpp: In member function ‘virtual asynStatus Automation1MotorAxis::stop(double)’: ../Automation1MotorAxis.cpp:208:20: warning: control reaches end of non-void function [-Wreturn-type] 208 | setIntegerParam(pC->motorStatusProblem,0); // Unset "Problem" status bit. A logError call will set it. | ~~~^~~~~~~~ ../Automation1MotorAxis.cpp: In member function ‘virtual asynStatus Automation1MotorAxis::setPosition(double)’: ../Automation1MotorAxis.cpp:238:1: warning: control reaches end of non-void function [-Wreturn-type] 238 | } | ^ make[3]: [/home/quan/epics/base/configure/RULES_BUILD:267: Automation1MotorAxis.o] Error 1 make[3]: Leaving directory '/home/quan/epics/support/motor/modules/motorAutomation1/automation1App/src/O.linux-x86_64' make[2]: [/home/quan/epics/base/configure/RULES_ARCHS:58: install.linux-x86_64] Error 2 make[2]: Leaving directory '/home/quan/epics/support/motor/modules/motorAutomation1/automation1App/src' make[1]: [/home/quan/epics/base/configure/RULES_DIRS:85: src.install] Error 2 make[1]: Leaving directory '/home/quan/epics/support/motor/modules/motorAutomation1/automation1App' make: [/home/quan/epics/base/configure/RULES_DIRS:85: automation1App.install] Error 2

PeiyuQuan commented 10 months ago

Hello Everyone

I have downloaded the latest version of driver and installed it again, No error. Thank you

Peiyu Quan