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 `kk_string_join' #505

Open
kyepskee opened this issue Apr 21, 2024 · 1 comment
Open

undefined reference to `kk_string_join' #505

kyepskee opened this issue Apr 21, 2024 · 1 comment

Comments

@kyepskee
Copy link

I'm running koka on Arch Linux, installed using the command from the tutorial. Everything runs fine, except for when I use "string/join".

Here is the full error from the interactive compiler:

> ["dsa", "dsa"].vector.join
linking : std/core/@main
compile : kklib from: /usr/local/share/koka/v3.1.1/kklib
/usr/bin/ld: /tmp/.koka/v3.1.1/gcc-debug-4ae6dc/std_core__main.o: in function `kk_std_core__main__expr':
/tmp/.koka/v3.1.1/gcc-debug-4ae6dc/std_core__main.c:22:(.text+0x149): undefined reference to `kk_string_join'
/usr/bin/ld: /tmp/.koka/v3.1.1/gcc-debug-4ae6dc/std_core__main.o: in function `kk_std_core__main__main':
/tmp/.koka/v3.1.1/gcc-debug-4ae6dc/std_core__main.c:41:(.text+0x247): undefined reference to `kk_string_join'
collect2: error: ld returned 1 exit status
^
std/core/@main(1, 1): build error: user error (error  : command failed (exit code 1)
command: /usr/bin/gcc -g -Og -o /tmp/.koka/v3.1.1/gcc-debug-4ae6dc/std_core__main /tmp/.koka/v3.1.1/gcc-debug-4ae6dc/kklib.o /tmp/.koka/v3.1.1/gcc-debug-4ae6dc/std_core_types.o /tmp/.koka/v3.1.1/gcc-debug-4ae6dc/std_core_undiv.o /tmp/.koka/v3.1.1/gcc-debug-4ae6dc/std_core_unsafe.o /tmp/.koka/v3.1.1/gcc-debug-4ae6dc/std_core_hnd.o /tmp/.koka/v3.1.1/gcc-debug-4ae6dc/std_core_exn.o /tmp/.koka/v3.1.1/gcc-debug-4ae6dc/std_core_bool.o /tmp/.koka/v3.1.1/gcc-debug-4ae6dc/std_core_int.o /tmp/.koka/v3.1.1/gcc-debug-4ae6dc/std_core_order.o /tmp/.koka/v3.1.1/gcc-debug-4ae6dc/std_core_char.o /tmp/.koka/v3.1.1/gcc-debug-4ae6dc/std_core_vector.o /tmp/.koka/v3.1.1/gcc-debug-4ae6dc/std_core_string.o /tmp/.koka/v3.1.1/gcc-debug-4ae6dc/std_core_sslice.o /tmp/.koka/v3.1.1/gcc-debug-4ae6dc/std_core_list.o /tmp/.koka/v3.1.1/gcc-debug-4ae6dc/std_core_maybe.o /tmp/.koka/v3.1.1/gcc-debug-4ae6dc/std_core_either.o /tmp/.koka/v3.1.1/gcc-debug-4ae6dc/std_core_tuple.o /tmp/.koka/v3.1.1/gcc-debug-4ae6dc/std_core_show.o /tmp/.koka/v3.1.1/gcc-debug-4ae6dc/std_core_console.o /tmp/.koka/v3.1.1/gcc-debug-4ae6dc/std_core_debug.o /tmp/.koka/v3.1.1/gcc-debug-4ae6dc/std_core_delayed.o /tmp/.koka/v3.1.1/gcc-debug-4ae6dc/std_core.o /tmp/.koka/v3.1.1/gcc-debug-4ae6dc/std_core__main.o -lm -lpthread)

@TimWhiting
Copy link
Collaborator

Thanks for bringing this to our attention. It looks like it is definitely missing. Try just using join on a list of string instead of a vector for now.

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

No branches or pull requests

2 participants