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

unknown type name 'sem_t' #271

Closed
purod opened this issue Apr 26, 2020 · 2 comments
Closed

unknown type name 'sem_t' #271

purod opened this issue Apr 26, 2020 · 2 comments

Comments

@purod
Copy link

purod commented Apr 26, 2020

When installing fs, I got the following error.

clang++ -I"/usr/share/R/include" -DNDEBUG -I./libuv/include -I. -pthread -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c init.cc -o init.o
clang++ -I"/usr/share/R/include" -DNDEBUG -I./libuv/include -I. -pthread -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c id.cc -o id.o
In file included from id.cc:1:
In file included from ./utils.h:3:
In file included from ./libuv/include/uv.h:62:
./libuv/include/uv-unix.h:136:9: error: unknown type name 'sem_t'
typedef UV_PLATFORM_SEM_T uv_sem_t;
^
./libuv/include/uv-unix.h:104:28: note: expanded from macro 'UV_PLATFORM_SEM_T'

define UV_PLATFORM_SEM_T sem_t

                       ^

1 error generated.
/usr/lib/R/etc/Makeconf:175: recipe for target 'id.o' failed
make: *** [id.o] Error 1
ERROR: compilation failed for package ‘fs’

@purod
Copy link
Author

purod commented Apr 26, 2020

remove semaphore.h from /usr/local/include works for me

@purod purod closed this as completed Apr 26, 2020
@bioinfotec
Copy link

remove semaphore.h from /usr/local/include works for me

Yes, it really works. But why it works? And what is the function of semaphore.h?

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

2 participants