[issue36843] AIX build fails with failure to get random numbers

2019-05-10 Thread Robert Boehne


Robert Boehne  added the comment:

I wonder if there's anyone with AIX 7 who can attempt to reproduce this.  We 
have another AIX machine, but it is down for the moment.  I would like to 
eliminate a problem on this machine as the cause.

--

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



[issue36843] AIX build fails with failure to get random numbers

2019-05-10 Thread Robert Boehne


Robert Boehne  added the comment:

It doesn't look good:

robb@nepal:/raid/checkouts-raid/robb/nepal$ xlc_r -q64 -O0 -g
-qlanglvl=extc1x -o urandom urandom.c

robb@nepal:/raid/checkouts-raid/robb/nepal$ ./urandom

open O_RDONLY failed

open O_RDONLY | O_CLOEXEC failed

robb@nepal:/raid/checkouts-raid/robb/nepal$ uname -a

AIX nepal 1 7 00FA7FB84C00

robb@nepal:/raid/checkouts-raid/robb/nepal$

On Thu, May 9, 2019 at 6:21 PM STINNER Victor 
wrote:

>
> STINNER Victor  added the comment:
>
> Robert Boehne: pyurandom() uses _Py_open_noraise("/dev/urandom", O_RDONLY)
> which uses O_CLOEXEC if available. If this flag available? Does it work?
>
> Please try to build attached urandom.c.
>
> Example on my Fedora 29:
>
> open O_RDONLY succeeded
> read(16) -> 16
> open O_RDONLY | O_CLOEXEC succeeded
> read(16) -> 16
>
> --
> Added file: https://bugs.python.org/file48322/urandom.c
>
> ___
> Python tracker 
> <https://bugs.python.org/issue36843>
> ___
>

--

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



[issue36843] AIX build fails with failure to get random numbers

2019-05-08 Thread Robert Boehne

Robert Boehne  added the comment:

Reading a few bytes from /dev/urandom via dd:


robb@nepal:/raid/checkouts-raid/robb/nepal/build-py37$ dd if=/dev/urandom 
bs=256 count=1
??S?(#L???~]?B?^??8?f&?_|Vi??@??[joG>St??;?$?1?*??24???RD?"4`??aҼ#???f???
?}  
 ??^zC?@?"?.^?gn??p?t?R*=Ӫ?8*?L??   
8??bu?߂???8?Ŵ?`??y??٫K?.?~陵#5?t??h?e!?G@)B?R???(9kLX??BUH5=?||??El???a+n@??V?c?N?^ͯ?y?n??]??$݇?Mp?,#???K?i8?`?v??~`L?1+0
 records in.
1+0 records out.
robb@nepal:/raid/checkouts-raid/robb/nepal/build-py37$ dd if=/dev/urandom 
bs=256 count=1
_d?(?n???1bRԺ{??I??"Ѱ"|???E
   p??^??q#??
~yZ$u??e}?3?qw#?{*T1+0 records 
in.nR)?-?B???x??{~hϼ+?7۪شVW??"?d?n??V??t??R(\YC?3=?p?-ӽ?m??P???A?M??68??9Y?](??xn+?a?ܯ?W
1+0 records out.
robb@nepal:/raid/checkouts-raid/robb/nepal/build-py37$

--

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



[issue36843] AIX build fails with failure to get random numbers

2019-05-08 Thread Robert Boehne


Robert Boehne  added the comment:

The call to open("/dev/urandom", flags) is returning -1, and errno is set to 
22, EINVAL - Invalid argument.  could the flags be set incorrectly?

--

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



[issue36843] AIX build fails with failure to get random numbers

2019-05-08 Thread Robert Boehne


Robert Boehne  added the comment:

Opening /dev/urandom seems to return -1

(dbx) print buffer
0x09001000a5f49380 
(dbx) print size
24 
(dbx) print raise
0 
(dbx) step
stopped in dev_urandom at line 311 in file 
"/raid/checkouts-raid/robb/nepal/build-py37/../../Python-3.7.3/Python/bootstrap_hash.c"
 ($t1)
  311   if (raise) {
(dbx) step
stopped in dev_urandom at line 378 in file 
"/raid/checkouts-raid/robb/nepal/build-py37/../../Python-3.7.3/Python/bootstrap_hash.c"
 ($t1)
  378   fd = _Py_open_noraise("/dev/urandom", O_RDONLY);
(dbx) next
stopped in dev_urandom at line 379 in file 
"/raid/checkouts-raid/robb/nepal/build-py37/../../Python-3.7.3/Python/bootstrap_hash.c"
 ($t1)
  379   if (fd < 0) {
(dbx) print fd
-1 
(dbx) step
stopped in dev_urandom at line 380 in file 
"/raid/checkouts-raid/robb/nepal/build-py37/../../Python-3.7.3/Python/bootstrap_hash.c"
 ($t1)
  380   return -1;
(dbx) step
stopped in dev_urandom at line 401 in file 
"/raid/checkouts-raid/robb/nepal/build-py37/../../Python-3.7.3/Python/bootstrap_hash.c"
 ($t1)
  401   }
(dbx) step
stopped in pyurandom at line 519 in file 
"/raid/checkouts-raid/robb/nepal/build-py37/../../Python-3.7.3/Python/bootstrap_hash.c"
 ($t1)
  519   }
(dbx) step
stopped in unnamed block in _Py_HashRandomization_Init at line 611 in file 
"/raid/checkouts-raid/robb/nepal/build-py37/../../Python-3.7.3/Python/bootstrap_hash.c"
 ($t1)
  611   if (res < 0) {
(dbx) step
stopped in unnamed block in _Py_HashRandomization_Init at line 612 in file 
"/raid/checkouts-raid/robb/nepal/build-py37/../../Python-3.7.3/Python/bootstrap_hash.c"
 ($t1)
  612   return _Py_INIT_USER_ERR("failed to get random numbers "
(dbx) continue
continue
^ unrecognized command
(dbx) cont
Fatal Python error: _Py_HashRandomization_Init: failed to get random numbers to 
initialize Python

--

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



[issue36843] AIX build fails with failure to get random numbers

2019-05-08 Thread Robert Boehne


Robert Boehne  added the comment:

from pyconfig.h:


/* Define to 1 if the getrandom() function is available */
/* #undef HAVE_GETRANDOM */

/* Define to 1 if the Linux getrandom() syscall is available */
/* #undef HAVE_GETRANDOM_SYSCALL */

/* Define to 1 if you have the  header file. */
/* #undef HAVE_LINUX_RANDOM_H */

/* Define to 1 if you have the `getentropy' function. */
/* #undef HAVE_GETENTROPY */

--

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



[issue36843] AIX build fails with failure to get random numbers

2019-05-08 Thread Robert Boehne


Change by Robert Boehne :


Added file: https://bugs.python.org/file48317/config.log.gz

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



[issue36843] AIX build fails with failure to get random numbers

2019-05-07 Thread Robert Boehne


Robert Boehne  added the comment:

robb@nepal:/raid/checkouts-raid/robb/nepal/build-py37$ gmake
xlc_r -c   -DNDEBUG -O -q64 -qlanglvl=extc99 -IObjects -IInclude -IPython 
-I. -I../../Python-3.7.3/Include 
-I/raid/checkouts-raid/robb/Python-2.7.15/Modules/zlib   -DPy_BUILD_CORE -o 
Modules/_math.o ../../Python-3.7.3/Modules/_math.c
LIBPATH=/raid/checkouts-raid/robb/nepal/build-py37 CC='xlc_r' 
LDSHARED='Modules/ld_so_aix xlc_r -bI:Modules/python.exp 
-L/raid/checkouts-raid/robb/zlib-dl/Release/rs6000aix_64/lib  
-Wl,-blibpath:/opt/IBM/xlmass/8.1.3/lib/aix61:/opt/IBM/xlc/13.1.3/lib:/usr/lib:/lib:/opt/Python-3.7/lib
 -q64   ' OPT='-DNDEBUG -O' _TCLTK_INCLUDES='' _TCLTK_LIBS=''   
./python -E ../../Python-3.7.3/setup.py  build
Fatal Python error: _Py_HashRandomization_Init: failed to get random numbers to 
initialize Python

Makefile:626: recipe for target 'sharedmods' failed
gmake: *** [sharedmods] Error 1

--

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



[issue36843] AIX build fails with failure to get random numbers

2019-05-07 Thread Robert Boehne


New submission from Robert Boehne :

build fails with:
./python -E ../../Python-3.7.3/setup.py  build
Fatal Python error: _Py_HashRandomization_Init: failed to get random numbers to 
initialize Python

--
components: Build
messages: 341821
nosy: Robert Boehne
priority: normal
severity: normal
status: open
title: AIX build fails with failure to get random numbers
type: compile error
versions: Python 3.7

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



[issue30183] [HPUX] compilation error in pytime.c with cc compiler

2017-07-06 Thread Robert Boehne

Changes by Robert Boehne <rboe...@gmail.com>:


--
pull_requests: +2674

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30183>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30819] Linking with 'ld -b' fails with 64-bit using Itanium HP compiler

2017-07-06 Thread Robert Boehne

Changes by Robert Boehne <rboe...@gmail.com>:


--
nosy: +haypo

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30819>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30819] Linking with 'ld -b' fails with 64-bit using Itanium HP compiler

2017-07-05 Thread Robert Boehne

Changes by Robert Boehne <rboe...@gmail.com>:


--
pull_requests: +2661

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30819>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30819] Linking with 'ld -b' fails with 64-bit using Itanium HP compiler

2017-06-30 Thread Robert Boehne

New submission from Robert Boehne:

Setting compiler flags to +DD64 produces 64-bit objects, but the linker does 
not understand this flag, so either you'll see an ld failure to recognize +DD64 
at link time, or you'll see a failure later mixing 32 and 64-bit objects.

I also modified the C++ variable because that's obviously needed as well.
There was an issue with configure - after modifying one and adding another line 
in configure.ac, autoconf 2.69 removed all instances of "runstatedir" in the 
generated configure script, so I made my intended change to configure in an 
editor as well.

--
title: Linking with 'ld -b' fails with 64-bit using HP compiler -> Linking with 
'ld -b' fails with 64-bit using Itanium HP compiler

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30819>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30819] Linking with 'ld -b' fails with 64-bit using HP compiler

2017-06-30 Thread Robert Boehne

Changes by Robert Boehne <rboe...@gmail.com>:


--
components: Build
nosy: Robert Boehne
priority: normal
severity: normal
status: open
title: Linking with 'ld -b' fails with 64-bit using HP compiler
type: compile error
versions: Python 3.7

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30819>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30183] [HPUX] compilation error in pytime.c with cc compiler

2017-06-30 Thread Robert Boehne

Robert Boehne added the comment:

I am having trouble getting things build still.  The problem is that the build 
is using a naked "ld" to link, and it is picking 32-bit mode by default in my 
64-bit acc build. (Itanium)

IMO the problem is configure.ac:2467 which should look more like the gcc 
section.  I can produce a patch, and perhaps you can walk me though the 
submission process.

--

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30183>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30183] [HPUX] compilation error in pytime.c with cc compiler

2017-06-30 Thread Robert Boehne

Robert Boehne added the comment:

I'd love to have this fix backported to 3.5 and 3.6.  It seems trivial to do, 
and I'd be happy to do it myself.

--
nosy: +Robert Boehne

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30183>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com