|
我在Redhat8中编译LFS时前面都很顺利,除了在编译BASH时由于ncurses有点问题,去掉了--with-curses选项以外,其他都很好.现在编译gcc,问题来了:不知道是不是bash编译时偷工减料的后果,大侠指教!
错误如下:
c++locale.cc: In function `void std::__convert_to_v(const char*, _Tv&,
std::_Ios_Iostate&, __locale_struct* const&, int) [with _Tv = long int]'
:
c++locale.cc:51: `__strtol_l' undeclared (first use this function)
c++locale.cc:51: (Each undeclared identifier is reported only once for each
function it appears in.)
c++locale.cc: In function `void std::__convert_to_v(const char*, _Tv&,
std::_Ios_Iostate&, __locale_struct* const&, int) [with _Tv = long unsig
ned
int]':
c++locale.cc:69: `__strtoul_l' undeclared (first use this function)
c++locale.cc: In function `void std::__convert_to_v(const char*, _Tv&,
std::_Ios_Iostate&, __locale_struct* const&, int) [with _Tv = long long
int]':
c++locale.cc:87: `__strtoll_l' undeclared (first use this function)
c++locale.cc: In function `void std::__convert_to_v(const char*, _Tv&,
std::_Ios_Iostate&, __locale_struct* const&, int) [with _Tv = long long
unsigned int]':
c++locale.cc:106: `__strtoull_l' undeclared (first use this function)
c++locale.cc: In function `void std::__convert_to_v(const char*, _Tv&,
std::_Ios_Iostate&, __locale_struct* const&, int) [with _Tv = float]':
c++locale.cc:124: `__strtof_l' undeclared (first use this function)
c++locale.cc: In function `void std::__convert_to_v(const char*, _Tv&,
std::_Ios_Iostate&, __locale_struct* const&, int) [with _Tv = double]':
c++locale.cc:141: `__strtod_l' undeclared (first use this function)
c++locale.cc: In function `void std::__convert_to_v(const char*, _Tv&,
std::_Ios_Iostate&, __locale_struct* const&, int) [with _Tv = long doubl
e]':
c++locale.cc:158: `__strtold_l' undeclared (first use this function)
c++locale.cc: In static member function `static void
std::locale::facet::_S_create_c_locale(__locale_struct*&, const char*,
__locale_struct*)':
c++locale.cc:170: `__newlocale' undeclared (first use this function)
c++locale.cc: In static member function `static void
std::locale::facet::_S_destroy_c_locale(__locale_struct*&)':
c++locale.cc:180: `__freelocale' undeclared (first use this function)
c++locale.cc: In static member function `static __locale_struct*
std::locale::facet::_S_clone_c_locale(__locale_struct*&)':
c++locale.cc:184: `__duplocale' undeclared (first use this function)
make[4]: *** [c++locale.lo] Error 1
make[4]: Leaving directory `/LFS/static/src/gcc-build/i686-pc-linux- stdc++-v3/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/LFS/static/src/gcc-build/i686-pc-linux- stdc++-v3'
make[2]: *** [all-recursive-am] Error 2
make[2]: Leaving directory `/LFS/static/src/gcc-build/i686-pc-linux- stdc++-v3'
make[1]: *** [all-target-libstdc++-v3] Error 2
make[1]: Leaving directory `/LFS/static/src/gcc-build'
make: *** [bootstrap] Error 2 |
|