koka-lang / koka

Koka language compiler and interpreter

Home Page:http://koka-lang.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

undefined reference to `kk_string_join'

kyepskee opened this issue · comments

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)

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.