Not an expert on Mac, Paulo, but those messages seem to indicate that the linker is in C mode and wants to be in C++ mode.
You'll need to figure out a way to force C++ and not just plain C ABI mode for the ld link phase of clang. Or whatever ld is actually called in LLVM land on a Mac.
Sadly no clue on what the easiest way to do that might be, Paulo, but I'd start by deep diving into the man page for clang, clang++, and ld on the Mac; look to --tag=CXX and see if the surrounding docs may have a hint on options to force C++ ABI linkage.
Read up on -Wl,-bind_at_load too, that would be another place I would look, just because it looks unfamiliar to me.
Might be as simple as forcing CC to clang++, if it happens to be using clang in any of the tool chain steps; don't know if that is even a thing, and can't tell from here.
For ld here (GNU/Linux) there is mention of -Ur versus -r for proper relocation of C++ constructors, (but what I just typed may be a total waste of time red herring for you).
Ask more if those hints don't lead to at least the start of solution path. Or maybe we'll get lucky and Sergey or other C++ expert will pop their head in and share some facts.
Have good,
Blue
Last edit: Brian Tiffin 2021-01-30
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm trying to generate esqlOC from sources in a Mac, but something is preventing me to run the make step.
I believe it is something related to the C compiler available on MacOS, but I'm completely blind in this matter.
Could someone kindly help me on that? Maybe I should change something in the makefile... but what?
The "configure" step runs fine, but when I try to "make" this is what I get:
I
Not an expert on Mac, Paulo, but those messages seem to indicate that the linker is in C mode and wants to be in C++ mode.
You'll need to figure out a way to force C++ and not just plain C ABI mode for the
ldlink phase of clang. Or whateverldis actually called in LLVM land on a Mac.Sadly no clue on what the easiest way to do that might be, Paulo, but I'd start by deep diving into the man page for
clang,clang++, andldon the Mac; look to--tag=CXXand see if the surrounding docs may have a hint on options to force C++ ABI linkage.Read up on
-Wl,-bind_at_loadtoo, that would be another place I would look, just because it looks unfamiliar to me.Might be as simple as forcing CC to
clang++, if it happens to be usingclangin any of the tool chain steps; don't know if that is even a thing, and can't tell from here.For
ldhere (GNU/Linux) there is mention of-Urversus-rfor proper relocation of C++ constructors, (but what I just typed may be a total waste of time red herring for you).Ask more if those hints don't lead to at least the start of solution path. Or maybe we'll get lucky and Sergey or other C++ expert will pop their head in and share some facts.
Have good,
Blue
Last edit: Brian Tiffin 2021-01-30
Check first if it is available via Homebrew
Check what C compiler and version you have installed if needed use Homebrew to install GCC.