Issue 28013: PPC64 Fedora socket and ssl compile failure (original) (raw)

Issue28013

Created on 2016-09-08 03:15 by martin.panter, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (4)
msg274957 - (view) Author: Martin Panter (martin.panter) * (Python committer) Date: 2016-09-08 03:15
First build that failed is <http://buildbot.python.org/all/builders/PPC64%20Fedora%203.x/builds/1510>. Sample of the error messages: In file included from /usr/include/bluetooth/bluetooth.h:37:0, from /home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Modules/socketmodule.h:58, from /home/shager/cpython-buildarea/3.x.edelsohn-fedora-ppc64/build/Modules/socketmodule.c:321: /usr/include/bluetooth/bluetooth.h: In function ‘bt_get_le64’: /usr/include/bluetooth/bluetooth.h:238:18: error: expected specifier-qualifier-list before ‘typeof’ return bswap_64(bt_get_unaligned((const uint64_t *) ptr)); ^ /usr/include/bluetooth/bluetooth.h:238:18: error: called object is not a function or function pointer return bswap_64(bt_get_unaligned((const uint64_t *) ptr)); ^ /usr/include/bluetooth/bluetooth.h:238:18: error: ‘struct ’ has no member named ‘__v’ return bswap_64(bt_get_unaligned((const uint64_t *) ptr)); ^ Benjamin, the commits leading up to this include a lot of your C99 changes, so I added you, but I don’t have any definitive proof it’s your fault :)
msg274958 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2016-09-08 03:18
It's strange because it seems to imply the system headers are syntatically invalid.
msg274963 - (view) Author: Martin Panter (martin.panter) * (Python committer) Date: 2016-09-08 04:07
Looks like enabling C99 is the trigger. This is an old bug with the bluetooth header (or at least a regression triggered by an old patch, I haven’t followed the whole story): https://marc.info/?i=CAOcK=CPAHp-zBuWOPa3yB0ZcAmPWQgujzQcp+KtpJrX6tKDLag@mail.gmail.com
msg274994 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2016-09-08 09:45
#28017 and -std=gnu99 fixes the problem. The header files needs GNU extensions on big endian machines.
History
Date User Action Args
2022-04-11 14:58:36 admin set github: 72200
2016-09-08 09:45:13 christian.heimes set status: open -> closednosy: + christian.heimesmessages: + resolution: fixedstage: resolved
2016-09-08 09:37:48 martin.panter link issue28017 superseder
2016-09-08 04:07:02 martin.panter set messages: +
2016-09-08 03🔞36 benjamin.peterson set messages: +
2016-09-08 03:15:36 martin.panter create