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

Add support for clang -- error: ld: error: undefined symbol: clog10 #139

Open
yonas opened this issue Feb 20, 2023 · 0 comments
Open

Add support for clang -- error: ld: error: undefined symbol: clog10 #139

yonas opened this issue Feb 20, 2023 · 0 comments

Comments

@yonas
Copy link

yonas commented Feb 20, 2023

Clang doesn't have clog10. I think it's specific to gcc.

442 / 476 #0 Updated file:/usr/include/sys/filio.h to iteration 1
443 / 477 #0 Updated file:/usr/include/sys/sockio.h to iteration 1
444 / 478 #0 Updated file:/usr/include/poll.h to iteration 1
445 / 478 #0 Updated scan:file:obj/linenoise.c::INCLUDES to iteration 1
446 / 478 #0 Updated file:obj/linenoise.o to iteration 1
447 / 478 #0 Updated file:lib/libminilang.a to iteration 1
448 / 479 #0 Updated symb:/obj/LDFLAGS to iteration 1
ld: error: undefined symbol: clog10
>>> referenced by ml_math.c:327 (/memfs/git/minilang/src/ml_math.c:327)
>>>               ml_math.o:(ml_method_fn_327_30) in archive /memfs/git/minilang/lib/libminilang.a
>>> referenced by ml_math.c:327 (/memfs/git/minilang/src/ml_math.c:327)
>>>               ml_math.o:(ml_method_fn_327_31) in archive /memfs/git/minilang/lib/libminilang.a
>>> did you mean: log10
>>> defined in: /usr/lib/libm.so
cc: error: linker command failed with exit code 1 (use -v to see invocation)
Error: file:bin/minilang: process returned non-zero exit code
        cc -o /memfs/git/minilang/bin/minilang /memfs/git/minilang/obj/minilang.o /memfs/git/minilang/lib/libminilang.a -lm -g -lyajl -lexpat -ldl -luuid -licuuc -L/usr/local/lib -lgc-threaded:1

FreeBSD clang version 13.0.0 ([email protected]:llvm/llvm-project.git llvmorg-13.0.0-0-gd7b669b3a303)
Target: x86_64-unknown-freebsd13.1
Thread model: posix
InstalledDir: /usr/bin

FreeBSD 13.1-RELEASE

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

1 participant