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

while trying to build happens that _lock_t and relative functions are not accessible from drivers/iomem.c #103

Open
chaostheory88 opened this issue Jan 27, 2020 · 2 comments

Comments

@chaostheory88
Copy link

Hi. While trying to build the SDK happens that lib/drivers/iomem.c makes use of _lock_t type and its relative functions, however the build fails since those functions and type are not accessible from there.

[ 18%] Built target nncase
Scanning dependencies of target kendryte
[ 20%] Building C object lib/CMakeFiles/kendryte.dir/drivers/iomem.c.obj
/riscv/kendryte-standalone-sdk/lib/drivers/iomem.c:21:5: error: unknown type name '_lock_t'
21 | _lock_t *lock;
| ^~~~~~~
/riscv/kendryte-standalone-sdk/lib/drivers/iomem.c:24:8: error: unknown type name '_lock_t'
24 | static _lock_t iomem_lock;
| ^~~~~~~
/riscv/kendryte-standalone-sdk/lib/drivers/iomem.c: In function 'iomem_free':
/riscv/kendryte-standalone-sdk/lib/drivers/iomem.c:142:5: error: implicit declaration of function '_lock_acquire_recursive' [-Werror=implicit-function-declaration]
142 | _lock_acquire_recursive(malloc_cortol.lock);
| ^~~~~~~~~~~~~~~~~~~~~~~
/riscv/kendryte-standalone-sdk/lib/drivers/iomem.c:145:5: error: implicit declaration of function '_lock_release_recursive' [-Werror=implicit-function-declaration]
145 | _lock_release_recursive(malloc_cortol.lock);
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [lib/CMakeFiles/kendryte.dir/build.make:310: lib/CMakeFiles/kendryte.dir/drivers/iomem.c.obj] Error 1
make[1]: *** [CMakeFiles/Makefile2:144: lib/CMakeFiles/kendryte.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

@chaostheory88 chaostheory88 changed the title while trying to build happens that _lock_t and relative functions are not accessible from drivers/iomem.c while trying to build happens that _lock_t and relative functions are not accessible from drivers/iomem.c Jan 27, 2020
@Winnaries
Copy link

I am facing the same issue. Is there any solution yet?

@tuupola
Copy link

tuupola commented Aug 30, 2021

You are most likely on the develop branch. Try 0.5.6 instead.

$ git checkout 0.5.6

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

No branches or pull requests

3 participants