-
Notifications
You must be signed in to change notification settings - Fork 291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation issue with zephyr #426
Comments
Hello, In addition could you send a Pull request with the fix you propose? @carlocaione : do you detect this issue in your Zephyr environment? Thanks, |
I'm not seeing that. @mtreddy how are you compiling it? |
Hi ,
Returning to /User_data/home/tmarri/src/prog/rtos/open-amp/apps CMake Generate step failed. Build files cannot be regenerated correctly. |
@carlocaione , looks like we responded same time. Pl see my message above. |
This time I have pulled zypherproject and SDK sephyr-sdk-0.15.0 . And I still see the issue. Could you pl let me know which version zephyr you use?dini2@dini2: -- Configuring incomplete, errors occurred! CMake Generate step failed. Build files cannot be regenerated correctly. |
When I printed the messages for "${ZEPHYR_CURRENT_LIBRARY} ${OFFSETS_H_TARGET} "and in lib/CMakeLists.txt if (WITH_ZEPHYR) in the output there is no value assigned to OFFSETS_H_TARGET-- openamp_li :open_amp -- that could be why config is failing. |
Zephyr is already shipping its own libmetal and openamp shims (see https://github.com/zephyrproject-rtos/libmetal and https://github.com/zephyrproject-rtos/open-amp) so you should not pull anything from the official repos since both are already correctly integrated in zephyr. Please see the samples in https://github.com/zephyrproject-rtos/zephyr/tree/main/samples/subsys/ipc for the correct way to integrate openamp with Zephyr. |
Thanks for the help. I am able to build in Zephyr tree it self using " west build -b mps2_an521 samples/subsys/ipc/rpmsg_service" . BTW there is typo in README it say ZEPHRY it should be ZEPHYR. |
Hi, |
When building for zephyr I am seeing compilation issues as following.
CMake Error at lib/CMakeLists.txt:43 (add_dependencies)
add_dependencies called with incorrect number of arguments
-- at line number 42 --
add_dependencies(${ZEPHYR_CURRENT_LIBRARY} ${OFFSETS_H_TARGET})
-- if I change this to --
add_dependencies(${ZEPHYR_CURRENT_LIBRARY} DEPENDS ${OFFSETS_H_TARGET})
It proceeds further but it fails with "TARGET SOURCE no files found".
Any cluse what should be in "${ZEPHYR_CURRENT_LIBRARY} DEPENDS ${OFFSETS_H_TARGET) "supposed to be?
The text was updated successfully, but these errors were encountered: