Код: Выделить всё
../sysdeps/ieee754/flt-32/e_gammaf_r.c: In function ‘__ieee754_gammaf_r’:
../sysdeps/ieee754/flt-32/e_gammaf_r.c:127:32: error: implicit declaration of function ‘__builtin_roundeven’; did you mean ‘__builtin_round’? [-Werror=implicit-function-declaration]
double m = z - 0x1.7p+1, i = __builtin_roundeven(m), step = __builtin_copysign(1.0,i);
^~~~~~~~~~~~~~~~~~~
__builtin_round
cc1: all warnings being treated as errors
Код: Выделить всё
git clone https://sourceware.org/git/glibc.git glibc-devel
cd glibc-devel
mkdir build
cd build
../configure --prefix=/home/a0504063/bin/python/glibc --host=x86_64-linux-gnu --build=x86_64-linux-gnu CC="gcc -m64" CXX="g++ -m64" CFLAGS="-O2 -Wno-error" CXXFLAGS="-O2 -Wno-error"
make
В настоящее время я использую:
- < li>хеш коммита git: 18596c5415
- версия gcc/g++: 8.5.0
- ОС: RedHat 8 (это то, что серверы компании в настоящее время работают, и у меня нет возможности изменить их)
Подробнее здесь: https://stackoverflow.com/questions/791 ... f-function
Мобильная версия