[issue29057] Compiler failure on Mac OS X - sys/random.h

2017-01-19 Thread Ned Deily
Changes by Ned Deily : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Pyth

[issue29057] Compiler failure on Mac OS X - sys/random.h

2017-01-16 Thread Larry Hastings
Larry Hastings added the comment: Releasing 3.5.3 even though technically this is an open release blocker. IIUC the fix is checked in, and fixed the issue for OS X. We don't know whether or not it is also fixed on OpenBSD, because we don't know anybody running OpenBSD, and nobody contacted u

[issue29057] Compiler failure on Mac OS X - sys/random.h

2017-01-11 Thread George King
George King added the comment: I reinstalled the command line tools by downloading from developer.apple.com/download/more and the problem went away. No idea how they broke; I had previously installed the same version. In any case, sorry for the noise. -- _

[issue29057] Compiler failure on Mac OS X - sys/random.h

2017-01-11 Thread Ned Deily
Ned Deily added the comment: Sorry, George, but I'm unable to reproduce the failure you observe following your recipe. The only thing I can suggest off the top of my head is that you might have out-of-date system header files installed in /usr/include. Those files are installed with: sudo x

[issue29057] Compiler failure on Mac OS X - sys/random.h

2017-01-11 Thread George King
George King added the comment: This is using the latest apple toolchain on latest macOS 10.12.2: $ gcc --version Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 8.0.0 (clang-800.0.42.1) Target: x86_64-appl

[issue29057] Compiler failure on Mac OS X - sys/random.h

2017-01-11 Thread George King
George King added the comment: Still seeing this problem. Here was my exact process: $ git clone g...@github.com:python/cpython.git $ cd cpython $ git checkout 2.7 $ mkdir build $ cd build $ ../configure $ make In file included from ../Python/random.c:7: /usr/include/sys/random.h:37:32: error:

[issue29057] Compiler failure on Mac OS X - sys/random.h

2017-01-09 Thread Ned Deily
Ned Deily added the comment: George, did you do totally clean builds, including rerunning ./configure? If so, what ./configure and make commands did you use? Using the current hg repo, I don't see the failures you are seeing. -- ___ Python tracker

[issue29057] Compiler failure on Mac OS X - sys/random.h

2017-01-09 Thread George King
George King added the comment: (I meant the github mirror: github.com/python/cpython) -- ___ Python tracker ___ ___ Python-bugs-list m

[issue29057] Compiler failure on Mac OS X - sys/random.h

2017-01-09 Thread George King
George King added the comment: I am encountering this problem on macOS 10.12.2, with Xcode 8.2.1 (latest). I have tried building from the following cpython branches today (using the github fork): 2.7: 13a39142c047 In file included from ../../Python/random.c:7: /usr/include/sys/random.h:37:32:

[issue29057] Compiler failure on Mac OS X - sys/random.h

2017-01-05 Thread Jim Nasby
Jim Nasby added the comment: I take it back... turns out I was building with the unsupported macports gcc. -- ___ Python tracker ___ _

[issue29057] Compiler failure on Mac OS X - sys/random.h

2017-01-05 Thread Larry Hastings
Larry Hastings added the comment: Mr. Nasby, as long as you're in a test-reproducing mood, would you mind downloading the source to 3.5.3rc1 and confirming that it builds correctly for you? I'd appreciate it! (Not that I don't trust Ned et al, but independent confirmation always helps soothe

[issue29057] Compiler failure on Mac OS X - sys/random.h

2017-01-05 Thread Jim Nasby
Jim Nasby added the comment: This is still affecting me on 2.7, even with the new changes. 3.7 seems to be OK (I'm getting a different error on 3.7, but it seems unrelated to this.) OS X 10.11.6. -- nosy: +Jim Nasby ___ Python tracker

[issue29057] Compiler failure on Mac OS X - sys/random.h

2017-01-01 Thread Larry Hastings
Larry Hastings added the comment: I'm making an executive decision to not hold up the 3.5.3rc1 release for OpenBSD. Hopefully the OpenBSD folks can make sure it works for them before 3.5.3 final ships in two weeks. -- ___ Python tracker

[issue29057] Compiler failure on Mac OS X - sys/random.h

2017-01-01 Thread Ned Deily
Ned Deily added the comment: I just did a quick build test of a few 3.5 configurations with various macOS releases and Benjamin's applied change seems to fix the previous build failures. No idea about OpenBSD. -- ___ Python tracker

[issue29057] Compiler failure on Mac OS X - sys/random.h

2017-01-01 Thread Larry Hastings
Larry Hastings added the comment: Can this be marked closed now? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue29057] Compiler failure on Mac OS X - sys/random.h

2017-01-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9ab75789c554 by Benjamin Peterson in branch '3.5': only include sys/random.h if it seems like it might have something useful (#29057) https://hg.python.org/cpython/rev/9ab75789c554 New changeset 74eb71b91112 by Benjamin Peterson in branch '2.7': on

[issue29057] Compiler failure on Mac OS X - sys/random.h

2017-01-01 Thread Larry Hastings
Larry Hastings added the comment: This is currently blocking the release of 3.5.3 rc1. -- ___ Python tracker ___ ___ Python-bugs-list

[issue29057] Compiler failure on Mac OS X - sys/random.h

2017-01-01 Thread Pam McA'Nulty
Pam McA'Nulty added the comment: I can conform that Chi Hsuan Yen's patch works for me. I'm concerned that the build includes sys/random.h despite it not actually being needed to build python on mac os x (my worry is possible "shenanigans" by Apple in future versions of their headers) But if

[issue29057] Compiler failure on Mac OS X - sys/random.h

2017-01-01 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Here's a how-to for reproducing this bug on Sierra: 1. Install Xcode 7.3.1 (All 7.x should be fine) 2. ./configure --enable-universalsdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk 3. make On Benjamin's qu

[issue29057] Compiler failure on Mac OS X - sys/random.h

2017-01-01 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : Added file: http://bugs.python.org/file46109/issue29057.patch ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue29057] Compiler failure on Mac OS X - sys/random.h

2017-01-01 Thread Pam McA'Nulty
Pam McA'Nulty added the comment: I've dug into things some more. In my mac environment, sys/random.h is pretty empty and doesn't actually seem to provide anything that Python/random.c uses. The compile error is a type error is because 'u_int' never gets typedef'd in the rest of the compile i

[issue29057] Compiler failure on Mac OS X - sys/random.h

2017-01-01 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : -- nosy: +Chi Hsuan Yen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue29057] Compiler failure on Mac OS X - sys/random.h

2016-12-27 Thread Benjamin Peterson
Benjamin Peterson added the comment: Right, my question is why does configure define HAVE_SYS_RANDOM_H if including sys/random.h causes an error? -- ___ Python tracker ___ _

[issue29057] Compiler failure on Mac OS X - sys/random.h

2016-12-24 Thread Pam McA'Nulty
Pam McA'Nulty added the comment: New patch to make consistent wrt use of "defined()" -- Added file: http://bugs.python.org/file46024/Issue29057_random_include-v2.patch ___ Python tracker ___

[issue29057] Compiler failure on Mac OS X - sys/random.h

2016-12-24 Thread Pam McA'Nulty
Pam McA'Nulty added the comment: Good question. It looks like there are 3 defines getting checked: HAVE_SYS_RANDOM_H and either HAVE_GETRANDOM or HAVE_GETENTROPY The previous issue seemed to be that you could have HAVE_GETRANDOM and/or HAVE_GETENTROPY be set, but still not have a sys/random.h,

[issue29057] Compiler failure on Mac OS X - sys/random.h

2016-12-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: So, if sys/random.h can't be included without error why does the configure check for it work? -- ___ Python tracker ___

[issue29057] Compiler failure on Mac OS X - sys/random.h

2016-12-23 Thread Christian Heimes
Changes by Christian Heimes : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue29057] Compiler failure on Mac OS X - sys/random.h

2016-12-23 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue29057] Compiler failure on Mac OS X - sys/random.h

2016-12-23 Thread Pam McA'Nulty
Pam McA'Nulty added the comment: I will say that, though my fix seems to work, it feels that the "right" place to put the fix is in ./configure. Sadly, I don't speak './configure', though I apparently remember enough C from 17 years ago to get this working. -- _

[issue29057] Compiler failure on Mac OS X - sys/random.h

2016-12-23 Thread Ned Deily
Ned Deily added the comment: Argh! This is the third go-around on this problem, starting with the quick fix for macOS 10.12 in Issue28676 then on to Issue28932 where Benjamin added a more elaborate configure test when it broke OpenBSD, and now that causes builds on macOS versions earlier than

[issue29057] Compiler failure on Mac OS X - sys/random.h

2016-12-23 Thread Pam McA'Nulty
Pam McA'Nulty added the comment: OSX: 10.11.6 (15G1212) Xcode 8.2.1 Build version 8C1002 -- ___ Python tracker ___ ___ Python-bugs-li

[issue29057] Compiler failure on Mac OS X - sys/random.h

2016-12-23 Thread Pam McA'Nulty
Pam McA'Nulty added the comment: Patch for fix -- keywords: +patch Added file: http://bugs.python.org/file46009/Issue29057_random_include.patch ___ Python tracker ___ ___

[issue29057] Compiler failure on Mac OS X - sys/random.h

2016-12-23 Thread Ned Deily
Ned Deily added the comment: Pam, what version of macOS / OS X did this fail on? -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue29057] Compiler failure on Mac OS X - sys/random.h

2016-12-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- components: +macOS nosy: +benjamin.peterson, mark.dickinson, ned.deily, rhettinger, ronaldoussoren ___ Python tracker ___ ___

[issue29057] Compiler failure on Mac OS X - sys/random.h

2016-12-23 Thread Pam McA'Nulty
New submission from Pam McA'Nulty: make failed on Mac OS X including sys/random.h It looks to be caused by this commit: https://github.com/python/cpython/commit/1958527a2c5dda766b1917ab563622434b3dad0d Restoring the removed ifdefs solves the problem (see github PR) Official patch to follow