Hi, it might be a very silly question, but I can't get around this:
We have a C++ application that was written for Ubuntu. I am trying to compile it on MacOS, but first thing - we need to compile all the 3rd party libraries that we are using.
I am trying to build grpc using GNU g++ version 14, and I keep getting issues.
I am trying to build version 1.69.0 and I am getting the following error when compiling:
[ 3%] Building CXX object third_party/abseil-cpp/absl/time/CMakeFiles/time_zone.dir/internal/cctz/src/time_zone_fixed.cc.o
[ 3%] Building CXX object third_party/abseil-cpp/absl/time/CMakeFiles/time_zone.dir/internal/cctz/src/time_zone_format.cc.o
In file included from /opt/homebrew/Cellar/gcc/14.2.0_1/include/c++/14/ext/string_conversions.h:43,
from /opt/homebrew/Cellar/gcc/14.2.0_1/include/c++/14/bits/basic_string.h:4154,
from /opt/homebrew/Cellar/gcc/14.2.0_1/include/c++/14/string:54,
from /tmp/grpc-1.69.0/third_party/abseil-cpp/absl/time/internal/cctz/include/cctz/time_zone.h:27,
from /tmp/grpc-1.69.0/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_format.cc:28:
/opt/homebrew/Cellar/gcc/14.2.0_1/include/c++/14/cstdlib:141:11: error: 'at_quick_exit' has not been declared in '::'
141 | using ::at_quick_exit;
| ^~~~~~~~~~~~~
/opt/homebrew/Cellar/gcc/14.2.0_1/include/c++/14/cstdlib:164:11: error: 'quick_exit' has not been declared in '::'
164 | using ::quick_exit;
| ^~~~~~~~~~
make[2]: *** [third_party/abseil-cpp/absl/time/CMakeFiles/time_zone.dir/internal/cctz/src/time_zone_format.cc.o] Error 1
make[1]: *** [third_party/abseil-cpp/absl/time/CMakeFiles/time_zone.dir/all] Error 2
make: *** [all] Error 2
I tried playing with DABSL_PROPAGATE_CXX_STD and DCMAKE_CXX_STANDARD, which didn't seem to make any difference. I am not sure how to take it from here. any help would be appreciated
The
information in this e-mail is confidential. The content may not be disclosed or
used by anyone other than the addressee. Access to this e-mail by anyone else
is unauthorised. If you are not the intended recipient, please notify
Foretellix immediately and delete this e-mail.
Foretellix
cannot accept any responsibility for the accuracy or completeness of this
e-mail as it has been sent over public networks. If you have any concerns over
the content of this message or its Accuracy or Integrity, please contact
Foretellix immediately.
All
outgoing e-mails from Foretellix are checked using regularly updated virus
scanning software but you should take whatever measures you deem to be
appropriate to ensure that this message and any attachments are virus free.