[issue41981] Errors building python 3.9.0 from source on Centos 7 with GCC 10

2020-10-11 Thread STINNER Victor


STINNER Victor  added the comment:

> In "config.log" you can see that "/bin/ld" did not found "-lpanelw".

Yep, that's what I wrote in my previous message :-)

I understand that you solved your issue, so I close this issue.

--
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41981] Errors building python 3.9.0 from source on Centos 7 with GCC 10

2020-10-09 Thread Federico Tesser


Federico Tesser  added the comment:

I am sorry to have bothered you. I found the problem:

In "config.log" you can see that "/bin/ld" did not found "-lpanelw". The 
problem was that in ncurses-6.2 it was "-lpaneltw".

Pyhon has been succesfully installed, using gcc 4.8.5 toolchain, as suggested.

Best regards,

Federico Tesser

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41981] Errors building python 3.9.0 from source on Centos 7 with GCC 10

2020-10-09 Thread STINNER Victor


STINNER Victor  added the comment:

config.log:

configure:11697: checking for readlink
configure:11697: gcc -pthread -(...) -lpanelw -lbz2 -lpthread -ldl  >&5
/bin/ld: cannot find -lpanelw

It seems like many tests are failing because of -lpanelw and the missing 
library.

According to config.log, you passed it explicitly to the configure command:

  $ ./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

Try to remove -lpanelw.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41981] Errors building python 3.9.0 from source on Centos 7 with GCC 10

2020-10-09 Thread Federico Tesser


Federico Tesser  added the comment:

Here the "config.log"

--
Added file: https://bugs.python.org/file49502/config.log.tar.gz

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41981] Errors building python 3.9.0 from source on Centos 7 with GCC 10

2020-10-09 Thread Federico Tesser


Federico Tesser  added the comment:

Same problems using gcc 4.8.5.
Attached you will find the corresponding "pyconfig.h" and "config.log"

It seems quite odd to me too

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41981] Errors building python 3.9.0 from source on Centos 7 with GCC 10

2020-10-09 Thread Federico Tesser


Change by Federico Tesser :


Added file: https://bugs.python.org/file49501/pyconfig.h

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41981] Errors building python 3.9.0 from source on Centos 7 with GCC 10

2020-10-09 Thread Charalampos Stratakis


Charalampos Stratakis  added the comment:

The RHEL7 buildbots test on the default system compiler (GCC 4.8). The 
combination of RHEL7 + GCC10 + Python 3.9 could do very weird stuff, and I 
don't think it would easy to support.

Generally the build environment of an OS is tied to the default compiler 
toolchain and that involves also the various compiler and linker flags which 
might be obsoleted in newer versions.

--
nosy: +cstratak

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41981] Errors building python 3.9.0 from source on Centos 7 with GCC 10

2020-10-09 Thread STINNER Victor


STINNER Victor  added the comment:

> Operating System Centos 7.

Oh. That's surprising: there are multiple RHEL7 buildbots and there is no build 
or test issue on this OS. I would expect Centos 7 to be support, except that 
you installed GCC 10. We also tested Python 3.9 on GCC 10. Again, I would 
expect no build issue.

> Oddly, it seems that HAVE_READLINK is not configured.

It might be something wrong with your build system.

In your pyconfig.h, I see can many issues:

/* #undef HAVE_STRDUP */
/* #undef HAVE_READLINK */
/* #undef HAVE_CLOCK_GETTIME */

Please check your compiler flags. Check also config.log: please attach it to 
the issue as well.

--
title: Errors building python 3.9.0 from source -> Errors building python 3.9.0 
from source on Centos 7 with GCC 10

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com