Message378317
Good afternoon.
I have some problems building python 3.9.0 from source.
Here's my configuration:
CC=/usr/local/gcc-10.2.0/bin/gcc CXX=/usr/local/gcc-10.2.0/bin/g++ CFLAGS="-I/usr/local/libuuid-1.0.3/include/ -I/usr/local/libuuid-1.0.3/include/uuid/ -I/usr/local/xz-utils-5.2.4/include/ -I/usr/local/bzip2-1.0.8/include/ -I/usr/local/gdbm-1.18.1/include/ -I/usr/local/libffi-3.3/include/ -I/usr/local/openssl-1.1.1d/openssl-1.1.1d/include/ -I/usr/local/ncurses-6.2/include/ncursestw/ -I/usr/local/readline-8.0/include/readline/ -I/usr/local/x11-7.7/libx11-1.5.0/include/ -I/usr/local/tk-8.7a3/include/ -I/usr/local/tcl-8.7a3/include/" CPPFLAGS="-I/usr/local/libuuid-1.0.3/include/ -I/usr/local/libuuid-1.0.3/include/uuid/ -I/usr/local/xz-utils-5.2.4/include/ -I/usr/local/bzip2-1.0.8/include/ -I/usr/local/gdbm-1.18.1/include/ -I/usr/local/libffi-3.3/include/ -I/usr/local/openssl-1.1.1d/openssl-1.1.1d/include/ -I/usr/local/ncurses-6.2/include/ncursestw/ -I/usr/local/readline-8.0/include/readline/ -I/usr/local/x11-7.7/libx11-1.5.0/include/ -I/usr/local/tk-8.7a3/include/ -I/usr/local/tcl-8.7a3/include/" LDFLAGS="-L/usr/local/libuuid-1.0.3/lib/ -L/usr/local/xz-utils-5.2.4/lib/ -L/usr/local/bzip2-1.0.8/lib/ -L/usr/local/gdbm-1.18.1/lib/ -L/usr/local/libffi-3.3/lib64/ -L/usr/local/openssl-1.1.1d/openssl-1.1.1d/lib/ -L/usr/local/ncurses-6.2/lib/ -L/usr/local/readline-8.0/lib/ -L/usr/local/x11-7.7/libx11-1.5.0/lib/ -L/usr/local/tk-8.7a3/lib/ -L/usr/local/tcl-8.7a3/lib/" PKG_CONFIG_PATH="/usr/local/libuuid-1.0.3/lib/pkgconfig/:/usr/local/xz-utils-5.2.4/lib/pkgconfig/:/usr/local/libffi-3.3/lib/pkgconfig/:/lib64/pkgconfig/:/usr/local/readline-8.0/lib/pkgconfig/:/usr/local/x11-7.7/libx11-1.5.0/lib/pkgconfig/:/usr/local/tk-8.7a3/lib/pkgconfig/:/usr/local/tcl-8.7a3/lib/pkgconfig/" ./configure --prefix=/usr/local/python-3.9.0/ --with-tcltk-includes="-I/usr/local/tcl-8.7a3/include/ -I/usr/local/tk-8.7a3/include/" --with-tcltk-libs="-L/usr/local/tcl-8.7a3/lib/ -L/usr/local/tk-8.7a3/lib/" --with-libs="-luuid -lX11 -ltcl8.7 -ltk8.7 -lpanelw -lbz2" --disable-ipv6 --enable-optimizations --with-lto
During the make process, I receive the following error:
Python/pytime.c: In function ‘pymonotonic’:
Python/pytime.c:907:9: error: implicit declaration of function ‘pytime_fromtimespec’; did you mean ‘pytime_fromtimeval’? [-Werror=implicit-function-declaration]
907 | if (pytime_fromtimespec(tp, &ts, raise) < 0) {
| ^~~~~~~~~~~~~~~~~~~
| pytime_fromtimeval
cc1: some warnings being treated as errors
If in the Makefile I change the "-Werror=implicit-function-declaration"
as "-Wno-error=implicit-function-declaration", the building process continues, but then it get stuck at:
Python/strdup.c: In function ‘strdup’:
Python/strdup.c:6:16: error: ‘NULL’ undeclared (first use in this function)
6 | if (str != NULL) {
| ^~~~
Python/strdup.c:1:1: note: ‘NULL’ is defined in header ‘<stddef.h>’; did you forget to ‘#include <stddef.h>’?
If I add the "#include <stddef.h>" in file "Python/strdup.c:", then the process continues, until I receive the following error:
./Modules/getpath.c:1198:14: error: incompatible types when assigning to type ‘PyStatus’ from type ‘int’
If I explicitly add in file "Include/internal/pycore_initconfig.h", just after line 25, the following 3 lines:
.func = 0, \
.err_msg = 0, \
.exitcode = 0}
Addition wich does not help, because the building process stop itself again at the previous point.
Can you tell me where I am doing wrong?
Best regards,
Federico Tesser |
|
Date |
User |
Action |
Args |
2020-10-09 13:19:51 | ftesser | set | recipients:
+ ftesser |
2020-10-09 13:19:51 | ftesser | set | messageid: <1602249591.17.0.670337051124.issue41981@roundup.psfhosted.org> |
2020-10-09 13:19:51 | ftesser | link | issue41981 messages |
2020-10-09 13:19:49 | ftesser | create | |
|