make 编译报错:
[ 88%] Building CXX object sql/CMakeFiles/sql_gis.dir/gis/crosses.cc.o
包含于文件 /root/mysql-8.4.8/extra/boost/boost_1_84_0/boost/geometry/core/coordinate_promotion.hpp:16,
于 /root/mysql-8.4.8/extra/boost/boost_1_84_0/boost/geometry/core/radian_access.hpp:30,
于 /root/mysql-8.4.8/extra/boost/boost_1_84_0/boost/geometry/geometry.hpp:50,
于 /root/mysql-8.4.8/extra/boost/boost_1_84_0/boost/geometry.hpp:17,
于 /root/mysql-8.4.8/sql/gis/area_functor.h:36,
于 /root/mysql-8.4.8/sql/gis/area.cc:29:
/root/mysql-8.4.8/extra/boost/boost_1_84_0/boost/multiprecision/cpp_bin_float.hpp:40:10: 致命错误:quadmath.h:没有那个文件或目录
40 | #include <quadmath.h>
| ^~~~~~~~~~~~
包含于文件 /root/mysql-8.4.8/extra/boost/boost_1_84_0/boost/geometry/core/coordinate_promotion.hpp:16,
于 /root/mysql-8.4.8/extra/boost/boost_1_84_0/boost/geometry/core/radian_access.hpp:30,
于 /root/mysql-8.4.8/extra/boost/boost_1_84_0/boost/geometry/geometry.hpp:50,
于 /root/mysql-8.4.8/extra/boost/boost_1_84_0/boost/geometry.hpp:17,
于 /root/mysql-8.4.8/sql/gis/crosses.cc:30:
/root/mysql-8.4.8/extra/boost/boost_1_84_0/boost/multiprecision/cpp_bin_float.hpp:40:10: 致命错误:quadmath.h:没有那个文件或目录
40 | #include <quadmath.h>
| ^~~~~~~~~~~~
编译中断。
编译中断。
包含于文件 /root/mysql-8.4.8/extra/boost/boost_1_84_0/boost/geometry/core/coordinate_promotion.hpp:16,
于 /root/mysql-8.4.8/extra/boost/boost_1_84_0/boost/geometry/core/radian_access.hpp:30,
于 /root/mysql-8.4.8/extra/boost/boost_1_84_0/boost/geometry/geometry.hpp:50,
于 /root/mysql-8.4.8/extra/boost/boost_1_84_0/boost/geometry.hpp:17,
于 /root/mysql-8.4.8/sql/gis/covered_by.cc:28:
/root/mysql-8.4.8/extra/boost/boost_1_84_0/boost/multiprecision/cpp_bin_float.hpp:40:10: 致命错误:quadmath.h:没有那个文件或目录
40 | #include <quadmath.h>
| ^~~~~~~~~~~~
编译中断。
make[2]: *** [sql/CMakeFiles/sql_gis.dir/build.make:76:sql/CMakeFiles/sql_gis.dir/gis/area.cc.o] 错误 1
make[2]: *** 正在等待未完成的任务....
make[2]: *** [sql/CMakeFiles/sql_gis.dir/build.make:118:sql/CMakeFiles/sql_gis.dir/gis/crosses.cc.o] 错误 1
make[2]: *** [sql/CMakeFiles/sql_gis.dir/build.make:104:sql/CMakeFiles/sql_gis.dir/gis/covered_by.cc.o] 错误 1
包含于文件 /root/mysql-8.4.8/extra/boost/boost_1_84_0/boost/geometry/core/coordinate_promotion.hpp:16,
于 /root/mysql-8.4.8/extra/boost/boost_1_84_0/boost/geometry/core/radian_access.hpp:30,
于 /root/mysql-8.4.8/extra/boost/boost_1_84_0/boost/geometry/strategies/spherical/point_in_point.hpp:29,
于 /root/mysql-8.4.8/extra/boost/boost_1_84_0/boost/geometry/algorithms/detail/disjoint/point_point.hpp:36,
于 /root/mysql-8.4.8/extra/boost/boost_1_84_0/boost/geometry/algorithms/detail/overlay/get_turns.hpp:30,
于 /root/mysql-8.4.8/extra/boost/boost_1_84_0/boost/geometry/algorithms/detail/within/implementation.hpp:27,
于 /root/mysql-8.4.8/extra/boost/boost_1_84_0/boost/geometry/algorithms/detail/covered_by/implementation.hpp:26,
于 /root/mysql-8.4.8/extra/boost/boost_1_84_0/boost/geometry/algorithms/covered_by.hpp:24,
于 /root/mysql-8.4.8/extra/boost/boost_1_84_0/boost/geometry/algorithms/detail/buffer/buffered_piece_collection.hpp:32,
于 /root/mysql-8.4.8/extra/boost/boost_1_84_0/boost/geometry/algorithms/detail/buffer/buffer_inserter.hpp:30,
于 /root/mysql-8.4.8/extra/boost/boost_1_84_0/boost/geometry/algorithms/detail/buffer/implementation.hpp:24,
于 /root/mysql-8.4.8/extra/boost/boost_1_84_0/boost/geometry/algorithms/buffer.hpp:22,
于 /root/mysql-8.4.8/sql/gis/buffer.cc:28:
/root/mysql-8.4.8/extra/boost/boost_1_84_0/boost/multiprecision/cpp_bin_float.hpp:40:10: 致命错误:quadmath.h:没有那个文件或目录
40 | #include <quadmath.h>
| ^~~~~~~~~~~~
编译中断。
make[2]: *** [sql/CMakeFiles/sql_gis.dir/build.make:90:sql/CMakeFiles/sql_gis.dir/gis/buffer.cc.o] 错误 1
make[1]: *** [CMakeFiles/Makefile2:49712:sql/CMakeFiles/sql_gis.dir/all] 错误 2
make: *** [Makefile:166:all] 错误 2
[root@mgr1 bld]#
原因:
就是 libquadmath-devel 没有安装导致,安装后,重新 make 即可。
|