Dear EPICS Tech-Talk,
I am encountering persistent build issues while compiling Asyn (asyn-R4-43) with EPICS Base 7.0.9 on Ubuntu 22.04 (Linux x86_64). Despite multiple attempts to resolve the issues, the build process fails with the following error:
No rule to make target '../%', needed by 'asynRecord.dbd'.
I would appreciate any guidance on how to fix this issue. Below is a summary of what I have tried so far.
Initial Build Attempt (Missing Asyn Support)
Problem:
Fixes Tried:
-
Verified Asyn libraries (
libasyn.so ) and DBD files (asynRecord.dbd ,
devEpics.dbd ) exist. -
Modified
testApp/src/Makefile to include:
DBD += asyn.dbd
DBD += asynRecord.dbd
DBD += devEpics.dbd
-
Ensured
st.cmd includes:
dbLoadDatabase("../../dbd/asyn.dbd")
dbLoadDatabase("../../dbd/asynRecord.dbd")
dbLoadDatabase("../../dbd/devEpics.dbd")
asyn_registerRecordDeviceDriver(pdbbase)
-
Rebuilt Asyn using:
make clean
make
Result:
-
The missing commands were still not found.
-
asynRecord.dbd and devEpics.dbd were still missing or not properly recognized.
Missing asynRecord.dbd and devEpics.dbd
Problem:
Fixes Tried:
-
Verified
INSTALL_DBD in configure/CONFIG :
INSTALL_DBD += asyn.dbd
INSTALL_DBD += asynRecord.dbd
INSTALL_DBD += devEpics.dbd
-
Checked
configure/CONFIG for INSTALL_LOCATION :
INSTALL_LOCATION = $(TOP)
-
Ensured
asyn.dbd includes:
include "asynRecord.dbd"
include "devEpics.dbd"
-
Rebuilt Asyn and the IOC:
make distclean
make clean
make -B
Result:
Debugging Makefile Dependency Issues
Problem:
-
The wildcard rule (
% ) in the Makefile might be broken or misconfigured.
Fixes Tried:
Result:
-
Still getting the same error.
Request for Help
Key Questions
-
Why is the build system trying to use
../% as a dependency for
asynRecord.dbd ? -
Is there a known issue with Asyn (asyn-R4-43) and EPICS Base compatibility?
-
How can I properly ensure
asynRecord.dbd is installed and recognized? -
Are there specific EPICS build settings I should check to resolve this?
System & Build Environment
-
EPICS Base: 7.0.9
-
Asyn Version: asyn-R4-43
-
OS: Ubuntu 22.04 (Linux x86_64)
-
Compiler: gcc (Ubuntu 11.3.0-1ubuntu1~22.04)
I appreciate any insights or suggestions on how to resolve this issue.
Jonathan Hai
Researcher/Tech Monkey
CNBL | Department of Physics and Astronomy
McMaster University
Sapere Aude
|