NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: port-powerpc/56892: powerpc ieeefp.h fails if _ISOC99_SOURCE is defined
The following reply was made to PR port-powerpc/56892; it has been noted by GNATS.
From: Havard Eidnes <he%NetBSD.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: port-powerpc/56892: powerpc ieeefp.h fails if _ISOC99_SOURCE
is defined
Date: Mon, 20 Jun 2022 16:00:14 +0200 (CEST)
So,
a bit more information about where the include of <ieeefp.h>
comes from:
In file included from /usr/pkgsrc/math/py-scipy/work/.buildlink/include=
/python3.9/pyport.h:202,
from /usr/pkgsrc/math/py-scipy/work/.buildlink/include=
/python3.9/Python.h:50,
from scipy/stats/_unuran/unuran_wrapper.c:6:
/usr/include/ieeefp.h:15:9: error: unknown type name 'fp_rnd'
15 | typedef fp_rnd fp_rnd_t;
| ^~~~~~
/usr/include/ieeefp.h:19:9: error: unknown type name 'fp_except'
19 | typedef fp_except fp_except_t;
| ^~~~~~~~~
unuran_wrapper.c line 6:
#include "Python.h"
Python.h line 50:
#include "pyport.h"
and around line 202 of pyport.h:
#ifdef HAVE_IEEEFP_H
#include <ieeefp.h> /* needed for 'finite' declaration on some platfor=
ms */
#endif
and that file will fail to build on NetBSD/powerpc with the above
errors if _ISOC99_SOURCE is defined at that point, causing those
types to not be defined.
I'm currently building py-scipy with python 3.9 with this patch added:
------------------------------ snip
$NetBSD$
On NetBSD/powerpc, you can't build with _ISOC99_SOURCE defined,
the include of <ieeefp.h> in the python headers will fail with
undefined types.
--- ./scipy/stats/_unuran/setup.py.orig 2022-05-16 12:36:53.864307900 +=
0000
+++ ./scipy/stats/_unuran/setup.py
@@ -95,7 +95,6 @@ def configuration(parent_package=3D"", top
("UNUR_ENABLE_INFO", "1"),
("VERSION", '"%s"' % UNURAN_VERSION),
("HAVE_CONFIG_H", "1"),
- ("_ISOC99_SOURCE", "1"),
]
=
UNURAN_DIRS =3D [
------------------------------ snip
...and with that the build of py-scipy completes.
Regards,
- H=E5vard
Home |
Main Index |
Thread Index |
Old Index