用./configure --enable-optimizations --prefix=/usr/local/python3 --with-openssl=/usr/local/openssl --with-ssl编译了之后,
make就一直报错
[root@192 Python-3.8.12]# make
Running code to generate profile data (this can take a while):
# First, we need to create a clean build with profile generation
# enabled.
make profile-gen-stamp
make[1]: 进入目录“/home/GODYA/下载/Python-3.8.12”
Building with support for profile generation:
make build_all_generate_profile
make[2]: 进入目录“/home/GODYA/下载/Python-3.8.12”
make build_all CFLAGS_NODIST=" -fprofile-generate" LDFLAGS_NODIST=" -fprofile-generate" LIBS="-lcrypt -lpthread -ldl -lutil -lm"
make[3]: 进入目录“/home/GODYA/下载/Python-3.8.12”
gcc -pthread -c -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Werror=implicit-function-declaration -fprofile-generate -I./Include/internal -I. -I./Include -DPy_BUILD_CORE -o Programs/python.o ./Programs/python.c
/tmp/ccMjfHNh.s: Assembler messages:
/tmp/cc6TlIoA.s:12: 错误:unknown .loc sub-directive `view'
/tmp/cc6TlIoA.s:12: 错误:junk at end of line, first unrecognized character is `-'
/tmp/cc6TlIoA.s:14: 错误:unknown .loc sub-directive `view'
/tmp/cc6TlIoA.s:14: 错误:unknown pseudo-op: `.lvu1'
/tmp/cc6TlIoA.s:30: 错误:unknown .loc sub-directive `view'
/tmp/cc6TlIoA.s:30: 错误:unknown pseudo-op: `.lvu2'
/tmp/cc6TlIoA.s:47: 错误:unknown .loc sub-directive `view'
/tmp/cc6TlIoA.s:47: 错误:unknown pseudo-op: `.lvu3'
/tmp/cc6TlIoA.s:48: 错误:unknown .loc sub-directive `view'
/tmp/cc6TlIoA.s:48: 错误:unknown pseudo-op: `.lvu4'
/tmp/cc6TlIoA.s:54: 错误:unknown .loc sub-directive `view'
/tmp/cc6TlIoA.s:54: 错误:unknown pseudo-op: `.lvu5'
/tmp/cc6TlIoA.s:60: 错误:unknown .loc sub-directive `view'
/tmp/cc6TlIoA.s:60: 错误:unknown pseudo-op: `.lvu6'
/tmp/cc6TlIoA.s:64: 错误:unknown .loc sub-directive `view'
/tmp/cc6TlIoA.s:64: 错误:unknown pseudo-op: `.lvu7'
make[3]: *** [Programs/python.o] 错误 1
make[3]: 离开目录“/home/GODYA/下载/Python-3.8.12”
make[2]: *** [build_all_generate_profile] 错误 2
make[2]: 离开目录“/home/GODYA/下载/Python-3.8.12”
make[1]: *** [profile-gen-stamp] 错误 2
make[1]: 离开目录“/home/GODYA/下载/Python-3.8.12”
make: *** [profile-run-stamp] 错误 2
我看了一下config.log,里面有如下error :
1.fatal error: ac_nonexistent.h: No such file or directory
2. fatal error: minix/config.h: No such file or directory
3. gcc: error: unrecognized command line option '-Kthread'; did you mean '-pthread'?
等
真心求,卡了两天了