Skip to content
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

fix compiling errors #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

fix compiling errors #1

wants to merge 2 commits into from

Conversation

sprhawk
Copy link

@sprhawk sprhawk commented Sep 3, 2022

Fixed build error, mostly format specifier errors.

Only one is int _mbox_fd; caused each #include "dma.h" will create an instance of _mbox_id

Signed-off-by: Yang Hongbo <yanghongbo@iotpi.io>
@Shawn531
Copy link

Shawn531 commented Sep 21, 2022

Fixed build error, mostly format specifier errors.

Only one is int _mbox_fd; caused each #include "dma.h" will create an instance of _mbox_id

The build error is fixed after I edited "dma.h", but it comes out another error while executing cFS.

OS_ModuleLoad_Impl():111:Error loading shared library: ./cf/mipea.so: undefined symbol: _mbox_fd
1980-012-14:03:56.51051 ES Startup: Could not load file:/cf/mipea.so. EC = 0xFFFFFFFF

OS_ModuleLoad_Impl():111:Error loading shared library: ./cf/gpio_demo.so: undefined symbol: gpio_clr
1980-012-14:03:56.52130 ES Startup: Could not load file:/cf/gpio_demo.so. EC = 0xFFFFFFFF

So the gpio_demo can't be executed because of these two errors.
How could I fix it? Thanks

Signed-off-by: Yang Hongbo <yanghongbo@iotpi.io>
@sprhawk
Copy link
Author

sprhawk commented Sep 22, 2022

Fixed build error, mostly format specifier errors.
Only one is int _mbox_fd; caused each #include "dma.h" will create an instance of _mbox_id

The build error is fixed after I edited "dma.h", but it comes out another error while executing cFS.

OS_ModuleLoad_Impl():111:Error loading shared library: ./cf/mipea.so: undefined symbol: _mbox_fd 1980-012-14:03:56.51051 ES Startup: Could not load file:/cf/mipea.so. EC = 0xFFFFFFFF

OS_ModuleLoad_Impl():111:Error loading shared library: ./cf/gpio_demo.so: undefined symbol: gpio_clr 1980-012-14:03:56.52130 ES Startup: Could not load file:/cf/gpio_demo.so. EC = 0xFFFFFFFF

So the gpio_demo can't be executed because of these two errors. How could I fix it? Thanks

My bad, try the latest commit. I forgot to add declaration of mbox_id in dma.c

@Shawn531
Copy link

Fixed build error, mostly format specifier errors.
Only one is int _mbox_fd; caused each #include "dma.h" will create an instance of _mbox_id

The build error is fixed after I edited "dma.h", but it comes out another error while executing cFS.
OS_ModuleLoad_Impl():111:Error loading shared library: ./cf/mipea.so: undefined symbol: _mbox_fd 1980-012-14:03:56.51051 ES Startup: Could not load file:/cf/mipea.so. EC = 0xFFFFFFFF
OS_ModuleLoad_Impl():111:Error loading shared library: ./cf/gpio_demo.so: undefined symbol: gpio_clr 1980-012-14:03:56.52130 ES Startup: Could not load file:/cf/gpio_demo.so. EC = 0xFFFFFFFF
So the gpio_demo can't be executed because of these two errors. How could I fix it? Thanks

My bad, try the latest commit. I forgot to add declaration of mbox_id in dma.c

Thanks a lot. It work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants