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

undefined reference to `_wait_r' #67

Open
LiEnby opened this issue Dec 1, 2021 · 2 comments
Open

undefined reference to `_wait_r' #67

LiEnby opened this issue Dec 1, 2021 · 2 comments

Comments

@LiEnby
Copy link

LiEnby commented Dec 1, 2021

making ruby
make[1]: Entering directory '/home/silica/ruby'
arm-vita-eabi-gcc -O2 -g -Wall -Wno-parentheses -Wno-long-long  -DRUBY_EXPORT  -L.    main.o  -Wl,-R -Wl,/home/silica/ruby-bin/lib -L/home/silica/ruby-bin/lib -lruby-static -lm   -o ruby
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.3.0/../../../../arm-vita-eabi/bin/ld: /usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/10.3.0/../../../../arm-vita-eabi/lib/libg.a(lib_a-syswait.o): in function `wait':
syswait.c:(.text.wait+0xe): undefined reference to `_wait_r'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:117: ruby] Error 1
make[1]: Leaving directory '/home/silica/ruby'
make: *** [Makefile:324: main] Error 2
@Princess-of-Sleeping
Copy link

Try make with -DREENTRANT_SYSCALLS_PROVIDED

@isage
Copy link
Contributor

isage commented Dec 6, 2021

There's no wait, because there's no child processes (e.g. fork).
All we can do is stub it.

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