indutny / dukhttp

19 stars 3 forks source link

build failed using ninja on linux #1

Closed gengjiawen closed 3 years ago

gengjiawen commented 3 years ago
gitpod@ws-def8ba93-d384-4723-af49-b40a89441972 /w/d/build (master)> ninja
[1/1] Linking C executable dukhttp
FAILED: dukhttp 
: && /usr/bin/cc -g -Os -Wall -Wextra -flto CMakeFiles/dukhttp.dir/src/main.c.o -o dukhttp  deps/libuv/libuv_a.a  deps/duktape/libduktape.a  deps/llhttp/libllhttp.a  -lpthread  -ldl  -lrt && :
/usr/bin/ld: deps/duktape/libduktape.a(duktape.c.o): in function `duk_js_arith_pow':
/workspace/dukhttp/build/duk_js_arith.c:71: undefined reference to `__fpclassify'
/usr/bin/ld: deps/duktape/libduktape.a(duktape.c.o): in function `duk__round_fixed':
/workspace/dukhttp/build/duk_bi_math.c:155: undefined reference to `__fpclassify'
/usr/bin/ld: deps/duktape/libduktape.a(duktape.c.o): in function `duk_double_trunc_towards_zero':
/workspace/dukhttp/build/duk_util_double.c:111: undefined reference to `trunc'
/usr/bin/ld: deps/duktape/libduktape.a(duktape.c.o): in function `duk__toint32_touint32_helper':
indutny commented 3 years ago

Thanks for reporting. Should be fixed now!