Skip to content
Snippets Groups Projects
Commit fc97cf10 authored by kpetersn's avatar kpetersn
Browse files

Updated 4-Deploy-motorVMC.md to add a link to a previous step and to add/improve solutions.

parent 59e419d6
No related branches found
No related tags found
No related merge requests found
......@@ -73,7 +73,7 @@ make: *** No rule to make target '/configure/RULES_TOP'. Stop.
### 4.4 Resolve build error #1
This build error occurs for the same reason the build error occurred in step 2.4 (TODO: Add link): `EPICS_BASE` isn't defined.
This build error occurs for the same reason the build error occurred in [step 2.4](2-IOC-deployment.md#24-build-the-ioc-attempt-1): `EPICS_BASE` isn't defined.
The error was much more helpful in step 2.4 because [xxx's CONFIG file prints the user friendly error message](https://github.com/epics-modules/xxx/blob/3c9ec766c3a7107248ef3d2a2f717968ce12ad5d/configure/CONFIG#L16-L23). The motorVMC developer should add a similar check to the motorVMC module.
......@@ -126,7 +126,7 @@ $ make
<details>
<summary>output</summary>
```
```make
make -C ./configure install
make[1]: Entering directory '/home/beams/USERNAME/PET-S2/epics/synApps/support/motorVMC/configure'
perl -CSD /APSshare/epics/base-7.0.4.1/bin/rhel8-x86_64/makeMakefile.pl O.rhel8-x86_64 ../..
......@@ -192,7 +192,64 @@ $ echo "CHECK_RELEASE = NO" > configure/CONFIG_SITE.local
```
$ make
```
TODO: add output?
<details>
<summary>output</summary>
```make
make -C ./configure install
make[1]: Entering directory '/home/beams/USERNAME/PET-S2/epics/synApps_6_2_1/support/motorVMC/configure'
perl -CSD /APSshare/epics/base-7.0.4.1/bin/rhel8-x86_64/makeMakefile.pl O.rhel8-x86_64 ../..
mkdir -p O.Common
make -C O.rhel8-x86_64 -f ../Makefile TOP=../.. \
T_A=rhel8-x86_64 install
make[2]: Entering directory '/home/beams/USERNAME/PET-S2/epics/synApps_6_2_1/support/motorVMC/configure/O.rhel8-x86_64'
Warning: RELEASE file consistency checks have been disabled
make[2]: Nothing to be done for 'install'.
make[2]: Leaving directory '/home/beams/USERNAME/PET-S2/epics/synApps_6_2_1/support/motorVMC/configure/O.rhel8-x86_64'
make[1]: Leaving directory '/home/beams/USERNAME/PET-S2/epics/synApps_6_2_1/support/motorVMC/configure'
make -C ./vmcApp install
make[1]: Entering directory '/home/beams/USERNAME/PET-S2/epics/synApps_6_2_1/support/motorVMC/vmcApp'
make -C ./src install
make[2]: Entering directory '/home/beams/USERNAME/PET-S2/epics/synApps_6_2_1/support/motorVMC/vmcApp/src'
perl -CSD /APSshare/epics/base-7.0.4.1/bin/rhel8-x86_64/makeMakefile.pl O.rhel8-x86_64 ../../..
mkdir -p O.Common
make -C O.rhel8-x86_64 -f ../Makefile TOP=../../.. \
T_A=rhel8-x86_64 install
make[3]: Entering directory '/home/beams/USERNAME/PET-S2/epics/synApps_6_2_1/support/motorVMC/vmcApp/src/O.rhel8-x86_64'
/usr/bin/g++ -D_GNU_SOURCE -D_DEFAULT_SOURCE -D_X86_64_ -DUNIX -Dlinux -O3 -Wall -mtune=generic -m64 -fPIC -I. -I../O.Common -I. -I. -I.. -I../../../include/compiler/gcc -I../../../include/os/Linux -I../../../include -I/net/aquila/export/APSmaster/gateway/epics/synApps_6_2_1/support/motor-R7-2-2/include -I/APSshare/epics/synApps_6_2_1/support/asyn-R4-42/include -I/APSshare/epics/synApps_6_2_1/support/seq-2-2-9/include -I/APSshare/epics/synApps_6_2_1/support/busy-R1-7-3/include -I/APSshare/epics/synApps_6_2_1/support/ipac-2-16/include -I/APSshare/epics/synApps_6_2_1/support/lua-R3-0-2/include -I/APSshare/epics/base-7.0.4.1/include/compiler/gcc -I/APSshare/epics/base-7.0.4.1/include/os/Linux -I/APSshare/epics/base-7.0.4.1/include -MM -MF vmcDriver.d ../vmcDriver.cpp
Creating dbd file vmcSupport.dbd
perl -CSD /APSshare/epics/base-7.0.4.1/bin/rhel8-x86_64/dbdExpand.pl -I. -I.. -I../O.Common -I../../../dbd -I/net/aquila/export/APSmaster/gateway/epics/synApps_6_2_1/support/motor-R7-2-2/dbd -I/APSshare/epics/synApps_6_2_1/support/asyn-R4-42/dbd -I/APSshare/epics/synApps_6_2_1/support/seq-2-2-9/dbd -I/APSshare/epics/synApps_6_2_1/support/busy-R1-7-3/dbd -I/APSshare/epics/synApps_6_2_1/support/ipac-2-16/dbd -I/APSshare/epics/synApps_6_2_1/support/lua-R3-0-2/dbd -I/APSshare/epics/base-7.0.4.1/dbd -o vmcSupport.dbd vmc.dbd
Installing created dbd file ../../../dbd/vmcSupport.dbd
mkdir ../../../dbd
/usr/bin/g++ -D_GNU_SOURCE -D_DEFAULT_SOURCE -D_X86_64_ -DUNIX -Dlinux -O3 -Wall -mtune=generic -m64 -fPIC -I. -I../O.Common -I. -I. -I.. -I../../../include/compiler/gcc -I../../../include/os/Linux -I../../../include -I/net/aquila/export/APSmaster/gateway/epics/synApps_6_2_1/support/motor-R7-2-2/include -I/APSshare/epics/synApps_6_2_1/support/asyn-R4-42/include -I/APSshare/epics/synApps_6_2_1/support/seq-2-2-9/include -I/APSshare/epics/synApps_6_2_1/support/busy-R1-7-3/include -I/APSshare/epics/synApps_6_2_1/support/ipac-2-16/include -I/APSshare/epics/synApps_6_2_1/support/lua-R3-0-2/include -I/APSshare/epics/base-7.0.4.1/include/compiler/gcc -I/APSshare/epics/base-7.0.4.1/include/os/Linux -I/APSshare/epics/base-7.0.4.1/include -c ../vmcDriver.cpp
../vmcDriver.cpp: In constructor ‘VirtualMotorController::VirtualMotorController(const char*, const char*, int, double, double)’:
../vmcDriver.cpp:52:21: warning: variable ‘pAxis’ set but not used [-Wunused-but-set-variable]
VirtualMotorAxis *pAxis;
^~~~~
../vmcDriver.cpp: In function ‘int VirtualMotorCreateController(const char*, const char*, int, int, int)’:
../vmcDriver.cpp:88:27: warning: variable ‘pVirtualMotorController’ set but not used [-Wunused-but-set-variable]
VirtualMotorController *pVirtualMotorController
^~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/ar -rc libvmc.a vmcDriver.o
/usr/bin/ranlib libvmc.a
/usr/bin/g++ -o libvmc.so -shared -fPIC -Wl,-hlibvmc.so -L/home/beams/USERNAME/PET-S2/epics/synApps_6_2_1/support/motorVMC/lib/rhel8-x86_64 -L/net/s100dserv/APSshare/epics/base-7.0.4.1/lib/rhel8-x86_64 -L/net/s100dserv/APSshare/epics/synApps_6_2_1/support/asyn-R4-42/lib/rhel8-x86_64 -L/net/aquila/export/APSmaster/gateway/epics/synApps_6_2_1/support/motor-R7-2-2/lib/rhel8-x86_64 -L/APSshare/epics/base-7.0.4.1/lib/rhel8-x86_64 -Wl,-rpath,/home/beams/USERNAME/PET-S2/epics/synApps_6_2_1/support/motorVMC/lib/rhel8-x86_64 -Wl,-rpath,/net/s100dserv/APSshare/epics/base-7.0.4.1/lib/rhel8-x86_64 -Wl,-rpath,/net/s100dserv/APSshare/epics/synApps_6_2_1/support/asyn-R4-42/lib/rhel8-x86_64 -Wl,-rpath,/net/aquila/export/APSmaster/gateway/epics/synApps_6_2_1/support/motor-R7-2-2/lib/rhel8-x86_64 -Wl,-rpath,/APSshare/epics/base-7.0.4.1/lib/rhel8-x86_64 -rdynamic -m64 vmcDriver.o -lmotor -lasyn -ldbRecStd -ldbCore -lca -lCom -lpthread -lreadline -lm -lrt -ldl -lgcc
Installing shared library ../../../lib/rhel8-x86_64/libvmc.so
Installing library ../../../lib/rhel8-x86_64/libvmc.a
make[3]: Leaving directory '/home/beams/USERNAME/PET-S2/epics/synApps_6_2_1/support/motorVMC/vmcApp/src/O.rhel8-x86_64'
make[2]: Leaving directory '/home/beams/USERNAME/PET-S2/epics/synApps_6_2_1/support/motorVMC/vmcApp/src'
make -C ./Db install
make[2]: Entering directory '/home/beams/USERNAME/PET-S2/epics/synApps_6_2_1/support/motorVMC/vmcApp/Db'
perl -CSD /APSshare/epics/base-7.0.4.1/bin/rhel8-x86_64/makeMakefile.pl O.rhel8-x86_64 ../../..
mkdir -p O.Common
make -C O.rhel8-x86_64 -f ../Makefile TOP=../../.. \
T_A=rhel8-x86_64 install
make[3]: Entering directory '/home/beams/USERNAME/PET-S2/epics/synApps_6_2_1/support/motorVMC/vmcApp/Db/O.rhel8-x86_64'
make[3]: Nothing to be done for 'install'.
make[3]: Leaving directory '/home/beams/USERNAME/PET-S2/epics/synApps_6_2_1/support/motorVMC/vmcApp/Db/O.rhel8-x86_64'
make[2]: Leaving directory '/home/beams/USERNAME/PET-S2/epics/synApps_6_2_1/support/motorVMC/vmcApp/Db'
make[1]: Leaving directory '/home/beams/USERNAME/PET-S2/epics/synApps_6_2_1/support/motorVMC/vmcApp'
```
</details>
### 4.8 Confirm build products exist
......@@ -204,7 +261,7 @@ $ ls -l dbd lib/${EPICS_HOST_ARCH}
<details>
<summary>output</summary>
```
```bash
dbd:
total 0
-r--r--r-- 1 username group 32 Feb 2 15:44 vmcSupport.dbd
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment