ometry/util/math.hpp:28,
from /root/work/mysql-arm/sql/gis_bg_traits.h:38,
from /root/work/mysql-arm/sql/item_geofunc_internal.h:35,
from /root/work/mysql-arm/sql/geometry_rtree.cc:16:
/usr/bin/locale:16:279: error: expected declaration before ‘}’ token
make[2]: *** [sql/CMakeFiles/sql.dir/geometry_rtree.cc.o] Error 1
make[1]: *** [sql/CMakeFiles/sql.dir/all] Error 2
make: *** [all] Error 2
源码是mysql-boost-5.7.19.tar.gz
位将源码解压复制成两份,mysql-64/ 、 mysql-arm。一份用于CentOs64位上gcc编译,一份用于交叉编译。编译到45%左右死活过不去。求解
贴上错误log
[ 45%] Building CXX object sql/CMakeFiles/sql.dir/geometry_rtree.cc.o
In file included from /usr/bin/boost/lexical_cast/detail/converter_lexical_streams.hpp:43:0,
from /usr/bin/boost/lexical_cast/detail/converter_lexical.hpp:54,
from /usr/bin/boost/lexical_cast/try_lexical_convert.hpp:35,
from /usr/bin/boost/lexical_cast.hpp:32,
from /usr/bin/boost/math/constants/constants.hpp:18,
from /root/work/mysql-arm/include/boost_1_59_0/patches/boost/geometry/util/math.hpp:28,
from /root/work/mysql-arm/sql/gis_bg_traits.h:38,
from /root/work/mysql-arm/sql/item_geofunc_internal.h:35,
from /root/work/mysql-arm/sql/geometry_rtree.cc:16:
/usr/bin/locale:1:1: error: stray â\177â in program
^?ELF^B^A^Aso.2^BX W H|$^HèúÿÿLÿè[^F^C¾ÿÿÿÿé^FÿÿÿHëéîþÿÿff.^O^_tDÀt@Áà^L%^Oÿ^OÐÆ^AHÁ^A^U _ ëÀHÛ^OÎýÿÿIÅé^Cþÿÿ1Òé.ÿÿÿ^U^ HPßÿÿLßÿÿLêL)úLù¿@[@I6Hßÿÿ¿
^
/usr/bin/locale:1:1: error: stray â\2â in program
./usr/bin/locale:1:1: error: stray â\2â in program
/usr/bin/locale:1:1: error: stray â\1â in program
/usr/bin/locale:1:1: error: stray â\1â in program
/usr/bin/locale:1:8: warning: null character(s) ignored [enabled by default]
/usr/bin/locale:1:1: error: stray â\2â in program
/usr/bin/locale:1:18: warning: null character(s) ignored [enabled by default]
/usr/bin/locale:1:20: warning: null character(s) ignored [enabled by default]
/usr/bin/locale:1:1: error: stray â\1â in program
/usr/bin/locale:1:22: warning: null character(s) ignored [enabled by default]
/usr/bin/locale:1:27: error: stray â@â in program
/usr/bin/locale:1:28: warning: null character(s) ignored [enabled by default]
/usr/bin/locale:1:33: error: stray â@â in program
/usr/bin/locale:1:34: warning: null character(s) ignored [enabled by default]
/usr/bin/locale:1:1: error: stray â\330â in program
/usr/bin/locale:1:1: error: stray â\217â in program
/usr/bin/locale:1:43: warning: null character(s) ignored [enabled by default]
/usr/bin/locale:1:53: error: stray â@â in program
/usr/bin/locale:1:54: warning: null character(s) ignored [enabled by default]
/usr/bin/locale:1:56: warning: null character(s) ignored [enabled by default]
/usr/bin/locale:1:59: error: stray â@â in program
/usr/bin/locale:1:60: warning: null character(s) ignored [enabled by default]
/usr/bin/locale:1:1: error: stray â\35â in program
.
.
.
.
.
.
.
from /usr/bin/boost/lexical_cast/try_lexical_convert.hpp:35,
from /usr/bin/boost/lexical_cast.hpp:32,
from /usr/bin/boost/math/constants/constants.hpp:18,
from /root/work/mysql-arm/include/boost_1_59_0/patches/boost/geometry/util/math.hpp:28,
from /root/work/mysql-arm/sql/gis_bg_traits.h:38,
from /root/work/mysql-arm/sql/item_geofunc_internal.h:35,
from /root/work/mysql-arm/sql/geometry_rtree.cc:16:
/usr/bin/locale:5:721: error: ‘libc’ does not name a type
In file included from /usr/bin/boost/lexical_cast/detail/converter_lexical_streams.hpp:43:0,
from /usr/bin/boost/lexical_cast/detail/converter_lexical.hpp:54,
from /usr/bin/boost/lexical_cast/try_lexical_convert.hpp:35,
from /usr/bin/boost/lexical_cast.hpp:32,
from /usr/bin/boost/math/constants/constants.hpp:18,
from /root/work/mysql-arm/include/boost_1_59_0/patches/boost/geometry/util/math.hpp:28,
from /root/work/mysql-arm/sql/gis_bg_traits.h:38,
from /root/work/mysql-arm/sql/item_geofunc_internal.h:35,
from /root/work/mysql-arm/sql/geometry_rtree.cc:16:
/usr/bin/locale:12:234: error: expected unqualified-id before numeric constant
In file included from /usr/bin/boost/lexical_cast/detail/converter_lexical_streams.hpp:43:0,
from /usr/bin/boost/lexical_cast/detail/converter_lexical.hpp:54,
from /usr/bin/boost/lexical_cast/try_lexical_convert.hpp:35,
from /usr/bin/boost/lexical_cast.hpp:32,
from /usr/bin/boost/math/constants/constants.hpp:18,
from /root/work/mysql-arm/include/boost_1_59_0/patches/boost/geometry/util/math.hpp:28,
from /root/work/mysql-arm/sql/gis_bg_traits.h:38,
from /root/work/mysql-arm/sql/item_geofunc_internal.h:35,
from /root/work/mysql-arm/sql/geometry_rtree.cc:16:
/usr/bin/locale:16:279: error: expected declaration before ‘}’ token
make[2]: *** [sql/CMakeFiles/sql.dir/geometry_rtree.cc.o] Error 1
make[1]: *** [sql/CMakeFiles/sql.dir/all] Error 2
make: *** [all] Error 2