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

Orange C failed to link on FreeBSD #1047

Open
chatchoi opened this issue Sep 16, 2024 · 2 comments
Open

Orange C failed to link on FreeBSD #1047

chatchoi opened this issue Sep 16, 2024 · 2 comments

Comments

@chatchoi
Copy link

chatchoi commented Sep 16, 2024

Here is the error message on FreeBSD:

clang++ -c -D__MSVCRT__ -DHAVE_UNISTD_H=1 -DSQLITE_OS_UNIX -Wno-int-to-pointer-cast -I../util -I../exefmt -I../ -fpermissive  -DGNUC -std=gnu++14 -o /test/OrangeC/src/netlib/obj/gcc-linux/NetLinkMain.o NetLinkMain.cpp
clang -L/test/OrangeC/src/../src/lib/gcc-linux -o netlib.exe /test/OrangeC/src/netlib/obj/gcc-linux/NetLinkMain.o -Wl,--start-group -lnetlib -lutil -Wl,--end-group -lstdc++ -lpthread -ldl 
ld: error: undefined symbol: ceilf
>>> referenced by NetLinkMain.cpp
>>>               /test/OrangeC/src/netlib/obj/gcc-linux/NetLinkMain.o:(std::__1::__math::ceil[abi:se180100](float))
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Build command: gmake COMPILER="gcc-linux" CC=clang CXX=clang++.

@GitMensch
Copy link
Contributor

GitMensch commented Sep 16, 2024

How did you run the build? I guess with GNU make?

As we already found out in the other thread #1044, the Makefile shouldn't use -D__MSVCRT__ on this environment #1049 and additionally needs -lm.

@chatchoi
Copy link
Author

How did you run the build? I guess with GNU make?

Of course. The command is gmake. If you use only make, it will invoke BSD make (bmake) instead.

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

2 participants